diff --git "a/dist/agent.mjs" "b/dist/agent.mjs" --- "a/dist/agent.mjs" +++ "b/dist/agent.mjs" @@ -1,79588 +1,3 @@ -import { __commonJS, __export, __require, __toESM } from "./chunk-Dx39-ABv.mjs"; -import { AIMessage, AIMessageChunk, AsyncCaller, AsyncLocalStorageProviderSingleton, BaseCallbackHandler, BasePromptTemplate, BaseStringPromptTemplate, BaseTracer, CallbackManager, ChatGenerationChunk, ChatMessage, ChatMessageChunk, ChatPromptValue, DEFAULT_FORMATTER_MAPPING, DEFAULT_PARSER_MAPPING, FunctionMessageChunk, GenerationChunk, Graph, HumanMessage, HumanMessageChunk, IterableReadableStream, LangChainTracer, PromptTemplate, RUN_KEY, Runnable, RunnableAssign, RunnableBinding, RunnableEach, RunnableLambda, RunnableMap, RunnableParallel, RunnablePick, RunnableRetry, RunnableSequence, RunnableToolLike, RunnableWithFallbacks, Serializable, StringPromptValue, SystemMessage, SystemMessageChunk, ToolInputParsingException, ToolMessage, ToolMessageChunk, ZodFirstPartyTypeKind, _coerceToDict, _coerceToRunnable, _configHasToolCallId, _isToolCall, addLangChainErrorFields, anyType, applyPatch, arrayType, async_caller_exports, base_exports as base_exports$1, base_exports$1 as base_exports, booleanType, callbackHandlerPrefersStreaming, checkValidTemplate, coerceMessageLikeToMessage, compare, concat, console_exports, convertToChunk, convertToOpenAIImageBlock, convertToProviderContentBlock, custom, ensureConfig, enumType, env_exports, getBufferString, getCallbackManagerForConfig, getEnvironmentVariable, get_lc_unique_name, interpolateFString, interpolateMustache, isAIMessage, isAIMessageChunk, isBase64ContentBlock, isBaseMessage, isBaseMessageChunk, isDataContentBlock, isDirectToolOutput, isToolMessage, isURLContentBlock, keyFromJson, log_stream_exports, manager_exports, mapKeys, mapStoredMessageToChatMessage, mergeConfigs, numberType, objectType, outputs_exports, parseBase64DataUrl, parseCallbackConfigArg, parseFString, parseJsonMarkdown, parseMimeType, parseMustache, parsePartialJson, parseTemplate, patchConfig, pickRunnableConfigKeys, promises_exports, prompt_values_exports, renderTemplate, rng, serializable_exports, stream_exports, stringType, tracer_langchain_exports, unsafeStringify, v4_default, validate_default, zodToJsonSchema } from "./prompt-Cmq1pjHH.mjs"; -import { AIMessagePromptTemplate, BaseChatPromptTemplate, BaseMessagePromptTemplate, BaseMessageStringPromptTemplate, ChatMessagePromptTemplate, ChatPromptTemplate, DictPromptTemplate, FewShotChatMessagePromptTemplate, FewShotPromptTemplate, HumanMessagePromptTemplate, ImagePromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, messages_exports } from "./few_shot-BBzZpDUy.mjs"; -import { Blob, File, isFile, isFunction } from "./isFile-CMs-SNI_.mjs"; -import crypto$1 from "node:crypto"; -import { AsyncLocalStorage } from "node:async_hooks"; -import { deprecate, inspect } from "util"; -import { ReadStream } from "node:fs"; -import { Readable } from "node:stream"; -import { ReadableStream as ReadableStream$1 } from "node:stream/web"; - -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/parse.js -function parse$1(uuid) { - if (!validate_default(uuid)) throw TypeError("Invalid UUID"); - let v; - const arr$1 = new Uint8Array(16); - arr$1[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr$1[1] = v >>> 16 & 255; - arr$1[2] = v >>> 8 & 255; - arr$1[3] = v & 255; - arr$1[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr$1[5] = v & 255; - arr$1[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr$1[7] = v & 255; - arr$1[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr$1[9] = v & 255; - arr$1[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr$1[11] = v / 4294967296 & 255; - arr$1[12] = v >>> 24 & 255; - arr$1[13] = v >>> 16 & 255; - arr$1[14] = v >>> 8 & 255; - arr$1[15] = v & 255; - return arr$1; -} -var parse_default = parse$1; - -//#endregion -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/v1.js -let _nodeId; -let _clockseq; -let _lastMSecs = 0; -let _lastNSecs = 0; -function v1(options, buf, offset) { - let i$4 = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node; - let clockseq = options.clockseq; - if (!options._v6) { - if (!node) node = _nodeId; - if (clockseq == null) clockseq = _clockseq; - } - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || rng)(); - if (node == null) { - node = [ - seedBytes[0], - seedBytes[1], - seedBytes[2], - seedBytes[3], - seedBytes[4], - seedBytes[5] - ]; - if (!_nodeId && !options._v6) { - node[0] |= 1; - _nodeId = node; - } - } - if (clockseq == null) { - clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; - if (_clockseq === void 0 && !options._v6) _clockseq = clockseq; - } - } - let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); - let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if (dt < 0 && options.clockseq === void 0) clockseq = clockseq + 1 & 16383; - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) nsecs = 0; - if (nsecs >= 1e4) throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - msecs += 122192928e5; - const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b[i$4++] = tl >>> 24 & 255; - b[i$4++] = tl >>> 16 & 255; - b[i$4++] = tl >>> 8 & 255; - b[i$4++] = tl & 255; - const tmh = msecs / 4294967296 * 1e4 & 268435455; - b[i$4++] = tmh >>> 8 & 255; - b[i$4++] = tmh & 255; - b[i$4++] = tmh >>> 24 & 15 | 16; - b[i$4++] = tmh >>> 16 & 255; - b[i$4++] = clockseq >>> 8 | 128; - b[i$4++] = clockseq & 255; - for (let n = 0; n < 6; ++n) b[i$4 + n] = node[n]; - return buf || unsafeStringify(b); -} -var v1_default = v1; - -//#endregion -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/v1ToV6.js -/** -* Convert a v1 UUID to a v6 UUID -* -* @param {string|Uint8Array} uuid - The v1 UUID to convert to v6 -* @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg -* (string or Uint8Array) -*/ -function v1ToV6(uuid) { - const v1Bytes = typeof uuid === "string" ? parse_default(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === "string" ? unsafeStringify(v6Bytes) : v6Bytes; -} -function _v1ToV6(v1Bytes, randomize = false) { - return Uint8Array.of((v1Bytes[6] & 15) << 4 | v1Bytes[7] >> 4 & 15, (v1Bytes[7] & 15) << 4 | (v1Bytes[4] & 240) >> 4, (v1Bytes[4] & 15) << 4 | (v1Bytes[5] & 240) >> 4, (v1Bytes[5] & 15) << 4 | (v1Bytes[0] & 240) >> 4, (v1Bytes[0] & 15) << 4 | (v1Bytes[1] & 240) >> 4, (v1Bytes[1] & 15) << 4 | (v1Bytes[2] & 240) >> 4, 96 | v1Bytes[2] & 15, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} - -//#endregion -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/v35.js -function stringToBytes(str$1) { - str$1 = unescape(encodeURIComponent(str$1)); - const bytes = []; - for (let i$4 = 0; i$4 < str$1.length; ++i$4) bytes.push(str$1.charCodeAt(i$4)); - return bytes; -} -const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; -const URL$3 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function v35(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - var _namespace; - if (typeof value === "string") value = stringToBytes(value); - if (typeof namespace === "string") namespace = parse_default(namespace); - if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 15 | version; - bytes[8] = bytes[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i$4 = 0; i$4 < 16; ++i$4) buf[offset + i$4] = bytes[i$4]; - return buf; - } - return unsafeStringify(bytes); - } - try { - generateUUID.name = name; - } catch (err) {} - generateUUID.DNS = DNS; - generateUUID.URL = URL$3; - return generateUUID; -} - -//#endregion -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/sha1.js -function sha1(bytes) { - if (Array.isArray(bytes)) bytes = Buffer.from(bytes); - else if (typeof bytes === "string") bytes = Buffer.from(bytes, "utf8"); - return crypto$1.createHash("sha1").update(bytes).digest(); -} -var sha1_default = sha1; - -//#endregion -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/v5.js -const v5 = v35("v5", 80, sha1_default); -var v5_default = v5; - -//#endregion -//#region node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-node/v6.js -/** -* -* @param {object} options -* @param {Uint8Array=} buf -* @param {number=} offset -* @returns -*/ -function v6(options = {}, buf, offset = 0) { - let bytes = v1_default({ - ...options, - _v6: true - }, new Uint8Array(16)); - bytes = v1ToV6(bytes); - if (buf) { - for (let i$4 = 0; i$4 < 16; i$4++) buf[offset + i$4] = bytes[i$4]; - return buf; - } - return unsafeStringify(bytes); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/setup/async_local_storage.js -function initializeAsyncLocalStorageSingleton$1() { - AsyncLocalStorageProviderSingleton.initializeGlobalInstance(new AsyncLocalStorage()); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/errors.js -var BaseLangGraphError$1 = class extends Error { - constructor(message, fields) { - let finalMessage = message ?? ""; - if (fields?.lc_error_code) finalMessage = `${finalMessage}\n\nTroubleshooting URL: https://langchain-ai.github.io/langgraphjs/troubleshooting/errors/${fields.lc_error_code}/\n`; - super(finalMessage); - Object.defineProperty(this, "lc_error_code", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.lc_error_code = fields?.lc_error_code; - } -}; -var GraphBubbleUp$1 = class extends BaseLangGraphError$1 { - get is_bubble_up() { - return true; - } -}; -var GraphRecursionError$1 = class extends BaseLangGraphError$1 { - constructor(message, fields) { - super(message, fields); - this.name = "GraphRecursionError"; - } - static get unminifiable_name() { - return "GraphRecursionError"; - } -}; -var GraphValueError$1 = class extends BaseLangGraphError$1 { - constructor(message, fields) { - super(message, fields); - this.name = "GraphValueError"; - } - static get unminifiable_name() { - return "GraphValueError"; - } -}; -var GraphInterrupt$1 = class extends GraphBubbleUp$1 { - constructor(interrupts, fields) { - super(JSON.stringify(interrupts, null, 2), fields); - Object.defineProperty(this, "interrupts", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = "GraphInterrupt"; - this.interrupts = interrupts ?? []; - } - static get unminifiable_name() { - return "GraphInterrupt"; - } -}; -/** Raised by a node to interrupt execution. */ -var NodeInterrupt$1 = class extends GraphInterrupt$1 { - constructor(message, fields) { - super([{ - value: message, - when: "during" - }], fields); - this.name = "NodeInterrupt"; - } - static get unminifiable_name() { - return "NodeInterrupt"; - } -}; -var ParentCommand$1 = class extends GraphBubbleUp$1 { - constructor(command) { - super(); - Object.defineProperty(this, "command", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = "ParentCommand"; - this.command = command; - } - static get unminifiable_name() { - return "ParentCommand"; - } -}; -function isParentCommand$1(e) { - return e !== void 0 && e.name === ParentCommand$1.unminifiable_name; -} -function isGraphBubbleUp$1(e) { - return e !== void 0 && e.is_bubble_up === true; -} -function isGraphInterrupt$1(e) { - return e !== void 0 && [GraphInterrupt$1.unminifiable_name, NodeInterrupt$1.unminifiable_name].includes(e.name); -} -var EmptyInputError$1 = class extends BaseLangGraphError$1 { - constructor(message, fields) { - super(message, fields); - this.name = "EmptyInputError"; - } - static get unminifiable_name() { - return "EmptyInputError"; - } -}; -var EmptyChannelError$1 = class extends BaseLangGraphError$1 { - constructor(message, fields) { - super(message, fields); - this.name = "EmptyChannelError"; - } - static get unminifiable_name() { - return "EmptyChannelError"; - } -}; -var InvalidUpdateError$1 = class extends BaseLangGraphError$1 { - constructor(message, fields) { - super(message, fields); - this.name = "InvalidUpdateError"; - } - static get unminifiable_name() { - return "InvalidUpdateError"; - } -}; -var UnreachableNodeError = class extends BaseLangGraphError$1 { - constructor(message, fields) { - super(message, fields); - this.name = "UnreachableNodeError"; - } - static get unminifiable_name() { - return "UnreachableNodeError"; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/id.js -function uuid6(clockseq) { - return v6({ clockseq }); -} -function uuid5(name, namespace) { - const namespaceBytes = namespace.replace(/-/g, "").match(/.{2}/g).map((byte) => parseInt(byte, 16)); - return v5_default(name, new Uint8Array(namespaceBytes)); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.js -const ERROR$2 = "__error__"; -const SCHEDULED = "__scheduled__"; -const INTERRUPT$2 = "__interrupt__"; -const RESUME$2 = "__resume__"; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/load/import_constants.js -const optionalImportEntrypoints = []; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/agents.js -var agents_exports = {}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/js-sha1/hash.js -var root = typeof window === "object" ? window : {}; -var HEX_CHARS = "0123456789abcdef".split(""); -var EXTRA = [ - -2147483648, - 8388608, - 32768, - 128 -]; -var SHIFT = [ - 24, - 16, - 8, - 0 -]; -var blocks = []; -function Sha1(sharedMemory) { - if (sharedMemory) { - blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; - this.blocks = blocks; - } else this.blocks = [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ]; - this.h0 = 1732584193; - this.h1 = 4023233417; - this.h2 = 2562383102; - this.h3 = 271733878; - this.h4 = 3285377520; - this.block = this.start = this.bytes = this.hBytes = 0; - this.finalized = this.hashed = false; - this.first = true; -} -Sha1.prototype.update = function(message) { - if (this.finalized) return; - var notString = typeof message !== "string"; - if (notString && message.constructor === root.ArrayBuffer) message = new Uint8Array(message); - var code$1, index = 0, i$4, length = message.length || 0, blocks$1 = this.blocks; - while (index < length) { - if (this.hashed) { - this.hashed = false; - blocks$1[0] = this.block; - blocks$1[16] = blocks$1[1] = blocks$1[2] = blocks$1[3] = blocks$1[4] = blocks$1[5] = blocks$1[6] = blocks$1[7] = blocks$1[8] = blocks$1[9] = blocks$1[10] = blocks$1[11] = blocks$1[12] = blocks$1[13] = blocks$1[14] = blocks$1[15] = 0; - } - if (notString) for (i$4 = this.start; index < length && i$4 < 64; ++index) blocks$1[i$4 >> 2] |= message[index] << SHIFT[i$4++ & 3]; - else for (i$4 = this.start; index < length && i$4 < 64; ++index) { - code$1 = message.charCodeAt(index); - if (code$1 < 128) blocks$1[i$4 >> 2] |= code$1 << SHIFT[i$4++ & 3]; - else if (code$1 < 2048) { - blocks$1[i$4 >> 2] |= (192 | code$1 >> 6) << SHIFT[i$4++ & 3]; - blocks$1[i$4 >> 2] |= (128 | code$1 & 63) << SHIFT[i$4++ & 3]; - } else if (code$1 < 55296 || code$1 >= 57344) { - blocks$1[i$4 >> 2] |= (224 | code$1 >> 12) << SHIFT[i$4++ & 3]; - blocks$1[i$4 >> 2] |= (128 | code$1 >> 6 & 63) << SHIFT[i$4++ & 3]; - blocks$1[i$4 >> 2] |= (128 | code$1 & 63) << SHIFT[i$4++ & 3]; - } else { - code$1 = 65536 + ((code$1 & 1023) << 10 | message.charCodeAt(++index) & 1023); - blocks$1[i$4 >> 2] |= (240 | code$1 >> 18) << SHIFT[i$4++ & 3]; - blocks$1[i$4 >> 2] |= (128 | code$1 >> 12 & 63) << SHIFT[i$4++ & 3]; - blocks$1[i$4 >> 2] |= (128 | code$1 >> 6 & 63) << SHIFT[i$4++ & 3]; - blocks$1[i$4 >> 2] |= (128 | code$1 & 63) << SHIFT[i$4++ & 3]; - } - } - this.lastByteIndex = i$4; - this.bytes += i$4 - this.start; - if (i$4 >= 64) { - this.block = blocks$1[16]; - this.start = i$4 - 64; - this.hash(); - this.hashed = true; - } else this.start = i$4; - } - if (this.bytes > 4294967295) { - this.hBytes += this.bytes / 4294967296 << 0; - this.bytes = this.bytes % 4294967296; - } - return this; -}; -Sha1.prototype.finalize = function() { - if (this.finalized) return; - this.finalized = true; - var blocks$1 = this.blocks, i$4 = this.lastByteIndex; - blocks$1[16] = this.block; - blocks$1[i$4 >> 2] |= EXTRA[i$4 & 3]; - this.block = blocks$1[16]; - if (i$4 >= 56) { - if (!this.hashed) this.hash(); - blocks$1[0] = this.block; - blocks$1[16] = blocks$1[1] = blocks$1[2] = blocks$1[3] = blocks$1[4] = blocks$1[5] = blocks$1[6] = blocks$1[7] = blocks$1[8] = blocks$1[9] = blocks$1[10] = blocks$1[11] = blocks$1[12] = blocks$1[13] = blocks$1[14] = blocks$1[15] = 0; - } - blocks$1[14] = this.hBytes << 3 | this.bytes >>> 29; - blocks$1[15] = this.bytes << 3; - this.hash(); -}; -Sha1.prototype.hash = function() { - var a = this.h0, b = this.h1, c = this.h2, d$1 = this.h3, e = this.h4; - var f, j, t, blocks$1 = this.blocks; - for (j = 16; j < 80; ++j) { - t = blocks$1[j - 3] ^ blocks$1[j - 8] ^ blocks$1[j - 14] ^ blocks$1[j - 16]; - blocks$1[j] = t << 1 | t >>> 31; - } - for (j = 0; j < 20; j += 5) { - f = b & c | ~b & d$1; - t = a << 5 | a >>> 27; - e = t + f + e + 1518500249 + blocks$1[j] << 0; - b = b << 30 | b >>> 2; - f = a & b | ~a & c; - t = e << 5 | e >>> 27; - d$1 = t + f + d$1 + 1518500249 + blocks$1[j + 1] << 0; - a = a << 30 | a >>> 2; - f = e & a | ~e & b; - t = d$1 << 5 | d$1 >>> 27; - c = t + f + c + 1518500249 + blocks$1[j + 2] << 0; - e = e << 30 | e >>> 2; - f = d$1 & e | ~d$1 & a; - t = c << 5 | c >>> 27; - b = t + f + b + 1518500249 + blocks$1[j + 3] << 0; - d$1 = d$1 << 30 | d$1 >>> 2; - f = c & d$1 | ~c & e; - t = b << 5 | b >>> 27; - a = t + f + a + 1518500249 + blocks$1[j + 4] << 0; - c = c << 30 | c >>> 2; - } - for (; j < 40; j += 5) { - f = b ^ c ^ d$1; - t = a << 5 | a >>> 27; - e = t + f + e + 1859775393 + blocks$1[j] << 0; - b = b << 30 | b >>> 2; - f = a ^ b ^ c; - t = e << 5 | e >>> 27; - d$1 = t + f + d$1 + 1859775393 + blocks$1[j + 1] << 0; - a = a << 30 | a >>> 2; - f = e ^ a ^ b; - t = d$1 << 5 | d$1 >>> 27; - c = t + f + c + 1859775393 + blocks$1[j + 2] << 0; - e = e << 30 | e >>> 2; - f = d$1 ^ e ^ a; - t = c << 5 | c >>> 27; - b = t + f + b + 1859775393 + blocks$1[j + 3] << 0; - d$1 = d$1 << 30 | d$1 >>> 2; - f = c ^ d$1 ^ e; - t = b << 5 | b >>> 27; - a = t + f + a + 1859775393 + blocks$1[j + 4] << 0; - c = c << 30 | c >>> 2; - } - for (; j < 60; j += 5) { - f = b & c | b & d$1 | c & d$1; - t = a << 5 | a >>> 27; - e = t + f + e - 1894007588 + blocks$1[j] << 0; - b = b << 30 | b >>> 2; - f = a & b | a & c | b & c; - t = e << 5 | e >>> 27; - d$1 = t + f + d$1 - 1894007588 + blocks$1[j + 1] << 0; - a = a << 30 | a >>> 2; - f = e & a | e & b | a & b; - t = d$1 << 5 | d$1 >>> 27; - c = t + f + c - 1894007588 + blocks$1[j + 2] << 0; - e = e << 30 | e >>> 2; - f = d$1 & e | d$1 & a | e & a; - t = c << 5 | c >>> 27; - b = t + f + b - 1894007588 + blocks$1[j + 3] << 0; - d$1 = d$1 << 30 | d$1 >>> 2; - f = c & d$1 | c & e | d$1 & e; - t = b << 5 | b >>> 27; - a = t + f + a - 1894007588 + blocks$1[j + 4] << 0; - c = c << 30 | c >>> 2; - } - for (; j < 80; j += 5) { - f = b ^ c ^ d$1; - t = a << 5 | a >>> 27; - e = t + f + e - 899497514 + blocks$1[j] << 0; - b = b << 30 | b >>> 2; - f = a ^ b ^ c; - t = e << 5 | e >>> 27; - d$1 = t + f + d$1 - 899497514 + blocks$1[j + 1] << 0; - a = a << 30 | a >>> 2; - f = e ^ a ^ b; - t = d$1 << 5 | d$1 >>> 27; - c = t + f + c - 899497514 + blocks$1[j + 2] << 0; - e = e << 30 | e >>> 2; - f = d$1 ^ e ^ a; - t = c << 5 | c >>> 27; - b = t + f + b - 899497514 + blocks$1[j + 3] << 0; - d$1 = d$1 << 30 | d$1 >>> 2; - f = c ^ d$1 ^ e; - t = b << 5 | b >>> 27; - a = t + f + a - 899497514 + blocks$1[j + 4] << 0; - c = c << 30 | c >>> 2; - } - this.h0 = this.h0 + a << 0; - this.h1 = this.h1 + b << 0; - this.h2 = this.h2 + c << 0; - this.h3 = this.h3 + d$1 << 0; - this.h4 = this.h4 + e << 0; -}; -Sha1.prototype.hex = function() { - this.finalize(); - var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4; - return HEX_CHARS[h0 >> 28 & 15] + HEX_CHARS[h0 >> 24 & 15] + HEX_CHARS[h0 >> 20 & 15] + HEX_CHARS[h0 >> 16 & 15] + HEX_CHARS[h0 >> 12 & 15] + HEX_CHARS[h0 >> 8 & 15] + HEX_CHARS[h0 >> 4 & 15] + HEX_CHARS[h0 & 15] + HEX_CHARS[h1 >> 28 & 15] + HEX_CHARS[h1 >> 24 & 15] + HEX_CHARS[h1 >> 20 & 15] + HEX_CHARS[h1 >> 16 & 15] + HEX_CHARS[h1 >> 12 & 15] + HEX_CHARS[h1 >> 8 & 15] + HEX_CHARS[h1 >> 4 & 15] + HEX_CHARS[h1 & 15] + HEX_CHARS[h2 >> 28 & 15] + HEX_CHARS[h2 >> 24 & 15] + HEX_CHARS[h2 >> 20 & 15] + HEX_CHARS[h2 >> 16 & 15] + HEX_CHARS[h2 >> 12 & 15] + HEX_CHARS[h2 >> 8 & 15] + HEX_CHARS[h2 >> 4 & 15] + HEX_CHARS[h2 & 15] + HEX_CHARS[h3 >> 28 & 15] + HEX_CHARS[h3 >> 24 & 15] + HEX_CHARS[h3 >> 20 & 15] + HEX_CHARS[h3 >> 16 & 15] + HEX_CHARS[h3 >> 12 & 15] + HEX_CHARS[h3 >> 8 & 15] + HEX_CHARS[h3 >> 4 & 15] + HEX_CHARS[h3 & 15] + HEX_CHARS[h4 >> 28 & 15] + HEX_CHARS[h4 >> 24 & 15] + HEX_CHARS[h4 >> 20 & 15] + HEX_CHARS[h4 >> 16 & 15] + HEX_CHARS[h4 >> 12 & 15] + HEX_CHARS[h4 >> 8 & 15] + HEX_CHARS[h4 >> 4 & 15] + HEX_CHARS[h4 & 15]; -}; -Sha1.prototype.toString = Sha1.prototype.hex; -Sha1.prototype.digest = function() { - this.finalize(); - var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4; - return [ - h0 >> 24 & 255, - h0 >> 16 & 255, - h0 >> 8 & 255, - h0 & 255, - h1 >> 24 & 255, - h1 >> 16 & 255, - h1 >> 8 & 255, - h1 & 255, - h2 >> 24 & 255, - h2 >> 16 & 255, - h2 >> 8 & 255, - h2 & 255, - h3 >> 24 & 255, - h3 >> 16 & 255, - h3 >> 8 & 255, - h3 & 255, - h4 >> 24 & 255, - h4 >> 16 & 255, - h4 >> 8 & 255, - h4 & 255 - ]; -}; -Sha1.prototype.array = Sha1.prototype.digest; -Sha1.prototype.arrayBuffer = function() { - this.finalize(); - var buffer$1 = new ArrayBuffer(20); - var dataView = new DataView(buffer$1); - dataView.setUint32(0, this.h0); - dataView.setUint32(4, this.h1); - dataView.setUint32(8, this.h2); - dataView.setUint32(12, this.h3); - dataView.setUint32(16, this.h4); - return buffer$1; -}; -const insecureHash = (message) => { - return new Sha1(true).update(message)["hex"](); -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/hash.js -var hash_exports = {}; -__export(hash_exports, { insecureHash: () => insecureHash }); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/caches/base.js -var base_exports$2 = {}; -__export(base_exports$2, { - BaseCache: () => BaseCache$1, - InMemoryCache: () => InMemoryCache, - deserializeStoredGeneration: () => deserializeStoredGeneration, - getCacheKey: () => getCacheKey, - serializeGeneration: () => serializeGeneration -}); -/** -* This cache key should be consistent across all versions of LangChain. -* It is currently NOT consistent across versions of LangChain. -* -* A huge benefit of having a remote cache (like redis) is that you can -* access the cache from different processes/machines. The allows you to -* separate concerns and scale horizontally. -* -* TODO: Make cache key consistent across versions of LangChain. -*/ -const getCacheKey = (...strings) => insecureHash(strings.join("_")); -function deserializeStoredGeneration(storedGeneration) { - if (storedGeneration.message !== void 0) return { - text: storedGeneration.text, - message: mapStoredMessageToChatMessage(storedGeneration.message) - }; - else return { text: storedGeneration.text }; -} -function serializeGeneration(generation) { - const serializedValue = { text: generation.text }; - if (generation.message !== void 0) serializedValue.message = generation.message.toDict(); - return serializedValue; -} -/** -* Base class for all caches. All caches should extend this class. -*/ -var BaseCache$1 = class {}; -const GLOBAL_MAP = /* @__PURE__ */ new Map(); -/** -* A cache for storing LLM generations that stores data in memory. -*/ -var InMemoryCache = class InMemoryCache extends BaseCache$1 { - constructor(map) { - super(); - Object.defineProperty(this, "cache", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.cache = map ?? /* @__PURE__ */ new Map(); - } - /** - * Retrieves data from the cache using a prompt and an LLM key. If the - * data is not found, it returns null. - * @param prompt The prompt used to find the data. - * @param llmKey The LLM key used to find the data. - * @returns The data corresponding to the prompt and LLM key, or null if not found. - */ - lookup(prompt, llmKey) { - return Promise.resolve(this.cache.get(getCacheKey(prompt, llmKey)) ?? null); - } - /** - * Updates the cache with new data using a prompt and an LLM key. - * @param prompt The prompt used to store the data. - * @param llmKey The LLM key used to store the data. - * @param value The data to be stored. - */ - async update(prompt, llmKey, value) { - this.cache.set(getCacheKey(prompt, llmKey), value); - } - /** - * Returns a global instance of InMemoryCache using a predefined global - * map as the initial cache. - * @returns A global instance of InMemoryCache. - */ - static global() { - return new InMemoryCache(GLOBAL_MAP); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/chat_history.js -var chat_history_exports = {}; -__export(chat_history_exports, { - BaseChatMessageHistory: () => BaseChatMessageHistory, - BaseListChatMessageHistory: () => BaseListChatMessageHistory, - InMemoryChatMessageHistory: () => InMemoryChatMessageHistory -}); -/** -* Base class for all chat message histories. All chat message histories -* should extend this class. -*/ -var BaseChatMessageHistory = class extends Serializable { - /** - * Add a list of messages. - * - * Implementations should override this method to handle bulk addition of messages - * in an efficient manner to avoid unnecessary round-trips to the underlying store. - * - * @param messages - A list of BaseMessage objects to store. - */ - async addMessages(messages) { - for (const message of messages) await this.addMessage(message); - } -}; -/** -* Base class for all list chat message histories. All list chat message -* histories should extend this class. -*/ -var BaseListChatMessageHistory = class extends Serializable { - /** - * This is a convenience method for adding a human message string to the store. - * Please note that this is a convenience method. Code should favor the - * bulk addMessages interface instead to save on round-trips to the underlying - * persistence layer. - * This method may be deprecated in a future release. - */ - addUserMessage(message) { - return this.addMessage(new HumanMessage(message)); - } - /** @deprecated Use addAIMessage instead */ - addAIChatMessage(message) { - return this.addMessage(new AIMessage(message)); - } - /** - * This is a convenience method for adding an AI message string to the store. - * Please note that this is a convenience method. Code should favor the bulk - * addMessages interface instead to save on round-trips to the underlying - * persistence layer. - * This method may be deprecated in a future release. - */ - addAIMessage(message) { - return this.addMessage(new AIMessage(message)); - } - /** - * Add a list of messages. - * - * Implementations should override this method to handle bulk addition of messages - * in an efficient manner to avoid unnecessary round-trips to the underlying store. - * - * @param messages - A list of BaseMessage objects to store. - */ - async addMessages(messages) { - for (const message of messages) await this.addMessage(message); - } - /** - * Remove all messages from the store. - */ - clear() { - throw new Error("Not implemented."); - } -}; -/** -* Class for storing chat message history in-memory. It extends the -* BaseListChatMessageHistory class and provides methods to get, add, and -* clear messages. -*/ -var InMemoryChatMessageHistory = class extends BaseListChatMessageHistory { - constructor(messages) { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "stores", - "message", - "in_memory" - ] - }); - Object.defineProperty(this, "messages", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.messages = messages ?? []; - } - /** - * Method to get all the messages stored in the ChatMessageHistory - * instance. - * @returns Array of stored BaseMessage instances. - */ - async getMessages() { - return this.messages; - } - /** - * Method to add a new message to the ChatMessageHistory instance. - * @param message The BaseMessage instance to add. - * @returns A promise that resolves when the message has been added. - */ - async addMessage(message) { - this.messages.push(message); - } - /** - * Method to clear all the messages from the ChatMessageHistory instance. - * @returns A promise that resolves when all messages have been cleared. - */ - async clear() { - this.messages = []; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/documents/document.js -/** -* Interface for interacting with a document. -*/ -var Document = class { - constructor(fields) { - Object.defineProperty(this, "pageContent", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "metadata", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * An optional identifier for the document. - * - * Ideally this should be unique across the document collection and formatted - * as a UUID, but this will not be enforced. - */ - Object.defineProperty(this, "id", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.pageContent = fields.pageContent !== void 0 ? fields.pageContent.toString() : ""; - this.metadata = fields.metadata ?? {}; - this.id = fields.id; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/documents/transformers.js -/** -* Abstract base class for document transformation systems. -* -* A document transformation system takes an array of Documents and returns an -* array of transformed Documents. These arrays do not necessarily have to have -* the same length. -* -* One example of this is a text splitter that splits a large document into -* many smaller documents. -*/ -var BaseDocumentTransformer = class extends Runnable { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "documents", - "transformers" - ] - }); - } - /** - * Method to invoke the document transformation. This method calls the - * transformDocuments method with the provided input. - * @param input The input documents to be transformed. - * @param _options Optional configuration object to customize the behavior of callbacks. - * @returns A Promise that resolves to the transformed documents. - */ - invoke(input, _options) { - return this.transformDocuments(input); - } -}; -/** -* Class for document transformers that return exactly one transformed document -* for each input document. -*/ -var MappingDocumentTransformer = class extends BaseDocumentTransformer { - async transformDocuments(documents) { - const newDocuments = []; - for (const document of documents) { - const transformedDocument = await this._transformDocument(document); - newDocuments.push(transformedDocument); - } - return newDocuments; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/documents/index.js -var documents_exports = {}; -__export(documents_exports, { - BaseDocumentTransformer: () => BaseDocumentTransformer, - Document: () => Document, - MappingDocumentTransformer: () => MappingDocumentTransformer -}); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/embeddings.js -var embeddings_exports = {}; -__export(embeddings_exports, { Embeddings: () => Embeddings$1 }); -/** -* An abstract class that provides methods for embedding documents and -* queries using LangChain. -*/ -var Embeddings$1 = class { - constructor(params) { - /** - * The async caller should be used by subclasses to make any async calls, - * which will thus benefit from the concurrency and retry logic. - */ - Object.defineProperty(this, "caller", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.caller = new AsyncCaller(params ?? {}); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/example_selectors/base.js -/** -* Base class for example selectors. -*/ -var BaseExampleSelector = class extends Serializable { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "example_selectors", - "base" - ] - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/example_selectors/conditional.js -/** -* Abstract class that defines the interface for selecting a prompt for a -* given language model. -*/ -var BasePromptSelector = class { - /** - * Asynchronous version of `getPrompt` that also accepts an options object - * for partial variables. - * @param llm The language model for which to get a prompt. - * @param options Optional object for partial variables. - * @returns A Promise that resolves to a prompt template. - */ - async getPromptAsync(llm, options) { - const prompt = this.getPrompt(llm); - return prompt.partial(options?.partialVariables ?? {}); - } -}; -/** -* Concrete implementation of `BasePromptSelector` that selects a prompt -* based on a set of conditions. It has a default prompt that it returns -* if none of the conditions are met. -*/ -var ConditionalPromptSelector = class extends BasePromptSelector { - constructor(default_prompt, conditionals = []) { - super(); - Object.defineProperty(this, "defaultPrompt", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "conditionals", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.defaultPrompt = default_prompt; - this.conditionals = conditionals; - } - /** - * Method that selects a prompt based on a set of conditions. If none of - * the conditions are met, it returns the default prompt. - * @param llm The language model for which to get a prompt. - * @returns A prompt template. - */ - getPrompt(llm) { - for (const [condition, prompt] of this.conditionals) if (condition(llm)) return prompt; - return this.defaultPrompt; - } -}; -/** -* Type guard function that checks if a given language model is of type -* `BaseLLM`. -*/ -function isLLM(llm) { - return llm._modelType() === "base_llm"; -} -/** -* Type guard function that checks if a given language model is of type -* `BaseChatModel`. -*/ -function isChatModel(llm) { - return llm._modelType() === "base_chat_model"; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/example_selectors/length_based.js -/** -* Calculates the length of a text based on the number of words and lines. -*/ -function getLengthBased(text) { - return text.split(/\n| /).length; -} -/** -* A specialized example selector that selects examples based on their -* length, ensuring that the total length of the selected examples does -* not exceed a specified maximum length. -* @example -* ```typescript -* const exampleSelector = new LengthBasedExampleSelector( -* [ -* { input: "happy", output: "sad" }, -* { input: "tall", output: "short" }, -* { input: "energetic", output: "lethargic" }, -* { input: "sunny", output: "gloomy" }, -* { input: "windy", output: "calm" }, -* ], -* { -* examplePrompt: new PromptTemplate({ -* inputVariables: ["input", "output"], -* template: "Input: {input}\nOutput: {output}", -* }), -* maxLength: 25, -* }, -* ); -* const dynamicPrompt = new FewShotPromptTemplate({ -* exampleSelector, -* examplePrompt: new PromptTemplate({ -* inputVariables: ["input", "output"], -* template: "Input: {input}\nOutput: {output}", -* }), -* prefix: "Give the antonym of every input", -* suffix: "Input: {adjective}\nOutput:", -* inputVariables: ["adjective"], -* }); -* console.log(dynamicPrompt.format({ adjective: "big" })); -* console.log( -* dynamicPrompt.format({ -* adjective: -* "big and huge and massive and large and gigantic and tall and much much much much much bigger than everything else", -* }), -* ); -* ``` -*/ -var LengthBasedExampleSelector = class LengthBasedExampleSelector extends BaseExampleSelector { - constructor(data) { - super(data); - Object.defineProperty(this, "examples", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "examplePrompt", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "getTextLength", { - enumerable: true, - configurable: true, - writable: true, - value: getLengthBased - }); - Object.defineProperty(this, "maxLength", { - enumerable: true, - configurable: true, - writable: true, - value: 2048 - }); - Object.defineProperty(this, "exampleTextLengths", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.examplePrompt = data.examplePrompt; - this.maxLength = data.maxLength ?? 2048; - this.getTextLength = data.getTextLength ?? getLengthBased; - } - /** - * Adds an example to the list of examples and calculates its length. - * @param example The example to be added. - * @returns Promise that resolves when the example has been added and its length calculated. - */ - async addExample(example) { - this.examples.push(example); - const stringExample = await this.examplePrompt.format(example); - this.exampleTextLengths.push(this.getTextLength(stringExample)); - } - /** - * Calculates the lengths of the examples. - * @param v Array of lengths of the examples. - * @param values Instance of LengthBasedExampleSelector. - * @returns Promise that resolves with an array of lengths of the examples. - */ - async calculateExampleTextLengths(v, values) { - if (v.length > 0) return v; - const { examples, examplePrompt } = values; - const stringExamples = await Promise.all(examples.map((eg) => examplePrompt.format(eg))); - return stringExamples.map((eg) => this.getTextLength(eg)); - } - /** - * Selects examples until the total length of the selected examples - * reaches the maxLength. - * @param inputVariables The input variables for the examples. - * @returns Promise that resolves with an array of selected examples. - */ - async selectExamples(inputVariables) { - const inputs = Object.values(inputVariables).join(" "); - let remainingLength = this.maxLength - this.getTextLength(inputs); - let i$4 = 0; - const examples = []; - while (remainingLength > 0 && i$4 < this.examples.length) { - const newLength = remainingLength - this.exampleTextLengths[i$4]; - if (newLength < 0) break; - else { - examples.push(this.examples[i$4]); - remainingLength = newLength; - } - i$4 += 1; - } - return examples; - } - /** - * Creates a new instance of LengthBasedExampleSelector and adds a list of - * examples to it. - * @param examples Array of examples to be added. - * @param args Input parameters for the LengthBasedExampleSelector. - * @returns Promise that resolves with a new instance of LengthBasedExampleSelector with the examples added. - */ - static async fromExamples(examples, args) { - const selector = new LengthBasedExampleSelector(args); - await Promise.all(examples.map((eg) => selector.addExample(eg))); - return selector; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/example_selectors/semantic_similarity.js -function sortedValues(values) { - return Object.keys(values).sort().map((key$1) => values[key$1]); -} -/** -* Class that selects examples based on semantic similarity. It extends -* the BaseExampleSelector class. -* @example -* ```typescript -* const exampleSelector = await SemanticSimilarityExampleSelector.fromExamples( -* [ -* { input: "happy", output: "sad" }, -* { input: "tall", output: "short" }, -* { input: "energetic", output: "lethargic" }, -* { input: "sunny", output: "gloomy" }, -* { input: "windy", output: "calm" }, -* ], -* new OpenAIEmbeddings(), -* HNSWLib, -* { k: 1 }, -* ); -* const dynamicPrompt = new FewShotPromptTemplate({ -* exampleSelector, -* examplePrompt: PromptTemplate.fromTemplate( -* "Input: {input}\nOutput: {output}", -* ), -* prefix: "Give the antonym of every input", -* suffix: "Input: {adjective}\nOutput:", -* inputVariables: ["adjective"], -* }); -* console.log(await dynamicPrompt.format({ adjective: "rainy" })); -* ``` -*/ -var SemanticSimilarityExampleSelector = class SemanticSimilarityExampleSelector extends BaseExampleSelector { - constructor(data) { - super(data); - Object.defineProperty(this, "vectorStoreRetriever", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "exampleKeys", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "inputKeys", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.exampleKeys = data.exampleKeys; - this.inputKeys = data.inputKeys; - if (data.vectorStore !== void 0) this.vectorStoreRetriever = data.vectorStore.asRetriever({ - k: data.k ?? 4, - filter: data.filter - }); - else if (data.vectorStoreRetriever) this.vectorStoreRetriever = data.vectorStoreRetriever; - else throw new Error(`You must specify one of "vectorStore" and "vectorStoreRetriever".`); - } - /** - * Method that adds a new example to the vectorStore. The example is - * converted to a string and added to the vectorStore as a document. - * @param example The example to be added to the vectorStore. - * @returns Promise that resolves when the example has been added to the vectorStore. - */ - async addExample(example) { - const inputKeys = this.inputKeys ?? Object.keys(example); - const stringExample = sortedValues(inputKeys.reduce((acc, key$1) => ({ - ...acc, - [key$1]: example[key$1] - }), {})).join(" "); - await this.vectorStoreRetriever.addDocuments([new Document({ - pageContent: stringExample, - metadata: example - })]); - } - /** - * Method that selects which examples to use based on semantic similarity. - * It performs a similarity search in the vectorStore using the input - * variables and returns the examples with the highest similarity. - * @param inputVariables The input variables used for the similarity search. - * @returns Promise that resolves with an array of the selected examples. - */ - async selectExamples(inputVariables) { - const inputKeys = this.inputKeys ?? Object.keys(inputVariables); - const query = sortedValues(inputKeys.reduce((acc, key$1) => ({ - ...acc, - [key$1]: inputVariables[key$1] - }), {})).join(" "); - const exampleDocs = await this.vectorStoreRetriever.invoke(query); - const examples = exampleDocs.map((doc) => doc.metadata); - if (this.exampleKeys) return examples.map((example) => this.exampleKeys.reduce((acc, key$1) => ({ - ...acc, - [key$1]: example[key$1] - }), {})); - return examples; - } - /** - * Static method that creates a new instance of - * SemanticSimilarityExampleSelector. It takes a list of examples, an - * instance of Embeddings, a VectorStore class, and an options object as - * parameters. It converts the examples to strings, creates a VectorStore - * from the strings and the embeddings, and returns a new - * SemanticSimilarityExampleSelector with the created VectorStore and the - * options provided. - * @param examples The list of examples to be used. - * @param embeddings The instance of Embeddings to be used. - * @param vectorStoreCls The VectorStore class to be used. - * @param options The options object for the SemanticSimilarityExampleSelector. - * @returns Promise that resolves with a new instance of SemanticSimilarityExampleSelector. - */ - static async fromExamples(examples, embeddings, vectorStoreCls, options = {}) { - const inputKeys = options.inputKeys ?? null; - const stringExamples = examples.map((example) => sortedValues(inputKeys ? inputKeys.reduce((acc, key$1) => ({ - ...acc, - [key$1]: example[key$1] - }), {}) : example).join(" ")); - const vectorStore = await vectorStoreCls.fromTexts(stringExamples, examples, embeddings, options); - return new SemanticSimilarityExampleSelector({ - vectorStore, - k: options.k ?? 4, - exampleKeys: options.exampleKeys, - inputKeys: options.inputKeys - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/example_selectors/index.js -var example_selectors_exports = {}; -__export(example_selectors_exports, { - BaseExampleSelector: () => BaseExampleSelector, - BasePromptSelector: () => BasePromptSelector, - ConditionalPromptSelector: () => ConditionalPromptSelector, - LengthBasedExampleSelector: () => LengthBasedExampleSelector, - SemanticSimilarityExampleSelector: () => SemanticSimilarityExampleSelector, - isChatModel: () => isChatModel, - isLLM: () => isLLM -}); - -//#endregion -//#region node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js -var require_base64_js = __commonJS({ "node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports) { - exports.byteLength = byteLength; - exports.toByteArray = toByteArray; - exports.fromByteArray = fromByteArray; - var lookup = []; - var revLookup = []; - var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array; - var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - for (var i$3 = 0, len = code.length; i$3 < len; ++i$3) { - lookup[i$3] = code[i$3]; - revLookup[code.charCodeAt(i$3)] = i$3; - } - revLookup["-".charCodeAt(0)] = 62; - revLookup["_".charCodeAt(0)] = 63; - function getLens(b64) { - var len$1 = b64.length; - if (len$1 % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4"); - var validLen = b64.indexOf("="); - if (validLen === -1) validLen = len$1; - var placeHoldersLen = validLen === len$1 ? 0 : 4 - validLen % 4; - return [validLen, placeHoldersLen]; - } - function byteLength(b64) { - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; - } - function _byteLength(b64, validLen, placeHoldersLen) { - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; - } - function toByteArray(b64) { - var tmp; - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - var arr$1 = new Arr(_byteLength(b64, validLen, placeHoldersLen)); - var curByte = 0; - var len$1 = placeHoldersLen > 0 ? validLen - 4 : validLen; - var i$4; - for (i$4 = 0; i$4 < len$1; i$4 += 4) { - tmp = revLookup[b64.charCodeAt(i$4)] << 18 | revLookup[b64.charCodeAt(i$4 + 1)] << 12 | revLookup[b64.charCodeAt(i$4 + 2)] << 6 | revLookup[b64.charCodeAt(i$4 + 3)]; - arr$1[curByte++] = tmp >> 16 & 255; - arr$1[curByte++] = tmp >> 8 & 255; - arr$1[curByte++] = tmp & 255; - } - if (placeHoldersLen === 2) { - tmp = revLookup[b64.charCodeAt(i$4)] << 2 | revLookup[b64.charCodeAt(i$4 + 1)] >> 4; - arr$1[curByte++] = tmp & 255; - } - if (placeHoldersLen === 1) { - tmp = revLookup[b64.charCodeAt(i$4)] << 10 | revLookup[b64.charCodeAt(i$4 + 1)] << 4 | revLookup[b64.charCodeAt(i$4 + 2)] >> 2; - arr$1[curByte++] = tmp >> 8 & 255; - arr$1[curByte++] = tmp & 255; - } - return arr$1; - } - function tripletToBase64(num) { - return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63]; - } - function encodeChunk(uint8, start, end) { - var tmp; - var output = []; - for (var i$4 = start; i$4 < end; i$4 += 3) { - tmp = (uint8[i$4] << 16 & 16711680) + (uint8[i$4 + 1] << 8 & 65280) + (uint8[i$4 + 2] & 255); - output.push(tripletToBase64(tmp)); - } - return output.join(""); - } - function fromByteArray(uint8) { - var tmp; - var len$1 = uint8.length; - var extraBytes = len$1 % 3; - var parts = []; - var maxChunkLength = 16383; - for (var i$4 = 0, len2 = len$1 - extraBytes; i$4 < len2; i$4 += maxChunkLength) parts.push(encodeChunk(uint8, i$4, i$4 + maxChunkLength > len2 ? len2 : i$4 + maxChunkLength)); - if (extraBytes === 1) { - tmp = uint8[len$1 - 1]; - parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="); - } else if (extraBytes === 2) { - tmp = (uint8[len$1 - 2] << 8) + uint8[len$1 - 1]; - parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="); - } - return parts.join(""); - } -} }); - -//#endregion -//#region node_modules/.pnpm/js-tiktoken@1.0.20/node_modules/js-tiktoken/dist/chunk-ZDNLBERF.js -var import_base64_js = __toESM(require_base64_js(), 1); -var __defProp$1 = Object.defineProperty; -var __defNormalProp = (obj, key$1, value) => key$1 in obj ? __defProp$1(obj, key$1, { - enumerable: true, - configurable: true, - writable: true, - value -}) : obj[key$1] = value; -var __publicField = (obj, key$1, value) => { - __defNormalProp(obj, typeof key$1 !== "symbol" ? key$1 + "" : key$1, value); - return value; -}; -function bytePairMerge(piece, ranks) { - let parts = Array.from({ length: piece.length }, (_, i$4) => ({ - start: i$4, - end: i$4 + 1 - })); - while (parts.length > 1) { - let minRank = null; - for (let i$4 = 0; i$4 < parts.length - 1; i$4++) { - const slice = piece.slice(parts[i$4].start, parts[i$4 + 1].end); - const rank = ranks.get(slice.join(",")); - if (rank == null) continue; - if (minRank == null || rank < minRank[0]) minRank = [rank, i$4]; - } - if (minRank != null) { - const i$4 = minRank[1]; - parts[i$4] = { - start: parts[i$4].start, - end: parts[i$4 + 1].end - }; - parts.splice(i$4 + 1, 1); - } else break; - } - return parts; -} -function bytePairEncode(piece, ranks) { - if (piece.length === 1) return [ranks.get(piece.join(","))]; - return bytePairMerge(piece, ranks).map((p) => ranks.get(piece.slice(p.start, p.end).join(","))).filter((x) => x != null); -} -function escapeRegex(str$1) { - return str$1.replace(/[\\^$*+?.()|[\]{}]/g, "\\$&"); -} -var _Tiktoken = class { - /** @internal */ - specialTokens; - /** @internal */ - inverseSpecialTokens; - /** @internal */ - patStr; - /** @internal */ - textEncoder = new TextEncoder(); - /** @internal */ - textDecoder = new TextDecoder("utf-8"); - /** @internal */ - rankMap = /* @__PURE__ */ new Map(); - /** @internal */ - textMap = /* @__PURE__ */ new Map(); - constructor(ranks, extendedSpecialTokens) { - this.patStr = ranks.pat_str; - const uncompressed = ranks.bpe_ranks.split("\n").filter(Boolean).reduce((memo, x) => { - const [_, offsetStr, ...tokens] = x.split(" "); - const offset = Number.parseInt(offsetStr, 10); - tokens.forEach((token, i$4) => memo[token] = offset + i$4); - return memo; - }, {}); - for (const [token, rank] of Object.entries(uncompressed)) { - const bytes = import_base64_js.toByteArray(token); - this.rankMap.set(bytes.join(","), rank); - this.textMap.set(rank, bytes); - } - this.specialTokens = { - ...ranks.special_tokens, - ...extendedSpecialTokens - }; - this.inverseSpecialTokens = Object.entries(this.specialTokens).reduce((memo, [text, rank]) => { - memo[rank] = this.textEncoder.encode(text); - return memo; - }, {}); - } - encode(text, allowedSpecial = [], disallowedSpecial = "all") { - const regexes = new RegExp(this.patStr, "ug"); - const specialRegex = _Tiktoken.specialTokenRegex(Object.keys(this.specialTokens)); - const ret = []; - const allowedSpecialSet = new Set(allowedSpecial === "all" ? Object.keys(this.specialTokens) : allowedSpecial); - const disallowedSpecialSet = new Set(disallowedSpecial === "all" ? Object.keys(this.specialTokens).filter((x) => !allowedSpecialSet.has(x)) : disallowedSpecial); - if (disallowedSpecialSet.size > 0) { - const disallowedSpecialRegex = _Tiktoken.specialTokenRegex([...disallowedSpecialSet]); - const specialMatch = text.match(disallowedSpecialRegex); - if (specialMatch != null) throw new Error(`The text contains a special token that is not allowed: ${specialMatch[0]}`); - } - let start = 0; - while (true) { - let nextSpecial = null; - let startFind = start; - while (true) { - specialRegex.lastIndex = startFind; - nextSpecial = specialRegex.exec(text); - if (nextSpecial == null || allowedSpecialSet.has(nextSpecial[0])) break; - startFind = nextSpecial.index + 1; - } - const end = nextSpecial?.index ?? text.length; - for (const match of text.substring(start, end).matchAll(regexes)) { - const piece = this.textEncoder.encode(match[0]); - const token2 = this.rankMap.get(piece.join(",")); - if (token2 != null) { - ret.push(token2); - continue; - } - ret.push(...bytePairEncode(piece, this.rankMap)); - } - if (nextSpecial == null) break; - let token = this.specialTokens[nextSpecial[0]]; - ret.push(token); - start = nextSpecial.index + nextSpecial[0].length; - } - return ret; - } - decode(tokens) { - const res = []; - let length = 0; - for (let i2 = 0; i2 < tokens.length; ++i2) { - const token = tokens[i2]; - const bytes = this.textMap.get(token) ?? this.inverseSpecialTokens[token]; - if (bytes != null) { - res.push(bytes); - length += bytes.length; - } - } - const mergedArray = new Uint8Array(length); - let i$4 = 0; - for (const bytes of res) { - mergedArray.set(bytes, i$4); - i$4 += bytes.length; - } - return this.textDecoder.decode(mergedArray); - } -}; -var Tiktoken = _Tiktoken; -__publicField(Tiktoken, "specialTokenRegex", (tokens) => { - return new RegExp(tokens.map((i$4) => escapeRegex(i$4)).join("|"), "g"); -}); -function getEncodingNameForModel(model) { - switch (model) { - case "gpt2": return "gpt2"; - case "code-cushman-001": - case "code-cushman-002": - case "code-davinci-001": - case "code-davinci-002": - case "cushman-codex": - case "davinci-codex": - case "davinci-002": - case "text-davinci-002": - case "text-davinci-003": return "p50k_base"; - case "code-davinci-edit-001": - case "text-davinci-edit-001": return "p50k_edit"; - case "ada": - case "babbage": - case "babbage-002": - case "code-search-ada-code-001": - case "code-search-babbage-code-001": - case "curie": - case "davinci": - case "text-ada-001": - case "text-babbage-001": - case "text-curie-001": - case "text-davinci-001": - case "text-search-ada-doc-001": - case "text-search-babbage-doc-001": - case "text-search-curie-doc-001": - case "text-search-davinci-doc-001": - case "text-similarity-ada-001": - case "text-similarity-babbage-001": - case "text-similarity-curie-001": - case "text-similarity-davinci-001": return "r50k_base"; - case "gpt-3.5-turbo-instruct-0914": - case "gpt-3.5-turbo-instruct": - case "gpt-3.5-turbo-16k-0613": - case "gpt-3.5-turbo-16k": - case "gpt-3.5-turbo-0613": - case "gpt-3.5-turbo-0301": - case "gpt-3.5-turbo": - case "gpt-4-32k-0613": - case "gpt-4-32k-0314": - case "gpt-4-32k": - case "gpt-4-0613": - case "gpt-4-0314": - case "gpt-4": - case "gpt-3.5-turbo-1106": - case "gpt-35-turbo": - case "gpt-4-1106-preview": - case "gpt-4-vision-preview": - case "gpt-3.5-turbo-0125": - case "gpt-4-turbo": - case "gpt-4-turbo-2024-04-09": - case "gpt-4-turbo-preview": - case "gpt-4-0125-preview": - case "text-embedding-ada-002": - case "text-embedding-3-small": - case "text-embedding-3-large": return "cl100k_base"; - case "gpt-4o": - case "gpt-4o-2024-05-13": - case "gpt-4o-2024-08-06": - case "gpt-4o-2024-11-20": - case "gpt-4o-mini-2024-07-18": - case "gpt-4o-mini": - case "gpt-4o-search-preview": - case "gpt-4o-search-preview-2025-03-11": - case "gpt-4o-mini-search-preview": - case "gpt-4o-mini-search-preview-2025-03-11": - case "gpt-4o-audio-preview": - case "gpt-4o-audio-preview-2024-12-17": - case "gpt-4o-audio-preview-2024-10-01": - case "gpt-4o-mini-audio-preview": - case "gpt-4o-mini-audio-preview-2024-12-17": - case "o1": - case "o1-2024-12-17": - case "o1-mini": - case "o1-mini-2024-09-12": - case "o1-preview": - case "o1-preview-2024-09-12": - case "o1-pro": - case "o1-pro-2025-03-19": - case "o3": - case "o3-2025-04-16": - case "o3-mini": - case "o3-mini-2025-01-31": - case "o4-mini": - case "o4-mini-2025-04-16": - case "chatgpt-4o-latest": - case "gpt-4o-realtime": - case "gpt-4o-realtime-preview-2024-10-01": - case "gpt-4o-realtime-preview-2024-12-17": - case "gpt-4o-mini-realtime-preview": - case "gpt-4o-mini-realtime-preview-2024-12-17": - case "gpt-4.1": - case "gpt-4.1-2025-04-14": - case "gpt-4.1-mini": - case "gpt-4.1-mini-2025-04-14": - case "gpt-4.1-nano": - case "gpt-4.1-nano-2025-04-14": - case "gpt-4.5-preview": - case "gpt-4.5-preview-2025-02-27": return "o200k_base"; - default: throw new Error("Unknown model"); - } -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/tiktoken.js -var tiktoken_exports = {}; -__export(tiktoken_exports, { - encodingForModel: () => encodingForModel, - getEncoding: () => getEncoding -}); -const cache = {}; -const caller = /* @__PURE__ */ new AsyncCaller({}); -async function getEncoding(encoding) { - if (!(encoding in cache)) cache[encoding] = caller.fetch(`https://tiktoken.pages.dev/js/${encoding}.json`).then((res) => res.json()).then((data) => new Tiktoken(data)).catch((e) => { - delete cache[encoding]; - throw e; - }); - return await cache[encoding]; -} -async function encodingForModel(model) { - return getEncoding(getEncodingNameForModel(model)); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/language_models/base.js -var base_exports$3 = {}; -__export(base_exports$3, { - BaseLangChain: () => BaseLangChain, - BaseLanguageModel: () => BaseLanguageModel, - calculateMaxTokens: () => calculateMaxTokens, - getEmbeddingContextSize: () => getEmbeddingContextSize, - getModelContextSize: () => getModelContextSize, - getModelNameForTiktoken: () => getModelNameForTiktoken, - isOpenAITool: () => isOpenAITool -}); -const getModelNameForTiktoken = (modelName) => { - if (modelName.startsWith("gpt-3.5-turbo-16k")) return "gpt-3.5-turbo-16k"; - if (modelName.startsWith("gpt-3.5-turbo-")) return "gpt-3.5-turbo"; - if (modelName.startsWith("gpt-4-32k")) return "gpt-4-32k"; - if (modelName.startsWith("gpt-4-")) return "gpt-4"; - if (modelName.startsWith("gpt-4o")) return "gpt-4o"; - return modelName; -}; -const getEmbeddingContextSize = (modelName) => { - switch (modelName) { - case "text-embedding-ada-002": return 8191; - default: return 2046; - } -}; -const getModelContextSize = (modelName) => { - switch (getModelNameForTiktoken(modelName)) { - case "gpt-3.5-turbo-16k": return 16384; - case "gpt-3.5-turbo": return 4096; - case "gpt-4-32k": return 32768; - case "gpt-4": return 8192; - case "text-davinci-003": return 4097; - case "text-curie-001": return 2048; - case "text-babbage-001": return 2048; - case "text-ada-001": return 2048; - case "code-davinci-002": return 8e3; - case "code-cushman-001": return 2048; - default: return 4097; - } -}; -/** -* Whether or not the input matches the OpenAI tool definition. -* @param {unknown} tool The input to check. -* @returns {boolean} Whether the input is an OpenAI tool definition. -*/ -function isOpenAITool(tool$1) { - if (typeof tool$1 !== "object" || !tool$1) return false; - if ("type" in tool$1 && tool$1.type === "function" && "function" in tool$1 && typeof tool$1.function === "object" && tool$1.function && "name" in tool$1.function && "parameters" in tool$1.function) return true; - return false; -} -const calculateMaxTokens = async ({ prompt, modelName }) => { - let numTokens; - try { - numTokens = (await encodingForModel(getModelNameForTiktoken(modelName))).encode(prompt).length; - } catch (error) { - console.warn("Failed to calculate number of tokens, falling back to approximate count"); - numTokens = Math.ceil(prompt.length / 4); - } - const maxTokens = getModelContextSize(modelName); - return maxTokens - numTokens; -}; -const getVerbosity = () => false; -/** -* Base class for language models, chains, tools. -*/ -var BaseLangChain = class extends Runnable { - get lc_attributes() { - return { - callbacks: void 0, - verbose: void 0 - }; - } - constructor(params) { - super(params); - /** - * Whether to print out response text. - */ - Object.defineProperty(this, "verbose", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "callbacks", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "metadata", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.verbose = params.verbose ?? getVerbosity(); - this.callbacks = params.callbacks; - this.tags = params.tags ?? []; - this.metadata = params.metadata ?? {}; - } -}; -/** -* Base class for language models. -*/ -var BaseLanguageModel = class extends BaseLangChain { - /** - * Keys that the language model accepts as call options. - */ - get callKeys() { - return [ - "stop", - "timeout", - "signal", - "tags", - "metadata", - "callbacks" - ]; - } - constructor({ callbacks, callbackManager,...params }) { - const { cache: cache$1,...rest } = params; - super({ - callbacks: callbacks ?? callbackManager, - ...rest - }); - /** - * The async caller should be used by subclasses to make any async calls, - * which will thus benefit from the concurrency and retry logic. - */ - Object.defineProperty(this, "caller", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "cache", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_encoding", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - if (typeof cache$1 === "object") this.cache = cache$1; - else if (cache$1) this.cache = InMemoryCache.global(); - else this.cache = void 0; - this.caller = new AsyncCaller(params ?? {}); - } - async getNumTokens(content) { - if (typeof content !== "string") return 0; - let numTokens = Math.ceil(content.length / 4); - if (!this._encoding) try { - this._encoding = await encodingForModel("modelName" in this ? getModelNameForTiktoken(this.modelName) : "gpt2"); - } catch (error) { - console.warn("Failed to calculate number of tokens, falling back to approximate count", error); - } - if (this._encoding) try { - numTokens = this._encoding.encode(content).length; - } catch (error) { - console.warn("Failed to calculate number of tokens, falling back to approximate count", error); - } - return numTokens; - } - static _convertInputToPromptValue(input) { - if (typeof input === "string") return new StringPromptValue(input); - else if (Array.isArray(input)) return new ChatPromptValue(input.map(coerceMessageLikeToMessage)); - else return input; - } - /** - * Get the identifying parameters of the LLM. - */ - _identifyingParams() { - return {}; - } - /** - * Create a unique cache key for a specific call to a specific language model. - * @param callOptions Call options for the model - * @returns A unique cache key. - */ - _getSerializedCacheKeyParametersForCall({ config,...callOptions }) { - const params = { - ...this._identifyingParams(), - ...callOptions, - _type: this._llmType(), - _model: this._modelType() - }; - const filteredEntries = Object.entries(params).filter(([_, value]) => value !== void 0); - const serializedEntries = filteredEntries.map(([key$1, value]) => `${key$1}:${JSON.stringify(value)}`).sort().join(","); - return serializedEntries; - } - /** - * @deprecated - * Return a json-like object representing this LLM. - */ - serialize() { - return { - ...this._identifyingParams(), - _type: this._llmType(), - _model: this._modelType() - }; - } - /** - * @deprecated - * Load an LLM from a json-like object describing it. - */ - static async deserialize(_data) { - throw new Error("Use .toJSON() instead"); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/runnables/passthrough.js -/** -* A runnable to passthrough inputs unchanged or with additional keys. -* -* This runnable behaves almost like the identity function, except that it -* can be configured to add additional keys to the output, if the input is -* an object. -* -* The example below demonstrates how to use `RunnablePassthrough to -* passthrough the input from the `.invoke()` -* -* @example -* ```typescript -* const chain = RunnableSequence.from([ -* { -* question: new RunnablePassthrough(), -* context: async () => loadContextFromStore(), -* }, -* prompt, -* llm, -* outputParser, -* ]); -* const response = await chain.invoke( -* "I can pass a single string instead of an object since I'm using `RunnablePassthrough`." -* ); -* ``` -*/ -var RunnablePassthrough = class extends Runnable { - static lc_name() { - return "RunnablePassthrough"; - } - constructor(fields) { - super(fields); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langchain_core", "runnables"] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - if (fields) this.func = fields.func; - } - async invoke(input, options) { - const config = ensureConfig(options); - if (this.func) await this.func(input, config); - return this._callWithConfig((input$1) => Promise.resolve(input$1), input, config); - } - async *transform(generator, options) { - const config = ensureConfig(options); - let finalOutput; - let finalOutputSupported = true; - for await (const chunk of this._transformStreamWithConfig(generator, (input) => input, config)) { - yield chunk; - if (finalOutputSupported) if (finalOutput === void 0) finalOutput = chunk; - else try { - finalOutput = concat(finalOutput, chunk); - } catch { - finalOutput = void 0; - finalOutputSupported = false; - } - } - if (this.func && finalOutput !== void 0) await this.func(finalOutput, config); - } - /** - * A runnable that assigns key-value pairs to the input. - * - * The example below shows how you could use it with an inline function. - * - * @example - * ```typescript - * const prompt = - * PromptTemplate.fromTemplate(`Write a SQL query to answer the question using the following schema: {schema} - * Question: {question} - * SQL Query:`); - * - * // The `RunnablePassthrough.assign()` is used here to passthrough the input from the `.invoke()` - * // call (in this example it's the question), along with any inputs passed to the `.assign()` method. - * // In this case, we're passing the schema. - * const sqlQueryGeneratorChain = RunnableSequence.from([ - * RunnablePassthrough.assign({ - * schema: async () => db.getTableInfo(), - * }), - * prompt, - * new ChatOpenAI({}).withConfig({ stop: ["\nSQLResult:"] }), - * new StringOutputParser(), - * ]); - * const result = await sqlQueryGeneratorChain.invoke({ - * question: "How many employees are there?", - * }); - * ``` - */ - static assign(mapping) { - return new RunnableAssign(new RunnableMap({ steps: mapping })); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/types/is_zod_schema.js -/** -* Given either a Zod schema, or plain object, determine if the input is a Zod schema. -* -* @param {z.ZodType | Record} input -* @returns {boolean} Whether or not the provided input is a Zod schema. -*/ -function isZodSchema$1(input) { - if (!input) return false; - if (typeof input !== "object") return false; - if (Array.isArray(input)) return false; - const asZodSchema = input; - if (asZodSchema._def) return true; - const zodFirstPartyTypeKinds = Object.values(ZodFirstPartyTypeKind); - if (zodFirstPartyTypeKinds.includes(asZodSchema.constructor?.name ?? "NOT_INCLUDED")) return true; - return typeof asZodSchema.parse === "function" && typeof asZodSchema.parseAsync === "function" && typeof asZodSchema.safeParse === "function" && typeof asZodSchema.safeParseAsync === "function"; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/language_models/chat_models.js -var chat_models_exports = {}; -__export(chat_models_exports, { - BaseChatModel: () => BaseChatModel, - SimpleChatModel: () => SimpleChatModel, - createChatMessageChunkEncoderStream: () => createChatMessageChunkEncoderStream -}); -/** -* Creates a transform stream for encoding chat message chunks. -* @deprecated Use {@link BytesOutputParser} instead -* @returns A TransformStream instance that encodes chat message chunks. -*/ -function createChatMessageChunkEncoderStream() { - const textEncoder = new TextEncoder(); - return new TransformStream({ transform(chunk, controller) { - controller.enqueue(textEncoder.encode(typeof chunk.content === "string" ? chunk.content : JSON.stringify(chunk.content))); - } }); -} -function _formatForTracing(messages) { - const messagesToTrace = []; - for (const message of messages) { - let messageToTrace = message; - if (Array.isArray(message.content)) for (let idx = 0; idx < message.content.length; idx++) { - const block = message.content[idx]; - if (isURLContentBlock(block) || isBase64ContentBlock(block)) { - if (messageToTrace === message) messageToTrace = new message.constructor({ - ...messageToTrace, - content: [ - ...message.content.slice(0, idx), - convertToOpenAIImageBlock(block), - ...message.content.slice(idx + 1) - ] - }); - } - } - messagesToTrace.push(messageToTrace); - } - return messagesToTrace; -} -/** -* Base class for chat models. It extends the BaseLanguageModel class and -* provides methods for generating chat based on input messages. -*/ -var BaseChatModel = class BaseChatModel extends BaseLanguageModel { - constructor(fields) { - super(fields); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "chat_models", - this._llmType() - ] - }); - Object.defineProperty(this, "disableStreaming", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - } - _separateRunnableConfigFromCallOptionsCompat(options) { - const [runnableConfig, callOptions] = super._separateRunnableConfigFromCallOptions(options); - callOptions.signal = runnableConfig.signal; - return [runnableConfig, callOptions]; - } - /** - * Invokes the chat model with a single input. - * @param input The input for the language model. - * @param options The call options. - * @returns A Promise that resolves to a BaseMessageChunk. - */ - async invoke(input, options) { - const promptValue = BaseChatModel._convertInputToPromptValue(input); - const result = await this.generatePrompt([promptValue], options, options?.callbacks); - const chatGeneration = result.generations[0][0]; - return chatGeneration.message; - } - async *_streamResponseChunks(_messages, _options, _runManager) { - throw new Error("Not implemented."); - } - async *_streamIterator(input, options) { - if (this._streamResponseChunks === BaseChatModel.prototype._streamResponseChunks || this.disableStreaming) yield this.invoke(input, options); - else { - const prompt = BaseChatModel._convertInputToPromptValue(input); - const messages = prompt.toChatMessages(); - const [runnableConfig, callOptions] = this._separateRunnableConfigFromCallOptionsCompat(options); - const inheritableMetadata = { - ...runnableConfig.metadata, - ...this.getLsParams(callOptions) - }; - const callbackManager_ = await CallbackManager.configure(runnableConfig.callbacks, this.callbacks, runnableConfig.tags, this.tags, inheritableMetadata, this.metadata, { verbose: this.verbose }); - const extra = { - options: callOptions, - invocation_params: this?.invocationParams(callOptions), - batch_size: 1 - }; - const runManagers = await callbackManager_?.handleChatModelStart(this.toJSON(), [_formatForTracing(messages)], runnableConfig.runId, void 0, extra, void 0, void 0, runnableConfig.runName); - let generationChunk; - let llmOutput; - try { - for await (const chunk of this._streamResponseChunks(messages, callOptions, runManagers?.[0])) { - if (chunk.message.id == null) { - const runId = runManagers?.at(0)?.runId; - if (runId != null) chunk.message._updateId(`run-${runId}`); - } - chunk.message.response_metadata = { - ...chunk.generationInfo, - ...chunk.message.response_metadata - }; - yield chunk.message; - if (!generationChunk) generationChunk = chunk; - else generationChunk = generationChunk.concat(chunk); - if (isAIMessageChunk(chunk.message) && chunk.message.usage_metadata !== void 0) llmOutput = { tokenUsage: { - promptTokens: chunk.message.usage_metadata.input_tokens, - completionTokens: chunk.message.usage_metadata.output_tokens, - totalTokens: chunk.message.usage_metadata.total_tokens - } }; - } - } catch (err) { - await Promise.all((runManagers ?? []).map((runManager) => runManager?.handleLLMError(err))); - throw err; - } - await Promise.all((runManagers ?? []).map((runManager) => runManager?.handleLLMEnd({ - generations: [[generationChunk]], - llmOutput - }))); - } - } - getLsParams(options) { - const providerName = this.getName().startsWith("Chat") ? this.getName().replace("Chat", "") : this.getName(); - return { - ls_model_type: "chat", - ls_stop: options.stop, - ls_provider: providerName - }; - } - /** @ignore */ - async _generateUncached(messages, parsedOptions, handledOptions, startedRunManagers) { - const baseMessages = messages.map((messageList) => messageList.map(coerceMessageLikeToMessage)); - let runManagers; - if (startedRunManagers !== void 0 && startedRunManagers.length === baseMessages.length) runManagers = startedRunManagers; - else { - const inheritableMetadata = { - ...handledOptions.metadata, - ...this.getLsParams(parsedOptions) - }; - const callbackManager_ = await CallbackManager.configure(handledOptions.callbacks, this.callbacks, handledOptions.tags, this.tags, inheritableMetadata, this.metadata, { verbose: this.verbose }); - const extra = { - options: parsedOptions, - invocation_params: this?.invocationParams(parsedOptions), - batch_size: 1 - }; - runManagers = await callbackManager_?.handleChatModelStart(this.toJSON(), baseMessages.map(_formatForTracing), handledOptions.runId, void 0, extra, void 0, void 0, handledOptions.runName); - } - const generations = []; - const llmOutputs = []; - const hasStreamingHandler = !!runManagers?.[0].handlers.find(callbackHandlerPrefersStreaming); - if (hasStreamingHandler && !this.disableStreaming && baseMessages.length === 1 && this._streamResponseChunks !== BaseChatModel.prototype._streamResponseChunks) try { - const stream = await this._streamResponseChunks(baseMessages[0], parsedOptions, runManagers?.[0]); - let aggregated; - let llmOutput; - for await (const chunk of stream) { - if (chunk.message.id == null) { - const runId = runManagers?.at(0)?.runId; - if (runId != null) chunk.message._updateId(`run-${runId}`); - } - if (aggregated === void 0) aggregated = chunk; - else aggregated = concat(aggregated, chunk); - if (isAIMessageChunk(chunk.message) && chunk.message.usage_metadata !== void 0) llmOutput = { tokenUsage: { - promptTokens: chunk.message.usage_metadata.input_tokens, - completionTokens: chunk.message.usage_metadata.output_tokens, - totalTokens: chunk.message.usage_metadata.total_tokens - } }; - } - if (aggregated === void 0) throw new Error("Received empty response from chat model call."); - generations.push([aggregated]); - await runManagers?.[0].handleLLMEnd({ - generations, - llmOutput - }); - } catch (e) { - await runManagers?.[0].handleLLMError(e); - throw e; - } - else { - const results = await Promise.allSettled(baseMessages.map((messageList, i$4) => this._generate(messageList, { - ...parsedOptions, - promptIndex: i$4 - }, runManagers?.[i$4]))); - await Promise.all(results.map(async (pResult, i$4) => { - if (pResult.status === "fulfilled") { - const result = pResult.value; - for (const generation of result.generations) { - if (generation.message.id == null) { - const runId = runManagers?.at(0)?.runId; - if (runId != null) generation.message._updateId(`run-${runId}`); - } - generation.message.response_metadata = { - ...generation.generationInfo, - ...generation.message.response_metadata - }; - } - if (result.generations.length === 1) result.generations[0].message.response_metadata = { - ...result.llmOutput, - ...result.generations[0].message.response_metadata - }; - generations[i$4] = result.generations; - llmOutputs[i$4] = result.llmOutput; - return runManagers?.[i$4]?.handleLLMEnd({ - generations: [result.generations], - llmOutput: result.llmOutput - }); - } else { - await runManagers?.[i$4]?.handleLLMError(pResult.reason); - return Promise.reject(pResult.reason); - } - })); - } - const output = { - generations, - llmOutput: llmOutputs.length ? this._combineLLMOutput?.(...llmOutputs) : void 0 - }; - Object.defineProperty(output, RUN_KEY, { - value: runManagers ? { runIds: runManagers?.map((manager) => manager.runId) } : void 0, - configurable: true - }); - return output; - } - async _generateCached({ messages, cache: cache$1, llmStringKey, parsedOptions, handledOptions }) { - const baseMessages = messages.map((messageList) => messageList.map(coerceMessageLikeToMessage)); - const inheritableMetadata = { - ...handledOptions.metadata, - ...this.getLsParams(parsedOptions) - }; - const callbackManager_ = await CallbackManager.configure(handledOptions.callbacks, this.callbacks, handledOptions.tags, this.tags, inheritableMetadata, this.metadata, { verbose: this.verbose }); - const extra = { - options: parsedOptions, - invocation_params: this?.invocationParams(parsedOptions), - batch_size: 1 - }; - const runManagers = await callbackManager_?.handleChatModelStart(this.toJSON(), baseMessages.map(_formatForTracing), handledOptions.runId, void 0, extra, void 0, void 0, handledOptions.runName); - const missingPromptIndices = []; - const results = await Promise.allSettled(baseMessages.map(async (baseMessage, index) => { - const prompt = BaseChatModel._convertInputToPromptValue(baseMessage).toString(); - const result = await cache$1.lookup(prompt, llmStringKey); - if (result == null) missingPromptIndices.push(index); - return result; - })); - const cachedResults = results.map((result, index) => ({ - result, - runManager: runManagers?.[index] - })).filter(({ result }) => result.status === "fulfilled" && result.value != null || result.status === "rejected"); - const generations = []; - await Promise.all(cachedResults.map(async ({ result: promiseResult, runManager }, i$4) => { - if (promiseResult.status === "fulfilled") { - const result = promiseResult.value; - generations[i$4] = result.map((result$1) => { - if ("message" in result$1 && isBaseMessage(result$1.message) && isAIMessage(result$1.message)) result$1.message.usage_metadata = { - input_tokens: 0, - output_tokens: 0, - total_tokens: 0 - }; - result$1.generationInfo = { - ...result$1.generationInfo, - tokenUsage: {} - }; - return result$1; - }); - if (result.length) await runManager?.handleLLMNewToken(result[0].text); - return runManager?.handleLLMEnd({ generations: [result] }, void 0, void 0, void 0, { cached: true }); - } else { - await runManager?.handleLLMError(promiseResult.reason, void 0, void 0, void 0, { cached: true }); - return Promise.reject(promiseResult.reason); - } - })); - const output = { - generations, - missingPromptIndices, - startedRunManagers: runManagers - }; - Object.defineProperty(output, RUN_KEY, { - value: runManagers ? { runIds: runManagers?.map((manager) => manager.runId) } : void 0, - configurable: true - }); - return output; - } - /** - * Generates chat based on the input messages. - * @param messages An array of arrays of BaseMessage instances. - * @param options The call options or an array of stop sequences. - * @param callbacks The callbacks for the language model. - * @returns A Promise that resolves to an LLMResult. - */ - async generate(messages, options, callbacks) { - let parsedOptions; - if (Array.isArray(options)) parsedOptions = { stop: options }; - else parsedOptions = options; - const baseMessages = messages.map((messageList) => messageList.map(coerceMessageLikeToMessage)); - const [runnableConfig, callOptions] = this._separateRunnableConfigFromCallOptionsCompat(parsedOptions); - runnableConfig.callbacks = runnableConfig.callbacks ?? callbacks; - if (!this.cache) return this._generateUncached(baseMessages, callOptions, runnableConfig); - const { cache: cache$1 } = this; - const llmStringKey = this._getSerializedCacheKeyParametersForCall(callOptions); - const { generations, missingPromptIndices, startedRunManagers } = await this._generateCached({ - messages: baseMessages, - cache: cache$1, - llmStringKey, - parsedOptions: callOptions, - handledOptions: runnableConfig - }); - let llmOutput = {}; - if (missingPromptIndices.length > 0) { - const results = await this._generateUncached(missingPromptIndices.map((i$4) => baseMessages[i$4]), callOptions, runnableConfig, startedRunManagers !== void 0 ? missingPromptIndices.map((i$4) => startedRunManagers?.[i$4]) : void 0); - await Promise.all(results.generations.map(async (generation, index) => { - const promptIndex = missingPromptIndices[index]; - generations[promptIndex] = generation; - const prompt = BaseChatModel._convertInputToPromptValue(baseMessages[promptIndex]).toString(); - return cache$1.update(prompt, llmStringKey, generation); - })); - llmOutput = results.llmOutput ?? {}; - } - return { - generations, - llmOutput - }; - } - /** - * Get the parameters used to invoke the model - */ - invocationParams(_options) { - return {}; - } - _modelType() { - return "base_chat_model"; - } - /** - * @deprecated - * Return a json-like object representing this LLM. - */ - serialize() { - return { - ...this.invocationParams(), - _type: this._llmType(), - _model: this._modelType() - }; - } - /** - * Generates a prompt based on the input prompt values. - * @param promptValues An array of BasePromptValue instances. - * @param options The call options or an array of stop sequences. - * @param callbacks The callbacks for the language model. - * @returns A Promise that resolves to an LLMResult. - */ - async generatePrompt(promptValues, options, callbacks) { - const promptMessages = promptValues.map((promptValue) => promptValue.toChatMessages()); - return this.generate(promptMessages, options, callbacks); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * - * Makes a single call to the chat model. - * @param messages An array of BaseMessage instances. - * @param options The call options or an array of stop sequences. - * @param callbacks The callbacks for the language model. - * @returns A Promise that resolves to a BaseMessage. - */ - async call(messages, options, callbacks) { - const result = await this.generate([messages.map(coerceMessageLikeToMessage)], options, callbacks); - const generations = result.generations; - return generations[0][0].message; - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * - * Makes a single call to the chat model with a prompt value. - * @param promptValue The value of the prompt. - * @param options The call options or an array of stop sequences. - * @param callbacks The callbacks for the language model. - * @returns A Promise that resolves to a BaseMessage. - */ - async callPrompt(promptValue, options, callbacks) { - const promptMessages = promptValue.toChatMessages(); - return this.call(promptMessages, options, callbacks); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * - * Predicts the next message based on the input messages. - * @param messages An array of BaseMessage instances. - * @param options The call options or an array of stop sequences. - * @param callbacks The callbacks for the language model. - * @returns A Promise that resolves to a BaseMessage. - */ - async predictMessages(messages, options, callbacks) { - return this.call(messages, options, callbacks); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * - * Predicts the next message based on a text input. - * @param text The text input. - * @param options The call options or an array of stop sequences. - * @param callbacks The callbacks for the language model. - * @returns A Promise that resolves to a string. - */ - async predict(text, options, callbacks) { - const message = new HumanMessage(text); - const result = await this.call([message], options, callbacks); - if (typeof result.content !== "string") throw new Error("Cannot use predict when output is not a string."); - return result.content; - } - withStructuredOutput(outputSchema, config) { - if (typeof this.bindTools !== "function") throw new Error(`Chat model must implement ".bindTools()" to use withStructuredOutput.`); - if (config?.strict) throw new Error(`"strict" mode is not supported for this model by default.`); - const schema = outputSchema; - const name = config?.name; - const description = schema.description ?? "A function available to call."; - const method = config?.method; - const includeRaw = config?.includeRaw; - if (method === "jsonMode") throw new Error(`Base withStructuredOutput implementation only supports "functionCalling" as a method.`); - let functionName = name ?? "extract"; - let tools; - if (isZodSchema$1(schema)) tools = [{ - type: "function", - function: { - name: functionName, - description, - parameters: zodToJsonSchema(schema) - } - }]; - else { - if ("name" in schema) functionName = schema.name; - tools = [{ - type: "function", - function: { - name: functionName, - description, - parameters: schema - } - }]; - } - const llm = this.bindTools(tools); - const outputParser = RunnableLambda.from((input) => { - if (!input.tool_calls || input.tool_calls.length === 0) throw new Error("No tool calls found in the response."); - const toolCall = input.tool_calls.find((tc) => tc.name === functionName); - if (!toolCall) throw new Error(`No tool call found with name ${functionName}.`); - return toolCall.args; - }); - if (!includeRaw) return llm.pipe(outputParser).withConfig({ runName: "StructuredOutput" }); - const parserAssign = RunnablePassthrough.assign({ parsed: (input, config$1) => outputParser.invoke(input.raw, config$1) }); - const parserNone = RunnablePassthrough.assign({ parsed: () => null }); - const parsedWithFallback = parserAssign.withFallbacks({ fallbacks: [parserNone] }); - return RunnableSequence.from([{ raw: llm }, parsedWithFallback]).withConfig({ runName: "StructuredOutputRunnable" }); - } -}; -/** -* An abstract class that extends BaseChatModel and provides a simple -* implementation of _generate. -*/ -var SimpleChatModel = class extends BaseChatModel { - async _generate(messages, options, runManager) { - const text = await this._call(messages, options, runManager); - const message = new AIMessage(text); - if (typeof message.content !== "string") throw new Error("Cannot generate with a simple chat model when output is not a string."); - return { generations: [{ - text: message.content, - message - }] }; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/language_models/llms.js -var llms_exports = {}; -__export(llms_exports, { - BaseLLM: () => BaseLLM, - LLM: () => LLM -}); -/** -* LLM Wrapper. Takes in a prompt (or prompts) and returns a string. -*/ -var BaseLLM = class BaseLLM extends BaseLanguageModel { - constructor({ concurrency,...rest }) { - super(concurrency ? { - maxConcurrency: concurrency, - ...rest - } : rest); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "llms", - this._llmType() - ] - }); - } - /** - * This method takes an input and options, and returns a string. It - * converts the input to a prompt value and generates a result based on - * the prompt. - * @param input Input for the LLM. - * @param options Options for the LLM call. - * @returns A string result based on the prompt. - */ - async invoke(input, options) { - const promptValue = BaseLLM._convertInputToPromptValue(input); - const result = await this.generatePrompt([promptValue], options, options?.callbacks); - return result.generations[0][0].text; - } - async *_streamResponseChunks(_input, _options, _runManager) { - throw new Error("Not implemented."); - } - _separateRunnableConfigFromCallOptionsCompat(options) { - const [runnableConfig, callOptions] = super._separateRunnableConfigFromCallOptions(options); - callOptions.signal = runnableConfig.signal; - return [runnableConfig, callOptions]; - } - async *_streamIterator(input, options) { - if (this._streamResponseChunks === BaseLLM.prototype._streamResponseChunks) yield this.invoke(input, options); - else { - const prompt = BaseLLM._convertInputToPromptValue(input); - const [runnableConfig, callOptions] = this._separateRunnableConfigFromCallOptionsCompat(options); - const callbackManager_ = await CallbackManager.configure(runnableConfig.callbacks, this.callbacks, runnableConfig.tags, this.tags, runnableConfig.metadata, this.metadata, { verbose: this.verbose }); - const extra = { - options: callOptions, - invocation_params: this?.invocationParams(callOptions), - batch_size: 1 - }; - const runManagers = await callbackManager_?.handleLLMStart(this.toJSON(), [prompt.toString()], runnableConfig.runId, void 0, extra, void 0, void 0, runnableConfig.runName); - let generation = new GenerationChunk({ text: "" }); - try { - for await (const chunk of this._streamResponseChunks(prompt.toString(), callOptions, runManagers?.[0])) { - if (!generation) generation = chunk; - else generation = generation.concat(chunk); - if (typeof chunk.text === "string") yield chunk.text; - } - } catch (err) { - await Promise.all((runManagers ?? []).map((runManager) => runManager?.handleLLMError(err))); - throw err; - } - await Promise.all((runManagers ?? []).map((runManager) => runManager?.handleLLMEnd({ generations: [[generation]] }))); - } - } - /** - * This method takes prompt values, options, and callbacks, and generates - * a result based on the prompts. - * @param promptValues Prompt values for the LLM. - * @param options Options for the LLM call. - * @param callbacks Callbacks for the LLM call. - * @returns An LLMResult based on the prompts. - */ - async generatePrompt(promptValues, options, callbacks) { - const prompts = promptValues.map((promptValue) => promptValue.toString()); - return this.generate(prompts, options, callbacks); - } - /** - * Get the parameters used to invoke the model - */ - invocationParams(_options) { - return {}; - } - _flattenLLMResult(llmResult) { - const llmResults = []; - for (let i$4 = 0; i$4 < llmResult.generations.length; i$4 += 1) { - const genList = llmResult.generations[i$4]; - if (i$4 === 0) llmResults.push({ - generations: [genList], - llmOutput: llmResult.llmOutput - }); - else { - const llmOutput = llmResult.llmOutput ? { - ...llmResult.llmOutput, - tokenUsage: {} - } : void 0; - llmResults.push({ - generations: [genList], - llmOutput - }); - } - } - return llmResults; - } - /** @ignore */ - async _generateUncached(prompts, parsedOptions, handledOptions, startedRunManagers) { - let runManagers; - if (startedRunManagers !== void 0 && startedRunManagers.length === prompts.length) runManagers = startedRunManagers; - else { - const callbackManager_ = await CallbackManager.configure(handledOptions.callbacks, this.callbacks, handledOptions.tags, this.tags, handledOptions.metadata, this.metadata, { verbose: this.verbose }); - const extra = { - options: parsedOptions, - invocation_params: this?.invocationParams(parsedOptions), - batch_size: prompts.length - }; - runManagers = await callbackManager_?.handleLLMStart(this.toJSON(), prompts, handledOptions.runId, void 0, extra, void 0, void 0, handledOptions?.runName); - } - const hasStreamingHandler = !!runManagers?.[0].handlers.find(callbackHandlerPrefersStreaming); - let output; - if (hasStreamingHandler && prompts.length === 1 && this._streamResponseChunks !== BaseLLM.prototype._streamResponseChunks) try { - const stream = await this._streamResponseChunks(prompts[0], parsedOptions, runManagers?.[0]); - let aggregated; - for await (const chunk of stream) if (aggregated === void 0) aggregated = chunk; - else aggregated = concat(aggregated, chunk); - if (aggregated === void 0) throw new Error("Received empty response from chat model call."); - output = { - generations: [[aggregated]], - llmOutput: {} - }; - await runManagers?.[0].handleLLMEnd(output); - } catch (e) { - await runManagers?.[0].handleLLMError(e); - throw e; - } - else { - try { - output = await this._generate(prompts, parsedOptions, runManagers?.[0]); - } catch (err) { - await Promise.all((runManagers ?? []).map((runManager) => runManager?.handleLLMError(err))); - throw err; - } - const flattenedOutputs = this._flattenLLMResult(output); - await Promise.all((runManagers ?? []).map((runManager, i$4) => runManager?.handleLLMEnd(flattenedOutputs[i$4]))); - } - const runIds = runManagers?.map((manager) => manager.runId) || void 0; - Object.defineProperty(output, RUN_KEY, { - value: runIds ? { runIds } : void 0, - configurable: true - }); - return output; - } - async _generateCached({ prompts, cache: cache$1, llmStringKey, parsedOptions, handledOptions, runId }) { - const callbackManager_ = await CallbackManager.configure(handledOptions.callbacks, this.callbacks, handledOptions.tags, this.tags, handledOptions.metadata, this.metadata, { verbose: this.verbose }); - const extra = { - options: parsedOptions, - invocation_params: this?.invocationParams(parsedOptions), - batch_size: prompts.length - }; - const runManagers = await callbackManager_?.handleLLMStart(this.toJSON(), prompts, runId, void 0, extra, void 0, void 0, handledOptions?.runName); - const missingPromptIndices = []; - const results = await Promise.allSettled(prompts.map(async (prompt, index) => { - const result = await cache$1.lookup(prompt, llmStringKey); - if (result == null) missingPromptIndices.push(index); - return result; - })); - const cachedResults = results.map((result, index) => ({ - result, - runManager: runManagers?.[index] - })).filter(({ result }) => result.status === "fulfilled" && result.value != null || result.status === "rejected"); - const generations = []; - await Promise.all(cachedResults.map(async ({ result: promiseResult, runManager }, i$4) => { - if (promiseResult.status === "fulfilled") { - const result = promiseResult.value; - generations[i$4] = result.map((result$1) => { - result$1.generationInfo = { - ...result$1.generationInfo, - tokenUsage: {} - }; - return result$1; - }); - if (result.length) await runManager?.handleLLMNewToken(result[0].text); - return runManager?.handleLLMEnd({ generations: [result] }, void 0, void 0, void 0, { cached: true }); - } else { - await runManager?.handleLLMError(promiseResult.reason, void 0, void 0, void 0, { cached: true }); - return Promise.reject(promiseResult.reason); - } - })); - const output = { - generations, - missingPromptIndices, - startedRunManagers: runManagers - }; - Object.defineProperty(output, RUN_KEY, { - value: runManagers ? { runIds: runManagers?.map((manager) => manager.runId) } : void 0, - configurable: true - }); - return output; - } - /** - * Run the LLM on the given prompts and input, handling caching. - */ - async generate(prompts, options, callbacks) { - if (!Array.isArray(prompts)) throw new Error("Argument 'prompts' is expected to be a string[]"); - let parsedOptions; - if (Array.isArray(options)) parsedOptions = { stop: options }; - else parsedOptions = options; - const [runnableConfig, callOptions] = this._separateRunnableConfigFromCallOptionsCompat(parsedOptions); - runnableConfig.callbacks = runnableConfig.callbacks ?? callbacks; - if (!this.cache) return this._generateUncached(prompts, callOptions, runnableConfig); - const { cache: cache$1 } = this; - const llmStringKey = this._getSerializedCacheKeyParametersForCall(callOptions); - const { generations, missingPromptIndices, startedRunManagers } = await this._generateCached({ - prompts, - cache: cache$1, - llmStringKey, - parsedOptions: callOptions, - handledOptions: runnableConfig, - runId: runnableConfig.runId - }); - let llmOutput = {}; - if (missingPromptIndices.length > 0) { - const results = await this._generateUncached(missingPromptIndices.map((i$4) => prompts[i$4]), callOptions, runnableConfig, startedRunManagers !== void 0 ? missingPromptIndices.map((i$4) => startedRunManagers?.[i$4]) : void 0); - await Promise.all(results.generations.map(async (generation, index) => { - const promptIndex = missingPromptIndices[index]; - generations[promptIndex] = generation; - return cache$1.update(prompts[promptIndex], llmStringKey, generation); - })); - llmOutput = results.llmOutput ?? {}; - } - return { - generations, - llmOutput - }; - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * Convenience wrapper for {@link generate} that takes in a single string prompt and returns a single string output. - */ - async call(prompt, options, callbacks) { - const { generations } = await this.generate([prompt], options, callbacks); - return generations[0][0].text; - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * - * This method is similar to `call`, but it's used for making predictions - * based on the input text. - * @param text Input text for the prediction. - * @param options Options for the LLM call. - * @param callbacks Callbacks for the LLM call. - * @returns A prediction based on the input text. - */ - async predict(text, options, callbacks) { - return this.call(text, options, callbacks); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * - * This method takes a list of messages, options, and callbacks, and - * returns a predicted message. - * @param messages A list of messages for the prediction. - * @param options Options for the LLM call. - * @param callbacks Callbacks for the LLM call. - * @returns A predicted message based on the list of messages. - */ - async predictMessages(messages, options, callbacks) { - const text = getBufferString(messages); - const prediction = await this.call(text, options, callbacks); - return new AIMessage(prediction); - } - /** - * Get the identifying parameters of the LLM. - */ - _identifyingParams() { - return {}; - } - /** - * @deprecated - * Return a json-like object representing this LLM. - */ - serialize() { - return { - ...this._identifyingParams(), - _type: this._llmType(), - _model: this._modelType() - }; - } - _modelType() { - return "base_llm"; - } -}; -/** -* LLM class that provides a simpler interface to subclass than {@link BaseLLM}. -* -* Requires only implementing a simpler {@link _call} method instead of {@link _generate}. -* -* @augments BaseLLM -*/ -var LLM = class extends BaseLLM { - async _generate(prompts, options, runManager) { - const generations = await Promise.all(prompts.map((prompt, promptIndex) => this._call(prompt, { - ...options, - promptIndex - }, runManager).then((text) => [{ text }]))); - return { generations }; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/memory.js -var memory_exports = {}; -__export(memory_exports, { - BaseMemory: () => BaseMemory, - getInputValue: () => getInputValue, - getOutputValue: () => getOutputValue, - getPromptInputKey: () => getPromptInputKey -}); -/** -* Abstract base class for memory in LangChain's Chains. Memory refers to -* the state in Chains. It can be used to store information about past -* executions of a Chain and inject that information into the inputs of -* future executions of the Chain. -*/ -var BaseMemory = class {}; -const getValue = (values, key$1) => { - if (key$1 !== void 0) return values[key$1]; - const keys = Object.keys(values); - if (keys.length === 1) return values[keys[0]]; -}; -/** -* This function is used by memory classes to select the input value -* to use for the memory. If there is only one input value, it is used. -* If there are multiple input values, the inputKey must be specified. -*/ -const getInputValue = (inputValues, inputKey) => { - const value = getValue(inputValues, inputKey); - if (!value) { - const keys = Object.keys(inputValues); - throw new Error(`input values have ${keys.length} keys, you must specify an input key or pass only 1 key as input`); - } - return value; -}; -/** -* This function is used by memory classes to select the output value -* to use for the memory. If there is only one output value, it is used. -* If there are multiple output values, the outputKey must be specified. -* If no outputKey is specified, an error is thrown. -*/ -const getOutputValue = (outputValues, outputKey) => { - const value = getValue(outputValues, outputKey); - if (!value && value !== "") { - const keys = Object.keys(outputValues); - throw new Error(`output values have ${keys.length} keys, you must specify an output key or pass only 1 key as output`); - } - return value; -}; -/** -* Function used by memory classes to get the key of the prompt input, -* excluding any keys that are memory variables or the "stop" key. If -* there is not exactly one prompt input key, an error is thrown. -*/ -function getPromptInputKey(inputs, memoryVariables) { - const promptInputKeys = Object.keys(inputs).filter((key$1) => !memoryVariables.includes(key$1) && key$1 !== "stop"); - if (promptInputKeys.length !== 1) throw new Error(`One input key expected, but got ${promptInputKeys.length}`); - return promptInputKeys[0]; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/runnables/router.js -/** -* A runnable that routes to a set of runnables based on Input['key']. -* Returns the output of the selected runnable. -* @example -* ```typescript -* import { RouterRunnable, RunnableLambda } from "@langchain/core/runnables"; -* -* const router = new RouterRunnable({ -* runnables: { -* toUpperCase: RunnableLambda.from((text: string) => text.toUpperCase()), -* reverseText: RunnableLambda.from((text: string) => -* text.split("").reverse().join("") -* ), -* }, -* }); -* -* // Invoke the 'reverseText' runnable -* const result1 = router.invoke({ key: "reverseText", input: "Hello World" }); -* -* // "dlroW olleH" -* -* // Invoke the 'toUpperCase' runnable -* const result2 = router.invoke({ key: "toUpperCase", input: "Hello World" }); -* -* // "HELLO WORLD" -* ``` -*/ -var RouterRunnable = class extends Runnable { - static lc_name() { - return "RouterRunnable"; - } - constructor(fields) { - super(fields); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langchain_core", "runnables"] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "runnables", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.runnables = fields.runnables; - } - async invoke(input, options) { - const { key: key$1, input: actualInput } = input; - const runnable = this.runnables[key$1]; - if (runnable === void 0) throw new Error(`No runnable associated with key "${key$1}".`); - return runnable.invoke(actualInput, ensureConfig(options)); - } - async batch(inputs, options, batchOptions) { - const keys = inputs.map((input) => input.key); - const actualInputs = inputs.map((input) => input.input); - const missingKey = keys.find((key$1) => this.runnables[key$1] === void 0); - if (missingKey !== void 0) throw new Error(`One or more keys do not have a corresponding runnable.`); - const runnables = keys.map((key$1) => this.runnables[key$1]); - const optionsList = this._getOptionsList(options ?? {}, inputs.length); - const maxConcurrency = optionsList[0]?.maxConcurrency ?? batchOptions?.maxConcurrency; - const batchSize = maxConcurrency && maxConcurrency > 0 ? maxConcurrency : inputs.length; - const batchResults = []; - for (let i$4 = 0; i$4 < actualInputs.length; i$4 += batchSize) { - const batchPromises = actualInputs.slice(i$4, i$4 + batchSize).map((actualInput, i$5) => runnables[i$5].invoke(actualInput, optionsList[i$5])); - const batchResult = await Promise.all(batchPromises); - batchResults.push(batchResult); - } - return batchResults.flat(); - } - async stream(input, options) { - const { key: key$1, input: actualInput } = input; - const runnable = this.runnables[key$1]; - if (runnable === void 0) throw new Error(`No runnable associated with key "${key$1}".`); - return runnable.stream(actualInput, options); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/runnables/branch.js -/** -* Class that represents a runnable branch. The RunnableBranch is -* initialized with an array of branches and a default branch. When invoked, -* it evaluates the condition of each branch in order and executes the -* corresponding branch if the condition is true. If none of the conditions -* are true, it executes the default branch. -* @example -* ```typescript -* const branch = RunnableBranch.from([ -* [ -* (x: { topic: string; question: string }) => -* x.topic.toLowerCase().includes("anthropic"), -* anthropicChain, -* ], -* [ -* (x: { topic: string; question: string }) => -* x.topic.toLowerCase().includes("langchain"), -* langChainChain, -* ], -* generalChain, -* ]); -* -* const fullChain = RunnableSequence.from([ -* { -* topic: classificationChain, -* question: (input: { question: string }) => input.question, -* }, -* branch, -* ]); -* -* const result = await fullChain.invoke({ -* question: "how do I use LangChain?", -* }); -* ``` -*/ -var RunnableBranch = class extends Runnable { - static lc_name() { - return "RunnableBranch"; - } - constructor(fields) { - super(fields); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langchain_core", "runnables"] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "default", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "branches", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.branches = fields.branches; - this.default = fields.default; - } - /** - * Convenience method for instantiating a RunnableBranch from - * RunnableLikes (objects, functions, or Runnables). - * - * Each item in the input except for the last one should be a - * tuple with two items. The first is a "condition" RunnableLike that - * returns "true" if the second RunnableLike in the tuple should run. - * - * The final item in the input should be a RunnableLike that acts as a - * default branch if no other branches match. - * - * @example - * ```ts - * import { RunnableBranch } from "@langchain/core/runnables"; - * - * const branch = RunnableBranch.from([ - * [(x: number) => x > 0, (x: number) => x + 1], - * [(x: number) => x < 0, (x: number) => x - 1], - * (x: number) => x - * ]); - * ``` - * @param branches An array where the every item except the last is a tuple of [condition, runnable] - * pairs. The last item is a default runnable which is invoked if no other condition matches. - * @returns A new RunnableBranch. - */ - static from(branches) { - if (branches.length < 1) throw new Error("RunnableBranch requires at least one branch"); - const branchLikes = branches.slice(0, -1); - const coercedBranches = branchLikes.map(([condition, runnable]) => [_coerceToRunnable(condition), _coerceToRunnable(runnable)]); - const defaultBranch = _coerceToRunnable(branches[branches.length - 1]); - return new this({ - branches: coercedBranches, - default: defaultBranch - }); - } - async _invoke(input, config, runManager) { - let result; - for (let i$4 = 0; i$4 < this.branches.length; i$4 += 1) { - const [condition, branchRunnable] = this.branches[i$4]; - const conditionValue = await condition.invoke(input, patchConfig(config, { callbacks: runManager?.getChild(`condition:${i$4 + 1}`) })); - if (conditionValue) { - result = await branchRunnable.invoke(input, patchConfig(config, { callbacks: runManager?.getChild(`branch:${i$4 + 1}`) })); - break; - } - } - if (!result) result = await this.default.invoke(input, patchConfig(config, { callbacks: runManager?.getChild("branch:default") })); - return result; - } - async invoke(input, config = {}) { - return this._callWithConfig(this._invoke, input, config); - } - async *_streamIterator(input, config) { - const callbackManager_ = await getCallbackManagerForConfig(config); - const runManager = await callbackManager_?.handleChainStart(this.toJSON(), _coerceToDict(input, "input"), config?.runId, void 0, void 0, void 0, config?.runName); - let finalOutput; - let finalOutputSupported = true; - let stream; - try { - for (let i$4 = 0; i$4 < this.branches.length; i$4 += 1) { - const [condition, branchRunnable] = this.branches[i$4]; - const conditionValue = await condition.invoke(input, patchConfig(config, { callbacks: runManager?.getChild(`condition:${i$4 + 1}`) })); - if (conditionValue) { - stream = await branchRunnable.stream(input, patchConfig(config, { callbacks: runManager?.getChild(`branch:${i$4 + 1}`) })); - for await (const chunk of stream) { - yield chunk; - if (finalOutputSupported) if (finalOutput === void 0) finalOutput = chunk; - else try { - finalOutput = concat(finalOutput, chunk); - } catch (e) { - finalOutput = void 0; - finalOutputSupported = false; - } - } - break; - } - } - if (stream === void 0) { - stream = await this.default.stream(input, patchConfig(config, { callbacks: runManager?.getChild("branch:default") })); - for await (const chunk of stream) { - yield chunk; - if (finalOutputSupported) if (finalOutput === void 0) finalOutput = chunk; - else try { - finalOutput = concat(finalOutput, chunk); - } catch (e) { - finalOutput = void 0; - finalOutputSupported = false; - } - } - } - } catch (e) { - await runManager?.handleChainError(e); - throw e; - } - await runManager?.handleChainEnd(finalOutput ?? {}); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/runnables/history.js -/** -* Wraps a LCEL chain and manages history. It appends input messages -* and chain outputs as history, and adds the current history messages to -* the chain input. -* @example -* ```typescript -* // yarn add @langchain/anthropic @langchain/community @upstash/redis -* -* import { -* ChatPromptTemplate, -* MessagesPlaceholder, -* } from "@langchain/core/prompts"; -* import { ChatAnthropic } from "@langchain/anthropic"; -* import { UpstashRedisChatMessageHistory } from "@langchain/community/stores/message/upstash_redis"; -* // For demos, you can also use an in-memory store: -* // import { ChatMessageHistory } from "langchain/stores/message/in_memory"; -* -* const prompt = ChatPromptTemplate.fromMessages([ -* ["system", "You're an assistant who's good at {ability}"], -* new MessagesPlaceholder("history"), -* ["human", "{question}"], -* ]); -* -* const chain = prompt.pipe(new ChatAnthropic({})); -* -* const chainWithHistory = new RunnableWithMessageHistory({ -* runnable: chain, -* getMessageHistory: (sessionId) => -* new UpstashRedisChatMessageHistory({ -* sessionId, -* config: { -* url: process.env.UPSTASH_REDIS_REST_URL!, -* token: process.env.UPSTASH_REDIS_REST_TOKEN!, -* }, -* }), -* inputMessagesKey: "question", -* historyMessagesKey: "history", -* }); -* -* const result = await chainWithHistory.invoke( -* { -* ability: "math", -* question: "What does cosine mean?", -* }, -* { -* configurable: { -* sessionId: "some_string_identifying_a_user", -* }, -* } -* ); -* -* const result2 = await chainWithHistory.invoke( -* { -* ability: "math", -* question: "What's its inverse?", -* }, -* { -* configurable: { -* sessionId: "some_string_identifying_a_user", -* }, -* } -* ); -* ``` -*/ -var RunnableWithMessageHistory = class extends RunnableBinding { - constructor(fields) { - let historyChain = RunnableLambda.from((input, options) => this._enterHistory(input, options ?? {})).withConfig({ runName: "loadHistory" }); - const messagesKey = fields.historyMessagesKey ?? fields.inputMessagesKey; - if (messagesKey) historyChain = RunnablePassthrough.assign({ [messagesKey]: historyChain }).withConfig({ runName: "insertHistory" }); - const bound = historyChain.pipe(fields.runnable.withListeners({ onEnd: (run, config$1) => this._exitHistory(run, config$1 ?? {}) })).withConfig({ runName: "RunnableWithMessageHistory" }); - const config = fields.config ?? {}; - super({ - ...fields, - config, - bound - }); - Object.defineProperty(this, "runnable", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "inputMessagesKey", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "outputMessagesKey", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "historyMessagesKey", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "getMessageHistory", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.runnable = fields.runnable; - this.getMessageHistory = fields.getMessageHistory; - this.inputMessagesKey = fields.inputMessagesKey; - this.outputMessagesKey = fields.outputMessagesKey; - this.historyMessagesKey = fields.historyMessagesKey; - } - _getInputMessages(inputValue) { - let parsedInputValue; - if (typeof inputValue === "object" && !Array.isArray(inputValue) && !isBaseMessage(inputValue)) { - let key$1; - if (this.inputMessagesKey) key$1 = this.inputMessagesKey; - else if (Object.keys(inputValue).length === 1) key$1 = Object.keys(inputValue)[0]; - else key$1 = "input"; - if (Array.isArray(inputValue[key$1]) && Array.isArray(inputValue[key$1][0])) parsedInputValue = inputValue[key$1][0]; - else parsedInputValue = inputValue[key$1]; - } else parsedInputValue = inputValue; - if (typeof parsedInputValue === "string") return [new HumanMessage(parsedInputValue)]; - else if (Array.isArray(parsedInputValue)) return parsedInputValue; - else if (isBaseMessage(parsedInputValue)) return [parsedInputValue]; - else throw new Error(`Expected a string, BaseMessage, or array of BaseMessages.\nGot ${JSON.stringify(parsedInputValue, null, 2)}`); - } - _getOutputMessages(outputValue) { - let parsedOutputValue; - if (!Array.isArray(outputValue) && !isBaseMessage(outputValue) && typeof outputValue !== "string") { - let key$1; - if (this.outputMessagesKey !== void 0) key$1 = this.outputMessagesKey; - else if (Object.keys(outputValue).length === 1) key$1 = Object.keys(outputValue)[0]; - else key$1 = "output"; - if (outputValue.generations !== void 0) parsedOutputValue = outputValue.generations[0][0].message; - else parsedOutputValue = outputValue[key$1]; - } else parsedOutputValue = outputValue; - if (typeof parsedOutputValue === "string") return [new AIMessage(parsedOutputValue)]; - else if (Array.isArray(parsedOutputValue)) return parsedOutputValue; - else if (isBaseMessage(parsedOutputValue)) return [parsedOutputValue]; - else throw new Error(`Expected a string, BaseMessage, or array of BaseMessages. Received: ${JSON.stringify(parsedOutputValue, null, 2)}`); - } - async _enterHistory(input, kwargs) { - const history = kwargs?.configurable?.messageHistory; - const messages = await history.getMessages(); - if (this.historyMessagesKey === void 0) return messages.concat(this._getInputMessages(input)); - return messages; - } - async _exitHistory(run, config) { - const history = config.configurable?.messageHistory; - let inputs; - if (Array.isArray(run.inputs) && Array.isArray(run.inputs[0])) inputs = run.inputs[0]; - else inputs = run.inputs; - let inputMessages = this._getInputMessages(inputs); - if (this.historyMessagesKey === void 0) { - const existingMessages = await history.getMessages(); - inputMessages = inputMessages.slice(existingMessages.length); - } - const outputValue = run.outputs; - if (!outputValue) throw new Error(`Output values from 'Run' undefined. Run: ${JSON.stringify(run, null, 2)}`); - const outputMessages = this._getOutputMessages(outputValue); - await history.addMessages([...inputMessages, ...outputMessages]); - } - async _mergeConfig(...configs) { - const config = await super._mergeConfig(...configs); - if (!config.configurable || !config.configurable.sessionId) { - const exampleInput = { [this.inputMessagesKey ?? "input"]: "foo" }; - const exampleConfig = { configurable: { sessionId: "123" } }; - throw new Error(`sessionId is required. Pass it in as part of the config argument to .invoke() or .stream()\neg. chain.invoke(${JSON.stringify(exampleInput)}, ${JSON.stringify(exampleConfig)})`); - } - const { sessionId } = config.configurable; - config.configurable.messageHistory = await this.getMessageHistory(sessionId); - return config; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/runnables/index.js -var runnables_exports = {}; -__export(runnables_exports, { - RouterRunnable: () => RouterRunnable, - Runnable: () => Runnable, - RunnableAssign: () => RunnableAssign, - RunnableBinding: () => RunnableBinding, - RunnableBranch: () => RunnableBranch, - RunnableEach: () => RunnableEach, - RunnableLambda: () => RunnableLambda, - RunnableMap: () => RunnableMap, - RunnableParallel: () => RunnableParallel, - RunnablePassthrough: () => RunnablePassthrough, - RunnablePick: () => RunnablePick, - RunnableRetry: () => RunnableRetry, - RunnableSequence: () => RunnableSequence, - RunnableToolLike: () => RunnableToolLike, - RunnableWithFallbacks: () => RunnableWithFallbacks, - RunnableWithMessageHistory: () => RunnableWithMessageHistory, - _coerceToRunnable: () => _coerceToRunnable, - ensureConfig: () => ensureConfig, - getCallbackManagerForConfig: () => getCallbackManagerForConfig, - mergeConfigs: () => mergeConfigs, - patchConfig: () => patchConfig, - pickRunnableConfigKeys: () => pickRunnableConfigKeys -}); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/base.js -/** -* Abstract base class for parsing the output of a Large Language Model -* (LLM) call. It provides methods for parsing the result of an LLM call -* and invoking the parser with a given input. -*/ -var BaseLLMOutputParser = class extends Runnable { - /** - * Parses the result of an LLM call with a given prompt. By default, it - * simply calls `parseResult`. - * @param generations The generations from an LLM call. - * @param _prompt The prompt used in the LLM call. - * @param callbacks Optional callbacks. - * @returns A promise of the parsed output. - */ - parseResultWithPrompt(generations, _prompt, callbacks) { - return this.parseResult(generations, callbacks); - } - _baseMessageToString(message) { - return typeof message.content === "string" ? message.content : this._baseMessageContentToString(message.content); - } - _baseMessageContentToString(content) { - return JSON.stringify(content); - } - /** - * Calls the parser with a given input and optional configuration options. - * If the input is a string, it creates a generation with the input as - * text and calls `parseResult`. If the input is a `BaseMessage`, it - * creates a generation with the input as a message and the content of the - * input as text, and then calls `parseResult`. - * @param input The input to the parser, which can be a string or a `BaseMessage`. - * @param options Optional configuration options. - * @returns A promise of the parsed output. - */ - async invoke(input, options) { - if (typeof input === "string") return this._callWithConfig(async (input$1, options$1) => this.parseResult([{ text: input$1 }], options$1?.callbacks), input, { - ...options, - runType: "parser" - }); - else return this._callWithConfig(async (input$1, options$1) => this.parseResult([{ - message: input$1, - text: this._baseMessageToString(input$1) - }], options$1?.callbacks), input, { - ...options, - runType: "parser" - }); - } -}; -/** -* Class to parse the output of an LLM call. -*/ -var BaseOutputParser = class extends BaseLLMOutputParser { - parseResult(generations, callbacks) { - return this.parse(generations[0].text, callbacks); - } - async parseWithPrompt(text, _prompt, callbacks) { - return this.parse(text, callbacks); - } - /** - * Return the string type key uniquely identifying this class of parser - */ - _type() { - throw new Error("_type not implemented"); - } -}; -/** -* Exception that output parsers should raise to signify a parsing error. -* -* This exists to differentiate parsing errors from other code or execution errors -* that also may arise inside the output parser. OutputParserExceptions will be -* available to catch and handle in ways to fix the parsing error, while other -* errors will be raised. -* -* @param message - The error that's being re-raised or an error message. -* @param llmOutput - String model output which is error-ing. -* @param observation - String explanation of error which can be passed to a -* model to try and remediate the issue. -* @param sendToLLM - Whether to send the observation and llm_output back to an Agent -* after an OutputParserException has been raised. This gives the underlying -* model driving the agent the context that the previous output was improperly -* structured, in the hopes that it will update the output to the correct -* format. -*/ -var OutputParserException = class extends Error { - constructor(message, llmOutput, observation, sendToLLM = false) { - super(message); - Object.defineProperty(this, "llmOutput", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "observation", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "sendToLLM", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.llmOutput = llmOutput; - this.observation = observation; - this.sendToLLM = sendToLLM; - if (sendToLLM) { - if (observation === void 0 || llmOutput === void 0) throw new Error("Arguments 'observation' & 'llmOutput' are required if 'sendToLlm' is true"); - } - addLangChainErrorFields(this, "OUTPUT_PARSING_FAILURE"); - } -}; - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js -function deepCompareStrict(a, b) { - const typeofa = typeof a; - if (typeofa !== typeof b) return false; - if (Array.isArray(a)) { - if (!Array.isArray(b)) return false; - const length = a.length; - if (length !== b.length) return false; - for (let i$4 = 0; i$4 < length; i$4++) if (!deepCompareStrict(a[i$4], b[i$4])) return false; - return true; - } - if (typeofa === "object") { - if (!a || !b) return a === b; - const aKeys = Object.keys(a); - const bKeys = Object.keys(b); - const length = aKeys.length; - if (length !== bKeys.length) return false; - for (const k of aKeys) if (!deepCompareStrict(a[k], b[k])) return false; - return true; - } - return a === b; -} - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.js -function encodePointer(p) { - return encodeURI(escapePointer(p)); -} -function escapePointer(p) { - return p.replace(/~/g, "~0").replace(/\//g, "~1"); -} - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.js -const schemaArrayKeyword = { - prefixItems: true, - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; -const schemaMapKeyword = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependentSchemas: true -}; -const ignoredKeyword = { - id: true, - $id: true, - $ref: true, - $schema: true, - $anchor: true, - $vocabulary: true, - $comment: true, - default: true, - enum: true, - const: true, - required: true, - type: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; -let initialBaseURI = typeof self !== "undefined" && self.location && self.location.origin !== "null" ? new URL(self.location.origin + self.location.pathname + location.search) : new URL("https://github.com/cfworker"); -function dereference(schema, lookup$1 = Object.create(null), baseURI = initialBaseURI, basePointer = "") { - if (schema && typeof schema === "object" && !Array.isArray(schema)) { - const id = schema.$id || schema.id; - if (id) { - const url = new URL(id, baseURI.href); - if (url.hash.length > 1) lookup$1[url.href] = schema; - else { - url.hash = ""; - if (basePointer === "") baseURI = url; - else dereference(schema, lookup$1, baseURI); - } - } - } else if (schema !== true && schema !== false) return lookup$1; - const schemaURI = baseURI.href + (basePointer ? "#" + basePointer : ""); - if (lookup$1[schemaURI] !== void 0) throw new Error(`Duplicate schema URI "${schemaURI}".`); - lookup$1[schemaURI] = schema; - if (schema === true || schema === false) return lookup$1; - if (schema.__absolute_uri__ === void 0) Object.defineProperty(schema, "__absolute_uri__", { - enumerable: false, - value: schemaURI - }); - if (schema.$ref && schema.__absolute_ref__ === void 0) { - const url = new URL(schema.$ref, baseURI.href); - url.hash = url.hash; - Object.defineProperty(schema, "__absolute_ref__", { - enumerable: false, - value: url.href - }); - } - if (schema.$recursiveRef && schema.__absolute_recursive_ref__ === void 0) { - const url = new URL(schema.$recursiveRef, baseURI.href); - url.hash = url.hash; - Object.defineProperty(schema, "__absolute_recursive_ref__", { - enumerable: false, - value: url.href - }); - } - if (schema.$anchor) { - const url = new URL("#" + schema.$anchor, baseURI.href); - lookup$1[url.href] = schema; - } - for (let key$1 in schema) { - if (ignoredKeyword[key$1]) continue; - const keyBase = `${basePointer}/${encodePointer(key$1)}`; - const subSchema = schema[key$1]; - if (Array.isArray(subSchema)) { - if (schemaArrayKeyword[key$1]) { - const length = subSchema.length; - for (let i$4 = 0; i$4 < length; i$4++) dereference(subSchema[i$4], lookup$1, baseURI, `${keyBase}/${i$4}`); - } - } else if (schemaMapKeyword[key$1]) for (let subKey in subSchema) dereference(subSchema[subKey], lookup$1, baseURI, `${keyBase}/${encodePointer(subKey)}`); - else dereference(subSchema, lookup$1, baseURI, keyBase); - } - return lookup$1; -} - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.js -const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; -const DAYS = [ - 0, - 31, - 28, - 31, - 30, - 31, - 30, - 31, - 31, - 30, - 31, - 30, - 31 -]; -const TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i; -const HOSTNAME = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i; -const URIREF = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i; -const URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; -const URL_ = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; -const UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; -const JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; -const JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; -const RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; -const EMAIL = (input) => { - if (input[0] === "\"") return false; - const [name, host, ...rest] = input.split("@"); - if (!name || !host || rest.length !== 0 || name.length > 64 || host.length > 253) return false; - if (name[0] === "." || name.endsWith(".") || name.includes("..")) return false; - if (!/^[a-z0-9.-]+$/i.test(host) || !/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(name)) return false; - return host.split(".").every((part) => /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(part)); -}; -const IPV4 = /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/; -const IPV6 = /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i; -const DURATION = (input) => input.length > 1 && input.length < 80 && (/^P\d+([.,]\d+)?W$/.test(input) || /^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(input) && /^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(input)); -function bind(r) { - return r.test.bind(r); -} -const format = { - date, - time: time.bind(void 0, false), - "date-time": date_time, - duration: DURATION, - uri, - "uri-reference": bind(URIREF), - "uri-template": bind(URITEMPLATE), - url: bind(URL_), - email: EMAIL, - hostname: bind(HOSTNAME), - ipv4: bind(IPV4), - ipv6: bind(IPV6), - regex, - uuid: bind(UUID), - "json-pointer": bind(JSON_POINTER), - "json-pointer-uri-fragment": bind(JSON_POINTER_URI_FRAGMENT), - "relative-json-pointer": bind(RELATIVE_JSON_POINTER) -}; -function isLeapYear(year) { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -} -function date(str$1) { - const matches = str$1.match(DATE); - if (!matches) return false; - const year = +matches[1]; - const month = +matches[2]; - const day = +matches[3]; - return month >= 1 && month <= 12 && day >= 1 && day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); -} -function time(full, str$1) { - const matches = str$1.match(TIME); - if (!matches) return false; - const hour = +matches[1]; - const minute = +matches[2]; - const second = +matches[3]; - const timeZone = !!matches[5]; - return (hour <= 23 && minute <= 59 && second <= 59 || hour == 23 && minute == 59 && second == 60) && (!full || timeZone); -} -const DATE_TIME_SEPARATOR = /t|\s/i; -function date_time(str$1) { - const dateTime = str$1.split(DATE_TIME_SEPARATOR); - return dateTime.length == 2 && date(dateTime[0]) && time(true, dateTime[1]); -} -const NOT_URI_FRAGMENT = /\/|:/; -const URI_PATTERN = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i; -function uri(str$1) { - return NOT_URI_FRAGMENT.test(str$1) && URI_PATTERN.test(str$1); -} -const Z_ANCHOR = /[^\\]\\Z/; -function regex(str$1) { - if (Z_ANCHOR.test(str$1)) return false; - try { - new RegExp(str$1, "u"); - return true; - } catch (e) { - return false; - } -} - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js -function ucs2length(s$1) { - let result = 0; - let length = s$1.length; - let index = 0; - let charCode; - while (index < length) { - result++; - charCode = s$1.charCodeAt(index++); - if (charCode >= 55296 && charCode <= 56319 && index < length) { - charCode = s$1.charCodeAt(index); - if ((charCode & 64512) == 56320) index++; - } - } - return result; -} - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.js -function validate(instance, schema, draft = "2019-09", lookup$1 = dereference(schema), shortCircuit = true, recursiveAnchor = null, instanceLocation = "#", schemaLocation = "#", evaluated = Object.create(null)) { - if (schema === true) return { - valid: true, - errors: [] - }; - if (schema === false) return { - valid: false, - errors: [{ - instanceLocation, - keyword: "false", - keywordLocation: instanceLocation, - error: "False boolean schema." - }] - }; - const rawInstanceType = typeof instance; - let instanceType; - switch (rawInstanceType) { - case "boolean": - case "number": - case "string": - instanceType = rawInstanceType; - break; - case "object": - if (instance === null) instanceType = "null"; - else if (Array.isArray(instance)) instanceType = "array"; - else instanceType = "object"; - break; - default: throw new Error(`Instances of "${rawInstanceType}" type are not supported.`); - } - const { $ref, $recursiveRef, $recursiveAnchor, type: $type, const: $const, enum: $enum, required: $required, not: $not, anyOf: $anyOf, allOf: $allOf, oneOf: $oneOf, if: $if, then: $then, else: $else, format: $format, properties: $properties, patternProperties: $patternProperties, additionalProperties: $additionalProperties, unevaluatedProperties: $unevaluatedProperties, minProperties: $minProperties, maxProperties: $maxProperties, propertyNames: $propertyNames, dependentRequired: $dependentRequired, dependentSchemas: $dependentSchemas, dependencies: $dependencies, prefixItems: $prefixItems, items: $items, additionalItems: $additionalItems, unevaluatedItems: $unevaluatedItems, contains: $contains, minContains: $minContains, maxContains: $maxContains, minItems: $minItems, maxItems: $maxItems, uniqueItems: $uniqueItems, minimum: $minimum, maximum: $maximum, exclusiveMinimum: $exclusiveMinimum, exclusiveMaximum: $exclusiveMaximum, multipleOf: $multipleOf, minLength: $minLength, maxLength: $maxLength, pattern: $pattern, __absolute_ref__, __absolute_recursive_ref__ } = schema; - const errors = []; - if ($recursiveAnchor === true && recursiveAnchor === null) recursiveAnchor = schema; - if ($recursiveRef === "#") { - const refSchema = recursiveAnchor === null ? lookup$1[__absolute_recursive_ref__] : recursiveAnchor; - const keywordLocation = `${schemaLocation}/$recursiveRef`; - const result = validate(instance, recursiveAnchor === null ? schema : recursiveAnchor, draft, lookup$1, shortCircuit, refSchema, instanceLocation, keywordLocation, evaluated); - if (!result.valid) errors.push({ - instanceLocation, - keyword: "$recursiveRef", - keywordLocation, - error: "A subschema had errors." - }, ...result.errors); - } - if ($ref !== void 0) { - const uri$1 = __absolute_ref__ || $ref; - const refSchema = lookup$1[uri$1]; - if (refSchema === void 0) { - let message = `Unresolved $ref "${$ref}".`; - if (__absolute_ref__ && __absolute_ref__ !== $ref) message += ` Absolute URI "${__absolute_ref__}".`; - message += `\nKnown schemas:\n- ${Object.keys(lookup$1).join("\n- ")}`; - throw new Error(message); - } - const keywordLocation = `${schemaLocation}/$ref`; - const result = validate(instance, refSchema, draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, keywordLocation, evaluated); - if (!result.valid) errors.push({ - instanceLocation, - keyword: "$ref", - keywordLocation, - error: "A subschema had errors." - }, ...result.errors); - if (draft === "4" || draft === "7") return { - valid: errors.length === 0, - errors - }; - } - if (Array.isArray($type)) { - let length = $type.length; - let valid = false; - for (let i$4 = 0; i$4 < length; i$4++) if (instanceType === $type[i$4] || $type[i$4] === "integer" && instanceType === "number" && instance % 1 === 0 && instance === instance) { - valid = true; - break; - } - if (!valid) errors.push({ - instanceLocation, - keyword: "type", - keywordLocation: `${schemaLocation}/type`, - error: `Instance type "${instanceType}" is invalid. Expected "${$type.join("\", \"")}".` - }); - } else if ($type === "integer") { - if (instanceType !== "number" || instance % 1 || instance !== instance) errors.push({ - instanceLocation, - keyword: "type", - keywordLocation: `${schemaLocation}/type`, - error: `Instance type "${instanceType}" is invalid. Expected "${$type}".` - }); - } else if ($type !== void 0 && instanceType !== $type) errors.push({ - instanceLocation, - keyword: "type", - keywordLocation: `${schemaLocation}/type`, - error: `Instance type "${instanceType}" is invalid. Expected "${$type}".` - }); - if ($const !== void 0) { - if (instanceType === "object" || instanceType === "array") { - if (!deepCompareStrict(instance, $const)) errors.push({ - instanceLocation, - keyword: "const", - keywordLocation: `${schemaLocation}/const`, - error: `Instance does not match ${JSON.stringify($const)}.` - }); - } else if (instance !== $const) errors.push({ - instanceLocation, - keyword: "const", - keywordLocation: `${schemaLocation}/const`, - error: `Instance does not match ${JSON.stringify($const)}.` - }); - } - if ($enum !== void 0) { - if (instanceType === "object" || instanceType === "array") { - if (!$enum.some((value) => deepCompareStrict(instance, value))) errors.push({ - instanceLocation, - keyword: "enum", - keywordLocation: `${schemaLocation}/enum`, - error: `Instance does not match any of ${JSON.stringify($enum)}.` - }); - } else if (!$enum.some((value) => instance === value)) errors.push({ - instanceLocation, - keyword: "enum", - keywordLocation: `${schemaLocation}/enum`, - error: `Instance does not match any of ${JSON.stringify($enum)}.` - }); - } - if ($not !== void 0) { - const keywordLocation = `${schemaLocation}/not`; - const result = validate(instance, $not, draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, keywordLocation); - if (result.valid) errors.push({ - instanceLocation, - keyword: "not", - keywordLocation, - error: "Instance matched \"not\" schema." - }); - } - let subEvaluateds = []; - if ($anyOf !== void 0) { - const keywordLocation = `${schemaLocation}/anyOf`; - const errorsLength = errors.length; - let anyValid = false; - for (let i$4 = 0; i$4 < $anyOf.length; i$4++) { - const subSchema = $anyOf[i$4]; - const subEvaluated = Object.create(evaluated); - const result = validate(instance, subSchema, draft, lookup$1, shortCircuit, $recursiveAnchor === true ? recursiveAnchor : null, instanceLocation, `${keywordLocation}/${i$4}`, subEvaluated); - errors.push(...result.errors); - anyValid = anyValid || result.valid; - if (result.valid) subEvaluateds.push(subEvaluated); - } - if (anyValid) errors.length = errorsLength; - else errors.splice(errorsLength, 0, { - instanceLocation, - keyword: "anyOf", - keywordLocation, - error: "Instance does not match any subschemas." - }); - } - if ($allOf !== void 0) { - const keywordLocation = `${schemaLocation}/allOf`; - const errorsLength = errors.length; - let allValid = true; - for (let i$4 = 0; i$4 < $allOf.length; i$4++) { - const subSchema = $allOf[i$4]; - const subEvaluated = Object.create(evaluated); - const result = validate(instance, subSchema, draft, lookup$1, shortCircuit, $recursiveAnchor === true ? recursiveAnchor : null, instanceLocation, `${keywordLocation}/${i$4}`, subEvaluated); - errors.push(...result.errors); - allValid = allValid && result.valid; - if (result.valid) subEvaluateds.push(subEvaluated); - } - if (allValid) errors.length = errorsLength; - else errors.splice(errorsLength, 0, { - instanceLocation, - keyword: "allOf", - keywordLocation, - error: `Instance does not match every subschema.` - }); - } - if ($oneOf !== void 0) { - const keywordLocation = `${schemaLocation}/oneOf`; - const errorsLength = errors.length; - const matches = $oneOf.filter((subSchema, i$4) => { - const subEvaluated = Object.create(evaluated); - const result = validate(instance, subSchema, draft, lookup$1, shortCircuit, $recursiveAnchor === true ? recursiveAnchor : null, instanceLocation, `${keywordLocation}/${i$4}`, subEvaluated); - errors.push(...result.errors); - if (result.valid) subEvaluateds.push(subEvaluated); - return result.valid; - }).length; - if (matches === 1) errors.length = errorsLength; - else errors.splice(errorsLength, 0, { - instanceLocation, - keyword: "oneOf", - keywordLocation, - error: `Instance does not match exactly one subschema (${matches} matches).` - }); - } - if (instanceType === "object" || instanceType === "array") Object.assign(evaluated, ...subEvaluateds); - if ($if !== void 0) { - const keywordLocation = `${schemaLocation}/if`; - const conditionResult = validate(instance, $if, draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, keywordLocation, evaluated).valid; - if (conditionResult) { - if ($then !== void 0) { - const thenResult = validate(instance, $then, draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, `${schemaLocation}/then`, evaluated); - if (!thenResult.valid) errors.push({ - instanceLocation, - keyword: "if", - keywordLocation, - error: `Instance does not match "then" schema.` - }, ...thenResult.errors); - } - } else if ($else !== void 0) { - const elseResult = validate(instance, $else, draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, `${schemaLocation}/else`, evaluated); - if (!elseResult.valid) errors.push({ - instanceLocation, - keyword: "if", - keywordLocation, - error: `Instance does not match "else" schema.` - }, ...elseResult.errors); - } - } - if (instanceType === "object") { - if ($required !== void 0) { - for (const key$1 of $required) if (!(key$1 in instance)) errors.push({ - instanceLocation, - keyword: "required", - keywordLocation: `${schemaLocation}/required`, - error: `Instance does not have required property "${key$1}".` - }); - } - const keys = Object.keys(instance); - if ($minProperties !== void 0 && keys.length < $minProperties) errors.push({ - instanceLocation, - keyword: "minProperties", - keywordLocation: `${schemaLocation}/minProperties`, - error: `Instance does not have at least ${$minProperties} properties.` - }); - if ($maxProperties !== void 0 && keys.length > $maxProperties) errors.push({ - instanceLocation, - keyword: "maxProperties", - keywordLocation: `${schemaLocation}/maxProperties`, - error: `Instance does not have at least ${$maxProperties} properties.` - }); - if ($propertyNames !== void 0) { - const keywordLocation = `${schemaLocation}/propertyNames`; - for (const key$1 in instance) { - const subInstancePointer = `${instanceLocation}/${encodePointer(key$1)}`; - const result = validate(key$1, $propertyNames, draft, lookup$1, shortCircuit, recursiveAnchor, subInstancePointer, keywordLocation); - if (!result.valid) errors.push({ - instanceLocation, - keyword: "propertyNames", - keywordLocation, - error: `Property name "${key$1}" does not match schema.` - }, ...result.errors); - } - } - if ($dependentRequired !== void 0) { - const keywordLocation = `${schemaLocation}/dependantRequired`; - for (const key$1 in $dependentRequired) if (key$1 in instance) { - const required = $dependentRequired[key$1]; - for (const dependantKey of required) if (!(dependantKey in instance)) errors.push({ - instanceLocation, - keyword: "dependentRequired", - keywordLocation, - error: `Instance has "${key$1}" but does not have "${dependantKey}".` - }); - } - } - if ($dependentSchemas !== void 0) for (const key$1 in $dependentSchemas) { - const keywordLocation = `${schemaLocation}/dependentSchemas`; - if (key$1 in instance) { - const result = validate(instance, $dependentSchemas[key$1], draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, `${keywordLocation}/${encodePointer(key$1)}`, evaluated); - if (!result.valid) errors.push({ - instanceLocation, - keyword: "dependentSchemas", - keywordLocation, - error: `Instance has "${key$1}" but does not match dependant schema.` - }, ...result.errors); - } - } - if ($dependencies !== void 0) { - const keywordLocation = `${schemaLocation}/dependencies`; - for (const key$1 in $dependencies) if (key$1 in instance) { - const propsOrSchema = $dependencies[key$1]; - if (Array.isArray(propsOrSchema)) { - for (const dependantKey of propsOrSchema) if (!(dependantKey in instance)) errors.push({ - instanceLocation, - keyword: "dependencies", - keywordLocation, - error: `Instance has "${key$1}" but does not have "${dependantKey}".` - }); - } else { - const result = validate(instance, propsOrSchema, draft, lookup$1, shortCircuit, recursiveAnchor, instanceLocation, `${keywordLocation}/${encodePointer(key$1)}`); - if (!result.valid) errors.push({ - instanceLocation, - keyword: "dependencies", - keywordLocation, - error: `Instance has "${key$1}" but does not match dependant schema.` - }, ...result.errors); - } - } - } - const thisEvaluated = Object.create(null); - let stop = false; - if ($properties !== void 0) { - const keywordLocation = `${schemaLocation}/properties`; - for (const key$1 in $properties) { - if (!(key$1 in instance)) continue; - const subInstancePointer = `${instanceLocation}/${encodePointer(key$1)}`; - const result = validate(instance[key$1], $properties[key$1], draft, lookup$1, shortCircuit, recursiveAnchor, subInstancePointer, `${keywordLocation}/${encodePointer(key$1)}`); - if (result.valid) evaluated[key$1] = thisEvaluated[key$1] = true; - else { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "properties", - keywordLocation, - error: `Property "${key$1}" does not match schema.` - }, ...result.errors); - if (stop) break; - } - } - } - if (!stop && $patternProperties !== void 0) { - const keywordLocation = `${schemaLocation}/patternProperties`; - for (const pattern in $patternProperties) { - const regex$1 = new RegExp(pattern, "u"); - const subSchema = $patternProperties[pattern]; - for (const key$1 in instance) { - if (!regex$1.test(key$1)) continue; - const subInstancePointer = `${instanceLocation}/${encodePointer(key$1)}`; - const result = validate(instance[key$1], subSchema, draft, lookup$1, shortCircuit, recursiveAnchor, subInstancePointer, `${keywordLocation}/${encodePointer(pattern)}`); - if (result.valid) evaluated[key$1] = thisEvaluated[key$1] = true; - else { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "patternProperties", - keywordLocation, - error: `Property "${key$1}" matches pattern "${pattern}" but does not match associated schema.` - }, ...result.errors); - } - } - } - } - if (!stop && $additionalProperties !== void 0) { - const keywordLocation = `${schemaLocation}/additionalProperties`; - for (const key$1 in instance) { - if (thisEvaluated[key$1]) continue; - const subInstancePointer = `${instanceLocation}/${encodePointer(key$1)}`; - const result = validate(instance[key$1], $additionalProperties, draft, lookup$1, shortCircuit, recursiveAnchor, subInstancePointer, keywordLocation); - if (result.valid) evaluated[key$1] = true; - else { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "additionalProperties", - keywordLocation, - error: `Property "${key$1}" does not match additional properties schema.` - }, ...result.errors); - } - } - } else if (!stop && $unevaluatedProperties !== void 0) { - const keywordLocation = `${schemaLocation}/unevaluatedProperties`; - for (const key$1 in instance) if (!evaluated[key$1]) { - const subInstancePointer = `${instanceLocation}/${encodePointer(key$1)}`; - const result = validate(instance[key$1], $unevaluatedProperties, draft, lookup$1, shortCircuit, recursiveAnchor, subInstancePointer, keywordLocation); - if (result.valid) evaluated[key$1] = true; - else errors.push({ - instanceLocation, - keyword: "unevaluatedProperties", - keywordLocation, - error: `Property "${key$1}" does not match unevaluated properties schema.` - }, ...result.errors); - } - } - } else if (instanceType === "array") { - if ($maxItems !== void 0 && instance.length > $maxItems) errors.push({ - instanceLocation, - keyword: "maxItems", - keywordLocation: `${schemaLocation}/maxItems`, - error: `Array has too many items (${instance.length} > ${$maxItems}).` - }); - if ($minItems !== void 0 && instance.length < $minItems) errors.push({ - instanceLocation, - keyword: "minItems", - keywordLocation: `${schemaLocation}/minItems`, - error: `Array has too few items (${instance.length} < ${$minItems}).` - }); - const length = instance.length; - let i$4 = 0; - let stop = false; - if ($prefixItems !== void 0) { - const keywordLocation = `${schemaLocation}/prefixItems`; - const length2 = Math.min($prefixItems.length, length); - for (; i$4 < length2; i$4++) { - const result = validate(instance[i$4], $prefixItems[i$4], draft, lookup$1, shortCircuit, recursiveAnchor, `${instanceLocation}/${i$4}`, `${keywordLocation}/${i$4}`); - evaluated[i$4] = true; - if (!result.valid) { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "prefixItems", - keywordLocation, - error: `Items did not match schema.` - }, ...result.errors); - if (stop) break; - } - } - } - if ($items !== void 0) { - const keywordLocation = `${schemaLocation}/items`; - if (Array.isArray($items)) { - const length2 = Math.min($items.length, length); - for (; i$4 < length2; i$4++) { - const result = validate(instance[i$4], $items[i$4], draft, lookup$1, shortCircuit, recursiveAnchor, `${instanceLocation}/${i$4}`, `${keywordLocation}/${i$4}`); - evaluated[i$4] = true; - if (!result.valid) { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "items", - keywordLocation, - error: `Items did not match schema.` - }, ...result.errors); - if (stop) break; - } - } - } else for (; i$4 < length; i$4++) { - const result = validate(instance[i$4], $items, draft, lookup$1, shortCircuit, recursiveAnchor, `${instanceLocation}/${i$4}`, keywordLocation); - evaluated[i$4] = true; - if (!result.valid) { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "items", - keywordLocation, - error: `Items did not match schema.` - }, ...result.errors); - if (stop) break; - } - } - if (!stop && $additionalItems !== void 0) { - const keywordLocation$1 = `${schemaLocation}/additionalItems`; - for (; i$4 < length; i$4++) { - const result = validate(instance[i$4], $additionalItems, draft, lookup$1, shortCircuit, recursiveAnchor, `${instanceLocation}/${i$4}`, keywordLocation$1); - evaluated[i$4] = true; - if (!result.valid) { - stop = shortCircuit; - errors.push({ - instanceLocation, - keyword: "additionalItems", - keywordLocation: keywordLocation$1, - error: `Items did not match additional items schema.` - }, ...result.errors); - } - } - } - } - if ($contains !== void 0) if (length === 0 && $minContains === void 0) errors.push({ - instanceLocation, - keyword: "contains", - keywordLocation: `${schemaLocation}/contains`, - error: `Array is empty. It must contain at least one item matching the schema.` - }); - else if ($minContains !== void 0 && length < $minContains) errors.push({ - instanceLocation, - keyword: "minContains", - keywordLocation: `${schemaLocation}/minContains`, - error: `Array has less items (${length}) than minContains (${$minContains}).` - }); - else { - const keywordLocation = `${schemaLocation}/contains`; - const errorsLength = errors.length; - let contained = 0; - for (let j = 0; j < length; j++) { - const result = validate(instance[j], $contains, draft, lookup$1, shortCircuit, recursiveAnchor, `${instanceLocation}/${j}`, keywordLocation); - if (result.valid) { - evaluated[j] = true; - contained++; - } else errors.push(...result.errors); - } - if (contained >= ($minContains || 0)) errors.length = errorsLength; - if ($minContains === void 0 && $maxContains === void 0 && contained === 0) errors.splice(errorsLength, 0, { - instanceLocation, - keyword: "contains", - keywordLocation, - error: `Array does not contain item matching schema.` - }); - else if ($minContains !== void 0 && contained < $minContains) errors.push({ - instanceLocation, - keyword: "minContains", - keywordLocation: `${schemaLocation}/minContains`, - error: `Array must contain at least ${$minContains} items matching schema. Only ${contained} items were found.` - }); - else if ($maxContains !== void 0 && contained > $maxContains) errors.push({ - instanceLocation, - keyword: "maxContains", - keywordLocation: `${schemaLocation}/maxContains`, - error: `Array may contain at most ${$maxContains} items matching schema. ${contained} items were found.` - }); - } - if (!stop && $unevaluatedItems !== void 0) { - const keywordLocation = `${schemaLocation}/unevaluatedItems`; - for (; i$4 < length; i$4++) { - if (evaluated[i$4]) continue; - const result = validate(instance[i$4], $unevaluatedItems, draft, lookup$1, shortCircuit, recursiveAnchor, `${instanceLocation}/${i$4}`, keywordLocation); - evaluated[i$4] = true; - if (!result.valid) errors.push({ - instanceLocation, - keyword: "unevaluatedItems", - keywordLocation, - error: `Items did not match unevaluated items schema.` - }, ...result.errors); - } - } - if ($uniqueItems) for (let j = 0; j < length; j++) { - const a = instance[j]; - const ao = typeof a === "object" && a !== null; - for (let k = 0; k < length; k++) { - if (j === k) continue; - const b = instance[k]; - const bo = typeof b === "object" && b !== null; - if (a === b || ao && bo && deepCompareStrict(a, b)) { - errors.push({ - instanceLocation, - keyword: "uniqueItems", - keywordLocation: `${schemaLocation}/uniqueItems`, - error: `Duplicate items at indexes ${j} and ${k}.` - }); - j = Number.MAX_SAFE_INTEGER; - k = Number.MAX_SAFE_INTEGER; - } - } - } - } else if (instanceType === "number") { - if (draft === "4") { - if ($minimum !== void 0 && ($exclusiveMinimum === true && instance <= $minimum || instance < $minimum)) errors.push({ - instanceLocation, - keyword: "minimum", - keywordLocation: `${schemaLocation}/minimum`, - error: `${instance} is less than ${$exclusiveMinimum ? "or equal to " : ""} ${$minimum}.` - }); - if ($maximum !== void 0 && ($exclusiveMaximum === true && instance >= $maximum || instance > $maximum)) errors.push({ - instanceLocation, - keyword: "maximum", - keywordLocation: `${schemaLocation}/maximum`, - error: `${instance} is greater than ${$exclusiveMaximum ? "or equal to " : ""} ${$maximum}.` - }); - } else { - if ($minimum !== void 0 && instance < $minimum) errors.push({ - instanceLocation, - keyword: "minimum", - keywordLocation: `${schemaLocation}/minimum`, - error: `${instance} is less than ${$minimum}.` - }); - if ($maximum !== void 0 && instance > $maximum) errors.push({ - instanceLocation, - keyword: "maximum", - keywordLocation: `${schemaLocation}/maximum`, - error: `${instance} is greater than ${$maximum}.` - }); - if ($exclusiveMinimum !== void 0 && instance <= $exclusiveMinimum) errors.push({ - instanceLocation, - keyword: "exclusiveMinimum", - keywordLocation: `${schemaLocation}/exclusiveMinimum`, - error: `${instance} is less than ${$exclusiveMinimum}.` - }); - if ($exclusiveMaximum !== void 0 && instance >= $exclusiveMaximum) errors.push({ - instanceLocation, - keyword: "exclusiveMaximum", - keywordLocation: `${schemaLocation}/exclusiveMaximum`, - error: `${instance} is greater than or equal to ${$exclusiveMaximum}.` - }); - } - if ($multipleOf !== void 0) { - const remainder = instance % $multipleOf; - if (Math.abs(0 - remainder) >= 1.1920929e-7 && Math.abs($multipleOf - remainder) >= 1.1920929e-7) errors.push({ - instanceLocation, - keyword: "multipleOf", - keywordLocation: `${schemaLocation}/multipleOf`, - error: `${instance} is not a multiple of ${$multipleOf}.` - }); - } - } else if (instanceType === "string") { - const length = $minLength === void 0 && $maxLength === void 0 ? 0 : ucs2length(instance); - if ($minLength !== void 0 && length < $minLength) errors.push({ - instanceLocation, - keyword: "minLength", - keywordLocation: `${schemaLocation}/minLength`, - error: `String is too short (${length} < ${$minLength}).` - }); - if ($maxLength !== void 0 && length > $maxLength) errors.push({ - instanceLocation, - keyword: "maxLength", - keywordLocation: `${schemaLocation}/maxLength`, - error: `String is too long (${length} > ${$maxLength}).` - }); - if ($pattern !== void 0 && !new RegExp($pattern, "u").test(instance)) errors.push({ - instanceLocation, - keyword: "pattern", - keywordLocation: `${schemaLocation}/pattern`, - error: `String does not match pattern.` - }); - if ($format !== void 0 && format[$format] && !format[$format](instance)) errors.push({ - instanceLocation, - keyword: "format", - keywordLocation: `${schemaLocation}/format`, - error: `String does not match format "${$format}".` - }); - } - return { - valid: errors.length === 0, - errors - }; -} - -//#endregion -//#region node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.js -var Validator = class { - schema; - draft; - shortCircuit; - lookup; - constructor(schema, draft = "2019-09", shortCircuit = true) { - this.schema = schema; - this.draft = draft; - this.shortCircuit = shortCircuit; - this.lookup = dereference(schema); - } - validate(instance) { - return validate(instance, this.schema, this.draft, this.lookup, this.shortCircuit); - } - addSchema(schema, id) { - if (id) schema = { - ...schema, - $id: id - }; - dereference(schema, this.lookup); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/transform.js -/** -* Class to parse the output of an LLM call that also allows streaming inputs. -*/ -var BaseTransformOutputParser = class extends BaseOutputParser { - async *_transform(inputGenerator) { - for await (const chunk of inputGenerator) if (typeof chunk === "string") yield this.parseResult([{ text: chunk }]); - else yield this.parseResult([{ - message: chunk, - text: this._baseMessageToString(chunk) - }]); - } - /** - * Transforms an asynchronous generator of input into an asynchronous - * generator of parsed output. - * @param inputGenerator An asynchronous generator of input. - * @param options A configuration object. - * @returns An asynchronous generator of parsed output. - */ - async *transform(inputGenerator, options) { - yield* this._transformStreamWithConfig(inputGenerator, this._transform.bind(this), { - ...options, - runType: "parser" - }); - } -}; -/** -* A base class for output parsers that can handle streaming input. It -* extends the `BaseTransformOutputParser` class and provides a method for -* converting parsed outputs into a diff format. -*/ -var BaseCumulativeTransformOutputParser = class extends BaseTransformOutputParser { - constructor(fields) { - super(fields); - Object.defineProperty(this, "diff", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - this.diff = fields?.diff ?? this.diff; - } - async *_transform(inputGenerator) { - let prevParsed; - let accGen; - for await (const chunk of inputGenerator) { - if (typeof chunk !== "string" && typeof chunk.content !== "string") throw new Error("Cannot handle non-string output."); - let chunkGen; - if (isBaseMessageChunk(chunk)) { - if (typeof chunk.content !== "string") throw new Error("Cannot handle non-string message output."); - chunkGen = new ChatGenerationChunk({ - message: chunk, - text: chunk.content - }); - } else if (isBaseMessage(chunk)) { - if (typeof chunk.content !== "string") throw new Error("Cannot handle non-string message output."); - chunkGen = new ChatGenerationChunk({ - message: convertToChunk(chunk), - text: chunk.content - }); - } else chunkGen = new GenerationChunk({ text: chunk }); - if (accGen === void 0) accGen = chunkGen; - else accGen = accGen.concat(chunkGen); - const parsed = await this.parsePartialResult([accGen]); - if (parsed !== void 0 && parsed !== null && !deepCompareStrict(parsed, prevParsed)) { - if (this.diff) yield this._diff(prevParsed, parsed); - else yield parsed; - prevParsed = parsed; - } - } - } - getFormatInstructions() { - return ""; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/bytes.js -/** -* OutputParser that parses LLMResult into the top likely string and -* encodes it into bytes. -*/ -var BytesOutputParser = class extends BaseTransformOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "output_parsers", - "bytes" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "textEncoder", { - enumerable: true, - configurable: true, - writable: true, - value: new TextEncoder() - }); - } - static lc_name() { - return "BytesOutputParser"; - } - parse(text) { - return Promise.resolve(this.textEncoder.encode(text)); - } - getFormatInstructions() { - return ""; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/list.js -/** -* Class to parse the output of an LLM call to a list. -* @augments BaseOutputParser -*/ -var ListOutputParser = class extends BaseTransformOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "re", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - } - async *_transform(inputGenerator) { - let buffer$1 = ""; - for await (const input of inputGenerator) { - if (typeof input === "string") buffer$1 += input; - else buffer$1 += input.content; - if (!this.re) { - const parts = await this.parse(buffer$1); - if (parts.length > 1) { - for (const part of parts.slice(0, -1)) yield [part]; - buffer$1 = parts[parts.length - 1]; - } - } else { - const matches = [...buffer$1.matchAll(this.re)]; - if (matches.length > 1) { - let doneIdx = 0; - for (const match of matches.slice(0, -1)) { - yield [match[1]]; - doneIdx += (match.index ?? 0) + match[0].length; - } - buffer$1 = buffer$1.slice(doneIdx); - } - } - } - for (const part of await this.parse(buffer$1)) yield [part]; - } -}; -/** -* Class to parse the output of an LLM call as a comma-separated list. -* @augments ListOutputParser -*/ -var CommaSeparatedListOutputParser = class extends ListOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "output_parsers", - "list" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - } - static lc_name() { - return "CommaSeparatedListOutputParser"; - } - /** - * Parses the given text into an array of strings, using a comma as the - * separator. If the parsing fails, throws an OutputParserException. - * @param text The text to parse. - * @returns An array of strings obtained by splitting the input text at each comma. - */ - async parse(text) { - try { - return text.trim().split(",").map((s$1) => s$1.trim()); - } catch (e) { - throw new OutputParserException(`Could not parse output: ${text}`, text); - } - } - /** - * Provides instructions on the expected format of the response for the - * CommaSeparatedListOutputParser. - * @returns A string containing instructions on the expected format of the response. - */ - getFormatInstructions() { - return `Your response should be a list of comma separated values, eg: \`foo, bar, baz\``; - } -}; -/** -* Class to parse the output of an LLM call to a list with a specific length and separator. -* @augments ListOutputParser -*/ -var CustomListOutputParser = class extends ListOutputParser { - constructor({ length, separator }) { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "output_parsers", - "list" - ] - }); - Object.defineProperty(this, "length", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "separator", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.length = length; - this.separator = separator || ","; - } - /** - * Parses the given text into an array of strings, using the specified - * separator. If the parsing fails or the number of items in the list - * doesn't match the expected length, throws an OutputParserException. - * @param text The text to parse. - * @returns An array of strings obtained by splitting the input text at each occurrence of the specified separator. - */ - async parse(text) { - try { - const items = text.trim().split(this.separator).map((s$1) => s$1.trim()); - if (this.length !== void 0 && items.length !== this.length) throw new OutputParserException(`Incorrect number of items. Expected ${this.length}, got ${items.length}.`); - return items; - } catch (e) { - if (Object.getPrototypeOf(e) === OutputParserException.prototype) throw e; - throw new OutputParserException(`Could not parse output: ${text}`); - } - } - /** - * Provides instructions on the expected format of the response for the - * CustomListOutputParser, including the number of items and the - * separator. - * @returns A string containing instructions on the expected format of the response. - */ - getFormatInstructions() { - return `Your response should be a list of ${this.length === void 0 ? "" : `${this.length} `}items separated by "${this.separator}" (eg: \`foo${this.separator} bar${this.separator} baz\`)`; - } -}; -var NumberedListOutputParser = class extends ListOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "output_parsers", - "list" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "re", { - enumerable: true, - configurable: true, - writable: true, - value: /\d+\.\s([^\n]+)/g - }); - } - static lc_name() { - return "NumberedListOutputParser"; - } - getFormatInstructions() { - return `Your response should be a numbered list with each item on a new line. For example: \n\n1. foo\n\n2. bar\n\n3. baz`; - } - async parse(text) { - return [...text.matchAll(this.re) ?? []].map((m$1) => m$1[1]); - } -}; -var MarkdownListOutputParser = class extends ListOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "output_parsers", - "list" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "re", { - enumerable: true, - configurable: true, - writable: true, - value: /^\s*[-*]\s([^\n]+)$/gm - }); - } - static lc_name() { - return "NumberedListOutputParser"; - } - getFormatInstructions() { - return `Your response should be a numbered list with each item on a new line. For example: \n\n1. foo\n\n2. bar\n\n3. baz`; - } - async parse(text) { - return [...text.matchAll(this.re) ?? []].map((m$1) => m$1[1]); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/string.js -/** -* OutputParser that parses LLMResult into the top likely string. -* @example -* ```typescript -* const promptTemplate = PromptTemplate.fromTemplate( -* "Tell me a joke about {topic}", -* ); -* -* const chain = RunnableSequence.from([ -* promptTemplate, -* new ChatOpenAI({}), -* new StringOutputParser(), -* ]); -* -* const result = await chain.invoke({ topic: "bears" }); -* console.log("What do you call a bear with no teeth? A gummy bear!"); -* ``` -*/ -var StringOutputParser = class extends BaseTransformOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "output_parsers", - "string" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - } - static lc_name() { - return "StrOutputParser"; - } - /** - * Parses a string output from an LLM call. This method is meant to be - * implemented by subclasses to define how a string output from an LLM - * should be parsed. - * @param text The string output from an LLM call. - * @param callbacks Optional callbacks. - * @returns A promise of the parsed output. - */ - parse(text) { - return Promise.resolve(text); - } - getFormatInstructions() { - return ""; - } - _textContentToString(content) { - return content.text; - } - _imageUrlContentToString(_content) { - throw new Error(`Cannot coerce a multimodal "image_url" message part into a string.`); - } - _messageContentComplexToString(content) { - switch (content.type) { - case "text": - case "text_delta": - if ("text" in content) return this._textContentToString(content); - break; - case "image_url": - if ("image_url" in content) return this._imageUrlContentToString(content); - break; - default: throw new Error(`Cannot coerce "${content.type}" message part into a string.`); - } - throw new Error(`Invalid content type: ${content.type}`); - } - _baseMessageContentToString(content) { - return content.reduce((acc, item) => acc + this._messageContentComplexToString(item), ""); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/structured.js -var StructuredOutputParser = class extends BaseOutputParser { - static lc_name() { - return "StructuredOutputParser"; - } - toJSON() { - return this.toJSONNotImplemented(); - } - constructor(schema) { - super(schema); - Object.defineProperty(this, "schema", { - enumerable: true, - configurable: true, - writable: true, - value: schema - }); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "output_parsers", - "structured" - ] - }); - } - /** - * Creates a new StructuredOutputParser from a Zod schema. - * @param schema The Zod schema which the output should match - * @returns A new instance of StructuredOutputParser. - */ - static fromZodSchema(schema) { - return new this(schema); - } - /** - * Creates a new StructuredOutputParser from a set of names and - * descriptions. - * @param schemas An object where each key is a name and each value is a description - * @returns A new instance of StructuredOutputParser. - */ - static fromNamesAndDescriptions(schemas) { - const zodSchema = objectType(Object.fromEntries(Object.entries(schemas).map(([name, description]) => [name, stringType().describe(description)]))); - return new this(zodSchema); - } - /** - * Returns a markdown code snippet with a JSON object formatted according - * to the schema. - * @param options Optional. The options for formatting the instructions - * @returns A markdown code snippet with a JSON object formatted according to the schema. - */ - getFormatInstructions() { - return `You must format your output as a JSON value that adheres to a given "JSON Schema" instance. - -"JSON Schema" is a declarative language that allows you to annotate and validate JSON documents. - -For example, the example "JSON Schema" instance {{"properties": {{"foo": {{"description": "a list of test words", "type": "array", "items": {{"type": "string"}}}}}}, "required": ["foo"]}} -would match an object with one required property, "foo". The "type" property specifies "foo" must be an "array", and the "description" property semantically describes it as "a list of test words". The items within "foo" must be strings. -Thus, the object {{"foo": ["bar", "baz"]}} is a well-formatted instance of this example "JSON Schema". The object {{"properties": {{"foo": ["bar", "baz"]}}}} is not well-formatted. - -Your output will be parsed and type-checked according to the provided schema instance, so make sure all fields in your output match the schema exactly and there are no trailing commas! - -Here is the JSON Schema instance your output must adhere to. Include the enclosing markdown codeblock: -\`\`\`json -${JSON.stringify(zodToJsonSchema(this.schema))} -\`\`\` -`; - } - /** - * Parses the given text according to the schema. - * @param text The text to parse - * @returns The parsed output. - */ - async parse(text) { - try { - const json = text.includes("```") ? text.trim().split(/```(?:json)?/)[1] : text.trim(); - const escapedJson = json.replace(/"([^"\\]*(\\.[^"\\]*)*)"/g, (_match, capturedGroup) => { - const escapedInsideQuotes = capturedGroup.replace(/\n/g, "\\n"); - return `"${escapedInsideQuotes}"`; - }).replace(/\n/g, ""); - return await this.schema.parseAsync(JSON.parse(escapedJson)); - } catch (e) { - throw new OutputParserException(`Failed to parse. Text: "${text}". Error: ${e}`, text); - } - } -}; -/** -* A specific type of `StructuredOutputParser` that parses JSON data -* formatted as a markdown code snippet. -*/ -var JsonMarkdownStructuredOutputParser = class extends StructuredOutputParser { - static lc_name() { - return "JsonMarkdownStructuredOutputParser"; - } - getFormatInstructions(options) { - const interpolationDepth = options?.interpolationDepth ?? 1; - if (interpolationDepth < 1) throw new Error("f string interpolation depth must be at least 1"); - return `Return a markdown code snippet with a JSON object formatted to look like:\n\`\`\`json\n${this._schemaToInstruction(zodToJsonSchema(this.schema)).replaceAll("{", "{".repeat(interpolationDepth)).replaceAll("}", "}".repeat(interpolationDepth))}\n\`\`\``; - } - _schemaToInstruction(schemaInput, indent = 2) { - const schema = schemaInput; - if ("type" in schema) { - let nullable = false; - let type; - if (Array.isArray(schema.type)) { - const nullIdx = schema.type.findIndex((type$1) => type$1 === "null"); - if (nullIdx !== -1) { - nullable = true; - schema.type.splice(nullIdx, 1); - } - type = schema.type.join(" | "); - } else type = schema.type; - if (schema.type === "object" && schema.properties) { - const description$1 = schema.description ? ` // ${schema.description}` : ""; - const properties = Object.entries(schema.properties).map(([key$1, value]) => { - const isOptional = schema.required?.includes(key$1) ? "" : " (optional)"; - return `${" ".repeat(indent)}"${key$1}": ${this._schemaToInstruction(value, indent + 2)}${isOptional}`; - }).join("\n"); - return `{\n${properties}\n${" ".repeat(indent - 2)}}${description$1}`; - } - if (schema.type === "array" && schema.items) { - const description$1 = schema.description ? ` // ${schema.description}` : ""; - return `array[\n${" ".repeat(indent)}${this._schemaToInstruction(schema.items, indent + 2)}\n${" ".repeat(indent - 2)}] ${description$1}`; - } - const isNullable = nullable ? " (nullable)" : ""; - const description = schema.description ? ` // ${schema.description}` : ""; - return `${type}${description}${isNullable}`; - } - if ("anyOf" in schema) return schema.anyOf.map((s$1) => this._schemaToInstruction(s$1, indent)).join(`\n${" ".repeat(indent - 2)}`); - throw new Error("unsupported schema type"); - } - static fromZodSchema(schema) { - return new this(schema); - } - static fromNamesAndDescriptions(schemas) { - const zodSchema = objectType(Object.fromEntries(Object.entries(schemas).map(([name, description]) => [name, stringType().describe(description)]))); - return new this(zodSchema); - } -}; -/** -* A type of `StructuredOutputParser` that handles asymmetric input and -* output schemas. -*/ -var AsymmetricStructuredOutputParser = class extends BaseOutputParser { - constructor({ inputSchema }) { - super(...arguments); - Object.defineProperty(this, "structuredInputParser", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.structuredInputParser = new JsonMarkdownStructuredOutputParser(inputSchema); - } - async parse(text) { - let parsedInput; - try { - parsedInput = await this.structuredInputParser.parse(text); - } catch (e) { - throw new OutputParserException(`Failed to parse. Text: "${text}". Error: ${e}`, text); - } - return this.outputProcessor(parsedInput); - } - getFormatInstructions() { - return this.structuredInputParser.getFormatInstructions(); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/json_patch.js -var json_patch_exports = {}; -__export(json_patch_exports, { - applyPatch: () => applyPatch, - compare: () => compare -}); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/json.js -/** -* Class for parsing the output of an LLM into a JSON object. -*/ -var JsonOutputParser = class extends BaseCumulativeTransformOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langchain_core", "output_parsers"] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - } - static lc_name() { - return "JsonOutputParser"; - } - _diff(prev, next) { - if (!next) return void 0; - if (!prev) return [{ - op: "replace", - path: "", - value: next - }]; - return compare(prev, next); - } - async parsePartialResult(generations) { - return parseJsonMarkdown(generations[0].text); - } - async parse(text) { - return parseJsonMarkdown(text, JSON.parse); - } - getFormatInstructions() { - return ""; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/sax-js/sax.js -const initializeSax = function() { - const sax$1 = {}; - sax$1.parser = function(strict, opt) { - return new SAXParser(strict, opt); - }; - sax$1.SAXParser = SAXParser; - sax$1.SAXStream = SAXStream; - sax$1.createStream = createStream; - sax$1.MAX_BUFFER_LENGTH = 64 * 1024; - const buffers = [ - "comment", - "sgmlDecl", - "textNode", - "tagName", - "doctype", - "procInstName", - "procInstBody", - "entity", - "attribName", - "attribValue", - "cdata", - "script" - ]; - sax$1.EVENTS = [ - "text", - "processinginstruction", - "sgmldeclaration", - "doctype", - "comment", - "opentagstart", - "attribute", - "opentag", - "closetag", - "opencdata", - "cdata", - "closecdata", - "error", - "end", - "ready", - "script", - "opennamespace", - "closenamespace" - ]; - function SAXParser(strict, opt) { - if (!(this instanceof SAXParser)) return new SAXParser(strict, opt); - var parser = this; - clearBuffers(parser); - parser.q = parser.c = ""; - parser.bufferCheckPosition = sax$1.MAX_BUFFER_LENGTH; - parser.opt = opt || {}; - parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags; - parser.looseCase = parser.opt.lowercase ? "toLowerCase" : "toUpperCase"; - parser.tags = []; - parser.closed = parser.closedRoot = parser.sawRoot = false; - parser.tag = parser.error = null; - parser.strict = !!strict; - parser.noscript = !!(strict || parser.opt.noscript); - parser.state = S.BEGIN; - parser.strictEntities = parser.opt.strictEntities; - parser.ENTITIES = parser.strictEntities ? Object.create(sax$1.XML_ENTITIES) : Object.create(sax$1.ENTITIES); - parser.attribList = []; - if (parser.opt.xmlns) parser.ns = Object.create(rootNS); - parser.trackPosition = parser.opt.position !== false; - if (parser.trackPosition) parser.position = parser.line = parser.column = 0; - emit(parser, "onready"); - } - if (!Object.create) Object.create = function(o) { - function F() {} - F.prototype = o; - var newf = new F(); - return newf; - }; - if (!Object.keys) Object.keys = function(o) { - var a = []; - for (var i$4 in o) if (o.hasOwnProperty(i$4)) a.push(i$4); - return a; - }; - function checkBufferLength(parser) { - var maxAllowed = Math.max(sax$1.MAX_BUFFER_LENGTH, 10); - var maxActual = 0; - for (var i$4 = 0, l = buffers.length; i$4 < l; i$4++) { - var len$1 = parser[buffers[i$4]].length; - if (len$1 > maxAllowed) switch (buffers[i$4]) { - case "textNode": - closeText(parser); - break; - case "cdata": - emitNode(parser, "oncdata", parser.cdata); - parser.cdata = ""; - break; - case "script": - emitNode(parser, "onscript", parser.script); - parser.script = ""; - break; - default: error(parser, "Max buffer length exceeded: " + buffers[i$4]); - } - maxActual = Math.max(maxActual, len$1); - } - var m$1 = sax$1.MAX_BUFFER_LENGTH - maxActual; - parser.bufferCheckPosition = m$1 + parser.position; - } - function clearBuffers(parser) { - for (var i$4 = 0, l = buffers.length; i$4 < l; i$4++) parser[buffers[i$4]] = ""; - } - function flushBuffers(parser) { - closeText(parser); - if (parser.cdata !== "") { - emitNode(parser, "oncdata", parser.cdata); - parser.cdata = ""; - } - if (parser.script !== "") { - emitNode(parser, "onscript", parser.script); - parser.script = ""; - } - } - SAXParser.prototype = { - end: function() { - end(this); - }, - write, - resume: function() { - this.error = null; - return this; - }, - close: function() { - return this.write(null); - }, - flush: function() { - flushBuffers(this); - } - }; - var Stream$2 = ReadableStream; - if (!Stream$2) Stream$2 = function() {}; - var streamWraps = sax$1.EVENTS.filter(function(ev) { - return ev !== "error" && ev !== "end"; - }); - function createStream(strict, opt) { - return new SAXStream(strict, opt); - } - function SAXStream(strict, opt) { - if (!(this instanceof SAXStream)) return new SAXStream(strict, opt); - Stream$2.apply(this); - this._parser = new SAXParser(strict, opt); - this.writable = true; - this.readable = true; - var me = this; - this._parser.onend = function() { - me.emit("end"); - }; - this._parser.onerror = function(er) { - me.emit("error", er); - me._parser.error = null; - }; - this._decoder = null; - streamWraps.forEach(function(ev) { - Object.defineProperty(me, "on" + ev, { - get: function() { - return me._parser["on" + ev]; - }, - set: function(h$1) { - if (!h$1) { - me.removeAllListeners(ev); - me._parser["on" + ev] = h$1; - return h$1; - } - me.on(ev, h$1); - }, - enumerable: true, - configurable: false - }); - }); - } - SAXStream.prototype = Object.create(Stream$2.prototype, { constructor: { value: SAXStream } }); - SAXStream.prototype.write = function(data) { - this._parser.write(data.toString()); - this.emit("data", data); - return true; - }; - SAXStream.prototype.end = function(chunk) { - if (chunk && chunk.length) this.write(chunk); - this._parser.end(); - return true; - }; - SAXStream.prototype.on = function(ev, handler) { - var me = this; - if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) me._parser["on" + ev] = function() { - var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments); - args.splice(0, 0, ev); - me.emit.apply(me, args); - }; - return Stream$2.prototype.on.call(me, ev, handler); - }; - var CDATA = "[CDATA["; - var DOCTYPE = "DOCTYPE"; - var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace"; - var XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/"; - var rootNS = { - xml: XML_NAMESPACE, - xmlns: XMLNS_NAMESPACE - }; - var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; - var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; - var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; - var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; - function isWhitespace(c) { - return c === " " || c === "\n" || c === "\r" || c === " "; - } - function isQuote(c) { - return c === "\"" || c === "'"; - } - function isAttribEnd(c) { - return c === ">" || isWhitespace(c); - } - function isMatch(regex$1, c) { - return regex$1.test(c); - } - function notMatch(regex$1, c) { - return !isMatch(regex$1, c); - } - var S = 0; - sax$1.STATE = { - BEGIN: S++, - BEGIN_WHITESPACE: S++, - TEXT: S++, - TEXT_ENTITY: S++, - OPEN_WAKA: S++, - SGML_DECL: S++, - SGML_DECL_QUOTED: S++, - DOCTYPE: S++, - DOCTYPE_QUOTED: S++, - DOCTYPE_DTD: S++, - DOCTYPE_DTD_QUOTED: S++, - COMMENT_STARTING: S++, - COMMENT: S++, - COMMENT_ENDING: S++, - COMMENT_ENDED: S++, - CDATA: S++, - CDATA_ENDING: S++, - CDATA_ENDING_2: S++, - PROC_INST: S++, - PROC_INST_BODY: S++, - PROC_INST_ENDING: S++, - OPEN_TAG: S++, - OPEN_TAG_SLASH: S++, - ATTRIB: S++, - ATTRIB_NAME: S++, - ATTRIB_NAME_SAW_WHITE: S++, - ATTRIB_VALUE: S++, - ATTRIB_VALUE_QUOTED: S++, - ATTRIB_VALUE_CLOSED: S++, - ATTRIB_VALUE_UNQUOTED: S++, - ATTRIB_VALUE_ENTITY_Q: S++, - ATTRIB_VALUE_ENTITY_U: S++, - CLOSE_TAG: S++, - CLOSE_TAG_SAW_WHITE: S++, - SCRIPT: S++, - SCRIPT_ENDING: S++ - }; - sax$1.XML_ENTITIES = { - amp: "&", - gt: ">", - lt: "<", - quot: "\"", - apos: "'" - }; - sax$1.ENTITIES = { - amp: "&", - gt: ">", - lt: "<", - quot: "\"", - apos: "'", - AElig: 198, - Aacute: 193, - Acirc: 194, - Agrave: 192, - Aring: 197, - Atilde: 195, - Auml: 196, - Ccedil: 199, - ETH: 208, - Eacute: 201, - Ecirc: 202, - Egrave: 200, - Euml: 203, - Iacute: 205, - Icirc: 206, - Igrave: 204, - Iuml: 207, - Ntilde: 209, - Oacute: 211, - Ocirc: 212, - Ograve: 210, - Oslash: 216, - Otilde: 213, - Ouml: 214, - THORN: 222, - Uacute: 218, - Ucirc: 219, - Ugrave: 217, - Uuml: 220, - Yacute: 221, - aacute: 225, - acirc: 226, - aelig: 230, - agrave: 224, - aring: 229, - atilde: 227, - auml: 228, - ccedil: 231, - eacute: 233, - ecirc: 234, - egrave: 232, - eth: 240, - euml: 235, - iacute: 237, - icirc: 238, - igrave: 236, - iuml: 239, - ntilde: 241, - oacute: 243, - ocirc: 244, - ograve: 242, - oslash: 248, - otilde: 245, - ouml: 246, - szlig: 223, - thorn: 254, - uacute: 250, - ucirc: 251, - ugrave: 249, - uuml: 252, - yacute: 253, - yuml: 255, - copy: 169, - reg: 174, - nbsp: 160, - iexcl: 161, - cent: 162, - pound: 163, - curren: 164, - yen: 165, - brvbar: 166, - sect: 167, - uml: 168, - ordf: 170, - laquo: 171, - not: 172, - shy: 173, - macr: 175, - deg: 176, - plusmn: 177, - sup1: 185, - sup2: 178, - sup3: 179, - acute: 180, - micro: 181, - para: 182, - middot: 183, - cedil: 184, - ordm: 186, - raquo: 187, - frac14: 188, - frac12: 189, - frac34: 190, - iquest: 191, - times: 215, - divide: 247, - OElig: 338, - oelig: 339, - Scaron: 352, - scaron: 353, - Yuml: 376, - fnof: 402, - circ: 710, - tilde: 732, - Alpha: 913, - Beta: 914, - Gamma: 915, - Delta: 916, - Epsilon: 917, - Zeta: 918, - Eta: 919, - Theta: 920, - Iota: 921, - Kappa: 922, - Lambda: 923, - Mu: 924, - Nu: 925, - Xi: 926, - Omicron: 927, - Pi: 928, - Rho: 929, - Sigma: 931, - Tau: 932, - Upsilon: 933, - Phi: 934, - Chi: 935, - Psi: 936, - Omega: 937, - alpha: 945, - beta: 946, - gamma: 947, - delta: 948, - epsilon: 949, - zeta: 950, - eta: 951, - theta: 952, - iota: 953, - kappa: 954, - lambda: 955, - mu: 956, - nu: 957, - xi: 958, - omicron: 959, - pi: 960, - rho: 961, - sigmaf: 962, - sigma: 963, - tau: 964, - upsilon: 965, - phi: 966, - chi: 967, - psi: 968, - omega: 969, - thetasym: 977, - upsih: 978, - piv: 982, - ensp: 8194, - emsp: 8195, - thinsp: 8201, - zwnj: 8204, - zwj: 8205, - lrm: 8206, - rlm: 8207, - ndash: 8211, - mdash: 8212, - lsquo: 8216, - rsquo: 8217, - sbquo: 8218, - ldquo: 8220, - rdquo: 8221, - bdquo: 8222, - dagger: 8224, - Dagger: 8225, - bull: 8226, - hellip: 8230, - permil: 8240, - prime: 8242, - Prime: 8243, - lsaquo: 8249, - rsaquo: 8250, - oline: 8254, - frasl: 8260, - euro: 8364, - image: 8465, - weierp: 8472, - real: 8476, - trade: 8482, - alefsym: 8501, - larr: 8592, - uarr: 8593, - rarr: 8594, - darr: 8595, - harr: 8596, - crarr: 8629, - lArr: 8656, - uArr: 8657, - rArr: 8658, - dArr: 8659, - hArr: 8660, - forall: 8704, - part: 8706, - exist: 8707, - empty: 8709, - nabla: 8711, - isin: 8712, - notin: 8713, - ni: 8715, - prod: 8719, - sum: 8721, - minus: 8722, - lowast: 8727, - radic: 8730, - prop: 8733, - infin: 8734, - ang: 8736, - and: 8743, - or: 8744, - cap: 8745, - cup: 8746, - int: 8747, - there4: 8756, - sim: 8764, - cong: 8773, - asymp: 8776, - ne: 8800, - equiv: 8801, - le: 8804, - ge: 8805, - sub: 8834, - sup: 8835, - nsub: 8836, - sube: 8838, - supe: 8839, - oplus: 8853, - otimes: 8855, - perp: 8869, - sdot: 8901, - lceil: 8968, - rceil: 8969, - lfloor: 8970, - rfloor: 8971, - lang: 9001, - rang: 9002, - loz: 9674, - spades: 9824, - clubs: 9827, - hearts: 9829, - diams: 9830 - }; - Object.keys(sax$1.ENTITIES).forEach(function(key$1) { - var e = sax$1.ENTITIES[key$1]; - var s$2 = typeof e === "number" ? String.fromCharCode(e) : e; - sax$1.ENTITIES[key$1] = s$2; - }); - for (var s$1 in sax$1.STATE) sax$1.STATE[sax$1.STATE[s$1]] = s$1; - S = sax$1.STATE; - function emit(parser, event, data) { - parser[event] && parser[event](data); - } - function emitNode(parser, nodeType, data) { - if (parser.textNode) closeText(parser); - emit(parser, nodeType, data); - } - function closeText(parser) { - parser.textNode = textopts(parser.opt, parser.textNode); - if (parser.textNode) emit(parser, "ontext", parser.textNode); - parser.textNode = ""; - } - function textopts(opt, text) { - if (opt.trim) text = text.trim(); - if (opt.normalize) text = text.replace(/\s+/g, " "); - return text; - } - function error(parser, er) { - closeText(parser); - if (parser.trackPosition) er += "\nLine: " + parser.line + "\nColumn: " + parser.column + "\nChar: " + parser.c; - er = new Error(er); - parser.error = er; - emit(parser, "onerror", er); - return parser; - } - function end(parser) { - if (parser.sawRoot && !parser.closedRoot) strictFail(parser, "Unclosed root tag"); - if (parser.state !== S.BEGIN && parser.state !== S.BEGIN_WHITESPACE && parser.state !== S.TEXT) error(parser, "Unexpected end"); - closeText(parser); - parser.c = ""; - parser.closed = true; - emit(parser, "onend"); - SAXParser.call(parser, parser.strict, parser.opt); - return parser; - } - function strictFail(parser, message) { - if (typeof parser !== "object" || !(parser instanceof SAXParser)) throw new Error("bad call to strictFail"); - if (parser.strict) error(parser, message); - } - function newTag(parser) { - if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase](); - var parent = parser.tags[parser.tags.length - 1] || parser; - var tag = parser.tag = { - name: parser.tagName, - attributes: {} - }; - if (parser.opt.xmlns) tag.ns = parent.ns; - parser.attribList.length = 0; - emitNode(parser, "onopentagstart", tag); - } - function qname(name, attribute) { - var i$4 = name.indexOf(":"); - var qualName = i$4 < 0 ? ["", name] : name.split(":"); - var prefix = qualName[0]; - var local = qualName[1]; - if (attribute && name === "xmlns") { - prefix = "xmlns"; - local = ""; - } - return { - prefix, - local - }; - } - function attrib(parser) { - if (!parser.strict) parser.attribName = parser.attribName[parser.looseCase](); - if (parser.attribList.indexOf(parser.attribName) !== -1 || parser.tag.attributes.hasOwnProperty(parser.attribName)) { - parser.attribName = parser.attribValue = ""; - return; - } - if (parser.opt.xmlns) { - var qn = qname(parser.attribName, true); - var prefix = qn.prefix; - var local = qn.local; - if (prefix === "xmlns") if (local === "xml" && parser.attribValue !== XML_NAMESPACE) strictFail(parser, "xml: prefix must be bound to " + XML_NAMESPACE + "\nActual: " + parser.attribValue); - else if (local === "xmlns" && parser.attribValue !== XMLNS_NAMESPACE) strictFail(parser, "xmlns: prefix must be bound to " + XMLNS_NAMESPACE + "\nActual: " + parser.attribValue); - else { - var tag = parser.tag; - var parent = parser.tags[parser.tags.length - 1] || parser; - if (tag.ns === parent.ns) tag.ns = Object.create(parent.ns); - tag.ns[local] = parser.attribValue; - } - parser.attribList.push([parser.attribName, parser.attribValue]); - } else { - parser.tag.attributes[parser.attribName] = parser.attribValue; - emitNode(parser, "onattribute", { - name: parser.attribName, - value: parser.attribValue - }); - } - parser.attribName = parser.attribValue = ""; - } - function openTag(parser, selfClosing) { - if (parser.opt.xmlns) { - var tag = parser.tag; - var qn = qname(parser.tagName); - tag.prefix = qn.prefix; - tag.local = qn.local; - tag.uri = tag.ns[qn.prefix] || ""; - if (tag.prefix && !tag.uri) { - strictFail(parser, "Unbound namespace prefix: " + JSON.stringify(parser.tagName)); - tag.uri = qn.prefix; - } - var parent = parser.tags[parser.tags.length - 1] || parser; - if (tag.ns && parent.ns !== tag.ns) Object.keys(tag.ns).forEach(function(p) { - emitNode(parser, "onopennamespace", { - prefix: p, - uri: tag.ns[p] - }); - }); - for (var i$4 = 0, l = parser.attribList.length; i$4 < l; i$4++) { - var nv = parser.attribList[i$4]; - var name = nv[0]; - var value = nv[1]; - var qualName = qname(name, true); - var prefix = qualName.prefix; - var local = qualName.local; - var uri$1 = prefix === "" ? "" : tag.ns[prefix] || ""; - var a = { - name, - value, - prefix, - local, - uri: uri$1 - }; - if (prefix && prefix !== "xmlns" && !uri$1) { - strictFail(parser, "Unbound namespace prefix: " + JSON.stringify(prefix)); - a.uri = prefix; - } - parser.tag.attributes[name] = a; - emitNode(parser, "onattribute", a); - } - parser.attribList.length = 0; - } - parser.tag.isSelfClosing = !!selfClosing; - parser.sawRoot = true; - parser.tags.push(parser.tag); - emitNode(parser, "onopentag", parser.tag); - if (!selfClosing) { - if (!parser.noscript && parser.tagName.toLowerCase() === "script") parser.state = S.SCRIPT; - else parser.state = S.TEXT; - parser.tag = null; - parser.tagName = ""; - } - parser.attribName = parser.attribValue = ""; - parser.attribList.length = 0; - } - function closeTag(parser) { - if (!parser.tagName) { - strictFail(parser, "Weird empty close tag."); - parser.textNode += ""; - parser.state = S.TEXT; - return; - } - if (parser.script) { - if (parser.tagName !== "script") { - parser.script += ""; - parser.tagName = ""; - parser.state = S.SCRIPT; - return; - } - emitNode(parser, "onscript", parser.script); - parser.script = ""; - } - var t = parser.tags.length; - var tagName = parser.tagName; - if (!parser.strict) tagName = tagName[parser.looseCase](); - var closeTo = tagName; - while (t--) { - var close = parser.tags[t]; - if (close.name !== closeTo) strictFail(parser, "Unexpected close tag"); - else break; - } - if (t < 0) { - strictFail(parser, "Unmatched closing tag: " + parser.tagName); - parser.textNode += ""; - parser.state = S.TEXT; - return; - } - parser.tagName = tagName; - var s$2 = parser.tags.length; - while (s$2-- > t) { - var tag = parser.tag = parser.tags.pop(); - parser.tagName = parser.tag.name; - emitNode(parser, "onclosetag", parser.tagName); - var x = {}; - for (var i$4 in tag.ns) x[i$4] = tag.ns[i$4]; - var parent = parser.tags[parser.tags.length - 1] || parser; - if (parser.opt.xmlns && tag.ns !== parent.ns) Object.keys(tag.ns).forEach(function(p) { - var n = tag.ns[p]; - emitNode(parser, "onclosenamespace", { - prefix: p, - uri: n - }); - }); - } - if (t === 0) parser.closedRoot = true; - parser.tagName = parser.attribValue = parser.attribName = ""; - parser.attribList.length = 0; - parser.state = S.TEXT; - } - function parseEntity(parser) { - var entity = parser.entity; - var entityLC = entity.toLowerCase(); - var num; - var numStr = ""; - if (parser.ENTITIES[entity]) return parser.ENTITIES[entity]; - if (parser.ENTITIES[entityLC]) return parser.ENTITIES[entityLC]; - entity = entityLC; - if (entity.charAt(0) === "#") if (entity.charAt(1) === "x") { - entity = entity.slice(2); - num = parseInt(entity, 16); - numStr = num.toString(16); - } else { - entity = entity.slice(1); - num = parseInt(entity, 10); - numStr = num.toString(10); - } - entity = entity.replace(/^0+/, ""); - if (isNaN(num) || numStr.toLowerCase() !== entity) { - strictFail(parser, "Invalid character entity"); - return "&" + parser.entity + ";"; - } - return String.fromCodePoint(num); - } - function beginWhiteSpace(parser, c) { - if (c === "<") { - parser.state = S.OPEN_WAKA; - parser.startTagPosition = parser.position; - } else if (!isWhitespace(c)) { - strictFail(parser, "Non-whitespace before first tag."); - parser.textNode = c; - parser.state = S.TEXT; - } - } - function charAt(chunk, i$4) { - var result = ""; - if (i$4 < chunk.length) result = chunk.charAt(i$4); - return result; - } - function write(chunk) { - var parser = this; - if (this.error) throw this.error; - if (parser.closed) return error(parser, "Cannot write after close. Assign an onready handler."); - if (chunk === null) return end(parser); - if (typeof chunk === "object") chunk = chunk.toString(); - var i$4 = 0; - var c = ""; - while (true) { - c = charAt(chunk, i$4++); - parser.c = c; - if (!c) break; - if (parser.trackPosition) { - parser.position++; - if (c === "\n") { - parser.line++; - parser.column = 0; - } else parser.column++; - } - switch (parser.state) { - case S.BEGIN: - parser.state = S.BEGIN_WHITESPACE; - if (c === "") continue; - beginWhiteSpace(parser, c); - continue; - case S.BEGIN_WHITESPACE: - beginWhiteSpace(parser, c); - continue; - case S.TEXT: - if (parser.sawRoot && !parser.closedRoot) { - var starti = i$4 - 1; - while (c && c !== "<" && c !== "&") { - c = charAt(chunk, i$4++); - if (c && parser.trackPosition) { - parser.position++; - if (c === "\n") { - parser.line++; - parser.column = 0; - } else parser.column++; - } - } - parser.textNode += chunk.substring(starti, i$4 - 1); - } - if (c === "<" && !(parser.sawRoot && parser.closedRoot && !parser.strict)) { - parser.state = S.OPEN_WAKA; - parser.startTagPosition = parser.position; - } else { - if (!isWhitespace(c) && (!parser.sawRoot || parser.closedRoot)) strictFail(parser, "Text data outside of root node."); - if (c === "&") parser.state = S.TEXT_ENTITY; - else parser.textNode += c; - } - continue; - case S.SCRIPT: - if (c === "<") parser.state = S.SCRIPT_ENDING; - else parser.script += c; - continue; - case S.SCRIPT_ENDING: - if (c === "/") parser.state = S.CLOSE_TAG; - else { - parser.script += "<" + c; - parser.state = S.SCRIPT; - } - continue; - case S.OPEN_WAKA: - if (c === "!") { - parser.state = S.SGML_DECL; - parser.sgmlDecl = ""; - } else if (isWhitespace(c)) {} else if (isMatch(nameStart, c)) { - parser.state = S.OPEN_TAG; - parser.tagName = c; - } else if (c === "/") { - parser.state = S.CLOSE_TAG; - parser.tagName = ""; - } else if (c === "?") { - parser.state = S.PROC_INST; - parser.procInstName = parser.procInstBody = ""; - } else { - strictFail(parser, "Unencoded <"); - if (parser.startTagPosition + 1 < parser.position) { - var pad = parser.position - parser.startTagPosition; - c = new Array(pad).join(" ") + c; - } - parser.textNode += "<" + c; - parser.state = S.TEXT; - } - continue; - case S.SGML_DECL: - if ((parser.sgmlDecl + c).toUpperCase() === CDATA) { - emitNode(parser, "onopencdata"); - parser.state = S.CDATA; - parser.sgmlDecl = ""; - parser.cdata = ""; - } else if (parser.sgmlDecl + c === "--") { - parser.state = S.COMMENT; - parser.comment = ""; - parser.sgmlDecl = ""; - } else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) { - parser.state = S.DOCTYPE; - if (parser.doctype || parser.sawRoot) strictFail(parser, "Inappropriately located doctype declaration"); - parser.doctype = ""; - parser.sgmlDecl = ""; - } else if (c === ">") { - emitNode(parser, "onsgmldeclaration", parser.sgmlDecl); - parser.sgmlDecl = ""; - parser.state = S.TEXT; - } else if (isQuote(c)) { - parser.state = S.SGML_DECL_QUOTED; - parser.sgmlDecl += c; - } else parser.sgmlDecl += c; - continue; - case S.SGML_DECL_QUOTED: - if (c === parser.q) { - parser.state = S.SGML_DECL; - parser.q = ""; - } - parser.sgmlDecl += c; - continue; - case S.DOCTYPE: - if (c === ">") { - parser.state = S.TEXT; - emitNode(parser, "ondoctype", parser.doctype); - parser.doctype = true; - } else { - parser.doctype += c; - if (c === "[") parser.state = S.DOCTYPE_DTD; - else if (isQuote(c)) { - parser.state = S.DOCTYPE_QUOTED; - parser.q = c; - } - } - continue; - case S.DOCTYPE_QUOTED: - parser.doctype += c; - if (c === parser.q) { - parser.q = ""; - parser.state = S.DOCTYPE; - } - continue; - case S.DOCTYPE_DTD: - parser.doctype += c; - if (c === "]") parser.state = S.DOCTYPE; - else if (isQuote(c)) { - parser.state = S.DOCTYPE_DTD_QUOTED; - parser.q = c; - } - continue; - case S.DOCTYPE_DTD_QUOTED: - parser.doctype += c; - if (c === parser.q) { - parser.state = S.DOCTYPE_DTD; - parser.q = ""; - } - continue; - case S.COMMENT: - if (c === "-") parser.state = S.COMMENT_ENDING; - else parser.comment += c; - continue; - case S.COMMENT_ENDING: - if (c === "-") { - parser.state = S.COMMENT_ENDED; - parser.comment = textopts(parser.opt, parser.comment); - if (parser.comment) emitNode(parser, "oncomment", parser.comment); - parser.comment = ""; - } else { - parser.comment += "-" + c; - parser.state = S.COMMENT; - } - continue; - case S.COMMENT_ENDED: - if (c !== ">") { - strictFail(parser, "Malformed comment"); - parser.comment += "--" + c; - parser.state = S.COMMENT; - } else parser.state = S.TEXT; - continue; - case S.CDATA: - if (c === "]") parser.state = S.CDATA_ENDING; - else parser.cdata += c; - continue; - case S.CDATA_ENDING: - if (c === "]") parser.state = S.CDATA_ENDING_2; - else { - parser.cdata += "]" + c; - parser.state = S.CDATA; - } - continue; - case S.CDATA_ENDING_2: - if (c === ">") { - if (parser.cdata) emitNode(parser, "oncdata", parser.cdata); - emitNode(parser, "onclosecdata"); - parser.cdata = ""; - parser.state = S.TEXT; - } else if (c === "]") parser.cdata += "]"; - else { - parser.cdata += "]]" + c; - parser.state = S.CDATA; - } - continue; - case S.PROC_INST: - if (c === "?") parser.state = S.PROC_INST_ENDING; - else if (isWhitespace(c)) parser.state = S.PROC_INST_BODY; - else parser.procInstName += c; - continue; - case S.PROC_INST_BODY: - if (!parser.procInstBody && isWhitespace(c)) continue; - else if (c === "?") parser.state = S.PROC_INST_ENDING; - else parser.procInstBody += c; - continue; - case S.PROC_INST_ENDING: - if (c === ">") { - emitNode(parser, "onprocessinginstruction", { - name: parser.procInstName, - body: parser.procInstBody - }); - parser.procInstName = parser.procInstBody = ""; - parser.state = S.TEXT; - } else { - parser.procInstBody += "?" + c; - parser.state = S.PROC_INST_BODY; - } - continue; - case S.OPEN_TAG: - if (isMatch(nameBody, c)) parser.tagName += c; - else { - newTag(parser); - if (c === ">") openTag(parser); - else if (c === "/") parser.state = S.OPEN_TAG_SLASH; - else { - if (!isWhitespace(c)) strictFail(parser, "Invalid character in tag name"); - parser.state = S.ATTRIB; - } - } - continue; - case S.OPEN_TAG_SLASH: - if (c === ">") { - openTag(parser, true); - closeTag(parser); - } else { - strictFail(parser, "Forward-slash in opening tag not followed by >"); - parser.state = S.ATTRIB; - } - continue; - case S.ATTRIB: - if (isWhitespace(c)) continue; - else if (c === ">") openTag(parser); - else if (c === "/") parser.state = S.OPEN_TAG_SLASH; - else if (isMatch(nameStart, c)) { - parser.attribName = c; - parser.attribValue = ""; - parser.state = S.ATTRIB_NAME; - } else strictFail(parser, "Invalid attribute name"); - continue; - case S.ATTRIB_NAME: - if (c === "=") parser.state = S.ATTRIB_VALUE; - else if (c === ">") { - strictFail(parser, "Attribute without value"); - parser.attribValue = parser.attribName; - attrib(parser); - openTag(parser); - } else if (isWhitespace(c)) parser.state = S.ATTRIB_NAME_SAW_WHITE; - else if (isMatch(nameBody, c)) parser.attribName += c; - else strictFail(parser, "Invalid attribute name"); - continue; - case S.ATTRIB_NAME_SAW_WHITE: - if (c === "=") parser.state = S.ATTRIB_VALUE; - else if (isWhitespace(c)) continue; - else { - strictFail(parser, "Attribute without value"); - parser.tag.attributes[parser.attribName] = ""; - parser.attribValue = ""; - emitNode(parser, "onattribute", { - name: parser.attribName, - value: "" - }); - parser.attribName = ""; - if (c === ">") openTag(parser); - else if (isMatch(nameStart, c)) { - parser.attribName = c; - parser.state = S.ATTRIB_NAME; - } else { - strictFail(parser, "Invalid attribute name"); - parser.state = S.ATTRIB; - } - } - continue; - case S.ATTRIB_VALUE: - if (isWhitespace(c)) continue; - else if (isQuote(c)) { - parser.q = c; - parser.state = S.ATTRIB_VALUE_QUOTED; - } else { - strictFail(parser, "Unquoted attribute value"); - parser.state = S.ATTRIB_VALUE_UNQUOTED; - parser.attribValue = c; - } - continue; - case S.ATTRIB_VALUE_QUOTED: - if (c !== parser.q) { - if (c === "&") parser.state = S.ATTRIB_VALUE_ENTITY_Q; - else parser.attribValue += c; - continue; - } - attrib(parser); - parser.q = ""; - parser.state = S.ATTRIB_VALUE_CLOSED; - continue; - case S.ATTRIB_VALUE_CLOSED: - if (isWhitespace(c)) parser.state = S.ATTRIB; - else if (c === ">") openTag(parser); - else if (c === "/") parser.state = S.OPEN_TAG_SLASH; - else if (isMatch(nameStart, c)) { - strictFail(parser, "No whitespace between attributes"); - parser.attribName = c; - parser.attribValue = ""; - parser.state = S.ATTRIB_NAME; - } else strictFail(parser, "Invalid attribute name"); - continue; - case S.ATTRIB_VALUE_UNQUOTED: - if (!isAttribEnd(c)) { - if (c === "&") parser.state = S.ATTRIB_VALUE_ENTITY_U; - else parser.attribValue += c; - continue; - } - attrib(parser); - if (c === ">") openTag(parser); - else parser.state = S.ATTRIB; - continue; - case S.CLOSE_TAG: - if (!parser.tagName) if (isWhitespace(c)) continue; - else if (notMatch(nameStart, c)) if (parser.script) { - parser.script += "") closeTag(parser); - else if (isMatch(nameBody, c)) parser.tagName += c; - else if (parser.script) { - parser.script += "") closeTag(parser); - else strictFail(parser, "Invalid characters in closing tag"); - continue; - case S.TEXT_ENTITY: - case S.ATTRIB_VALUE_ENTITY_Q: - case S.ATTRIB_VALUE_ENTITY_U: - var returnState; - var buffer$1; - switch (parser.state) { - case S.TEXT_ENTITY: - returnState = S.TEXT; - buffer$1 = "textNode"; - break; - case S.ATTRIB_VALUE_ENTITY_Q: - returnState = S.ATTRIB_VALUE_QUOTED; - buffer$1 = "attribValue"; - break; - case S.ATTRIB_VALUE_ENTITY_U: - returnState = S.ATTRIB_VALUE_UNQUOTED; - buffer$1 = "attribValue"; - break; - } - if (c === ";") if (parser.opt.unparsedEntities) { - var parsedEntity = parseEntity(parser); - parser.entity = ""; - parser.state = returnState; - parser.write(parsedEntity); - } else { - parser[buffer$1] += parseEntity(parser); - parser.entity = ""; - parser.state = returnState; - } - else if (isMatch(parser.entity.length ? entityBody : entityStart, c)) parser.entity += c; - else { - strictFail(parser, "Invalid character in entity name"); - parser[buffer$1] += "&" + parser.entity + c; - parser.entity = ""; - parser.state = returnState; - } - continue; - default: throw new Error(parser, "Unknown state: " + parser.state); - } - } - if (parser.position >= parser.bufferCheckPosition) checkBufferLength(parser); - return parser; - } - /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ - /* istanbul ignore next */ - if (!String.fromCodePoint) (function() { - var stringFromCharCode = String.fromCharCode; - var floor = Math.floor; - var fromCodePoint = function() { - var MAX_SIZE = 16384; - var codeUnits = []; - var highSurrogate; - var lowSurrogate; - var index = -1; - var length = arguments.length; - if (!length) return ""; - var result = ""; - while (++index < length) { - var codePoint = Number(arguments[index]); - if (!isFinite(codePoint) || codePoint < 0 || codePoint > 1114111 || floor(codePoint) !== codePoint) throw RangeError("Invalid code point: " + codePoint); - if (codePoint <= 65535) codeUnits.push(codePoint); - else { - codePoint -= 65536; - highSurrogate = (codePoint >> 10) + 55296; - lowSurrogate = codePoint % 1024 + 56320; - codeUnits.push(highSurrogate, lowSurrogate); - } - if (index + 1 === length || codeUnits.length > MAX_SIZE) { - result += stringFromCharCode.apply(null, codeUnits); - codeUnits.length = 0; - } - } - return result; - }; - /* istanbul ignore next */ - if (Object.defineProperty) Object.defineProperty(String, "fromCodePoint", { - value: fromCodePoint, - configurable: true, - writable: true - }); - else String.fromCodePoint = fromCodePoint; - })(); - return sax$1; -}; -const sax = initializeSax(); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/xml.js -const XML_FORMAT_INSTRUCTIONS = `The output should be formatted as a XML file. -1. Output should conform to the tags below. -2. If tags are not given, make them on your own. -3. Remember to always open and close all the tags. - -As an example, for the tags ["foo", "bar", "baz"]: -1. String "\n \n \n \n" is a well-formatted instance of the schema. -2. String "\n \n " is a badly-formatted instance. -3. String "\n \n \n" is a badly-formatted instance. - -Here are the output tags: -\`\`\` -{tags} -\`\`\``; -var XMLOutputParser = class extends BaseCumulativeTransformOutputParser { - constructor(fields) { - super(fields); - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langchain_core", "output_parsers"] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.tags = fields?.tags; - } - static lc_name() { - return "XMLOutputParser"; - } - _diff(prev, next) { - if (!next) return void 0; - if (!prev) return [{ - op: "replace", - path: "", - value: next - }]; - return compare(prev, next); - } - async parsePartialResult(generations) { - return parseXMLMarkdown(generations[0].text); - } - async parse(text) { - return parseXMLMarkdown(text); - } - getFormatInstructions() { - const withTags = !!(this.tags && this.tags.length > 0); - return withTags ? XML_FORMAT_INSTRUCTIONS.replace("{tags}", this.tags?.join(", ") ?? "") : XML_FORMAT_INSTRUCTIONS; - } -}; -const strip = (text) => text.split("\n").map((line) => line.replace(/^\s+/, "")).join("\n").trim(); -const parseParsedResult = (input) => { - if (Object.keys(input).length === 0) return {}; - const result = {}; - if (input.children.length > 0) { - result[input.name] = input.children.map(parseParsedResult); - return result; - } else { - result[input.name] = input.text ?? void 0; - return result; - } -}; -function parseXMLMarkdown(s$1) { - const cleanedString = strip(s$1); - const parser = sax.parser(true); - let parsedResult = {}; - const elementStack = []; - parser.onopentag = (node) => { - const element = { - name: node.name, - attributes: node.attributes, - children: [], - text: "", - isSelfClosing: node.isSelfClosing - }; - if (elementStack.length > 0) { - const parentElement = elementStack[elementStack.length - 1]; - parentElement.children.push(element); - } else parsedResult = element; - if (!node.isSelfClosing) elementStack.push(element); - }; - parser.onclosetag = () => { - if (elementStack.length > 0) { - const lastElement = elementStack.pop(); - if (elementStack.length === 0 && lastElement) parsedResult = lastElement; - } - }; - parser.ontext = (text) => { - if (elementStack.length > 0) { - const currentElement = elementStack[elementStack.length - 1]; - currentElement.text += text; - } - }; - parser.onattribute = (attr) => { - if (elementStack.length > 0) { - const currentElement = elementStack[elementStack.length - 1]; - currentElement.attributes[attr.name] = attr.value; - } - }; - const match = /```(xml)?(.*)```/s.exec(cleanedString); - const xmlString = match ? match[2] : cleanedString; - parser.write(xmlString).close(); - if (parsedResult && parsedResult.name === "?xml") parsedResult = parsedResult.children[0]; - return parseParsedResult(parsedResult); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/index.js -var output_parsers_exports = {}; -__export(output_parsers_exports, { - AsymmetricStructuredOutputParser: () => AsymmetricStructuredOutputParser, - BaseCumulativeTransformOutputParser: () => BaseCumulativeTransformOutputParser, - BaseLLMOutputParser: () => BaseLLMOutputParser, - BaseOutputParser: () => BaseOutputParser, - BaseTransformOutputParser: () => BaseTransformOutputParser, - BytesOutputParser: () => BytesOutputParser, - CommaSeparatedListOutputParser: () => CommaSeparatedListOutputParser, - CustomListOutputParser: () => CustomListOutputParser, - JsonMarkdownStructuredOutputParser: () => JsonMarkdownStructuredOutputParser, - JsonOutputParser: () => JsonOutputParser, - ListOutputParser: () => ListOutputParser, - MarkdownListOutputParser: () => MarkdownListOutputParser, - NumberedListOutputParser: () => NumberedListOutputParser, - OutputParserException: () => OutputParserException, - StringOutputParser: () => StringOutputParser, - StructuredOutputParser: () => StructuredOutputParser, - XMLOutputParser: () => XMLOutputParser, - XML_FORMAT_INSTRUCTIONS: () => XML_FORMAT_INSTRUCTIONS, - parseJsonMarkdown: () => parseJsonMarkdown, - parsePartialJson: () => parsePartialJson, - parseXMLMarkdown: () => parseXMLMarkdown -}); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/prompts/pipeline.js -/** -* Class that handles a sequence of prompts, each of which may require -* different input variables. Includes methods for formatting these -* prompts, extracting required input values, and handling partial -* prompts. -* @example -* ```typescript -* const composedPrompt = new PipelinePromptTemplate({ -* pipelinePrompts: [ -* { -* name: "introduction", -* prompt: PromptTemplate.fromTemplate(`You are impersonating {person}.`), -* }, -* { -* name: "example", -* prompt: PromptTemplate.fromTemplate( -* `Here's an example of an interaction: -* Q: {example_q} -* A: {example_a}`, -* ), -* }, -* { -* name: "start", -* prompt: PromptTemplate.fromTemplate( -* `Now, do this for real! -* Q: {input} -* A:`, -* ), -* }, -* ], -* finalPrompt: PromptTemplate.fromTemplate( -* `{introduction} -* {example} -* {start}`, -* ), -* }); -* -* const formattedPrompt = await composedPrompt.format({ -* person: "Elon Musk", -* example_q: `What's your favorite car?`, -* example_a: "Tesla", -* input: `What's your favorite social media site?`, -* }); -* ``` -*/ -var PipelinePromptTemplate = class PipelinePromptTemplate extends BasePromptTemplate { - static lc_name() { - return "PipelinePromptTemplate"; - } - constructor(input) { - super({ - ...input, - inputVariables: [] - }); - Object.defineProperty(this, "pipelinePrompts", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "finalPrompt", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.pipelinePrompts = input.pipelinePrompts; - this.finalPrompt = input.finalPrompt; - this.inputVariables = this.computeInputValues(); - } - /** - * Computes the input values required by the pipeline prompts. - * @returns Array of input values required by the pipeline prompts. - */ - computeInputValues() { - const intermediateValues = this.pipelinePrompts.map((pipelinePrompt) => pipelinePrompt.name); - const inputValues = this.pipelinePrompts.map((pipelinePrompt) => pipelinePrompt.prompt.inputVariables.filter((inputValue) => !intermediateValues.includes(inputValue))).flat(); - return [...new Set(inputValues)]; - } - static extractRequiredInputValues(allValues, requiredValueNames) { - return requiredValueNames.reduce((requiredValues, valueName) => { - requiredValues[valueName] = allValues[valueName]; - return requiredValues; - }, {}); - } - /** - * Formats the pipeline prompts based on the provided input values. - * @param values Input values to format the pipeline prompts. - * @returns Promise that resolves with the formatted input values. - */ - async formatPipelinePrompts(values) { - const allValues = await this.mergePartialAndUserVariables(values); - for (const { name: pipelinePromptName, prompt: pipelinePrompt } of this.pipelinePrompts) { - const pipelinePromptInputValues = PipelinePromptTemplate.extractRequiredInputValues(allValues, pipelinePrompt.inputVariables); - if (pipelinePrompt instanceof ChatPromptTemplate) allValues[pipelinePromptName] = await pipelinePrompt.formatMessages(pipelinePromptInputValues); - else allValues[pipelinePromptName] = await pipelinePrompt.format(pipelinePromptInputValues); - } - return PipelinePromptTemplate.extractRequiredInputValues(allValues, this.finalPrompt.inputVariables); - } - /** - * Formats the final prompt value based on the provided input values. - * @param values Input values to format the final prompt value. - * @returns Promise that resolves with the formatted final prompt value. - */ - async formatPromptValue(values) { - return this.finalPrompt.formatPromptValue(await this.formatPipelinePrompts(values)); - } - async format(values) { - return this.finalPrompt.format(await this.formatPipelinePrompts(values)); - } - /** - * Handles partial prompts, which are prompts that have been partially - * filled with input values. - * @param values Partial input values. - * @returns Promise that resolves with a new PipelinePromptTemplate instance with updated input variables. - */ - async partial(values) { - const promptDict = { ...this }; - promptDict.inputVariables = this.inputVariables.filter((iv) => !(iv in values)); - promptDict.partialVariables = { - ...this.partialVariables ?? {}, - ...values - }; - return new PipelinePromptTemplate(promptDict); - } - serialize() { - throw new Error("Not implemented."); - } - _getPromptType() { - return "pipeline"; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/prompts/structured.js -function isWithStructuredOutput(x) { - return typeof x === "object" && x != null && "withStructuredOutput" in x && typeof x.withStructuredOutput === "function"; -} -function isRunnableBinding(x) { - return typeof x === "object" && x != null && "lc_id" in x && Array.isArray(x.lc_id) && x.lc_id.join("/") === "langchain_core/runnables/RunnableBinding"; -} -var StructuredPrompt = class StructuredPrompt extends ChatPromptTemplate { - get lc_aliases() { - return { - ...super.lc_aliases, - schema: "schema_" - }; - } - constructor(input) { - super(input); - Object.defineProperty(this, "schema", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "method", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "prompts", - "structured" - ] - }); - this.schema = input.schema; - this.method = input.method; - } - pipe(coerceable) { - if (isWithStructuredOutput(coerceable)) return super.pipe(coerceable.withStructuredOutput(this.schema)); - if (isRunnableBinding(coerceable) && isWithStructuredOutput(coerceable.bound)) return super.pipe(new RunnableBinding({ - bound: coerceable.bound.withStructuredOutput(this.schema, ...this.method ? [{ method: this.method }] : []), - kwargs: coerceable.kwargs ?? {}, - config: coerceable.config, - configFactories: coerceable.configFactories - })); - throw new Error(`Structured prompts need to be piped to a language model that supports the "withStructuredOutput()" method.`); - } - static fromMessagesAndSchema(promptMessages, schema, method) { - return StructuredPrompt.fromMessages(promptMessages, { - schema, - method - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/prompts/index.js -var prompts_exports = {}; -__export(prompts_exports, { - AIMessagePromptTemplate: () => AIMessagePromptTemplate, - BaseChatPromptTemplate: () => BaseChatPromptTemplate, - BaseMessagePromptTemplate: () => BaseMessagePromptTemplate, - BaseMessageStringPromptTemplate: () => BaseMessageStringPromptTemplate, - BasePromptTemplate: () => BasePromptTemplate, - BaseStringPromptTemplate: () => BaseStringPromptTemplate, - ChatMessagePromptTemplate: () => ChatMessagePromptTemplate, - ChatPromptTemplate: () => ChatPromptTemplate, - DEFAULT_FORMATTER_MAPPING: () => DEFAULT_FORMATTER_MAPPING, - DEFAULT_PARSER_MAPPING: () => DEFAULT_PARSER_MAPPING, - DictPromptTemplate: () => DictPromptTemplate, - FewShotChatMessagePromptTemplate: () => FewShotChatMessagePromptTemplate, - FewShotPromptTemplate: () => FewShotPromptTemplate, - HumanMessagePromptTemplate: () => HumanMessagePromptTemplate, - ImagePromptTemplate: () => ImagePromptTemplate, - MessagesPlaceholder: () => MessagesPlaceholder, - PipelinePromptTemplate: () => PipelinePromptTemplate, - PromptTemplate: () => PromptTemplate, - StructuredPrompt: () => StructuredPrompt, - SystemMessagePromptTemplate: () => SystemMessagePromptTemplate, - checkValidTemplate: () => checkValidTemplate, - interpolateFString: () => interpolateFString, - interpolateMustache: () => interpolateMustache, - parseFString: () => parseFString, - parseMustache: () => parseMustache, - parseTemplate: () => parseTemplate, - renderTemplate: () => renderTemplate -}); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/retrievers/index.js -var retrievers_exports = {}; -__export(retrievers_exports, { BaseRetriever: () => BaseRetriever }); -/** -* Abstract base class for a document retrieval system, designed to -* process string queries and return the most relevant documents from a source. -* -* `BaseRetriever` provides common properties and methods for derived retrievers, -* such as callbacks, tagging, and verbose logging. Custom retrieval systems -* should extend this class and implement `_getRelevantDocuments` to define -* the specific retrieval logic. -* -* @template Metadata - The type of metadata associated with each document, -* defaulting to `Record`. -*/ -var BaseRetriever = class extends Runnable { - /** - * Constructs a new `BaseRetriever` instance with optional configuration fields. - * - * @param fields - Optional input configuration that can include `callbacks`, - * `tags`, `metadata`, and `verbose` settings for custom retriever behavior. - */ - constructor(fields) { - super(fields); - /** - * Optional callbacks to handle various events in the retrieval process. - */ - Object.defineProperty(this, "callbacks", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Tags to label or categorize the retrieval operation. - */ - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Metadata to provide additional context or information about the retrieval - * operation. - */ - Object.defineProperty(this, "metadata", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * If set to `true`, enables verbose logging for the retrieval process. - */ - Object.defineProperty(this, "verbose", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.callbacks = fields?.callbacks; - this.tags = fields?.tags ?? []; - this.metadata = fields?.metadata ?? {}; - this.verbose = fields?.verbose ?? false; - } - /** - * TODO: This should be an abstract method, but we'd like to avoid breaking - * changes to people currently using subclassed custom retrievers. - * Change it on next major release. - */ - /** - * Placeholder method for retrieving relevant documents based on a query. - * - * This method is intended to be implemented by subclasses and will be - * converted to an abstract method in the next major release. Currently, it - * throws an error if not implemented, ensuring that custom retrievers define - * the specific retrieval logic. - * - * @param _query - The query string used to search for relevant documents. - * @param _callbacks - (optional) Callback manager for managing callbacks - * during retrieval. - * @returns A promise resolving to an array of `DocumentInterface` instances relevant to the query. - * @throws {Error} Throws an error indicating the method is not implemented. - */ - _getRelevantDocuments(_query, _callbacks) { - throw new Error("Not implemented!"); - } - /** - * Executes a retrieval operation. - * - * @param input - The query string used to search for relevant documents. - * @param options - (optional) Configuration options for the retrieval run, - * which may include callbacks, tags, and metadata. - * @returns A promise that resolves to an array of `DocumentInterface` instances - * representing the most relevant documents to the query. - */ - async invoke(input, options) { - return this.getRelevantDocuments(input, ensureConfig(options)); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.3.0. - * - * Main method used to retrieve relevant documents. It takes a query - * string and an optional configuration object, and returns a promise that - * resolves to an array of `Document` objects. This method handles the - * retrieval process, including starting and ending callbacks, and error - * handling. - * @param query The query string to retrieve relevant documents for. - * @param config Optional configuration object for the retrieval process. - * @returns A promise that resolves to an array of `Document` objects. - */ - async getRelevantDocuments(query, config) { - const parsedConfig = ensureConfig(parseCallbackConfigArg(config)); - const callbackManager_ = await CallbackManager.configure(parsedConfig.callbacks, this.callbacks, parsedConfig.tags, this.tags, parsedConfig.metadata, this.metadata, { verbose: this.verbose }); - const runManager = await callbackManager_?.handleRetrieverStart(this.toJSON(), query, parsedConfig.runId, void 0, void 0, void 0, parsedConfig.runName); - try { - const results = await this._getRelevantDocuments(query, runManager); - await runManager?.handleRetrieverEnd(results); - return results; - } catch (error) { - await runManager?.handleRetrieverError(error); - throw error; - } - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/stores.js -var stores_exports = {}; -__export(stores_exports, { - BaseStore: () => BaseStore$1, - InMemoryStore: () => InMemoryStore -}); -/** -* Abstract interface for a key-value store. -*/ -var BaseStore$1 = class extends Serializable {}; -/** -* In-memory implementation of the BaseStore using a dictionary. Used for -* storing key-value pairs in memory. -* @example -* ```typescript -* const store = new InMemoryStore(); -* await store.mset( -* Array.from({ length: 5 }).map((_, index) => [ -* `message:id:${index}`, -* index % 2 === 0 -* ? new AIMessage("ai stuff...") -* : new HumanMessage("human stuff..."), -* ]), -* ); -* -* const retrievedMessages = await store.mget(["message:id:0", "message:id:1"]); -* await store.mdelete(await store.yieldKeys("message:id:").toArray()); -* ``` -*/ -var InMemoryStore = class extends BaseStore$1 { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langchain", "storage"] - }); - Object.defineProperty(this, "store", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - } - /** - * Retrieves the values associated with the given keys from the store. - * @param keys Keys to retrieve values for. - * @returns Array of values associated with the given keys. - */ - async mget(keys) { - return keys.map((key$1) => this.store[key$1]); - } - /** - * Sets the values for the given keys in the store. - * @param keyValuePairs Array of key-value pairs to set in the store. - * @returns Promise that resolves when all key-value pairs have been set. - */ - async mset(keyValuePairs) { - for (const [key$1, value] of keyValuePairs) this.store[key$1] = value; - } - /** - * Deletes the given keys and their associated values from the store. - * @param keys Keys to delete from the store. - * @returns Promise that resolves when all keys have been deleted. - */ - async mdelete(keys) { - for (const key$1 of keys) delete this.store[key$1]; - } - /** - * Asynchronous generator that yields keys from the store. If a prefix is - * provided, it only yields keys that start with the prefix. - * @param prefix Optional prefix to filter keys. - * @returns AsyncGenerator that yields keys from the store. - */ - async *yieldKeys(prefix) { - const keys = Object.keys(this.store); - for (const key$1 of keys) if (prefix === void 0 || key$1.startsWith(prefix)) yield key$1; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/json_schema.js -var json_schema_exports = {}; -__export(json_schema_exports, { - Validator: () => Validator, - deepCompareStrict: () => deepCompareStrict, - toJsonSchema: () => toJsonSchema, - validatesOnlyStrings: () => validatesOnlyStrings -}); -/** -* Converts a Zod schema or JSON schema to a JSON schema. -* @param schema - The schema to convert. -* @returns The converted schema. -*/ -function toJsonSchema(schema) { - if (isZodSchema$1(schema)) return zodToJsonSchema(schema); - return schema; -} -/** -* Validates if a JSON schema validates only strings. May return false negatives in some edge cases -* (like recursive or unresolvable refs). -* -* @param schema - The schema to validate. -* @returns `true` if the schema validates only strings, `false` otherwise. -*/ -function validatesOnlyStrings(schema) { - if (!schema || typeof schema !== "object" || Object.keys(schema).length === 0 || Array.isArray(schema)) return false; - if ("type" in schema) { - if (typeof schema.type === "string") return schema.type === "string"; - if (Array.isArray(schema.type)) return schema.type.every((t) => t === "string"); - return false; - } - if ("enum" in schema) return Array.isArray(schema.enum) && schema.enum.length > 0 && schema.enum.every((val) => typeof val === "string"); - if ("const" in schema) return typeof schema.const === "string"; - if ("allOf" in schema && Array.isArray(schema.allOf)) return schema.allOf.some((subschema) => validatesOnlyStrings(subschema)); - if ("anyOf" in schema && Array.isArray(schema.anyOf) || "oneOf" in schema && Array.isArray(schema.oneOf)) { - const subschemas = "anyOf" in schema ? schema.anyOf : schema.oneOf; - return subschemas.length > 0 && subschemas.every((subschema) => validatesOnlyStrings(subschema)); - } - if ("not" in schema) return false; - if ("$ref" in schema && typeof schema.$ref === "string") { - const ref = schema.$ref; - const resolved = dereference(schema); - if (resolved[ref]) return validatesOnlyStrings(resolved[ref]); - return false; - } - return false; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/tools/types.js -/** -* Confirm whether the inputted tool is an instance of `StructuredToolInterface`. -* -* @param {StructuredToolInterface | JSONSchema | undefined} tool The tool to check if it is an instance of `StructuredToolInterface`. -* @returns {tool is StructuredToolInterface} Whether the inputted tool is an instance of `StructuredToolInterface`. -*/ -function isStructuredTool(tool$1) { - return tool$1 !== void 0 && Array.isArray(tool$1.lc_namespace); -} -/** -* Confirm whether the inputted tool is an instance of `RunnableToolLike`. -* -* @param {unknown | undefined} tool The tool to check if it is an instance of `RunnableToolLike`. -* @returns {tool is RunnableToolLike} Whether the inputted tool is an instance of `RunnableToolLike`. -*/ -function isRunnableToolLike(tool$1) { - return tool$1 !== void 0 && Runnable.isRunnable(tool$1) && "lc_name" in tool$1.constructor && typeof tool$1.constructor.lc_name === "function" && tool$1.constructor.lc_name() === "RunnableToolLike"; -} -/** -* Confirm whether or not the tool contains the necessary properties to be considered a `StructuredToolParams`. -* -* @param {unknown | undefined} tool The object to check if it is a `StructuredToolParams`. -* @returns {tool is StructuredToolParams} Whether the inputted object is a `StructuredToolParams`. -*/ -function isStructuredToolParams(tool$1) { - return !!tool$1 && typeof tool$1 === "object" && "name" in tool$1 && "schema" in tool$1 && (isZodSchema$1(tool$1.schema) || tool$1.schema != null && typeof tool$1.schema === "object" && "type" in tool$1.schema && typeof tool$1.schema.type === "string" && [ - "null", - "boolean", - "object", - "array", - "number", - "string" - ].includes(tool$1.schema.type)); -} -/** -* Whether or not the tool is one of StructuredTool, RunnableTool or StructuredToolParams. -* It returns `is StructuredToolParams` since that is the most minimal interface of the three, -* while still containing the necessary properties to be passed to a LLM for tool calling. -* -* @param {unknown | undefined} tool The tool to check if it is a LangChain tool. -* @returns {tool is StructuredToolParams} Whether the inputted tool is a LangChain tool. -*/ -function isLangChainTool(tool$1) { - return isStructuredToolParams(tool$1) || isRunnableToolLike(tool$1) || isStructuredTool(tool$1); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/tools/index.js -var tools_exports = {}; -__export(tools_exports, { - BaseToolkit: () => BaseToolkit, - DynamicStructuredTool: () => DynamicStructuredTool, - DynamicTool: () => DynamicTool, - StructuredTool: () => StructuredTool, - Tool: () => Tool, - ToolInputParsingException: () => ToolInputParsingException, - isLangChainTool: () => isLangChainTool, - isRunnableToolLike: () => isRunnableToolLike, - isStructuredTool: () => isStructuredTool, - isStructuredToolParams: () => isStructuredToolParams, - tool: () => tool -}); -/** -* Base class for Tools that accept input of any shape defined by a Zod schema. -*/ -var StructuredTool = class extends BaseLangChain { - get lc_namespace() { - return ["langchain", "tools"]; - } - constructor(fields) { - super(fields ?? {}); - /** - * Whether to return the tool's output directly. - * - * Setting this to true means that after the tool is called, - * an agent should stop looping. - */ - Object.defineProperty(this, "returnDirect", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "verboseParsingErrors", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - /** - * The tool response format. - * - * If "content" then the output of the tool is interpreted as the contents of a - * ToolMessage. If "content_and_artifact" then the output is expected to be a - * two-tuple corresponding to the (content, artifact) of a ToolMessage. - * - * @default "content" - */ - Object.defineProperty(this, "responseFormat", { - enumerable: true, - configurable: true, - writable: true, - value: "content" - }); - this.verboseParsingErrors = fields?.verboseParsingErrors ?? this.verboseParsingErrors; - this.responseFormat = fields?.responseFormat ?? this.responseFormat; - } - /** - * Invokes the tool with the provided input and configuration. - * @param input The input for the tool. - * @param config Optional configuration for the tool. - * @returns A Promise that resolves with the tool's output. - */ - async invoke(input, config) { - let toolInput; - let enrichedConfig = ensureConfig(config); - if (_isToolCall(input)) { - toolInput = input.args; - enrichedConfig = { - ...enrichedConfig, - toolCall: input - }; - } else toolInput = input; - return this.call(toolInput, enrichedConfig); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.3.0. - * - * Calls the tool with the provided argument, configuration, and tags. It - * parses the input according to the schema, handles any errors, and - * manages callbacks. - * @param arg The input argument for the tool. - * @param configArg Optional configuration or callbacks for the tool. - * @param tags Optional tags for the tool. - * @returns A Promise that resolves with a string. - */ - async call(arg, configArg, tags) { - const inputForValidation = _isToolCall(arg) ? arg.args : arg; - let parsed; - if (isZodSchema$1(this.schema)) try { - parsed = await this.schema.parseAsync(inputForValidation); - } catch (e) { - let message = `Received tool input did not match expected schema`; - if (this.verboseParsingErrors) message = `${message}\nDetails: ${e.message}`; - throw new ToolInputParsingException(message, JSON.stringify(arg)); - } - else { - const result$1 = validate(inputForValidation, this.schema); - if (!result$1.valid) { - let message = `Received tool input did not match expected schema`; - if (this.verboseParsingErrors) message = `${message}\nDetails: ${result$1.errors.map((e) => `${e.keywordLocation}: ${e.error}`).join("\n")}`; - throw new ToolInputParsingException(message, JSON.stringify(arg)); - } - parsed = inputForValidation; - } - const config = parseCallbackConfigArg(configArg); - const callbackManager_ = CallbackManager.configure(config.callbacks, this.callbacks, config.tags || tags, this.tags, config.metadata, this.metadata, { verbose: this.verbose }); - const runManager = await callbackManager_?.handleToolStart(this.toJSON(), typeof arg === "string" ? arg : JSON.stringify(arg), config.runId, void 0, void 0, void 0, config.runName); - delete config.runId; - let result; - try { - result = await this._call(parsed, runManager, config); - } catch (e) { - await runManager?.handleToolError(e); - throw e; - } - let content; - let artifact; - if (this.responseFormat === "content_and_artifact") if (Array.isArray(result) && result.length === 2) [content, artifact] = result; - else throw new Error(`Tool response format is "content_and_artifact" but the output was not a two-tuple.\nResult: ${JSON.stringify(result)}`); - else content = result; - let toolCallId; - if (_isToolCall(arg)) toolCallId = arg.id; - if (!toolCallId && _configHasToolCallId(config)) toolCallId = config.toolCall.id; - const formattedOutput = _formatToolOutput({ - content, - artifact, - toolCallId, - name: this.name - }); - await runManager?.handleToolEnd(formattedOutput); - return formattedOutput; - } -}; -/** -* Base class for Tools that accept input as a string. -*/ -var Tool = class extends StructuredTool { - constructor(fields) { - super(fields); - Object.defineProperty(this, "schema", { - enumerable: true, - configurable: true, - writable: true, - value: objectType({ input: stringType().optional() }).transform((obj) => obj.input) - }); - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.3.0. - * - * Calls the tool with the provided argument and callbacks. It handles - * string inputs specifically. - * @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema. - * @param callbacks Optional callbacks for the tool. - * @returns A Promise that resolves with a string. - */ - call(arg, callbacks) { - const structuredArg = typeof arg === "string" || arg == null ? { input: arg } : arg; - return super.call(structuredArg, callbacks); - } -}; -/** -* A tool that can be created dynamically from a function, name, and description. -*/ -var DynamicTool = class extends Tool { - static lc_name() { - return "DynamicTool"; - } - constructor(fields) { - super(fields); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "description", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = fields.name; - this.description = fields.description; - this.func = fields.func; - this.returnDirect = fields.returnDirect ?? this.returnDirect; - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.3.0. - */ - async call(arg, configArg) { - const config = parseCallbackConfigArg(configArg); - if (config.runName === void 0) config.runName = this.name; - return super.call(arg, config); - } - /** @ignore */ - async _call(input, runManager, parentConfig) { - return this.func(input, runManager, parentConfig); - } -}; -/** -* A tool that can be created dynamically from a function, name, and -* description, designed to work with structured data. It extends the -* StructuredTool class and overrides the _call method to execute the -* provided function when the tool is called. -* -* Schema can be passed as Zod or JSON schema. The tool will not validate -* input if JSON schema is passed. -*/ -var DynamicStructuredTool = class extends StructuredTool { - static lc_name() { - return "DynamicStructuredTool"; - } - constructor(fields) { - super(fields); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "description", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "schema", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = fields.name; - this.description = fields.description; - this.func = fields.func; - this.returnDirect = fields.returnDirect ?? this.returnDirect; - this.schema = fields.schema; - } - /** - * @deprecated Use .invoke() instead. Will be removed in 0.3.0. - */ - async call(arg, configArg, tags) { - const config = parseCallbackConfigArg(configArg); - if (config.runName === void 0) config.runName = this.name; - return super.call(arg, config, tags); - } - _call(arg, runManager, parentConfig) { - return this.func(arg, runManager, parentConfig); - } -}; -/** -* Abstract base class for toolkits in LangChain. Toolkits are collections -* of tools that agents can use. Subclasses must implement the `tools` -* property to provide the specific tools for the toolkit. -*/ -var BaseToolkit = class { - getTools() { - return this.tools; - } -}; -function tool(func, fields) { - const isShapelessZodSchema = fields.schema && isZodSchema$1(fields.schema) && (!("shape" in fields.schema) || !fields.schema.shape); - const isStringJSONSchema = validatesOnlyStrings(fields.schema); - if (!fields.schema || isShapelessZodSchema || isStringJSONSchema) return new DynamicTool({ - ...fields, - description: fields.description ?? fields.schema?.description ?? `${fields.name} tool`, - func: async (input, runManager, config) => { - return new Promise((resolve, reject) => { - const childConfig = patchConfig(config, { callbacks: runManager?.getChild() }); - AsyncLocalStorageProviderSingleton.runWithConfig(pickRunnableConfigKeys(childConfig), async () => { - try { - resolve(func(input, childConfig)); - } catch (e) { - reject(e); - } - }); - }); - } - }); - const schema = fields.schema; - const description = fields.description ?? fields.schema.description ?? `${fields.name} tool`; - return new DynamicStructuredTool({ - ...fields, - description, - schema, - func: async (input, runManager, config) => { - return new Promise((resolve, reject) => { - const childConfig = patchConfig(config, { callbacks: runManager?.getChild() }); - AsyncLocalStorageProviderSingleton.runWithConfig(pickRunnableConfigKeys(childConfig), async () => { - try { - resolve(func(input, childConfig)); - } catch (e) { - reject(e); - } - }); - }); - } - }); -} -function _formatToolOutput(params) { - const { content, artifact, toolCallId } = params; - if (toolCallId && !isDirectToolOutput(content)) if (typeof content === "string" || Array.isArray(content) && content.every((item) => typeof item === "object")) return new ToolMessage({ - content, - artifact, - tool_call_id: toolCallId, - name: params.name - }); - else return new ToolMessage({ - content: _stringify(content), - artifact, - tool_call_id: toolCallId, - name: params.name - }); - else return content; -} -function _stringify(content) { - try { - return JSON.stringify(content, null, 2) ?? ""; - } catch (_noOp) { - return `${content}`; - } -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/tracers/tracer_langchain_v1.js -var tracer_langchain_v1_exports = {}; -__export(tracer_langchain_v1_exports, { LangChainTracerV1: () => LangChainTracerV1 }); -/** @deprecated Use LangChainTracer instead. */ -var LangChainTracerV1 = class extends BaseTracer { - constructor() { - super(); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "langchain_tracer" - }); - Object.defineProperty(this, "endpoint", { - enumerable: true, - configurable: true, - writable: true, - value: getEnvironmentVariable("LANGCHAIN_ENDPOINT") || "http://localhost:1984" - }); - Object.defineProperty(this, "headers", { - enumerable: true, - configurable: true, - writable: true, - value: { "Content-Type": "application/json" } - }); - Object.defineProperty(this, "session", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - const apiKey = getEnvironmentVariable("LANGCHAIN_API_KEY"); - if (apiKey) this.headers["x-api-key"] = apiKey; - } - async newSession(sessionName) { - const sessionCreate = { - start_time: Date.now(), - name: sessionName - }; - const session = await this.persistSession(sessionCreate); - this.session = session; - return session; - } - async loadSession(sessionName) { - const endpoint = `${this.endpoint}/sessions?name=${sessionName}`; - return this._handleSessionResponse(endpoint); - } - async loadDefaultSession() { - const endpoint = `${this.endpoint}/sessions?name=default`; - return this._handleSessionResponse(endpoint); - } - async convertV2RunToRun(run) { - const session = this.session ?? await this.loadDefaultSession(); - const serialized = run.serialized; - let runResult; - if (run.run_type === "llm") { - const prompts = run.inputs.prompts ? run.inputs.prompts : run.inputs.messages.map((x) => getBufferString(x)); - const llmRun = { - uuid: run.id, - start_time: run.start_time, - end_time: run.end_time, - execution_order: run.execution_order, - child_execution_order: run.child_execution_order, - serialized, - type: run.run_type, - session_id: session.id, - prompts, - response: run.outputs - }; - runResult = llmRun; - } else if (run.run_type === "chain") { - const child_runs = await Promise.all(run.child_runs.map((child_run) => this.convertV2RunToRun(child_run))); - const chainRun = { - uuid: run.id, - start_time: run.start_time, - end_time: run.end_time, - execution_order: run.execution_order, - child_execution_order: run.child_execution_order, - serialized, - type: run.run_type, - session_id: session.id, - inputs: run.inputs, - outputs: run.outputs, - child_llm_runs: child_runs.filter((child_run) => child_run.type === "llm"), - child_chain_runs: child_runs.filter((child_run) => child_run.type === "chain"), - child_tool_runs: child_runs.filter((child_run) => child_run.type === "tool") - }; - runResult = chainRun; - } else if (run.run_type === "tool") { - const child_runs = await Promise.all(run.child_runs.map((child_run) => this.convertV2RunToRun(child_run))); - const toolRun = { - uuid: run.id, - start_time: run.start_time, - end_time: run.end_time, - execution_order: run.execution_order, - child_execution_order: run.child_execution_order, - serialized, - type: run.run_type, - session_id: session.id, - tool_input: run.inputs.input, - output: run.outputs?.output, - action: JSON.stringify(serialized), - child_llm_runs: child_runs.filter((child_run) => child_run.type === "llm"), - child_chain_runs: child_runs.filter((child_run) => child_run.type === "chain"), - child_tool_runs: child_runs.filter((child_run) => child_run.type === "tool") - }; - runResult = toolRun; - } else throw new Error(`Unknown run type: ${run.run_type}`); - return runResult; - } - async persistRun(run) { - let endpoint; - let v1Run; - if (run.run_type !== void 0) v1Run = await this.convertV2RunToRun(run); - else v1Run = run; - if (v1Run.type === "llm") endpoint = `${this.endpoint}/llm-runs`; - else if (v1Run.type === "chain") endpoint = `${this.endpoint}/chain-runs`; - else endpoint = `${this.endpoint}/tool-runs`; - const response = await fetch(endpoint, { - method: "POST", - headers: this.headers, - body: JSON.stringify(v1Run) - }); - if (!response.ok) console.error(`Failed to persist run: ${response.status} ${response.statusText}`); - } - async persistSession(sessionCreate) { - const endpoint = `${this.endpoint}/sessions`; - const response = await fetch(endpoint, { - method: "POST", - headers: this.headers, - body: JSON.stringify(sessionCreate) - }); - if (!response.ok) { - console.error(`Failed to persist session: ${response.status} ${response.statusText}, using default session.`); - return { - id: 1, - ...sessionCreate - }; - } - return { - id: (await response.json()).id, - ...sessionCreate - }; - } - async _handleSessionResponse(endpoint) { - const response = await fetch(endpoint, { - method: "GET", - headers: this.headers - }); - let tracerSession; - if (!response.ok) { - console.error(`Failed to load session: ${response.status} ${response.statusText}`); - tracerSession = { - id: 1, - start_time: Date.now() - }; - this.session = tracerSession; - return tracerSession; - } - const resp = await response.json(); - if (resp.length === 0) { - tracerSession = { - id: 1, - start_time: Date.now() - }; - this.session = tracerSession; - return tracerSession; - } - [tracerSession] = resp; - this.session = tracerSession; - return tracerSession; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/tracers/initialize.js -var initialize_exports = {}; -__export(initialize_exports, { - getTracingCallbackHandler: () => getTracingCallbackHandler, - getTracingV2CallbackHandler: () => getTracingV2CallbackHandler -}); -/** -* @deprecated Use the V2 handler instead. -* -* Function that returns an instance of `LangChainTracerV1`. If a session -* is provided, it loads that session into the tracer; otherwise, it loads -* a default session. -* @param session Optional session to load into the tracer. -* @returns An instance of `LangChainTracerV1`. -*/ -async function getTracingCallbackHandler(session) { - const tracer = new LangChainTracerV1(); - if (session) await tracer.loadSession(session); - else await tracer.loadDefaultSession(); - return tracer; -} -/** -* @deprecated Instantiate directly using the LangChainTracer constructor. -* -* Function that returns an instance of `LangChainTracer`. It does not -* load any session data. -* @returns An instance of `LangChainTracer`. -*/ -async function getTracingV2CallbackHandler() { - return new LangChainTracer(); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/tracers/run_collector.js -var run_collector_exports = {}; -__export(run_collector_exports, { RunCollectorCallbackHandler: () => RunCollectorCallbackHandler }); -/** -* A callback handler that collects traced runs and makes it easy to fetch the traced run object from calls through any langchain object. -* For instance, it makes it easy to fetch the run ID and then do things with that, such as log feedback. -*/ -var RunCollectorCallbackHandler = class extends BaseTracer { - /** - * Creates a new instance of the RunCollectorCallbackHandler class. - * @param exampleId The ID of the example. - */ - constructor({ exampleId } = {}) { - super({ _awaitHandler: true }); - /** The name of the callback handler. */ - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "run_collector" - }); - /** The ID of the example. */ - Object.defineProperty(this, "exampleId", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** An array of traced runs. */ - Object.defineProperty(this, "tracedRuns", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.exampleId = exampleId; - this.tracedRuns = []; - } - /** - * Persists the given run object. - * @param run The run object to persist. - */ - async persistRun(run) { - const run_ = { ...run }; - run_.reference_example_id = this.exampleId; - this.tracedRuns.push(run_); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/chunk_array.js -var chunk_array_exports = {}; -__export(chunk_array_exports, { chunkArray: () => chunkArray }); -const chunkArray = (arr$1, chunkSize) => arr$1.reduce((chunks, elem, index) => { - const chunkIndex = Math.floor(index / chunkSize); - const chunk = chunks[chunkIndex] || []; - chunks[chunkIndex] = chunk.concat([elem]); - return chunks; -}, []); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/function_calling.js -var function_calling_exports = {}; -__export(function_calling_exports, { - convertToOpenAIFunction: () => convertToOpenAIFunction, - convertToOpenAITool: () => convertToOpenAITool, - isLangChainTool: () => isLangChainTool, - isRunnableToolLike: () => isRunnableToolLike, - isStructuredTool: () => isStructuredTool, - isStructuredToolParams: () => isStructuredToolParams -}); -/** -* Formats a `StructuredTool` or `RunnableToolLike` instance into a format -* that is compatible with OpenAI function calling. If `StructuredTool` or -* `RunnableToolLike` has a zod schema, it uses the `zodToJsonSchema` -* function to convert the schema of the `StructuredTool` or `RunnableToolLike` -* into a JSON schema, which is then used as the parameters for the OpenAI function. -* -* @param {StructuredToolInterface | RunnableToolLike} tool The tool to convert to an OpenAI function. -* @returns {FunctionDefinition} The inputted tool in OpenAI function format. -*/ -function convertToOpenAIFunction(tool$1, fields) { - const fieldsCopy = typeof fields === "number" ? void 0 : fields; - return { - name: tool$1.name, - description: tool$1.description, - parameters: toJsonSchema(tool$1.schema), - ...fieldsCopy?.strict !== void 0 ? { strict: fieldsCopy.strict } : {} - }; -} -/** -* Formats a `StructuredTool` or `RunnableToolLike` instance into a -* format that is compatible with OpenAI tool calling. If `StructuredTool` or -* `RunnableToolLike` has a zod schema, it uses the `zodToJsonSchema` -* function to convert the schema of the `StructuredTool` or `RunnableToolLike` -* into a JSON schema, which is then used as the parameters for the OpenAI tool. -* -* @param {StructuredToolInterface | Record | RunnableToolLike} tool The tool to convert to an OpenAI tool. -* @returns {ToolDefinition} The inputted tool in OpenAI tool format. -*/ -function convertToOpenAITool(tool$1, fields) { - const fieldsCopy = typeof fields === "number" ? void 0 : fields; - let toolDef; - if (isLangChainTool(tool$1)) toolDef = { - type: "function", - function: convertToOpenAIFunction(tool$1) - }; - else toolDef = tool$1; - if (fieldsCopy?.strict !== void 0) toolDef.function.strict = fieldsCopy.strict; - return toolDef; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/ml-distance/similarities.js -/** -* Returns the average of cosine distances between vectors a and b -* @param a - first vector -* @param b - second vector -* -*/ -function cosine(a, b) { - let p = 0; - let p2 = 0; - let q2 = 0; - for (let i$4 = 0; i$4 < a.length; i$4++) { - p += a[i$4] * b[i$4]; - p2 += a[i$4] * a[i$4]; - q2 += b[i$4] * b[i$4]; - } - return p / (Math.sqrt(p2) * Math.sqrt(q2)); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/ml-distance/distances.js -/** -*Returns the Inner Product similarity between vectors a and b -* @link [Inner Product Similarity algorithm](https://www.naun.org/main/NAUN/ijmmas/mmmas-49.pdf) -* @param a - first vector -* @param b - second vector -* -*/ -function innerProduct(a, b) { - let ans = 0; - for (let i$4 = 0; i$4 < a.length; i$4++) ans += a[i$4] * b[i$4]; - return ans; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.js -function squaredEuclidean(p, q) { - let d$1 = 0; - for (let i$4 = 0; i$4 < p.length; i$4++) d$1 += (p[i$4] - q[i$4]) * (p[i$4] - q[i$4]); - return d$1; -} -function euclidean(p, q) { - return Math.sqrt(squaredEuclidean(p, q)); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/math.js -var math_exports = {}; -__export(math_exports, { - cosineSimilarity: () => cosineSimilarity, - euclideanDistance: () => euclideanDistance, - innerProduct: () => innerProduct$1, - matrixFunc: () => matrixFunc, - maximalMarginalRelevance: () => maximalMarginalRelevance, - normalize: () => normalize$1 -}); -/** -* Apply a row-wise function between two matrices with the same number of columns. -* -* @param {number[][]} X - The first matrix. -* @param {number[][]} Y - The second matrix. -* @param {VectorFunction} func - The function to apply. -* -* @throws {Error} If the number of columns in X and Y are not the same. -* -* @returns {number[][] | [[]]} A matrix where each row represents the result of applying the function between the corresponding rows of X and Y. -*/ -function matrixFunc(X, Y, func) { - if (X.length === 0 || X[0].length === 0 || Y.length === 0 || Y[0].length === 0) return [[]]; - if (X[0].length !== Y[0].length) throw new Error(`Number of columns in X and Y must be the same. X has shape ${[X.length, X[0].length]} and Y has shape ${[Y.length, Y[0].length]}.`); - return X.map((xVector) => Y.map((yVector) => func(xVector, yVector)).map((similarity) => Number.isNaN(similarity) ? 0 : similarity)); -} -function normalize$1(M, similarity = false) { - const max = matrixMaxVal(M); - return M.map((row) => row.map((val) => similarity ? 1 - val / max : val / max)); -} -/** -* This function calculates the row-wise cosine similarity between two matrices with the same number of columns. -* -* @param {number[][]} X - The first matrix. -* @param {number[][]} Y - The second matrix. -* -* @throws {Error} If the number of columns in X and Y are not the same. -* -* @returns {number[][] | [[]]} A matrix where each row represents the cosine similarity values between the corresponding rows of X and Y. -*/ -function cosineSimilarity(X, Y) { - return matrixFunc(X, Y, cosine); -} -function innerProduct$1(X, Y) { - return matrixFunc(X, Y, innerProduct); -} -function euclideanDistance(X, Y) { - return matrixFunc(X, Y, euclidean); -} -/** -* This function implements the Maximal Marginal Relevance algorithm -* to select a set of embeddings that maximizes the diversity and relevance to a query embedding. -* -* @param {number[]|number[][]} queryEmbedding - The query embedding. -* @param {number[][]} embeddingList - The list of embeddings to select from. -* @param {number} [lambda=0.5] - The trade-off parameter between relevance and diversity. -* @param {number} [k=4] - The maximum number of embeddings to select. -* -* @returns {number[]} The indexes of the selected embeddings in the embeddingList. -*/ -function maximalMarginalRelevance(queryEmbedding, embeddingList, lambda = .5, k = 4) { - if (Math.min(k, embeddingList.length) <= 0) return []; - const queryEmbeddingExpanded = Array.isArray(queryEmbedding[0]) ? queryEmbedding : [queryEmbedding]; - const similarityToQuery = cosineSimilarity(queryEmbeddingExpanded, embeddingList)[0]; - const mostSimilarEmbeddingIndex = argMax(similarityToQuery).maxIndex; - const selectedEmbeddings = [embeddingList[mostSimilarEmbeddingIndex]]; - const selectedEmbeddingsIndexes = [mostSimilarEmbeddingIndex]; - while (selectedEmbeddingsIndexes.length < Math.min(k, embeddingList.length)) { - let bestScore = -Infinity; - let bestIndex = -1; - const similarityToSelected = cosineSimilarity(embeddingList, selectedEmbeddings); - similarityToQuery.forEach((queryScore, queryScoreIndex) => { - if (selectedEmbeddingsIndexes.includes(queryScoreIndex)) return; - const maxSimilarityToSelected = Math.max(...similarityToSelected[queryScoreIndex]); - const score = lambda * queryScore - (1 - lambda) * maxSimilarityToSelected; - if (score > bestScore) { - bestScore = score; - bestIndex = queryScoreIndex; - } - }); - selectedEmbeddings.push(embeddingList[bestIndex]); - selectedEmbeddingsIndexes.push(bestIndex); - } - return selectedEmbeddingsIndexes; -} -/** -* Finds the index of the maximum value in the given array. -* @param {number[]} array - The input array. -* -* @returns {number} The index of the maximum value in the array. If the array is empty, returns -1. -*/ -function argMax(array) { - if (array.length === 0) return { - maxIndex: -1, - maxValue: NaN - }; - let maxValue = array[0]; - let maxIndex = 0; - for (let i$4 = 1; i$4 < array.length; i$4 += 1) if (array[i$4] > maxValue) { - maxIndex = i$4; - maxValue = array[i$4]; - } - return { - maxIndex, - maxValue - }; -} -function matrixMaxVal(arrays) { - return arrays.reduce((acc, array) => Math.max(acc, argMax(array).maxValue), 0); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/vectorstores.js -var vectorstores_exports = {}; -__export(vectorstores_exports, { - SaveableVectorStore: () => SaveableVectorStore, - VectorStore: () => VectorStore, - VectorStoreRetriever: () => VectorStoreRetriever -}); -/** -* Class for retrieving documents from a `VectorStore` based on vector similarity -* or maximal marginal relevance (MMR). -* -* `VectorStoreRetriever` extends `BaseRetriever`, implementing methods for -* adding documents to the underlying vector store and performing document -* retrieval with optional configurations. -* -* @class VectorStoreRetriever -* @extends BaseRetriever -* @implements VectorStoreRetrieverInterface -* @template V - Type of vector store implementing `VectorStoreInterface`. -*/ -var VectorStoreRetriever = class extends BaseRetriever { - static lc_name() { - return "VectorStoreRetriever"; - } - get lc_namespace() { - return ["langchain_core", "vectorstores"]; - } - /** - * Returns the type of vector store, as defined by the `vectorStore` instance. - * - * @returns {string} The vector store type. - */ - _vectorstoreType() { - return this.vectorStore._vectorstoreType(); - } - /** - * Initializes a new instance of `VectorStoreRetriever` with the specified configuration. - * - * This constructor configures the retriever to interact with a given `VectorStore` - * and supports different retrieval strategies, including similarity search and maximal - * marginal relevance (MMR) search. Various options allow customization of the number - * of documents retrieved per query, filtering based on conditions, and fine-tuning - * MMR-specific parameters. - * - * @param fields - Configuration options for setting up the retriever: - * - * - `vectorStore` (required): The `VectorStore` instance implementing `VectorStoreInterface` - * that will be used to store and retrieve document embeddings. This is the core component - * of the retriever, enabling vector-based similarity and MMR searches. - * - * - `k` (optional): Specifies the number of documents to retrieve per search query. If not - * provided, defaults to 4. This count determines the number of most relevant documents returned - * for each search operation, balancing performance with comprehensiveness. - * - * - `searchType` (optional): Defines the search approach used by the retriever, allowing for - * flexibility between two methods: - * - `"similarity"` (default): A similarity-based search, retrieving documents with high vector - * similarity to the query. This type prioritizes relevance and is often used when diversity - * among results is less critical. - * - `"mmr"`: Maximal Marginal Relevance search, which combines relevance with diversity. MMR - * is useful for scenarios where varied content is essential, as it selects results that - * both match the query and introduce content diversity. - * - * - `filter` (optional): A filter of type `FilterType`, defined by the vector store, that allows - * for refined and targeted search results. This filter applies specified conditions to limit - * which documents are eligible for retrieval, offering control over the scope of results. - * - * - `searchKwargs` (optional, applicable only if `searchType` is `"mmr"`): Additional settings - * for configuring MMR-specific behavior. These parameters allow further tuning of the MMR - * search process: - * - `fetchK`: The initial number of documents fetched from the vector store before the MMR - * algorithm is applied. Fetching a larger set enables the algorithm to select a more - * diverse subset of documents. - * - `lambda`: A parameter controlling the relevance-diversity balance, where 0 emphasizes - * diversity and 1 prioritizes relevance. Intermediate values provide a blend of the two, - * allowing customization based on the importance of content variety relative to query relevance. - */ - constructor(fields) { - super(fields); - /** - * The instance of `VectorStore` used for storing and retrieving document embeddings. - * This vector store must implement the `VectorStoreInterface` to be compatible - * with the retriever’s operations. - */ - Object.defineProperty(this, "vectorStore", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Specifies the number of documents to retrieve for each search query. - * Defaults to 4 if not specified, providing a basic result count for similarity or MMR searches. - */ - Object.defineProperty(this, "k", { - enumerable: true, - configurable: true, - writable: true, - value: 4 - }); - /** - * Determines the type of search operation to perform on the vector store. - * - * - `"similarity"` (default): Conducts a similarity search based purely on vector similarity - * to the query. - * - `"mmr"`: Executes a maximal marginal relevance (MMR) search, balancing relevance and - * diversity in the retrieved results. - */ - Object.defineProperty(this, "searchType", { - enumerable: true, - configurable: true, - writable: true, - value: "similarity" - }); - /** - * Additional options specific to maximal marginal relevance (MMR) search, applicable - * only if `searchType` is set to `"mmr"`. - * - * Includes: - * - `fetchK`: The initial number of documents fetched before applying the MMR algorithm, - * allowing for a larger selection from which to choose the most diverse results. - * - `lambda`: A parameter between 0 and 1 to adjust the relevance-diversity balance, - * where 0 prioritizes diversity and 1 prioritizes relevance. - */ - Object.defineProperty(this, "searchKwargs", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional filter applied to search results, defined by the `FilterType` of the vector store. - * Allows for refined, targeted results by restricting the returned documents based - * on specified filter criteria. - */ - Object.defineProperty(this, "filter", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.vectorStore = fields.vectorStore; - this.k = fields.k ?? this.k; - this.searchType = fields.searchType ?? this.searchType; - this.filter = fields.filter; - if (fields.searchType === "mmr") this.searchKwargs = fields.searchKwargs; - } - /** - * Retrieves relevant documents based on the specified query, using either - * similarity or maximal marginal relevance (MMR) search. - * - * If `searchType` is set to `"mmr"`, performs an MMR search to balance - * similarity and diversity among results. If `searchType` is `"similarity"`, - * retrieves results purely based on similarity to the query. - * - * @param query - The query string used to find relevant documents. - * @param runManager - Optional callback manager for tracking retrieval progress. - * @returns A promise that resolves to an array of `DocumentInterface` instances - * representing the most relevant documents to the query. - * @throws {Error} Throws an error if MMR search is requested but not supported - * by the vector store. - * @protected - */ - async _getRelevantDocuments(query, runManager) { - if (this.searchType === "mmr") { - if (typeof this.vectorStore.maxMarginalRelevanceSearch !== "function") throw new Error(`The vector store backing this retriever, ${this._vectorstoreType()} does not support max marginal relevance search.`); - return this.vectorStore.maxMarginalRelevanceSearch(query, { - k: this.k, - filter: this.filter, - ...this.searchKwargs - }, runManager?.getChild("vectorstore")); - } - return this.vectorStore.similaritySearch(query, this.k, this.filter, runManager?.getChild("vectorstore")); - } - /** - * Adds an array of documents to the vector store, embedding them as part of - * the storage process. - * - * This method delegates document embedding and storage to the `addDocuments` - * method of the underlying vector store. - * - * @param documents - An array of documents to embed and add to the vector store. - * @param options - Optional settings to customize document addition. - * @returns A promise that resolves to an array of document IDs or `void`, - * depending on the vector store's implementation. - */ - async addDocuments(documents, options) { - return this.vectorStore.addDocuments(documents, options); - } -}; -/** -* Abstract class representing a vector storage system for performing -* similarity searches on embedded documents. -* -* `VectorStore` provides methods for adding precomputed vectors or documents, -* removing documents based on criteria, and performing similarity searches -* with optional scoring. Subclasses are responsible for implementing specific -* storage mechanisms and the exact behavior of certain abstract methods. -* -* @abstract -* @extends Serializable -* @implements VectorStoreInterface -*/ -var VectorStore = class extends Serializable { - /** - * Initializes a new vector store with embeddings and database configuration. - * - * @param embeddings - Instance of `EmbeddingsInterface` used to embed queries. - * @param dbConfig - Configuration settings for the database or storage system. - */ - constructor(embeddings, dbConfig) { - super(dbConfig); - /** - * Namespace within LangChain to uniquely identify this vector store's - * location, based on the vector store type. - * - * @internal - */ - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "vectorstores", - this._vectorstoreType() - ] - }); - /** - * Embeddings interface for generating vector embeddings from text queries, - * enabling vector-based similarity searches. - */ - Object.defineProperty(this, "embeddings", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.embeddings = embeddings; - } - /** - * Deletes documents from the vector store based on the specified parameters. - * - * @param _params - Flexible key-value pairs defining conditions for document deletion. - * @returns A promise that resolves once the deletion is complete. - */ - async delete(_params) { - throw new Error("Not implemented."); - } - /** - * Searches for documents similar to a text query by embedding the query and - * performing a similarity search on the resulting vector. - * - * @param query - Text query for finding similar documents. - * @param k - Number of similar results to return. Defaults to 4. - * @param filter - Optional filter based on `FilterType`. - * @param _callbacks - Optional callbacks for monitoring search progress - * @returns A promise resolving to an array of `DocumentInterface` instances representing similar documents. - */ - async similaritySearch(query, k = 4, filter = void 0, _callbacks = void 0) { - const results = await this.similaritySearchVectorWithScore(await this.embeddings.embedQuery(query), k, filter); - return results.map((result) => result[0]); - } - /** - * Searches for documents similar to a text query by embedding the query, - * and returns results with similarity scores. - * - * @param query - Text query for finding similar documents. - * @param k - Number of similar results to return. Defaults to 4. - * @param filter - Optional filter based on `FilterType`. - * @param _callbacks - Optional callbacks for monitoring search progress - * @returns A promise resolving to an array of tuples, each containing a - * document and its similarity score. - */ - async similaritySearchWithScore(query, k = 4, filter = void 0, _callbacks = void 0) { - return this.similaritySearchVectorWithScore(await this.embeddings.embedQuery(query), k, filter); - } - /** - * Creates a `VectorStore` instance from an array of text strings and optional - * metadata, using the specified embeddings and database configuration. - * - * Subclasses must implement this method to define how text and metadata - * are embedded and stored in the vector store. Throws an error if not overridden. - * - * @param _texts - Array of strings representing the text documents to be stored. - * @param _metadatas - Metadata for the texts, either as an array (one for each text) - * or a single object (applied to all texts). - * @param _embeddings - Instance of `EmbeddingsInterface` to embed the texts. - * @param _dbConfig - Database configuration settings. - * @returns A promise that resolves to a new `VectorStore` instance. - * @throws {Error} Throws an error if this method is not overridden by a subclass. - */ - static fromTexts(_texts, _metadatas, _embeddings, _dbConfig) { - throw new Error("the Langchain vectorstore implementation you are using forgot to override this, please report a bug"); - } - /** - * Creates a `VectorStore` instance from an array of documents, using the specified - * embeddings and database configuration. - * - * Subclasses must implement this method to define how documents are embedded - * and stored. Throws an error if not overridden. - * - * @param _docs - Array of `DocumentInterface` instances representing the documents to be stored. - * @param _embeddings - Instance of `EmbeddingsInterface` to embed the documents. - * @param _dbConfig - Database configuration settings. - * @returns A promise that resolves to a new `VectorStore` instance. - * @throws {Error} Throws an error if this method is not overridden by a subclass. - */ - static fromDocuments(_docs, _embeddings, _dbConfig) { - throw new Error("the Langchain vectorstore implementation you are using forgot to override this, please report a bug"); - } - /** - * Creates a `VectorStoreRetriever` instance with flexible configuration options. - * - * @param kOrFields - * - If a number is provided, it sets the `k` parameter (number of items to retrieve). - * - If an object is provided, it should contain various configuration options. - * @param filter - * - Optional filter criteria to limit the items retrieved based on the specified filter type. - * @param callbacks - * - Optional callbacks that may be triggered at specific stages of the retrieval process. - * @param tags - * - Tags to categorize or label the `VectorStoreRetriever`. Defaults to an empty array if not provided. - * @param metadata - * - Additional metadata as key-value pairs to add contextual information for the retrieval process. - * @param verbose - * - If `true`, enables detailed logging for the retrieval process. Defaults to `false`. - * - * @returns - * - A configured `VectorStoreRetriever` instance based on the provided parameters. - * - * @example - * Basic usage with a `k` value: - * ```typescript - * const retriever = myVectorStore.asRetriever(5); - * ``` - * - * Usage with a configuration object: - * ```typescript - * const retriever = myVectorStore.asRetriever({ - * k: 10, - * filter: myFilter, - * tags: ['example', 'test'], - * verbose: true, - * searchType: 'mmr', - * searchKwargs: { alpha: 0.5 }, - * }); - * ``` - */ - asRetriever(kOrFields, filter, callbacks, tags, metadata, verbose) { - if (typeof kOrFields === "number") return new VectorStoreRetriever({ - vectorStore: this, - k: kOrFields, - filter, - tags: [...tags ?? [], this._vectorstoreType()], - metadata, - verbose, - callbacks - }); - else { - const params = { - vectorStore: this, - k: kOrFields?.k, - filter: kOrFields?.filter, - tags: [...kOrFields?.tags ?? [], this._vectorstoreType()], - metadata: kOrFields?.metadata, - verbose: kOrFields?.verbose, - callbacks: kOrFields?.callbacks, - searchType: kOrFields?.searchType - }; - if (kOrFields?.searchType === "mmr") return new VectorStoreRetriever({ - ...params, - searchKwargs: kOrFields.searchKwargs - }); - return new VectorStoreRetriever({ ...params }); - } - } -}; -/** -* Abstract class extending `VectorStore` that defines a contract for saving -* and loading vector store instances. -* -* The `SaveableVectorStore` class allows vector store implementations to -* persist their data and retrieve it when needed.The format for saving and -* loading data is left to the implementing subclass. -* -* Subclasses must implement the `save` method to handle their custom -* serialization logic, while the `load` method enables reconstruction of a -* vector store from saved data, requiring compatible embeddings through the -* `EmbeddingsInterface`. -* -* @abstract -* @extends VectorStore -*/ -var SaveableVectorStore = class extends VectorStore { - /** - * Loads a vector store instance from the specified directory, using the - * provided embeddings to ensure compatibility. - * - * This static method reconstructs a `SaveableVectorStore` from previously - * saved data. Implementations should interpret the saved data format to - * recreate the vector store instance. - * - * @param _directory - The directory path from which the vector store - * data will be loaded. - * @param _embeddings - An instance of `EmbeddingsInterface` to align - * the embeddings with the loaded vector data. - * @returns A promise that resolves to a `SaveableVectorStore` instance - * constructed from the saved data. - */ - static load(_directory, _embeddings) { - throw new Error("Not implemented"); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/testing/index.js -var testing_exports = {}; -__export(testing_exports, { - FakeChatMessageHistory: () => FakeChatMessageHistory, - FakeChatModel: () => FakeChatModel, - FakeEmbeddings: () => FakeEmbeddings, - FakeLLM: () => FakeLLM, - FakeListChatMessageHistory: () => FakeListChatMessageHistory, - FakeListChatModel: () => FakeListChatModel, - FakeRetriever: () => FakeRetriever, - FakeRunnable: () => FakeRunnable, - FakeSplitIntoListParser: () => FakeSplitIntoListParser, - FakeStreamingChatModel: () => FakeStreamingChatModel, - FakeStreamingLLM: () => FakeStreamingLLM, - FakeTool: () => FakeTool, - FakeTracer: () => FakeTracer, - FakeVectorStore: () => FakeVectorStore, - SingleRunExtractor: () => SingleRunExtractor, - SyntheticEmbeddings: () => SyntheticEmbeddings -}); -/** -* Parser for comma-separated values. It splits the input text by commas -* and trims the resulting values. -*/ -var FakeSplitIntoListParser = class extends BaseOutputParser { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["tests", "fake"] - }); - } - getFormatInstructions() { - return ""; - } - async parse(text) { - return text.split(",").map((value) => value.trim()); - } -}; -var FakeRunnable = class extends Runnable { - constructor(fields) { - super(fields); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["tests", "fake"] - }); - Object.defineProperty(this, "returnOptions", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.returnOptions = fields.returnOptions; - } - async invoke(input, options) { - if (this.returnOptions) return options ?? {}; - return { input }; - } -}; -var FakeLLM = class extends LLM { - constructor(fields) { - super(fields); - Object.defineProperty(this, "response", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "thrownErrorString", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.response = fields.response; - this.thrownErrorString = fields.thrownErrorString; - } - _llmType() { - return "fake"; - } - async _call(prompt, _options, runManager) { - if (this.thrownErrorString) throw new Error(this.thrownErrorString); - const response = this.response ?? prompt; - await runManager?.handleLLMNewToken(response); - return response; - } -}; -var FakeStreamingLLM = class extends LLM { - constructor(fields) { - super(fields); - Object.defineProperty(this, "sleep", { - enumerable: true, - configurable: true, - writable: true, - value: 50 - }); - Object.defineProperty(this, "responses", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "thrownErrorString", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.sleep = fields.sleep ?? this.sleep; - this.responses = fields.responses; - this.thrownErrorString = fields.thrownErrorString; - } - _llmType() { - return "fake"; - } - async _call(prompt) { - if (this.thrownErrorString) throw new Error(this.thrownErrorString); - const response = this.responses?.[0]; - this.responses = this.responses?.slice(1); - return response ?? prompt; - } - async *_streamResponseChunks(input, _options, runManager) { - if (this.thrownErrorString) throw new Error(this.thrownErrorString); - const response = this.responses?.[0]; - this.responses = this.responses?.slice(1); - for (const c of response ?? input) { - await new Promise((resolve) => setTimeout(resolve, this.sleep)); - yield { - text: c, - generationInfo: {} - }; - await runManager?.handleLLMNewToken(c); - } - } -}; -var FakeChatModel = class extends BaseChatModel { - _combineLLMOutput() { - return []; - } - _llmType() { - return "fake"; - } - async _generate(messages, options, runManager) { - if (options?.stop?.length) return { generations: [{ - message: new AIMessage(options.stop[0]), - text: options.stop[0] - }] }; - const text = messages.map((m$1) => { - if (typeof m$1.content === "string") return m$1.content; - return JSON.stringify(m$1.content, null, 2); - }).join("\n"); - await runManager?.handleLLMNewToken(text); - return { - generations: [{ - message: new AIMessage(text), - text - }], - llmOutput: {} - }; - } -}; -var FakeStreamingChatModel = class FakeStreamingChatModel extends BaseChatModel { - constructor({ sleep: sleep$1 = 50, responses = [], chunks = [], toolStyle = "openai", thrownErrorString,...rest }) { - super(rest); - Object.defineProperty(this, "sleep", { - enumerable: true, - configurable: true, - writable: true, - value: 50 - }); - Object.defineProperty(this, "responses", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "chunks", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "toolStyle", { - enumerable: true, - configurable: true, - writable: true, - value: "openai" - }); - Object.defineProperty(this, "thrownErrorString", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "tools", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.sleep = sleep$1; - this.responses = responses; - this.chunks = chunks; - this.toolStyle = toolStyle; - this.thrownErrorString = thrownErrorString; - } - _llmType() { - return "fake"; - } - bindTools(tools) { - const merged = [...this.tools, ...tools]; - const toolDicts = merged.map((t) => { - switch (this.toolStyle) { - case "openai": return { - type: "function", - function: { - name: t.name, - description: t.description, - parameters: toJsonSchema(t.schema) - } - }; - case "anthropic": return { - name: t.name, - description: t.description, - input_schema: toJsonSchema(t.schema) - }; - case "bedrock": return { toolSpec: { - name: t.name, - description: t.description, - inputSchema: toJsonSchema(t.schema) - } }; - case "google": return { - name: t.name, - description: t.description, - parameters: toJsonSchema(t.schema) - }; - default: throw new Error(`Unsupported tool style: ${this.toolStyle}`); - } - }); - const wrapped = this.toolStyle === "google" ? [{ functionDeclarations: toolDicts }] : toolDicts; - const next = new FakeStreamingChatModel({ - sleep: this.sleep, - responses: this.responses, - chunks: this.chunks, - toolStyle: this.toolStyle, - thrownErrorString: this.thrownErrorString - }); - next.tools = merged; - return next.withConfig({ tools: wrapped }); - } - async _generate(messages, _options, _runManager) { - if (this.thrownErrorString) throw new Error(this.thrownErrorString); - const content = this.responses?.[0]?.content ?? messages[0].content ?? ""; - const generation = { generations: [{ - text: "", - message: new AIMessage({ - content, - tool_calls: this.chunks?.[0]?.tool_calls - }) - }] }; - return generation; - } - async *_streamResponseChunks(_messages, _options, runManager) { - if (this.thrownErrorString) throw new Error(this.thrownErrorString); - if (this.chunks?.length) { - for (const msgChunk of this.chunks) { - const cg = new ChatGenerationChunk({ - message: new AIMessageChunk({ - content: msgChunk.content, - tool_calls: msgChunk.tool_calls, - additional_kwargs: msgChunk.additional_kwargs ?? {} - }), - text: msgChunk.content?.toString() ?? "" - }); - yield cg; - await runManager?.handleLLMNewToken(msgChunk.content, void 0, void 0, void 0, void 0, { chunk: cg }); - } - return; - } - const fallback = this.responses?.[0] ?? new AIMessage(typeof _messages[0].content === "string" ? _messages[0].content : ""); - const text = typeof fallback.content === "string" ? fallback.content : ""; - for (const ch of text) { - await new Promise((r) => setTimeout(r, this.sleep)); - const cg = new ChatGenerationChunk({ - message: new AIMessageChunk({ content: ch }), - text: ch - }); - yield cg; - await runManager?.handleLLMNewToken(ch, void 0, void 0, void 0, void 0, { chunk: cg }); - } - } -}; -var FakeRetriever = class extends BaseRetriever { - constructor(fields) { - super(); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["test", "fake"] - }); - Object.defineProperty(this, "output", { - enumerable: true, - configurable: true, - writable: true, - value: [new Document({ pageContent: "foo" }), new Document({ pageContent: "bar" })] - }); - this.output = fields?.output ?? this.output; - } - async _getRelevantDocuments(_query) { - return this.output; - } -}; -/** -* A fake Chat Model that returns a predefined list of responses. It can be used -* for testing purposes. -* @example -* ```typescript -* const chat = new FakeListChatModel({ -* responses: ["I'll callback later.", "You 'console' them!"] -* }); -* -* const firstMessage = new HumanMessage("You want to hear a JavaScript joke?"); -* const secondMessage = new HumanMessage("How do you cheer up a JavaScript developer?"); -* -* // Call the chat model with a message and log the response -* const firstResponse = await chat.call([firstMessage]); -* console.log({ firstResponse }); -* -* const secondResponse = await chat.call([secondMessage]); -* console.log({ secondResponse }); -* ``` -*/ -var FakeListChatModel = class extends BaseChatModel { - static lc_name() { - return "FakeListChatModel"; - } - constructor(params) { - super(params); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "responses", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "i", { - enumerable: true, - configurable: true, - writable: true, - value: 0 - }); - Object.defineProperty(this, "sleep", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "emitCustomEvent", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - const { responses, sleep: sleep$1, emitCustomEvent } = params; - this.responses = responses; - this.sleep = sleep$1; - this.emitCustomEvent = emitCustomEvent ?? this.emitCustomEvent; - } - _combineLLMOutput() { - return []; - } - _llmType() { - return "fake-list"; - } - async _generate(_messages, options, runManager) { - await this._sleepIfRequested(); - if (options?.thrownErrorString) throw new Error(options.thrownErrorString); - if (this.emitCustomEvent) await runManager?.handleCustomEvent("some_test_event", { someval: true }); - if (options?.stop?.length) return { generations: [this._formatGeneration(options.stop[0])] }; - else { - const response = this._currentResponse(); - this._incrementResponse(); - return { - generations: [this._formatGeneration(response)], - llmOutput: {} - }; - } - } - _formatGeneration(text) { - return { - message: new AIMessage(text), - text - }; - } - async *_streamResponseChunks(_messages, options, runManager) { - const response = this._currentResponse(); - this._incrementResponse(); - if (this.emitCustomEvent) await runManager?.handleCustomEvent("some_test_event", { someval: true }); - for await (const text of response) { - await this._sleepIfRequested(); - if (options?.thrownErrorString) throw new Error(options.thrownErrorString); - const chunk = this._createResponseChunk(text); - yield chunk; - runManager?.handleLLMNewToken(text); - } - } - async _sleepIfRequested() { - if (this.sleep !== void 0) await this._sleep(); - } - async _sleep() { - return new Promise((resolve) => { - setTimeout(() => resolve(), this.sleep); - }); - } - _createResponseChunk(text) { - return new ChatGenerationChunk({ - message: new AIMessageChunk({ content: text }), - text - }); - } - _currentResponse() { - return this.responses[this.i]; - } - _incrementResponse() { - if (this.i < this.responses.length - 1) this.i += 1; - else this.i = 0; - } - withStructuredOutput(_params, _config) { - return RunnableLambda.from(async (input) => { - const message = await this.invoke(input); - if (message.tool_calls?.[0]?.args) return message.tool_calls[0].args; - if (typeof message.content === "string") return JSON.parse(message.content); - throw new Error("No structured output found"); - }); - } -}; -var FakeChatMessageHistory = class extends BaseChatMessageHistory { - constructor() { - super(); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "message", - "fake" - ] - }); - Object.defineProperty(this, "messages", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - } - async getMessages() { - return this.messages; - } - async addMessage(message) { - this.messages.push(message); - } - async addUserMessage(message) { - this.messages.push(new HumanMessage(message)); - } - async addAIChatMessage(message) { - this.messages.push(new AIMessage(message)); - } - async clear() { - this.messages = []; - } -}; -var FakeListChatMessageHistory = class extends BaseListChatMessageHistory { - constructor() { - super(); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain_core", - "message", - "fake" - ] - }); - Object.defineProperty(this, "messages", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - } - async addMessage(message) { - this.messages.push(message); - } - async getMessages() { - return this.messages; - } -}; -var FakeTracer = class extends BaseTracer { - constructor() { - super(); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "fake_tracer" - }); - Object.defineProperty(this, "runs", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - } - persistRun(run) { - this.runs.push(run); - return Promise.resolve(); - } -}; -var FakeTool = class extends StructuredTool { - constructor(fields) { - super(fields); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "description", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "schema", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = fields.name; - this.description = fields.description; - this.schema = fields.schema; - } - async _call(arg, _runManager) { - return JSON.stringify(arg); - } -}; -/** -* A class that provides fake embeddings by overriding the embedDocuments -* and embedQuery methods to return fixed values. -*/ -var FakeEmbeddings = class extends Embeddings$1 { - constructor(params) { - super(params ?? {}); - } - /** - * Generates fixed embeddings for a list of documents. - * @param documents List of documents to generate embeddings for. - * @returns A promise that resolves with a list of fixed embeddings for each document. - */ - embedDocuments(documents) { - return Promise.resolve(documents.map(() => [ - .1, - .2, - .3, - .4 - ])); - } - /** - * Generates a fixed embedding for a query. - * @param _ The query to generate an embedding for. - * @returns A promise that resolves with a fixed embedding for the query. - */ - embedQuery(_) { - return Promise.resolve([ - .1, - .2, - .3, - .4 - ]); - } -}; -/** -* A class that provides synthetic embeddings by overriding the -* embedDocuments and embedQuery methods to generate embeddings based on -* the input documents. The embeddings are generated by converting each -* document into chunks, calculating a numerical value for each chunk, and -* returning an array of these values as the embedding. -*/ -var SyntheticEmbeddings = class extends Embeddings$1 { - constructor(params) { - super(params ?? {}); - Object.defineProperty(this, "vectorSize", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.vectorSize = params?.vectorSize ?? 4; - } - /** - * Generates synthetic embeddings for a list of documents. - * @param documents List of documents to generate embeddings for. - * @returns A promise that resolves with a list of synthetic embeddings for each document. - */ - async embedDocuments(documents) { - return Promise.all(documents.map((doc) => this.embedQuery(doc))); - } - /** - * Generates a synthetic embedding for a document. The document is - * converted into chunks, a numerical value is calculated for each chunk, - * and an array of these values is returned as the embedding. - * @param document The document to generate an embedding for. - * @returns A promise that resolves with a synthetic embedding for the document. - */ - async embedQuery(document) { - let doc = document; - doc = doc.toLowerCase().replaceAll(/[^a-z ]/g, ""); - const padMod = doc.length % this.vectorSize; - const padGapSize = padMod === 0 ? 0 : this.vectorSize - padMod; - const padSize = doc.length + padGapSize; - doc = doc.padEnd(padSize, " "); - const chunkSize = doc.length / this.vectorSize; - const docChunk = []; - for (let co = 0; co < doc.length; co += chunkSize) docChunk.push(doc.slice(co, co + chunkSize)); - const ret = docChunk.map((s$1) => { - let sum = 0; - for (let co = 0; co < s$1.length; co += 1) sum += s$1 === " " ? 0 : s$1.charCodeAt(co); - const ret$1 = sum % 26 / 26; - return ret$1; - }); - return ret; - } -}; -var SingleRunExtractor = class extends BaseTracer { - constructor() { - super(); - Object.defineProperty(this, "runPromiseResolver", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "runPromise", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** The name of the callback handler. */ - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "single_run_extractor" - }); - this.runPromise = new Promise((extract) => { - this.runPromiseResolver = extract; - }); - } - async persistRun(run) { - this.runPromiseResolver(run); - } - async extract() { - return this.runPromise; - } -}; -/** -* Class that extends `VectorStore` to store vectors in memory. Provides -* methods for adding documents, performing similarity searches, and -* creating instances from texts, documents, or an existing index. -*/ -var FakeVectorStore = class FakeVectorStore extends VectorStore { - _vectorstoreType() { - return "memory"; - } - constructor(embeddings, { similarity,...rest } = {}) { - super(embeddings, rest); - Object.defineProperty(this, "memoryVectors", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "similarity", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.similarity = similarity ?? cosine; - } - /** - * Method to add documents to the memory vector store. It extracts the - * text from each document, generates embeddings for them, and adds the - * resulting vectors to the store. - * @param documents Array of `Document` instances to be added to the store. - * @returns Promise that resolves when all documents have been added. - */ - async addDocuments(documents) { - const texts = documents.map(({ pageContent }) => pageContent); - return this.addVectors(await this.embeddings.embedDocuments(texts), documents); - } - /** - * Method to add vectors to the memory vector store. It creates - * `MemoryVector` instances for each vector and document pair and adds - * them to the store. - * @param vectors Array of vectors to be added to the store. - * @param documents Array of `Document` instances corresponding to the vectors. - * @returns Promise that resolves when all vectors have been added. - */ - async addVectors(vectors, documents) { - const memoryVectors = vectors.map((embedding, idx) => ({ - content: documents[idx].pageContent, - embedding, - metadata: documents[idx].metadata - })); - this.memoryVectors = this.memoryVectors.concat(memoryVectors); - } - /** - * Method to perform a similarity search in the memory vector store. It - * calculates the similarity between the query vector and each vector in - * the store, sorts the results by similarity, and returns the top `k` - * results along with their scores. - * @param query Query vector to compare against the vectors in the store. - * @param k Number of top results to return. - * @param filter Optional filter function to apply to the vectors before performing the search. - * @returns Promise that resolves with an array of tuples, each containing a `Document` and its similarity score. - */ - async similaritySearchVectorWithScore(query, k, filter) { - const filterFunction = (memoryVector) => { - if (!filter) return true; - const doc = new Document({ - metadata: memoryVector.metadata, - pageContent: memoryVector.content - }); - return filter(doc); - }; - const filteredMemoryVectors = this.memoryVectors.filter(filterFunction); - const searches = filteredMemoryVectors.map((vector, index) => ({ - similarity: this.similarity(query, vector.embedding), - index - })).sort((a, b) => a.similarity > b.similarity ? -1 : 0).slice(0, k); - const result = searches.map((search) => [new Document({ - metadata: filteredMemoryVectors[search.index].metadata, - pageContent: filteredMemoryVectors[search.index].content - }), search.similarity]); - return result; - } - /** - * Static method to create a `FakeVectorStore` instance from an array of - * texts. It creates a `Document` for each text and metadata pair, and - * adds them to the store. - * @param texts Array of texts to be added to the store. - * @param metadatas Array or single object of metadata corresponding to the texts. - * @param embeddings `Embeddings` instance used to generate embeddings for the texts. - * @param dbConfig Optional `FakeVectorStoreArgs` to configure the `FakeVectorStore` instance. - * @returns Promise that resolves with a new `FakeVectorStore` instance. - */ - static async fromTexts(texts, metadatas, embeddings, dbConfig) { - const docs = []; - for (let i$4 = 0; i$4 < texts.length; i$4 += 1) { - const metadata = Array.isArray(metadatas) ? metadatas[i$4] : metadatas; - const newDoc = new Document({ - pageContent: texts[i$4], - metadata - }); - docs.push(newDoc); - } - return FakeVectorStore.fromDocuments(docs, embeddings, dbConfig); - } - /** - * Static method to create a `FakeVectorStore` instance from an array of - * `Document` instances. It adds the documents to the store. - * @param docs Array of `Document` instances to be added to the store. - * @param embeddings `Embeddings` instance used to generate embeddings for the documents. - * @param dbConfig Optional `FakeVectorStoreArgs` to configure the `FakeVectorStore` instance. - * @returns Promise that resolves with a new `FakeVectorStore` instance. - */ - static async fromDocuments(docs, embeddings, dbConfig) { - const instance = new this(embeddings, dbConfig); - await instance.addDocuments(docs); - return instance; - } - /** - * Static method to create a `FakeVectorStore` instance from an existing - * index. It creates a new `FakeVectorStore` instance without adding any - * documents or vectors. - * @param embeddings `Embeddings` instance used to generate embeddings for the documents. - * @param dbConfig Optional `FakeVectorStoreArgs` to configure the `FakeVectorStore` instance. - * @returns Promise that resolves with a new `FakeVectorStore` instance. - */ - static async fromExistingIndex(embeddings, dbConfig) { - const instance = new this(embeddings, dbConfig); - return instance; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/utils/types/index.js -var types_exports = {}; -__export(types_exports, { isZodSchema: () => isZodSchema$1 }); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/load/import_map.js -var import_map_exports = {}; -__export(import_map_exports, { - agents: () => agents_exports, - caches: () => base_exports$2, - callbacks__base: () => base_exports, - callbacks__manager: () => manager_exports, - callbacks__promises: () => promises_exports, - chat_history: () => chat_history_exports, - documents: () => documents_exports, - embeddings: () => embeddings_exports, - example_selectors: () => example_selectors_exports, - language_models__base: () => base_exports$3, - language_models__chat_models: () => chat_models_exports, - language_models__llms: () => llms_exports, - load__serializable: () => serializable_exports, - memory: () => memory_exports, - messages: () => messages_exports, - output_parsers: () => output_parsers_exports, - outputs: () => outputs_exports, - prompt_values: () => prompt_values_exports, - prompts: () => prompts_exports, - retrievers: () => retrievers_exports, - runnables: () => runnables_exports, - stores: () => stores_exports, - tools: () => tools_exports, - tracers__base: () => base_exports$1, - tracers__console: () => console_exports, - tracers__initialize: () => initialize_exports, - tracers__log_stream: () => log_stream_exports, - tracers__run_collector: () => run_collector_exports, - tracers__tracer_langchain: () => tracer_langchain_exports, - tracers__tracer_langchain_v1: () => tracer_langchain_v1_exports, - utils__async_caller: () => async_caller_exports, - utils__chunk_array: () => chunk_array_exports, - utils__env: () => env_exports, - utils__function_calling: () => function_calling_exports, - utils__hash: () => hash_exports, - utils__json_patch: () => json_patch_exports, - utils__json_schema: () => json_schema_exports, - utils__math: () => math_exports, - utils__stream: () => stream_exports, - utils__testing: () => testing_exports, - utils__tiktoken: () => tiktoken_exports, - utils__types: () => types_exports, - vectorstores: () => vectorstores_exports -}); - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/load/index.js -function combineAliasesAndInvert(constructor) { - const aliases = {}; - for (let current = constructor; current && current.prototype; current = Object.getPrototypeOf(current)) Object.assign(aliases, Reflect.get(current.prototype, "lc_aliases")); - return Object.entries(aliases).reduce((acc, [key$1, value]) => { - acc[value] = key$1; - return acc; - }, {}); -} -async function reviver(value) { - const { optionalImportsMap = {}, optionalImportEntrypoints: optionalImportEntrypoints$1 = [], importMap = {}, secretsMap = {}, path = ["$"] } = this; - const pathStr = path.join("."); - if (typeof value === "object" && value !== null && !Array.isArray(value) && "lc" in value && "type" in value && "id" in value && value.lc === 1 && value.type === "secret") { - const serialized = value; - const [key$1] = serialized.id; - if (key$1 in secretsMap) return secretsMap[key$1]; - else { - const secretValueInEnv = getEnvironmentVariable(key$1); - if (secretValueInEnv) return secretValueInEnv; - else throw new Error(`Missing key "${key$1}" for ${pathStr} in load(secretsMap={})`); - } - } else if (typeof value === "object" && value !== null && !Array.isArray(value) && "lc" in value && "type" in value && "id" in value && value.lc === 1 && value.type === "not_implemented") { - const serialized = value; - const str$1 = JSON.stringify(serialized); - throw new Error(`Trying to load an object that doesn't implement serialization: ${pathStr} -> ${str$1}`); - } else if (typeof value === "object" && value !== null && !Array.isArray(value) && "lc" in value && "type" in value && "id" in value && "kwargs" in value && value.lc === 1) { - const serialized = value; - const str$1 = JSON.stringify(serialized); - const [name, ...namespaceReverse] = serialized.id.slice().reverse(); - const namespace = namespaceReverse.reverse(); - const importMaps = { - langchain_core: import_map_exports, - langchain: importMap - }; - let module$2 = null; - const optionalImportNamespaceAliases = [namespace.join("/")]; - if (namespace[0] === "langchain_community") optionalImportNamespaceAliases.push(["langchain", ...namespace.slice(1)].join("/")); - const matchingNamespaceAlias = optionalImportNamespaceAliases.find((alias) => alias in optionalImportsMap); - if (optionalImportEntrypoints.concat(optionalImportEntrypoints$1).includes(namespace.join("/")) || matchingNamespaceAlias) if (matchingNamespaceAlias !== void 0) module$2 = await optionalImportsMap[matchingNamespaceAlias]; - else throw new Error(`Missing key "${namespace.join("/")}" for ${pathStr} in load(optionalImportsMap={})`); - else { - let finalImportMap; - if (namespace[0] === "langchain" || namespace[0] === "langchain_core") { - finalImportMap = importMaps[namespace[0]]; - namespace.shift(); - } else throw new Error(`Invalid namespace: ${pathStr} -> ${str$1}`); - if (namespace.length === 0) throw new Error(`Invalid namespace: ${pathStr} -> ${str$1}`); - let importMapKey; - do { - importMapKey = namespace.join("__"); - if (importMapKey in finalImportMap) break; - else namespace.pop(); - } while (namespace.length > 0); - if (importMapKey in finalImportMap) module$2 = finalImportMap[importMapKey]; - } - if (typeof module$2 !== "object" || module$2 === null) throw new Error(`Invalid namespace: ${pathStr} -> ${str$1}`); - const builder = module$2[name] ?? Object.values(module$2).find((v) => typeof v === "function" && get_lc_unique_name(v) === name); - if (typeof builder !== "function") throw new Error(`Invalid identifer: ${pathStr} -> ${str$1}`); - const kwargs = await reviver.call({ - ...this, - path: [...path, "kwargs"] - }, serialized.kwargs); - if (serialized.type === "constructor") { - const instance = new builder(mapKeys(kwargs, keyFromJson, combineAliasesAndInvert(builder))); - Object.defineProperty(instance.constructor, "name", { value: name }); - return instance; - } else throw new Error(`Invalid type: ${pathStr} -> ${str$1}`); - } else if (typeof value === "object" && value !== null) if (Array.isArray(value)) return Promise.all(value.map((v, i$4) => reviver.call({ - ...this, - path: [...path, `${i$4}`] - }, v))); - else return Object.fromEntries(await Promise.all(Object.entries(value).map(async ([key$1, value$1]) => [key$1, await reviver.call({ - ...this, - path: [...path, key$1] - }, value$1)]))); - return value; -} -async function load(text, mappings) { - const json = JSON.parse(text); - return reviver.call({ ...mappings }, json); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/serde/utils/fast-safe-stringify/index.js -var LIMIT_REPLACE_NODE = "[...]"; -var CIRCULAR_REPLACE_NODE = "[Circular]"; -var arr = []; -var replacerStack = []; -function defaultOptions$2() { - return { - depthLimit: Number.MAX_SAFE_INTEGER, - edgesLimit: Number.MAX_SAFE_INTEGER - }; -} -function stringify$1(obj, replacer, spacer, options) { - if (typeof options === "undefined") options = defaultOptions$2(); - decirc(obj, "", 0, [], void 0, 0, options); - var res; - try { - if (replacerStack.length === 0) res = JSON.stringify(obj, replacer, spacer); - else res = JSON.stringify(obj, replaceGetterValues(replacer), spacer); - } catch (_) { - return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]"); - } finally { - while (arr.length !== 0) { - var part = arr.pop(); - if (part.length === 4) Object.defineProperty(part[0], part[1], part[3]); - else part[0][part[1]] = part[2]; - } - } - return res; -} -function setReplace(replace, val, k, parent) { - var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k); - if (propertyDescriptor.get !== void 0) if (propertyDescriptor.configurable) { - Object.defineProperty(parent, k, { value: replace }); - arr.push([ - parent, - k, - val, - propertyDescriptor - ]); - } else replacerStack.push([ - val, - k, - replace - ]); - else { - parent[k] = replace; - arr.push([ - parent, - k, - val - ]); - } -} -function decirc(val, k, edgeIndex, stack, parent, depth, options) { - depth += 1; - var i$4; - if (typeof val === "object" && val !== null) { - for (i$4 = 0; i$4 < stack.length; i$4++) if (stack[i$4] === val) { - setReplace(CIRCULAR_REPLACE_NODE, val, k, parent); - return; - } - if (typeof options.depthLimit !== "undefined" && depth > options.depthLimit) { - setReplace(LIMIT_REPLACE_NODE, val, k, parent); - return; - } - if (typeof options.edgesLimit !== "undefined" && edgeIndex + 1 > options.edgesLimit) { - setReplace(LIMIT_REPLACE_NODE, val, k, parent); - return; - } - stack.push(val); - if (Array.isArray(val)) for (i$4 = 0; i$4 < val.length; i$4++) decirc(val[i$4], i$4, i$4, stack, val, depth, options); - else { - var keys = Object.keys(val); - for (i$4 = 0; i$4 < keys.length; i$4++) { - var key$1 = keys[i$4]; - decirc(val[key$1], key$1, i$4, stack, val, depth, options); - } - } - stack.pop(); - } -} -function replaceGetterValues(replacer) { - replacer = typeof replacer !== "undefined" ? replacer : function(k, v) { - return v; - }; - return function(key$1, val) { - if (replacerStack.length > 0) for (var i$4 = 0; i$4 < replacerStack.length; i$4++) { - var part = replacerStack[i$4]; - if (part[1] === key$1 && part[0] === val) { - val = part[2]; - replacerStack.splice(i$4, 1); - break; - } - } - return replacer.call(this, key$1, val); - }; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.js -function isLangChainSerializedObject(value) { - return value !== null && value.lc === 1 && value.type === "constructor" && Array.isArray(value.id); -} -/** -* The replacer in stringify does not allow delegation to built-in LangChain -* serialization methods, and instead immediately calls `.toJSON()` and -* continues to stringify subfields. -* -* We therefore must start from the most nested elements in the input and -* deserialize upwards rather than top-down. -*/ -async function _reviver(value) { - if (value && typeof value === "object") if (Array.isArray(value)) { - const revivedArray = await Promise.all(value.map((item) => _reviver(item))); - return revivedArray; - } else { - const revivedObj = {}; - for (const [k, v] of Object.entries(value)) revivedObj[k] = await _reviver(v); - if (revivedObj.lc === 2 && revivedObj.type === "undefined") return void 0; - else if (revivedObj.lc === 2 && revivedObj.type === "constructor" && Array.isArray(revivedObj.id)) try { - const constructorName = revivedObj.id[revivedObj.id.length - 1]; - let constructor; - switch (constructorName) { - case "Set": - constructor = Set; - break; - case "Map": - constructor = Map; - break; - case "RegExp": - constructor = RegExp; - break; - case "Error": - constructor = Error; - break; - default: return revivedObj; - } - if (revivedObj.method) return constructor[revivedObj.method](...revivedObj.args || []); - else return new constructor(...revivedObj.args || []); - } catch (error) { - return revivedObj; - } - else if (isLangChainSerializedObject(revivedObj)) return load(JSON.stringify(revivedObj)); - return revivedObj; - } - return value; -} -function _encodeConstructorArgs(constructor, method, args, kwargs) { - return { - lc: 2, - type: "constructor", - id: [constructor.name], - method: method ?? null, - args: args ?? [], - kwargs: kwargs ?? {} - }; -} -function _default(obj) { - if (obj === void 0) return { - lc: 2, - type: "undefined" - }; - else if (obj instanceof Set || obj instanceof Map) return _encodeConstructorArgs(obj.constructor, void 0, [Array.from(obj)]); - else if (obj instanceof RegExp) return _encodeConstructorArgs(RegExp, void 0, [obj.source, obj.flags]); - else if (obj instanceof Error) return _encodeConstructorArgs(obj.constructor, void 0, [obj.message]); - else if (obj?.lg_name === "Send") return { - node: obj.node, - args: obj.args - }; - else return obj; -} -var JsonPlusSerializer = class { - _dumps(obj) { - const encoder = new TextEncoder(); - return encoder.encode(stringify$1(obj, (_, value) => { - return _default(value); - })); - } - dumpsTyped(obj) { - if (obj instanceof Uint8Array) return ["bytes", obj]; - else return ["json", this._dumps(obj)]; - } - async _loads(data) { - const parsed = JSON.parse(data); - return _reviver(parsed); - } - async loadsTyped(type, data) { - if (type === "bytes") return typeof data === "string" ? new TextEncoder().encode(data) : data; - else if (type === "json") return this._loads(typeof data === "string" ? data : new TextDecoder().decode(data)); - else throw new Error(`Unknown serialization type: ${type}`); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/base.js -function deepCopy(obj) { - if (typeof obj !== "object" || obj === null) return obj; - const newObj = Array.isArray(obj) ? [] : {}; - for (const key$1 in obj) if (Object.prototype.hasOwnProperty.call(obj, key$1)) newObj[key$1] = deepCopy(obj[key$1]); - return newObj; -} -/** @hidden */ -function emptyCheckpoint() { - return { - v: 1, - id: uuid6(-2), - ts: (/* @__PURE__ */ new Date()).toISOString(), - channel_values: {}, - channel_versions: {}, - versions_seen: {}, - pending_sends: [] - }; -} -/** @hidden */ -function copyCheckpoint(checkpoint) { - return { - v: checkpoint.v, - id: checkpoint.id, - ts: checkpoint.ts, - channel_values: { ...checkpoint.channel_values }, - channel_versions: { ...checkpoint.channel_versions }, - versions_seen: deepCopy(checkpoint.versions_seen), - pending_sends: [...checkpoint.pending_sends] - }; -} -function compareChannelVersions(a, b) { - if (typeof a === "number" && typeof b === "number") return Math.sign(a - b); - return String(a).localeCompare(String(b)); -} -function maxChannelVersion(...versions) { - return versions.reduce((max, version, idx) => { - if (idx === 0) return version; - return compareChannelVersions(max, version) >= 0 ? max : version; - }); -} -/** -* Mapping from error type to error index. -* Regular writes just map to their index in the list of writes being saved. -* Special writes (e.g. errors) map to negative indices, to avoid those writes from -* conflicting with regular writes. -* Each Checkpointer implementation should use this mapping in put_writes. -*/ -const WRITES_IDX_MAP = { - [ERROR$2]: -1, - [SCHEDULED]: -2, - [INTERRUPT$2]: -3, - [RESUME$2]: -4 -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/store/base.js -/** -* Error thrown when an invalid namespace is provided. -*/ -var InvalidNamespaceError = class extends Error { - constructor(message) { - super(message); - this.name = "InvalidNamespaceError"; - } -}; -/** -* Validates the provided namespace. -* @param namespace The namespace to validate. -* @throws {InvalidNamespaceError} If the namespace is invalid. -*/ -function validateNamespace(namespace) { - if (namespace.length === 0) throw new InvalidNamespaceError("Namespace cannot be empty."); - for (const label of namespace) { - if (typeof label !== "string") throw new InvalidNamespaceError(`Invalid namespace label '${label}' found in ${namespace}. Namespace labels must be strings, but got ${typeof label}.`); - if (label.includes(".")) throw new InvalidNamespaceError(`Invalid namespace label '${label}' found in ${namespace}. Namespace labels cannot contain periods ('.').`); - if (label === "") throw new InvalidNamespaceError(`Namespace labels cannot be empty strings. Got ${label} in ${namespace}`); - } - if (namespace[0] === "langgraph") throw new InvalidNamespaceError(`Root label for namespace cannot be "langgraph". Got: ${namespace}`); -} -/** -* Abstract base class for persistent key-value stores. -* -* Stores enable persistence and memory that can be shared across threads, -* scoped to user IDs, assistant IDs, or other arbitrary namespaces. -* -* Features: -* - Hierarchical namespaces for organization -* - Key-value storage with metadata -* - Vector similarity search (if configured) -* - Filtering and pagination -*/ -var BaseStore = class { - /** - * Retrieve a single item by its namespace and key. - * - * @param namespace Hierarchical path for the item - * @param key Unique identifier within the namespace - * @returns Promise resolving to the item or null if not found - */ - async get(namespace, key$1) { - return (await this.batch([{ - namespace, - key: key$1 - }]))[0]; - } - /** - * Search for items within a namespace prefix. - * Supports both metadata filtering and vector similarity search. - * - * @param namespacePrefix Hierarchical path prefix to search within - * @param options Search options for filtering and pagination - * @returns Promise resolving to list of matching items with relevance scores - * - * @example - * // Search with filters - * await store.search(["documents"], { - * filter: { type: "report", status: "active" }, - * limit: 5, - * offset: 10 - * }); - * - * // Vector similarity search - * await store.search(["users", "content"], { - * query: "technical documentation about APIs", - * limit: 20 - * }); - */ - async search(namespacePrefix, options = {}) { - const { filter, limit: limit$1 = 10, offset = 0, query } = options; - return (await this.batch([{ - namespacePrefix, - filter, - limit: limit$1, - offset, - query - }]))[0]; - } - /** - * Store or update an item. - * - * @param namespace Hierarchical path for the item - * @param key Unique identifier within the namespace - * @param value Object containing the item's data - * @param index Optional indexing configuration - * - * @example - * // Simple storage - * await store.put(["docs"], "report", { title: "Annual Report" }); - * - * // With specific field indexing - * await store.put( - * ["docs"], - * "report", - * { - * title: "Q4 Report", - * chapters: [{ content: "..." }, { content: "..." }] - * }, - * ["title", "chapters[*].content"] - * ); - */ - async put(namespace, key$1, value, index) { - validateNamespace(namespace); - await this.batch([{ - namespace, - key: key$1, - value, - index - }]); - } - /** - * Delete an item from the store. - * - * @param namespace Hierarchical path for the item - * @param key Unique identifier within the namespace - */ - async delete(namespace, key$1) { - await this.batch([{ - namespace, - key: key$1, - value: null - }]); - } - /** - * List and filter namespaces in the store. - * Used to explore data organization and navigate the namespace hierarchy. - * - * @param options Options for listing namespaces - * @returns Promise resolving to list of namespace paths - * - * @example - * // List all namespaces under "documents" - * await store.listNamespaces({ - * prefix: ["documents"], - * maxDepth: 2 - * }); - * - * // List namespaces ending with "v1" - * await store.listNamespaces({ - * suffix: ["v1"], - * limit: 50 - * }); - */ - async listNamespaces(options = {}) { - const { prefix, suffix, maxDepth, limit: limit$1 = 100, offset = 0 } = options; - const matchConditions = []; - if (prefix) matchConditions.push({ - matchType: "prefix", - path: prefix - }); - if (suffix) matchConditions.push({ - matchType: "suffix", - path: suffix - }); - return (await this.batch([{ - matchConditions: matchConditions.length ? matchConditions : void 0, - maxDepth, - limit: limit$1, - offset - }]))[0]; - } - /** - * Start the store. Override if initialization is needed. - */ - start() {} - /** - * Stop the store. Override if cleanup is needed. - */ - stop() {} -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/store/batch.js -/** -* Extracts and returns the underlying store from an `AsyncBatchedStore`, -* or returns the input if it is not an `AsyncBatchedStore`. -*/ -const extractStore = (input) => { - if ("lg_name" in input && input.lg_name === "AsyncBatchedStore") return input.store; - return input; -}; -var AsyncBatchedStore = class extends BaseStore { - constructor(store) { - super(); - Object.defineProperty(this, "lg_name", { - enumerable: true, - configurable: true, - writable: true, - value: "AsyncBatchedStore" - }); - Object.defineProperty(this, "store", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "queue", { - enumerable: true, - configurable: true, - writable: true, - value: /* @__PURE__ */ new Map() - }); - Object.defineProperty(this, "nextKey", { - enumerable: true, - configurable: true, - writable: true, - value: 0 - }); - Object.defineProperty(this, "running", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "processingTask", { - enumerable: true, - configurable: true, - writable: true, - value: null - }); - this.store = extractStore(store); - } - get isRunning() { - return this.running; - } - /** - * @ignore - * Batch is not implemented here as we're only extending `BaseStore` - * to allow it to be passed where `BaseStore` is expected, and implement - * the convenience methods (get, search, put, delete). - */ - async batch(_operations) { - throw new Error("The `batch` method is not implemented on `AsyncBatchedStore`.\n Instead, it calls the `batch` method on the wrapped store.\n If you are seeing this error, something is wrong."); - } - async get(namespace, key$1) { - return this.enqueueOperation({ - namespace, - key: key$1 - }); - } - async search(namespacePrefix, options) { - const { filter, limit: limit$1 = 10, offset = 0, query } = options || {}; - return this.enqueueOperation({ - namespacePrefix, - filter, - limit: limit$1, - offset, - query - }); - } - async put(namespace, key$1, value) { - return this.enqueueOperation({ - namespace, - key: key$1, - value - }); - } - async delete(namespace, key$1) { - return this.enqueueOperation({ - namespace, - key: key$1, - value: null - }); - } - start() { - if (!this.running) { - this.running = true; - this.processingTask = this.processBatchQueue(); - } - } - async stop() { - this.running = false; - if (this.processingTask) await this.processingTask; - } - enqueueOperation(operation) { - return new Promise((resolve, reject) => { - const key$1 = this.nextKey; - this.nextKey += 1; - this.queue.set(key$1, { - operation, - resolve, - reject - }); - }); - } - async processBatchQueue() { - while (this.running) { - await new Promise((resolve) => { - setTimeout(resolve, 0); - }); - if (this.queue.size === 0) continue; - const batch = new Map(this.queue); - this.queue.clear(); - try { - const operations = Array.from(batch.values()).map(({ operation }) => operation); - const results = await this.store.batch(operations); - batch.forEach(({ resolve }, key$1) => { - const index = Array.from(batch.keys()).indexOf(key$1); - resolve(results[index]); - }); - } catch (e) { - batch.forEach(({ reject }) => { - reject(e); - }); - } - } - } - toJSON() { - return { - queue: this.queue, - nextKey: this.nextKey, - running: this.running, - store: "[LangGraphStore]" - }; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph-checkpoint@0.0.18_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57__/node_modules/@langchain/langgraph-checkpoint/dist/cache/base.js -var BaseCache = class { - /** - * Initialize the cache with a serializer. - * - * @param serde - The serializer to use. - */ - constructor(serde) { - Object.defineProperty(this, "serde", { - enumerable: true, - configurable: true, - writable: true, - value: new JsonPlusSerializer() - }); - this.serde = serde || this.serde; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/channels/base.js -function isBaseChannel$1(obj) { - return obj != null && obj.lg_is_channel === true; -} -var BaseChannel$1 = class { - constructor() { - Object.defineProperty(this, "ValueType", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "UpdateType", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @ignore */ - Object.defineProperty(this, "lg_is_channel", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - } - /** - * Mark the current value of the channel as consumed. By default, no-op. - * A channel can use this method to modify its state, preventing the value - * from being consumed again. - * - * Returns True if the channel was updated, False otherwise. - */ - consume() { - return false; - } - /** - * Notify the channel that the Pregel run is finishing. By default, no-op. - * A channel can use this method to modify its state, preventing finish. - * - * Returns True if the channel was updated, False otherwise. - */ - finish() { - return false; - } - /** - * Return True if the channel is available (not empty), False otherwise. - * Subclasses should override this method to provide a more efficient - * implementation than calling get() and catching EmptyChannelError. - */ - isAvailable() { - try { - this.get(); - return true; - } catch (error) { - if (error.name === EmptyChannelError$1.unminifiable_name) return false; - throw error; - } - } -}; -function emptyChannels$1(channels, checkpoint) { - const filteredChannels = Object.fromEntries(Object.entries(channels).filter(([, value]) => isBaseChannel$1(value))); - const newChannels = {}; - for (const k in filteredChannels) if (Object.prototype.hasOwnProperty.call(filteredChannels, k)) { - const channelValue = checkpoint.channel_values[k]; - newChannels[k] = filteredChannels[k].fromCheckpoint(channelValue); - } - return newChannels; -} -function createCheckpoint$1(checkpoint, channels, step) { - let values; - if (channels === void 0) values = checkpoint.channel_values; - else { - values = {}; - for (const k of Object.keys(channels)) try { - values[k] = channels[k].checkpoint(); - } catch (error) { - if (error.name === EmptyChannelError$1.unminifiable_name) {} else throw error; - } - } - return { - v: 1, - id: uuid6(step), - ts: (/* @__PURE__ */ new Date()).toISOString(), - channel_values: values, - channel_versions: { ...checkpoint.channel_versions }, - versions_seen: deepCopy(checkpoint.versions_seen), - pending_sends: checkpoint.pending_sends ?? [] - }; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/channels/binop.js -/** -* Stores the result of applying a binary operator to the current value and each new value. -*/ -var BinaryOperatorAggregate$1 = class BinaryOperatorAggregate$1 extends BaseChannel$1 { - constructor(operator, initialValueFactory) { - super(); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "BinaryOperatorAggregate" - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "operator", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "initialValueFactory", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.operator = operator; - this.initialValueFactory = initialValueFactory; - this.value = initialValueFactory?.(); - } - fromCheckpoint(checkpoint) { - const empty = new BinaryOperatorAggregate$1(this.operator, this.initialValueFactory); - if (typeof checkpoint !== "undefined") empty.value = checkpoint; - return empty; - } - update(values) { - let newValues = values; - if (!newValues.length) return false; - if (this.value === void 0) { - [this.value] = newValues; - newValues = newValues.slice(1); - } - for (const value of newValues) if (this.value !== void 0) this.value = this.operator(this.value, value); - return true; - } - get() { - if (this.value === void 0) throw new EmptyChannelError$1(); - return this.value; - } - checkpoint() { - if (this.value === void 0) throw new EmptyChannelError$1(); - return this.value; - } - isAvailable() { - return this.value !== void 0; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/channels/last_value.js -/** -* Stores the last value received, can receive at most one value per step. -* -* Since `update` is only called once per step and value can only be of length 1, -* LastValue always stores the last value of a single node. If multiple nodes attempt to -* write to this channel in a single step, an error will be thrown. -* @internal -*/ -var LastValue$1 = class LastValue$1 extends BaseChannel$1 { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "LastValue" - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - } - fromCheckpoint(checkpoint) { - const empty = new LastValue$1(); - if (typeof checkpoint !== "undefined") empty.value = [checkpoint]; - return empty; - } - update(values) { - if (values.length === 0) return false; - if (values.length !== 1) throw new InvalidUpdateError$1("LastValue can only receive one value per step.", { lc_error_code: "INVALID_CONCURRENT_GRAPH_UPDATE" }); - this.value = [values[values.length - 1]]; - return true; - } - get() { - if (this.value.length === 0) throw new EmptyChannelError$1(); - return this.value[0]; - } - checkpoint() { - if (this.value.length === 0) throw new EmptyChannelError$1(); - return this.value[0]; - } - isAvailable() { - return this.value.length !== 0; - } -}; -/** -* Stores the last value received, but only made available after finish(). -* Once made available, clears the value. -* @internal -*/ -var LastValueAfterFinish = class LastValueAfterFinish extends BaseChannel$1 { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "LastValueAfterFinish" - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "finished", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - } - fromCheckpoint(checkpoint) { - const empty = new LastValueAfterFinish(); - if (typeof checkpoint !== "undefined") { - const [value, finished] = checkpoint; - empty.value = [value]; - empty.finished = finished; - } - return empty; - } - update(values) { - if (values.length === 0) return false; - this.finished = false; - this.value = [values[values.length - 1]]; - return true; - } - get() { - if (this.value.length === 0 || !this.finished) throw new EmptyChannelError$1(); - return this.value[0]; - } - checkpoint() { - if (this.value.length === 0) return void 0; - return [this.value[0], this.finished]; - } - consume() { - if (this.finished) { - this.finished = false; - this.value = []; - return true; - } - return false; - } - finish() { - if (!this.finished && this.value.length > 0) { - this.finished = true; - return true; - } - return false; - } - isAvailable() { - return this.value.length !== 0 && this.finished; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/constants.js -/** Special reserved node name denoting the start of a graph. */ -const START$1 = "__start__"; -/** Special reserved node name denoting the end of a graph. */ -const END = "__end__"; -const INPUT$1 = "__input__"; -const COPY$1 = "__copy__"; -const ERROR$1 = "__error__"; -/** Special reserved cache namespaces */ -const CACHE_NS_WRITES = "__pregel_ns_writes"; -const CONFIG_KEY_SEND$1 = "__pregel_send"; -/** config key containing function used to call a node (push task) */ -const CONFIG_KEY_CALL$1 = "__pregel_call"; -const CONFIG_KEY_READ$1 = "__pregel_read"; -const CONFIG_KEY_CHECKPOINTER$1 = "__pregel_checkpointer"; -const CONFIG_KEY_RESUMING$1 = "__pregel_resuming"; -const CONFIG_KEY_TASK_ID$1 = "__pregel_task_id"; -const CONFIG_KEY_STREAM$1 = "__pregel_stream"; -const CONFIG_KEY_RESUME_VALUE$1 = "__pregel_resume_value"; -const CONFIG_KEY_SCRATCHPAD$1 = "__pregel_scratchpad"; -/** config key containing state from previous invocation of graph for the given thread */ -const CONFIG_KEY_PREVIOUS_STATE$1 = "__pregel_previous"; -const CONFIG_KEY_CHECKPOINT_ID$1 = "checkpoint_id"; -const CONFIG_KEY_CHECKPOINT_NS$1 = "checkpoint_ns"; -const CONFIG_KEY_NODE_FINISHED$1 = "__pregel_node_finished"; -const CONFIG_KEY_CHECKPOINT_MAP$1 = "checkpoint_map"; -const CONFIG_KEY_ABORT_SIGNALS$1 = "__pregel_abort_signals"; -/** Special channel reserved for graph interrupts */ -const INTERRUPT$1 = "__interrupt__"; -/** Special channel reserved for graph resume */ -const RESUME$1 = "__resume__"; -/** Special channel reserved for cases when a task exits without any writes */ -const NO_WRITES$1 = "__no_writes__"; -/** Special channel reserved for graph return */ -const RETURN$1 = "__return__"; -/** Special channel reserved for graph previous state */ -const PREVIOUS$1 = "__previous__"; -const RUNTIME_PLACEHOLDER$1 = "__pregel_runtime_placeholder__"; -const TAG_HIDDEN$1 = "langsmith:hidden"; -const TAG_NOSTREAM$1 = "langsmith:nostream"; -const SELF = "__self__"; -const TASKS$1 = "__pregel_tasks"; -const PUSH$1 = "__pregel_push"; -const PULL$1 = "__pregel_pull"; -const NULL_TASK_ID$1 = "00000000-0000-0000-0000-000000000000"; -const RESERVED$1 = [ - TAG_HIDDEN$1, - INPUT$1, - INTERRUPT$1, - RESUME$1, - ERROR$1, - NO_WRITES$1, - TASKS$1, - CONFIG_KEY_SEND$1, - CONFIG_KEY_READ$1, - CONFIG_KEY_CHECKPOINTER$1, - CONFIG_KEY_STREAM$1, - CONFIG_KEY_RESUMING$1, - CONFIG_KEY_TASK_ID$1, - CONFIG_KEY_CALL$1, - CONFIG_KEY_RESUME_VALUE$1, - CONFIG_KEY_SCRATCHPAD$1, - CONFIG_KEY_PREVIOUS_STATE$1, - CONFIG_KEY_CHECKPOINT_MAP$1, - CONFIG_KEY_CHECKPOINT_NS$1, - CONFIG_KEY_CHECKPOINT_ID$1 -]; -const CHECKPOINT_NAMESPACE_SEPARATOR$1 = "|"; -const CHECKPOINT_NAMESPACE_END$1 = ":"; -function _isSendInterface$1(x) { - const operation = x; - return operation !== null && operation !== void 0 && typeof operation.node === "string" && operation.args !== void 0; -} -/** -* -* A message or packet to send to a specific node in the graph. -* -* The `Send` class is used within a `StateGraph`'s conditional edges to -* dynamically invoke a node with a custom state at the next step. -* -* Importantly, the sent state can differ from the core graph's state, -* allowing for flexible and dynamic workflow management. -* -* One such example is a "map-reduce" workflow where your graph invokes -* the same node multiple times in parallel with different states, -* before aggregating the results back into the main graph's state. -* -* @example -* ```typescript -* import { Annotation, Send, StateGraph } from "@langchain/langgraph"; -* -* const ChainState = Annotation.Root({ -* subjects: Annotation, -* jokes: Annotation({ -* reducer: (a, b) => a.concat(b), -* }), -* }); -* -* const continueToJokes = async (state: typeof ChainState.State) => { -* return state.subjects.map((subject) => { -* return new Send("generate_joke", { subjects: [subject] }); -* }); -* }; -* -* const graph = new StateGraph(ChainState) -* .addNode("generate_joke", (state) => ({ -* jokes: [`Joke about ${state.subjects}`], -* })) -* .addConditionalEdges("__start__", continueToJokes) -* .addEdge("generate_joke", "__end__") -* .compile(); -* -* const res = await graph.invoke({ subjects: ["cats", "dogs"] }); -* console.log(res); -* -* // Invoking with two subjects results in a generated joke for each -* // { subjects: ["cats", "dogs"], jokes: [`Joke about cats`, `Joke about dogs`] } -* ``` -*/ -var Send$1 = class { - constructor(node, args) { - Object.defineProperty(this, "lg_name", { - enumerable: true, - configurable: true, - writable: true, - value: "Send" - }); - Object.defineProperty(this, "node", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "args", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.node = node; - this.args = _deserializeCommandSendObjectGraph$1(args); - } - toJSON() { - return { - lg_name: this.lg_name, - node: this.node, - args: this.args - }; - } -}; -function _isSend$1(x) { - return x instanceof Send$1; -} -/** -* Checks if the given graph invoke / stream chunk contains interrupt. -* -* @example -* ```ts -* import { INTERRUPT, isInterrupted } from "@langchain/langgraph"; -* -* const values = await graph.invoke({ foo: "bar" }); -* if (isInterrupted(values)) { -* const interrupt = values[INTERRUPT][0].value; -* } -* ``` -* -* @param values - The values to check. -* @returns `true` if the values contain an interrupt, `false` otherwise. -*/ -function isInterrupted(values) { - if (!values || typeof values !== "object") return false; - if (!(INTERRUPT$1 in values)) return false; - return Array.isArray(values[INTERRUPT$1]); -} -/** -* One or more commands to update the graph's state and send messages to nodes. -* Can be used to combine routing logic with state updates in lieu of conditional edges -* -* @example -* ```ts -* import { Annotation, Command } from "@langchain/langgraph"; -* -* // Define graph state -* const StateAnnotation = Annotation.Root({ -* foo: Annotation, -* }); -* -* // Define the nodes -* const nodeA = async (_state: typeof StateAnnotation.State) => { -* console.log("Called A"); -* // this is a replacement for a real conditional edge function -* const goto = Math.random() > .5 ? "nodeB" : "nodeC"; -* // note how Command allows you to BOTH update the graph state AND route to the next node -* return new Command({ -* // this is the state update -* update: { -* foo: "a", -* }, -* // this is a replacement for an edge -* goto, -* }); -* }; -* -* // Nodes B and C are unchanged -* const nodeB = async (state: typeof StateAnnotation.State) => { -* console.log("Called B"); -* return { -* foo: state.foo + "|b", -* }; -* } -* -* const nodeC = async (state: typeof StateAnnotation.State) => { -* console.log("Called C"); -* return { -* foo: state.foo + "|c", -* }; -* } -* -* import { StateGraph } from "@langchain/langgraph"; - -* // NOTE: there are no edges between nodes A, B and C! -* const graph = new StateGraph(StateAnnotation) -* .addNode("nodeA", nodeA, { -* ends: ["nodeB", "nodeC"], -* }) -* .addNode("nodeB", nodeB) -* .addNode("nodeC", nodeC) -* .addEdge("__start__", "nodeA") -* .compile(); -* -* await graph.invoke({ foo: "" }); -* -* // Randomly oscillates between -* // { foo: 'a|c' } and { foo: 'a|b' } -* ``` -*/ -var Command$1 = class { - constructor(args) { - Object.defineProperty(this, "lg_name", { - enumerable: true, - configurable: true, - writable: true, - value: "Command" - }); - Object.defineProperty(this, "lc_direct_tool_output", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - /** - * Graph to send the command to. Supported values are: - * - None: the current graph (default) - * - The specific name of the graph to send the command to - * - {@link Command.PARENT}: closest parent graph (only supported when returned from a node in a subgraph) - */ - Object.defineProperty(this, "graph", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Update to apply to the graph's state as a result of executing the node that is returning the command. - * Written to the state as if the node had simply returned this value instead of the Command object. - */ - Object.defineProperty(this, "update", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Value to resume execution with. To be used together with {@link interrupt}. - */ - Object.defineProperty(this, "resume", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Can be one of the following: - * - name of the node to navigate to next (any node that belongs to the specified `graph`) - * - sequence of node names to navigate to next - * - {@link Send} object (to execute a node with the exact input provided in the {@link Send} object) - * - sequence of {@link Send} objects - */ - Object.defineProperty(this, "goto", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.resume = args.resume; - this.graph = args.graph; - this.update = args.update; - if (args.goto) this.goto = Array.isArray(args.goto) ? _deserializeCommandSendObjectGraph$1(args.goto) : [_deserializeCommandSendObjectGraph$1(args.goto)]; - } - /** - * Convert the update field to a list of {@link PendingWrite} tuples - * @returns List of {@link PendingWrite} tuples of the form `[channelKey, value]`. - * @internal - */ - _updateAsTuples() { - if (this.update && typeof this.update === "object" && !Array.isArray(this.update)) return Object.entries(this.update); - else if (Array.isArray(this.update) && this.update.every((t) => Array.isArray(t) && t.length === 2 && typeof t[0] === "string")) return this.update; - else return [["__root__", this.update]]; - } - toJSON() { - let serializedGoto; - if (typeof this.goto === "string") serializedGoto = this.goto; - else if (_isSend$1(this.goto)) serializedGoto = this.goto.toJSON(); - else serializedGoto = this.goto?.map((innerGoto) => { - if (typeof innerGoto === "string") return innerGoto; - else return innerGoto.toJSON(); - }); - return { - lg_name: this.lg_name, - update: this.update, - resume: this.resume, - goto: serializedGoto - }; - } -}; -Object.defineProperty(Command$1, "PARENT", { - enumerable: true, - configurable: true, - writable: true, - value: "__parent__" -}); -/** -* A type guard to check if the given value is a {@link Command}. -* -* Useful for type narrowing when working with the {@link Command} object. -* -* @param x - The value to check. -* @returns `true` if the value is a {@link Command}, `false` otherwise. -*/ -function isCommand$1(x) { - if (typeof x !== "object") return false; - if (x === null || x === void 0) return false; - if ("lg_name" in x && x.lg_name === "Command") return true; - return false; -} -/** -* Reconstructs Command and Send objects from a deeply nested tree of anonymous objects -* matching their interfaces. -* -* This is only exported for testing purposes. It is NOT intended to be used outside of -* the Command and Send classes. -* -* @internal -* -* @param x - The command send tree to convert. -* @param seen - A map of seen objects to avoid infinite loops. -* @returns The converted command send tree. -*/ -function _deserializeCommandSendObjectGraph$1(x, seen = /* @__PURE__ */ new Map()) { - if (x !== void 0 && x !== null && typeof x === "object") { - if (seen.has(x)) return seen.get(x); - let result; - if (Array.isArray(x)) { - result = []; - seen.set(x, result); - x.forEach((item, index) => { - result[index] = _deserializeCommandSendObjectGraph$1(item, seen); - }); - } else if (isCommand$1(x) && !(x instanceof Command$1)) { - result = new Command$1(x); - seen.set(x, result); - } else if (_isSendInterface$1(x) && !(x instanceof Send$1)) { - result = new Send$1(x.node, x.args); - seen.set(x, result); - } else if (isCommand$1(x) || _isSend$1(x)) { - result = x; - seen.set(x, result); - } else if ("lc_serializable" in x && x.lc_serializable) { - result = x; - seen.set(x, result); - } else { - result = {}; - seen.set(x, result); - for (const [key$1, value] of Object.entries(x)) result[key$1] = _deserializeCommandSendObjectGraph$1(value, seen); - } - return result; - } - return x; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/managed/base.js -var ManagedValue$1 = class { - constructor(config, _params) { - Object.defineProperty(this, "runtime", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_promises", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "lg_is_managed_value", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.config = config; - } - static async initialize(_config, _args) { - throw new Error("Not implemented"); - } - async promises() { - return Promise.all(this._promises); - } - addPromise(promise) { - this._promises.push(promise); - } -}; -const ChannelKeyPlaceholder$1 = "__channel_key_placeholder__"; -var ManagedValueMapping$1 = class extends Map { - constructor(entries) { - super(entries ? Array.from(entries) : void 0); - } - replaceRuntimeValues(step, values) { - if (this.size === 0 || !values) return; - if (Array.from(this.values()).every((mv) => !mv.runtime)) return; - if (typeof values === "object" && !Array.isArray(values)) { - for (const [key$1, value] of Object.entries(values)) for (const [chan, mv] of this.entries()) if (mv.runtime && mv.call(step) === value) values[key$1] = { [RUNTIME_PLACEHOLDER$1]: chan }; - } else if (typeof values === "object" && "constructor" in values) for (const key$1 of Object.getOwnPropertyNames(Object.getPrototypeOf(values))) try { - const value = values[key$1]; - for (const [chan, mv] of this.entries()) if (mv.runtime && mv.call(step) === value) values[key$1] = { [RUNTIME_PLACEHOLDER$1]: chan }; - } catch (error) { - if (error.name !== TypeError.name) throw error; - } - } - replaceRuntimePlaceholders(step, values) { - if (this.size === 0 || !values) return; - if (Array.from(this.values()).every((mv) => !mv.runtime)) return; - if (typeof values === "object" && !Array.isArray(values)) { - for (const [key$1, value] of Object.entries(values)) if (typeof value === "object" && value !== null && RUNTIME_PLACEHOLDER$1 in value) { - const placeholder = value[RUNTIME_PLACEHOLDER$1]; - if (typeof placeholder === "string") values[key$1] = this.get(placeholder)?.call(step); - } - } else if (typeof values === "object" && "constructor" in values) for (const key$1 of Object.getOwnPropertyNames(Object.getPrototypeOf(values))) try { - const value = values[key$1]; - if (typeof value === "object" && value !== null && RUNTIME_PLACEHOLDER$1 in value) { - const managedValue = this.get(value[RUNTIME_PLACEHOLDER$1]); - if (managedValue) values[key$1] = managedValue.call(step); - } - } catch (error) { - if (error.name !== TypeError.name) throw error; - } - } -}; -function isConfiguredManagedValue$1(value) { - if (typeof value === "object" && value && "cls" in value && "params" in value) return true; - return false; -} -/** -* No-op class used when getting state values, as managed values should never be returned -* in get state calls. -*/ -var NoopManagedValue$1 = class NoopManagedValue$1 extends ManagedValue$1 { - call() {} - static async initialize(config, _args) { - return Promise.resolve(new NoopManagedValue$1(config)); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/graph/annotation.js -/** -* Should not be instantiated directly. See {@link Annotation}. -*/ -var AnnotationRoot$1 = class { - constructor(s$1) { - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "AnnotationRoot" - }); - Object.defineProperty(this, "spec", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.spec = s$1; - } -}; -/** -* Helper that instantiates channels within a StateGraph state. -* -* Can be used as a field in an {@link Annotation.Root} wrapper in one of two ways: -* 1. **Directly**: Creates a channel that stores the most recent value returned from a node. -* 2. **With a reducer**: Creates a channel that applies the reducer on a node's return value. -* -* @example -* ```ts -* import { StateGraph, Annotation } from "@langchain/langgraph"; -* -* // Define a state with a single string key named "currentOutput" -* const SimpleAnnotation = Annotation.Root({ -* currentOutput: Annotation, -* }); -* -* const graphBuilder = new StateGraph(SimpleAnnotation); -* -* // A node in the graph that returns an object with a "currentOutput" key -* // replaces the value in the state. You can get the state type as shown below: -* const myNode = (state: typeof SimpleAnnotation.State) => { -* return { -* currentOutput: "some_new_value", -* }; -* } -* -* const graph = graphBuilder -* .addNode("myNode", myNode) -* ... -* .compile(); -* ``` -* -* @example -* ```ts -* import { type BaseMessage, AIMessage } from "@langchain/core/messages"; -* import { StateGraph, Annotation } from "@langchain/langgraph"; -* -* // Define a state with a single key named "messages" that will -* // combine a returned BaseMessage or arrays of BaseMessages -* const AnnotationWithReducer = Annotation.Root({ -* messages: Annotation({ -* // Different types are allowed for updates -* reducer: (left: BaseMessage[], right: BaseMessage | BaseMessage[]) => { -* if (Array.isArray(right)) { -* return left.concat(right); -* } -* return left.concat([right]); -* }, -* default: () => [], -* }), -* }); -* -* const graphBuilder = new StateGraph(AnnotationWithReducer); -* -* // A node in the graph that returns an object with a "messages" key -* // will update the state by combining the existing value with the returned one. -* const myNode = (state: typeof AnnotationWithReducer.State) => { -* return { -* messages: [new AIMessage("Some new response")], -* }; -* }; -* -* const graph = graphBuilder -* .addNode("myNode", myNode) -* ... -* .compile(); -* ``` -* @namespace -* @property Root -* Helper function that instantiates a StateGraph state. See {@link Annotation} for usage. -*/ -const Annotation = function(annotation) { - if (isConfiguredManagedValue$1(annotation)) return annotation; - else if (annotation) return getChannel$1(annotation); - else return new LastValue$1(); -}; -Annotation.Root = (sd) => new AnnotationRoot$1(sd); -function getChannel$1(reducer) { - if (typeof reducer === "object" && reducer && "reducer" in reducer && reducer.reducer) return new BinaryOperatorAggregate$1(reducer.reducer, reducer.default); - if (typeof reducer === "object" && reducer && "value" in reducer && reducer.value) return new BinaryOperatorAggregate$1(reducer.value, reducer.default); - return new LastValue$1(); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/utils/config.js -const COPIABLE_KEYS$1 = [ - "tags", - "metadata", - "callbacks", - "configurable" -]; -const CONFIG_KEYS$1 = [ - "tags", - "metadata", - "callbacks", - "runName", - "maxConcurrency", - "recursionLimit", - "configurable", - "runId", - "outputKeys", - "streamMode", - "store", - "writer", - "interruptBefore", - "interruptAfter", - "signal" -]; -const DEFAULT_RECURSION_LIMIT$1 = 25; -function ensureLangGraphConfig$1(...configs) { - const empty = { - tags: [], - metadata: {}, - callbacks: void 0, - recursionLimit: DEFAULT_RECURSION_LIMIT$1, - configurable: {} - }; - const implicitConfig = AsyncLocalStorageProviderSingleton.getRunnableConfig(); - if (implicitConfig !== void 0) { - for (const [k, v] of Object.entries(implicitConfig)) if (v !== void 0) if (COPIABLE_KEYS$1.includes(k)) { - let copiedValue; - if (Array.isArray(v)) copiedValue = [...v]; - else if (typeof v === "object") if (k === "callbacks" && "copy" in v && typeof v.copy === "function") copiedValue = v.copy(); - else copiedValue = { ...v }; - else copiedValue = v; - empty[k] = copiedValue; - } else empty[k] = v; - } - for (const config of configs) { - if (config === void 0) continue; - for (const [k, v] of Object.entries(config)) if (v !== void 0 && CONFIG_KEYS$1.includes(k)) empty[k] = v; - } - for (const [key$1, value] of Object.entries(empty.configurable)) { - empty.metadata = empty.metadata ?? {}; - if (!key$1.startsWith("__") && (typeof value === "string" || typeof value === "number" || typeof value === "boolean") && !(key$1 in empty.metadata)) empty.metadata[key$1] = value; - } - return empty; -} -function recastCheckpointNamespace$1(namespace) { - return namespace.split(CHECKPOINT_NAMESPACE_SEPARATOR$1).filter((part) => !part.match(/^\d+$/)).map((part) => part.split(CHECKPOINT_NAMESPACE_END$1)[0]).join(CHECKPOINT_NAMESPACE_SEPARATOR$1); -} -function getParentCheckpointNamespace$1(namespace) { - const parts = namespace.split(CHECKPOINT_NAMESPACE_SEPARATOR$1); - while (parts.length > 1 && parts[parts.length - 1].match(/^\d+$/)) parts.pop(); - return parts.slice(0, -1).join(CHECKPOINT_NAMESPACE_SEPARATOR$1); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/utils.js -var RunnableCallable$1 = class extends Runnable { - constructor(fields) { - super(); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langgraph"] - }); - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "trace", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "recurse", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.name = fields.name ?? fields.func.name; - this.func = fields.func; - this.config = fields.tags ? { tags: fields.tags } : void 0; - this.trace = fields.trace ?? this.trace; - this.recurse = fields.recurse ?? this.recurse; - } - async _tracedInvoke(input, config, runManager) { - return new Promise((resolve, reject) => { - const childConfig = patchConfig(config, { callbacks: runManager?.getChild() }); - AsyncLocalStorageProviderSingleton.runWithConfig(childConfig, async () => { - try { - const output = await this.func(input, childConfig); - resolve(output); - } catch (e) { - reject(e); - } - }); - }); - } - async invoke(input, options) { - let returnValue; - const config = ensureLangGraphConfig$1(options); - const mergedConfig = mergeConfigs(this.config, config); - if (this.trace) returnValue = await this._callWithConfig(this._tracedInvoke, input, mergedConfig); - else returnValue = await AsyncLocalStorageProviderSingleton.runWithConfig(mergedConfig, async () => this.func(input, mergedConfig)); - if (Runnable.isRunnable(returnValue) && this.recurse) return await AsyncLocalStorageProviderSingleton.runWithConfig(mergedConfig, async () => returnValue.invoke(input, mergedConfig)); - return returnValue; - } -}; -function* prefixGenerator$1(generator, prefix) { - if (prefix === void 0) yield* generator; - else for (const value of generator) yield [prefix, value]; -} -async function gatherIterator$1(i$4) { - const out = []; - for await (const item of await i$4) out.push(item); - return out; -} -function gatherIteratorSync$1(i$4) { - const out = []; - for (const item of i$4) out.push(item); - return out; -} -function patchConfigurable$2(config, patch) { - if (!config) return { configurable: patch }; - else if (!("configurable" in config)) return { - ...config, - configurable: patch - }; - else return { - ...config, - configurable: { - ...config.configurable, - ...patch - } - }; -} -function isAsyncGeneratorFunction$1(val) { - return val != null && typeof val === "function" && val instanceof Object.getPrototypeOf(async function* () {}).constructor; -} -function isGeneratorFunction$1(val) { - return val != null && typeof val === "function" && val instanceof Object.getPrototypeOf(function* () {}).constructor; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/write.js -const SKIP_WRITE$1 = { [Symbol.for("LG_SKIP_WRITE")]: true }; -function _isSkipWrite$1(x) { - return typeof x === "object" && x?.[Symbol.for("LG_SKIP_WRITE")] !== void 0; -} -const PASSTHROUGH$1 = { [Symbol.for("LG_PASSTHROUGH")]: true }; -function _isPassthrough$1(x) { - return typeof x === "object" && x?.[Symbol.for("LG_PASSTHROUGH")] !== void 0; -} -const IS_WRITER$1 = Symbol("IS_WRITER"); -/** -* Mapping of write channels to Runnables that return the value to be written, -* or None to skip writing. -*/ -var ChannelWrite$1 = class ChannelWrite$1 extends RunnableCallable$1 { - constructor(writes, tags) { - const name = `ChannelWrite<${writes.map((packet) => { - if (_isSend$1(packet)) return packet.node; - else if ("channel" in packet) return packet.channel; - return "..."; - }).join(",")}>`; - super({ - writes, - name, - tags, - func: async (input, config) => { - return this._write(input, config ?? {}); - } - }); - Object.defineProperty(this, "writes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.writes = writes; - } - async _write(input, config) { - const writes = this.writes.map((write) => { - if (_isChannelWriteTupleEntry$1(write) && _isPassthrough$1(write.value)) return { - mapper: write.mapper, - value: input - }; - else if (_isChannelWriteEntry$1(write) && _isPassthrough$1(write.value)) return { - channel: write.channel, - value: input, - skipNone: write.skipNone, - mapper: write.mapper - }; - else return write; - }); - await ChannelWrite$1.doWrite(config, writes); - return input; - } - static async doWrite(config, writes) { - for (const w$1 of writes) { - if (_isChannelWriteEntry$1(w$1)) { - if (w$1.channel === TASKS$1) throw new InvalidUpdateError$1("Cannot write to the reserved channel TASKS"); - if (_isPassthrough$1(w$1.value)) throw new InvalidUpdateError$1("PASSTHROUGH value must be replaced"); - } - if (_isChannelWriteTupleEntry$1(w$1)) { - if (_isPassthrough$1(w$1.value)) throw new InvalidUpdateError$1("PASSTHROUGH value must be replaced"); - } - } - const writeEntries = []; - for (const w$1 of writes) if (_isSend$1(w$1)) writeEntries.push([TASKS$1, w$1]); - else if (_isChannelWriteTupleEntry$1(w$1)) { - const mappedResult = await w$1.mapper.invoke(w$1.value, config); - if (mappedResult != null && mappedResult.length > 0) writeEntries.push(...mappedResult); - } else if (_isChannelWriteEntry$1(w$1)) { - const mappedValue = w$1.mapper !== void 0 ? await w$1.mapper.invoke(w$1.value, config) : w$1.value; - if (_isSkipWrite$1(mappedValue)) continue; - if (w$1.skipNone && mappedValue === void 0) continue; - writeEntries.push([w$1.channel, mappedValue]); - } else throw new Error(`Invalid write entry: ${JSON.stringify(w$1)}`); - const write = config.configurable?.[CONFIG_KEY_SEND$1]; - write(writeEntries); - } - static isWriter(runnable) { - return runnable instanceof ChannelWrite$1 || IS_WRITER$1 in runnable && !!runnable[IS_WRITER$1]; - } - static registerWriter(runnable) { - return Object.defineProperty(runnable, IS_WRITER$1, { value: true }); - } -}; -function _isChannelWriteEntry$1(x) { - return x !== void 0 && typeof x.channel === "string"; -} -function _isChannelWriteTupleEntry$1(x) { - return x !== void 0 && !_isChannelWriteEntry$1(x) && Runnable.isRunnable(x.mapper); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/read.js -var ChannelRead = class ChannelRead extends RunnableCallable$1 { - constructor(channel, mapper, fresh = false) { - super({ func: (_, config) => ChannelRead.doRead(config, this.channel, this.fresh, this.mapper) }); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "ChannelRead" - }); - Object.defineProperty(this, "channel", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "fresh", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "mapper", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.fresh = fresh; - this.mapper = mapper; - this.channel = channel; - this.name = Array.isArray(channel) ? `ChannelRead<${channel.join(",")}>` : `ChannelRead<${channel}>`; - } - static doRead(config, channel, fresh, mapper) { - const read = config.configurable?.[CONFIG_KEY_READ$1]; - if (!read) throw new Error("Runnable is not configured with a read function. Make sure to call in the context of a Pregel process"); - if (mapper) return mapper(read(channel, fresh)); - else return read(channel, fresh); - } -}; -const defaultRunnableBound$1 = /* @__PURE__ */ new RunnablePassthrough(); -var PregelNode$1 = class PregelNode$1 extends RunnableBinding { - constructor(fields) { - const { channels, triggers, mapper, writers, bound, kwargs, metadata, retryPolicy, cachePolicy, tags, subgraphs, ends } = fields; - const mergedTags = [...fields.config?.tags ? fields.config.tags : [], ...tags ?? []]; - super({ - ...fields, - bound: fields.bound ?? defaultRunnableBound$1, - config: { - ...fields.config ? fields.config : {}, - tags: mergedTags - } - }); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "PregelNode" - }); - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "triggers", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "mapper", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "writers", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "bound", { - enumerable: true, - configurable: true, - writable: true, - value: defaultRunnableBound$1 - }); - Object.defineProperty(this, "kwargs", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "metadata", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "retryPolicy", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "cachePolicy", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "subgraphs", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "ends", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.channels = channels; - this.triggers = triggers; - this.mapper = mapper; - this.writers = writers ?? this.writers; - this.bound = bound ?? this.bound; - this.kwargs = kwargs ?? this.kwargs; - this.metadata = metadata ?? this.metadata; - this.tags = mergedTags; - this.retryPolicy = retryPolicy; - this.cachePolicy = cachePolicy; - this.subgraphs = subgraphs; - this.ends = ends; - } - getWriters() { - const newWriters = [...this.writers]; - while (newWriters.length > 1 && newWriters[newWriters.length - 1] instanceof ChannelWrite$1 && newWriters[newWriters.length - 2] instanceof ChannelWrite$1) { - const endWriters = newWriters.slice(-2); - const combinedWrites = endWriters[0].writes.concat(endWriters[1].writes); - newWriters[newWriters.length - 2] = new ChannelWrite$1(combinedWrites, endWriters[0].config?.tags); - newWriters.pop(); - } - return newWriters; - } - getNode() { - const writers = this.getWriters(); - if (this.bound === defaultRunnableBound$1 && writers.length === 0) return void 0; - else if (this.bound === defaultRunnableBound$1 && writers.length === 1) return writers[0]; - else if (this.bound === defaultRunnableBound$1) return new RunnableSequence({ - first: writers[0], - middle: writers.slice(1, writers.length - 1), - last: writers[writers.length - 1], - omitSequenceTags: true - }); - else if (writers.length > 0) return new RunnableSequence({ - first: this.bound, - middle: writers.slice(0, writers.length - 1), - last: writers[writers.length - 1], - omitSequenceTags: true - }); - else return this.bound; - } - join(channels) { - if (!Array.isArray(channels)) throw new Error("channels must be a list"); - if (typeof this.channels !== "object") throw new Error("all channels must be named when using .join()"); - return new PregelNode$1({ - channels: { - ...this.channels, - ...Object.fromEntries(channels.map((chan) => [chan, chan])) - }, - triggers: this.triggers, - mapper: this.mapper, - writers: this.writers, - bound: this.bound, - kwargs: this.kwargs, - config: this.config, - retryPolicy: this.retryPolicy, - cachePolicy: this.cachePolicy - }); - } - pipe(coerceable) { - if (ChannelWrite$1.isWriter(coerceable)) return new PregelNode$1({ - channels: this.channels, - triggers: this.triggers, - mapper: this.mapper, - writers: [...this.writers, coerceable], - bound: this.bound, - config: this.config, - kwargs: this.kwargs, - retryPolicy: this.retryPolicy, - cachePolicy: this.cachePolicy - }); - else if (this.bound === defaultRunnableBound$1) return new PregelNode$1({ - channels: this.channels, - triggers: this.triggers, - mapper: this.mapper, - writers: this.writers, - bound: _coerceToRunnable(coerceable), - config: this.config, - kwargs: this.kwargs, - retryPolicy: this.retryPolicy, - cachePolicy: this.cachePolicy - }); - else return new PregelNode$1({ - channels: this.channels, - triggers: this.triggers, - mapper: this.mapper, - writers: this.writers, - bound: this.bound.pipe(coerceable), - config: this.config, - kwargs: this.kwargs, - retryPolicy: this.retryPolicy, - cachePolicy: this.cachePolicy - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/validate.js -var GraphValidationError$1 = class extends Error { - constructor(message) { - super(message); - this.name = "GraphValidationError"; - } -}; -function validateGraph$1({ nodes, channels, inputChannels, outputChannels, streamChannels, interruptAfterNodes, interruptBeforeNodes }) { - if (!channels) throw new GraphValidationError$1("Channels not provided"); - const subscribedChannels = /* @__PURE__ */ new Set(); - const allOutputChannels = /* @__PURE__ */ new Set(); - for (const [name, node] of Object.entries(nodes)) { - if (name === INTERRUPT$1) throw new GraphValidationError$1(`"Node name ${INTERRUPT$1} is reserved"`); - if (node.constructor === PregelNode$1) node.triggers.forEach((trigger) => subscribedChannels.add(trigger)); - else throw new GraphValidationError$1(`Invalid node type ${typeof node}, expected PregelNode`); - } - for (const chan of subscribedChannels) if (!(chan in channels)) throw new GraphValidationError$1(`Subcribed channel '${String(chan)}' not in channels`); - if (!Array.isArray(inputChannels)) { - if (!subscribedChannels.has(inputChannels)) throw new GraphValidationError$1(`Input channel ${String(inputChannels)} is not subscribed to by any node`); - } else if (inputChannels.every((channel) => !subscribedChannels.has(channel))) throw new GraphValidationError$1(`None of the input channels ${inputChannels} are subscribed to by any node`); - if (!Array.isArray(outputChannels)) allOutputChannels.add(outputChannels); - else outputChannels.forEach((chan) => allOutputChannels.add(chan)); - if (streamChannels && !Array.isArray(streamChannels)) allOutputChannels.add(streamChannels); - else if (Array.isArray(streamChannels)) streamChannels.forEach((chan) => allOutputChannels.add(chan)); - for (const chan of allOutputChannels) if (!(chan in channels)) throw new GraphValidationError$1(`Output channel '${String(chan)}' not in channels`); - if (interruptAfterNodes && interruptAfterNodes !== "*") { - for (const node of interruptAfterNodes) if (!(node in nodes)) throw new GraphValidationError$1(`Node ${String(node)} not in nodes`); - } - if (interruptBeforeNodes && interruptBeforeNodes !== "*") { - for (const node of interruptBeforeNodes) if (!(node in nodes)) throw new GraphValidationError$1(`Node ${String(node)} not in nodes`); - } -} -function validateKeys$1(keys, channels) { - if (Array.isArray(keys)) { - for (const key$1 of keys) if (!(key$1 in channels)) throw new Error(`Key ${String(key$1)} not found in channels`); - } else if (!(keys in channels)) throw new Error(`Key ${String(keys)} not found in channels`); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/io.js -function readChannel$1(channels, chan, catchErrors = true, returnException = false) { - try { - return channels[chan].get(); - } catch (e) { - if (e.name === EmptyChannelError$1.unminifiable_name) { - if (returnException) return e; - else if (catchErrors) return null; - } - throw e; - } -} -function readChannels$1(channels, select, skipEmpty = true) { - if (Array.isArray(select)) { - const values = {}; - for (const k of select) try { - values[k] = readChannel$1(channels, k, !skipEmpty); - } catch (e) { - if (e.name === EmptyChannelError$1.unminifiable_name) continue; - } - return values; - } else return readChannel$1(channels, select); -} -/** -* Map input chunk to a sequence of pending writes in the form (channel, value). -*/ -function* mapCommand$1(cmd, pendingWrites) { - if (cmd.graph === Command$1.PARENT) throw new InvalidUpdateError$1("There is no parent graph."); - if (cmd.goto) { - let sends; - if (Array.isArray(cmd.goto)) sends = cmd.goto; - else sends = [cmd.goto]; - for (const send of sends) if (_isSend$1(send)) yield [ - NULL_TASK_ID$1, - TASKS$1, - send - ]; - else if (typeof send === "string") yield [ - NULL_TASK_ID$1, - `branch:to:${send}`, - "__start__" - ]; - else throw new Error(`In Command.send, expected Send or string, got ${typeof send}`); - } - if (cmd.resume) if (typeof cmd.resume === "object" && Object.keys(cmd.resume).length && Object.keys(cmd.resume).every(validate_default)) for (const [tid, resume] of Object.entries(cmd.resume)) { - const existing = pendingWrites.filter((w$1) => w$1[0] === tid && w$1[1] === RESUME$1).map((w$1) => w$1[2]).slice(0, 1) ?? []; - existing.push(resume); - yield [ - tid, - RESUME$1, - existing - ]; - } - else yield [ - NULL_TASK_ID$1, - RESUME$1, - cmd.resume - ]; - if (cmd.update) { - if (typeof cmd.update !== "object" || !cmd.update) throw new Error("Expected cmd.update to be a dict mapping channel names to update values"); - if (Array.isArray(cmd.update)) for (const [k, v] of cmd.update) yield [ - NULL_TASK_ID$1, - k, - v - ]; - else for (const [k, v] of Object.entries(cmd.update)) yield [ - NULL_TASK_ID$1, - k, - v - ]; - } -} -/** -* Map input chunk to a sequence of pending writes in the form [channel, value]. -*/ -function* mapInput$1(inputChannels, chunk) { - if (chunk !== void 0 && chunk !== null) if (Array.isArray(inputChannels) && typeof chunk === "object" && !Array.isArray(chunk)) { - for (const k in chunk) if (inputChannels.includes(k)) yield [k, chunk[k]]; - } else if (Array.isArray(inputChannels)) throw new Error(`Input chunk must be an object when "inputChannels" is an array`); - else yield [inputChannels, chunk]; -} -/** -* Map pending writes (a sequence of tuples (channel, value)) to output chunk. -*/ -function* mapOutputValues$1(outputChannels, pendingWrites, channels) { - if (Array.isArray(outputChannels)) { - if (pendingWrites === true || pendingWrites.find(([chan, _]) => outputChannels.includes(chan))) yield readChannels$1(channels, outputChannels); - } else if (pendingWrites === true || pendingWrites.some(([chan, _]) => chan === outputChannels)) yield readChannel$1(channels, outputChannels); -} -/** -* Map pending writes (a sequence of tuples (channel, value)) to output chunk. -* @internal -* -* @param outputChannels - The channels to output. -* @param tasks - The tasks to output. -* @param cached - Whether the output is cached. -* -* @returns A generator that yields the output chunk (if any). -*/ -function* mapOutputUpdates$1(outputChannels, tasks, cached) { - const outputTasks = tasks.filter(([task, ww]) => { - return (task.config === void 0 || !task.config.tags?.includes(TAG_HIDDEN$1)) && ww[0][0] !== ERROR$1 && ww[0][0] !== INTERRUPT$1; - }); - if (!outputTasks.length) return; - let updated; - if (outputTasks.some(([task]) => task.writes.some(([chan, _]) => chan === RETURN$1))) updated = outputTasks.flatMap(([task]) => task.writes.filter(([chan, _]) => chan === RETURN$1).map(([_, value]) => [task.name, value])); - else if (!Array.isArray(outputChannels)) updated = outputTasks.flatMap(([task]) => task.writes.filter(([chan, _]) => chan === outputChannels).map(([_, value]) => [task.name, value])); - else updated = outputTasks.flatMap(([task]) => { - const { writes } = task; - const counts = {}; - for (const [chan] of writes) if (outputChannels.includes(chan)) counts[chan] = (counts[chan] || 0) + 1; - if (Object.values(counts).some((count) => count > 1)) return writes.filter(([chan]) => outputChannels.includes(chan)).map(([chan, value]) => [task.name, { [chan]: value }]); - else return [[task.name, Object.fromEntries(writes.filter(([chan]) => outputChannels.includes(chan)))]]; - }); - const grouped = {}; - for (const [node, value] of updated) { - if (!(node in grouped)) grouped[node] = []; - grouped[node].push(value); - } - const flattened = {}; - for (const node in grouped) if (grouped[node].length === 1) { - const [write] = grouped[node]; - flattened[node] = write; - } else flattened[node] = grouped[node]; - if (cached) flattened["__metadata__"] = { cached }; - yield flattened; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.js -function isRunnableSequence$1(x) { - return "steps" in x && Array.isArray(x.steps); -} -function isPregelLike$1(x) { - return "lg_is_pregel" in x && x.lg_is_pregel === true; -} -function findSubgraphPregel$1(candidate) { - const candidates = [candidate]; - for (const candidate$1 of candidates) if (isPregelLike$1(candidate$1)) return candidate$1; - else if (isRunnableSequence$1(candidate$1)) candidates.push(...candidate$1.steps); - return void 0; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/debug.js -const COLORS_MAP$1 = { - blue: { - start: "\x1B[34m", - end: "\x1B[0m" - }, - green: { - start: "\x1B[32m", - end: "\x1B[0m" - }, - yellow: { - start: "\x1B[33;1m", - end: "\x1B[0m" - } -}; -/** -* Wrap some text in a color for printing to the console. -*/ -const wrap$1 = (color, text) => `${color.start}${text}${color.end}`; -function* mapDebugTasks$1(step, tasks) { - const ts = (/* @__PURE__ */ new Date()).toISOString(); - for (const { id, name, input, config, triggers, writes } of tasks) { - if (config?.tags?.includes(TAG_HIDDEN$1)) continue; - const interrupts = writes.filter(([writeId, n]) => { - return writeId === id && n === INTERRUPT$1; - }).map(([, v]) => { - return v; - }); - yield { - type: "task", - timestamp: ts, - step, - payload: { - id, - name, - input, - triggers, - interrupts - } - }; - } -} -function* mapDebugTaskResults$1(step, tasks, streamChannels) { - const ts = (/* @__PURE__ */ new Date()).toISOString(); - for (const [{ id, name, config }, writes] of tasks) { - if (config?.tags?.includes(TAG_HIDDEN$1)) continue; - yield { - type: "task_result", - timestamp: ts, - step, - payload: { - id, - name, - result: writes.filter(([channel]) => { - return Array.isArray(streamChannels) ? streamChannels.includes(channel) : channel === streamChannels; - }), - interrupts: writes.filter((w$1) => w$1[0] === INTERRUPT$1).map((w$1) => w$1[1]) - } - }; - } -} -function* mapDebugCheckpoint$1(step, config, channels, streamChannels, metadata, tasks, pendingWrites, parentConfig) { - function formatConfig(config$1) { - const pyConfig = {}; - if (config$1.callbacks != null) pyConfig.callbacks = config$1.callbacks; - if (config$1.configurable != null) pyConfig.configurable = config$1.configurable; - if (config$1.maxConcurrency != null) pyConfig.max_concurrency = config$1.maxConcurrency; - if (config$1.metadata != null) pyConfig.metadata = config$1.metadata; - if (config$1.recursionLimit != null) pyConfig.recursion_limit = config$1.recursionLimit; - if (config$1.runId != null) pyConfig.run_id = config$1.runId; - if (config$1.runName != null) pyConfig.run_name = config$1.runName; - if (config$1.tags != null) pyConfig.tags = config$1.tags; - return pyConfig; - } - const parentNs = config.configurable?.checkpoint_ns; - const taskStates = {}; - for (const task of tasks) { - const candidates = task.subgraphs?.length ? task.subgraphs : [task.proc]; - if (!candidates.find(findSubgraphPregel$1)) continue; - let taskNs = `${task.name}:${task.id}`; - if (parentNs) taskNs = `${parentNs}|${taskNs}`; - taskStates[task.id] = { configurable: { - thread_id: config.configurable?.thread_id, - checkpoint_ns: taskNs - } }; - } - const ts = (/* @__PURE__ */ new Date()).toISOString(); - yield { - type: "checkpoint", - timestamp: ts, - step, - payload: { - config: formatConfig(config), - values: readChannels$1(channels, streamChannels), - metadata, - next: tasks.map((task) => task.name), - tasks: tasksWithWrites$1(tasks, pendingWrites, taskStates), - parentConfig: parentConfig ? formatConfig(parentConfig) : void 0 - } - }; -} -function tasksWithWrites$1(tasks, pendingWrites, states) { - return tasks.map((task) => { - const error = pendingWrites.find(([id, n]) => id === task.id && n === ERROR$1)?.[2]; - const interrupts = pendingWrites.filter(([id, n]) => { - return id === task.id && n === INTERRUPT$1; - }).map(([, , v]) => { - return v; - }); - if (error) return { - id: task.id, - name: task.name, - path: task.path, - error, - interrupts - }; - const taskState = states?.[task.id]; - return { - id: task.id, - name: task.name, - path: task.path, - interrupts, - ...taskState !== void 0 ? { state: taskState } : {} - }; - }); -} -function printStepCheckpoint$1(step, channels, whitelist) { - console.log([ - `${wrap$1(COLORS_MAP$1.blue, `[${step}:checkpoint]`)}`, - `\x1b[1m State at the end of step ${step}:\x1b[0m\n`, - JSON.stringify(readChannels$1(channels, whitelist), null, 2) - ].join("")); -} -function printStepTasks$1(step, nextTasks) { - const nTasks = nextTasks.length; - console.log([ - `${wrap$1(COLORS_MAP$1.blue, `[${step}:tasks]`)}`, - `\x1b[1m Starting step ${step} with ${nTasks} task${nTasks === 1 ? "" : "s"}:\x1b[0m\n`, - nextTasks.map((task) => `- ${wrap$1(COLORS_MAP$1.green, String(task.name))} -> ${JSON.stringify(task.input, null, 2)}`).join("\n") - ].join("")); -} -function printStepWrites$1(step, writes, whitelist) { - const byChannel = {}; - for (const [channel, value] of writes) if (whitelist.includes(channel)) { - if (!byChannel[channel]) byChannel[channel] = []; - byChannel[channel].push(value); - } - console.log([ - `${wrap$1(COLORS_MAP$1.blue, `[${step}:writes]`)}`, - `\x1b[1m Finished step ${step} with writes to ${Object.keys(byChannel).length} channel${Object.keys(byChannel).length !== 1 ? "s" : ""}:\x1b[0m\n`, - Object.entries(byChannel).map(([name, vals]) => `- ${wrap$1(COLORS_MAP$1.yellow, name)} -> ${vals.map((v) => JSON.stringify(v)).join(", ")}`).join("\n") - ].join("")); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/types.js -var Call$1 = class { - constructor({ func, name, input, retry, cache: cache$1, callbacks }) { - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "input", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "retry", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "cache", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "callbacks", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "__lg_type", { - enumerable: true, - configurable: true, - writable: true, - value: "call" - }); - this.func = func; - this.name = name; - this.input = input; - this.retry = retry; - this.cache = cache$1; - this.callbacks = callbacks; - } -}; -function isCall$1(value) { - return typeof value === "object" && value !== null && "__lg_type" in value && value.__lg_type === "call"; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/utils/index.js -function getNullChannelVersion$1(currentVersions) { - const versionValues = Object.values(currentVersions); - const versionType = versionValues.length > 0 ? typeof versionValues[0] : void 0; - let nullVersion; - if (versionType === "number") nullVersion = 0; - else if (versionType === "string") nullVersion = ""; - return nullVersion; -} -function getNewChannelVersions$1(previousVersions, currentVersions) { - if (Object.keys(previousVersions).length > 0) { - const nullVersion = getNullChannelVersion$1(currentVersions); - return Object.fromEntries(Object.entries(currentVersions).filter(([k, v]) => v > (previousVersions[k] ?? nullVersion))); - } else return currentVersions; -} -function _coerceToDict$2(value, defaultKey) { - return value && !Array.isArray(value) && !(value instanceof Date) && typeof value === "object" ? value : { [defaultKey]: value }; -} -function patchConfigurable$3(config, patch) { - if (config === null) return { configurable: patch }; - else if (config?.configurable === void 0) return { - ...config, - configurable: patch - }; - else return { - ...config, - configurable: { - ...config.configurable, - ...patch - } - }; -} -function patchCheckpointMap$1(config, metadata) { - const parents = metadata?.parents ?? {}; - if (Object.keys(parents).length > 0) return patchConfigurable$3(config, { [CONFIG_KEY_CHECKPOINT_MAP$1]: { - ...parents, - [config.configurable?.checkpoint_ns ?? ""]: config.configurable?.checkpoint_id - } }); - else return config; -} -/** -* Combine multiple abort signals into a single abort signal. -* @param signals - The abort signals to combine. -* @returns A single abort signal that is aborted if any of the input signals are aborted. -*/ -function combineAbortSignals$1(...signals$1) { - if (signals$1.length === 1) return signals$1[0]; - const combinedController = new AbortController(); - const listener = () => { - combinedController.abort(); - signals$1.forEach((s$1) => s$1.removeEventListener("abort", listener)); - }; - signals$1.forEach((s$1) => s$1.addEventListener("abort", listener)); - if (signals$1.some((s$1) => s$1.aborted)) combinedController.abort(); - return combinedController.signal; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/call.js -/** -* Wraps a user function in a Runnable that writes the returned value to the RETURN channel. -*/ -function getRunnableForFunc$1(name, func) { - const run = new RunnableCallable$1({ - func: (input) => func(...input), - name, - trace: false, - recurse: false - }); - return new RunnableSequence({ - name, - first: run, - last: new ChannelWrite$1([{ - channel: RETURN$1, - value: PASSTHROUGH$1 - }], [TAG_HIDDEN$1]) - }); -} -function getRunnableForEntrypoint$1(name, func) { - const run = new RunnableCallable$1({ - func: (input, config) => { - return func(input, config); - }, - name, - trace: false, - recurse: false - }); - return run; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/algo.js -const increment$1 = (current) => { - return current !== void 0 ? current + 1 : 1; -}; -function shouldInterrupt$1(checkpoint, interruptNodes, tasks) { - const versionValues = Object.values(checkpoint.channel_versions); - const versionType = versionValues.length > 0 ? typeof versionValues[0] : void 0; - let nullVersion; - if (versionType === "number") nullVersion = 0; - else if (versionType === "string") nullVersion = ""; - const seen = checkpoint.versions_seen[INTERRUPT$1] ?? {}; - const anyChannelUpdated = Object.entries(checkpoint.channel_versions).some(([chan, version]) => { - return version > (seen[chan] ?? nullVersion); - }); - const anyTriggeredNodeInInterruptNodes = tasks.some((task) => interruptNodes === "*" ? !task.config?.tags?.includes(TAG_HIDDEN$1) : interruptNodes.includes(task.name)); - return anyChannelUpdated && anyTriggeredNodeInInterruptNodes; -} -function _localRead$1(step, checkpoint, channels, managed, task, select, fresh = false) { - let managedKeys = []; - let updated = /* @__PURE__ */ new Set(); - if (!Array.isArray(select)) { - for (const [c] of task.writes) if (c === select) { - updated = new Set([c]); - break; - } - updated = updated || /* @__PURE__ */ new Set(); - } else { - managedKeys = select.filter((k) => managed.get(k)); - select = select.filter((k) => !managed.get(k)); - updated = new Set(select.filter((c) => task.writes.some(([key$1, _]) => key$1 === c))); - } - let values; - if (fresh && updated.size > 0) { - const localChannels = Object.fromEntries(Object.entries(channels).filter(([k, _]) => updated.has(k))); - const newCheckpoint = createCheckpoint$1(checkpoint, localChannels, -1); - const newChannels = emptyChannels$1(localChannels, newCheckpoint); - _applyWrites$1(copyCheckpoint(newCheckpoint), newChannels, [task], void 0, void 0); - values = readChannels$1({ - ...channels, - ...newChannels - }, select); - } else values = readChannels$1(channels, select); - if (managedKeys.length > 0) for (const k of managedKeys) { - const managedValue = managed.get(k); - if (managedValue) { - const resultOfManagedCall = managedValue.call(step); - values[k] = resultOfManagedCall; - } - } - return values; -} -function _localWrite$1(step, commit, processes, managed, writes) { - for (const [chan, value] of writes) if ([PUSH$1, TASKS$1].includes(chan) && value != null) { - if (!_isSend$1(value)) throw new InvalidUpdateError$1(`Invalid packet type, expected SendProtocol, got ${JSON.stringify(value)}`); - if (!(value.node in processes)) throw new InvalidUpdateError$1(`Invalid node name "${value.node}" in Send packet`); - managed.replaceRuntimeValues(step, value.args); - } - commit(writes); -} -const IGNORE$1 = new Set([ - NO_WRITES$1, - PUSH$1, - RESUME$1, - INTERRUPT$1, - RETURN$1, - ERROR$1 -]); -function _applyWrites$1(checkpoint, channels, tasks, getNextVersion, triggerToNodes) { - tasks.sort((a, b) => { - const aPath = a.path?.slice(0, 3) || []; - const bPath = b.path?.slice(0, 3) || []; - for (let i$4 = 0; i$4 < Math.min(aPath.length, bPath.length); i$4 += 1) { - if (aPath[i$4] < bPath[i$4]) return -1; - if (aPath[i$4] > bPath[i$4]) return 1; - } - return aPath.length - bPath.length; - }); - const bumpStep = tasks.some((task) => task.triggers.length > 0); - const onlyChannels = Object.fromEntries(Object.entries(channels).filter(([_, value]) => isBaseChannel$1(value))); - for (const task of tasks) { - checkpoint.versions_seen[task.name] ??= {}; - for (const chan of task.triggers) if (chan in checkpoint.channel_versions) checkpoint.versions_seen[task.name][chan] = checkpoint.channel_versions[chan]; - } - let maxVersion; - if (Object.keys(checkpoint.channel_versions).length > 0) maxVersion = maxChannelVersion(...Object.values(checkpoint.channel_versions)); - const channelsToConsume = new Set(tasks.flatMap((task) => task.triggers).filter((chan) => !RESERVED$1.includes(chan))); - for (const chan of channelsToConsume) if (chan in onlyChannels && onlyChannels[chan].consume()) { - if (getNextVersion !== void 0) checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - } - if (checkpoint.pending_sends?.length && bumpStep) checkpoint.pending_sends = []; - const pendingWriteValuesByChannel = {}; - const pendingWritesByManaged = {}; - for (const task of tasks) for (const [chan, val] of task.writes) if (IGNORE$1.has(chan)) {} else if (chan === TASKS$1) checkpoint.pending_sends.push({ - node: val.node, - args: val.args - }); - else if (chan in onlyChannels) { - pendingWriteValuesByChannel[chan] ??= []; - pendingWriteValuesByChannel[chan].push(val); - } else { - pendingWritesByManaged[chan] ??= []; - pendingWritesByManaged[chan].push(val); - } - maxVersion = void 0; - if (Object.keys(checkpoint.channel_versions).length > 0) maxVersion = maxChannelVersion(...Object.values(checkpoint.channel_versions)); - const updatedChannels = /* @__PURE__ */ new Set(); - for (const [chan, vals] of Object.entries(pendingWriteValuesByChannel)) if (chan in onlyChannels) { - let updated; - try { - updated = onlyChannels[chan].update(vals); - } catch (e) { - if (e.name === InvalidUpdateError$1.unminifiable_name) { - const wrappedError = new InvalidUpdateError$1(`Invalid update for channel "${chan}" with values ${JSON.stringify(vals)}: ${e.message}`); - wrappedError.lc_error_code = e.lc_error_code; - throw wrappedError; - } else throw e; - } - if (updated && getNextVersion !== void 0) { - checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - if (onlyChannels[chan].isAvailable()) updatedChannels.add(chan); - } - } - if (bumpStep) { - for (const chan of Object.keys(onlyChannels)) if (onlyChannels[chan].isAvailable() && !updatedChannels.has(chan)) { - const updated = onlyChannels[chan].update([]); - if (updated && getNextVersion !== void 0) { - checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - if (onlyChannels[chan].isAvailable()) updatedChannels.add(chan); - } - } - } - if (bumpStep && checkpoint.pending_sends.length === 0 && !Object.keys(triggerToNodes ?? {}).some((channel) => updatedChannels.has(channel))) { - for (const chan of Object.keys(onlyChannels)) if (onlyChannels[chan].finish() && getNextVersion !== void 0) { - checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - if (onlyChannels[chan].isAvailable()) updatedChannels.add(chan); - } - } - return pendingWritesByManaged; -} -/** -* Prepare the set of tasks that will make up the next Pregel step. -* This is the union of all PUSH tasks (Sends) and PULL tasks (nodes triggered -* by edges). -*/ -function _prepareNextTasks$1(checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra) { - const tasks = {}; - for (let i$4 = 0; i$4 < checkpoint.pending_sends.length; i$4 += 1) { - const task = _prepareSingleTask$1([PUSH$1, i$4], checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra); - if (task !== void 0) tasks[task.id] = task; - } - for (const name of Object.keys(processes)) { - const task = _prepareSingleTask$1([PULL$1, name], checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra); - if (task !== void 0) tasks[task.id] = task; - } - return tasks; -} -/** -* Prepares a single task for the next Pregel step, given a task path, which -* uniquely identifies a PUSH or PULL task within the graph. -*/ -function _prepareSingleTask$1(taskPath, checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra) { - const { step, checkpointer, manager } = extra; - const configurable = config.configurable ?? {}; - const parentNamespace = configurable.checkpoint_ns ?? ""; - if (taskPath[0] === PUSH$1 && isCall$1(taskPath[taskPath.length - 1])) { - const call$4 = taskPath[taskPath.length - 1]; - const proc = getRunnableForFunc$1(call$4.name, call$4.func); - const triggers = [PUSH$1]; - const checkpointNamespace = parentNamespace === "" ? call$4.name : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR$1}${call$4.name}`; - const id = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - call$4.name, - PUSH$1, - taskPath[1], - taskPath[2] - ]), checkpoint.id); - const taskCheckpointNamespace = `${checkpointNamespace}${CHECKPOINT_NAMESPACE_END$1}${id}`; - const metadata = { - langgraph_step: step, - langgraph_node: call$4.name, - langgraph_triggers: triggers, - langgraph_path: taskPath.slice(0, 3), - langgraph_checkpoint_ns: taskCheckpointNamespace - }; - if (forExecution) { - const writes = []; - const task = { - name: call$4.name, - input: call$4.input, - proc, - writes, - config: patchConfig(mergeConfigs(config, { - metadata, - store: extra.store ?? config.store - }), { - runName: call$4.name, - callbacks: manager?.getChild(`graph:step:${step}`), - configurable: { - [CONFIG_KEY_TASK_ID$1]: id, - [CONFIG_KEY_SEND$1]: (writes_) => _localWrite$1(step, (items) => writes.push(...items), processes, managed, writes_), - [CONFIG_KEY_READ$1]: (select_, fresh_ = false) => _localRead$1(step, checkpoint, channels, managed, { - name: call$4.name, - writes, - triggers, - path: taskPath.slice(0, 3) - }, select_, fresh_), - [CONFIG_KEY_CHECKPOINTER$1]: checkpointer ?? configurable[CONFIG_KEY_CHECKPOINTER$1], - [CONFIG_KEY_CHECKPOINT_MAP$1]: { - ...configurable[CONFIG_KEY_CHECKPOINT_MAP$1], - [parentNamespace]: checkpoint.id - }, - [CONFIG_KEY_SCRATCHPAD$1]: _scratchpad$1({ - pendingWrites: pendingWrites ?? [], - taskId: id, - currentTaskInput: call$4.input - }), - [CONFIG_KEY_PREVIOUS_STATE$1]: checkpoint.channel_values[PREVIOUS$1], - checkpoint_id: void 0, - checkpoint_ns: taskCheckpointNamespace - } - }), - triggers, - retry_policy: call$4.retry, - cache_key: call$4.cache ? { - key: (call$4.cache.keyFunc ?? JSON.stringify)([call$4.input]), - ns: [CACHE_NS_WRITES, call$4.name ?? "__dynamic__"], - ttl: call$4.cache.ttl - } : void 0, - id, - path: taskPath.slice(0, 3), - writers: [] - }; - return task; - } else return { - id, - name: call$4.name, - interrupts: [], - path: taskPath.slice(0, 3) - }; - } else if (taskPath[0] === PUSH$1) { - const index = typeof taskPath[1] === "number" ? taskPath[1] : parseInt(taskPath[1], 10); - if (index >= checkpoint.pending_sends.length) return void 0; - const packet = _isSendInterface$1(checkpoint.pending_sends[index]) && !_isSend$1(checkpoint.pending_sends[index]) ? new Send$1(checkpoint.pending_sends[index].node, checkpoint.pending_sends[index].args) : checkpoint.pending_sends[index]; - if (!_isSendInterface$1(packet)) { - console.warn(`Ignoring invalid packet ${JSON.stringify(packet)} in pending sends.`); - return void 0; - } - if (!(packet.node in processes)) { - console.warn(`Ignoring unknown node name ${packet.node} in pending sends.`); - return void 0; - } - const triggers = [PUSH$1]; - const checkpointNamespace = parentNamespace === "" ? packet.node : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR$1}${packet.node}`; - const taskId = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - packet.node, - PUSH$1, - index.toString() - ]), checkpoint.id); - const taskCheckpointNamespace = `${checkpointNamespace}${CHECKPOINT_NAMESPACE_END$1}${taskId}`; - let metadata = { - langgraph_step: step, - langgraph_node: packet.node, - langgraph_triggers: triggers, - langgraph_path: taskPath.slice(0, 3), - langgraph_checkpoint_ns: taskCheckpointNamespace - }; - if (forExecution) { - const proc = processes[packet.node]; - const node = proc.getNode(); - if (node !== void 0) { - managed.replaceRuntimePlaceholders(step, packet.args); - if (proc.metadata !== void 0) metadata = { - ...metadata, - ...proc.metadata - }; - const writes = []; - return { - name: packet.node, - input: packet.args, - proc: node, - subgraphs: proc.subgraphs, - writes, - config: patchConfig(mergeConfigs(config, { - metadata, - tags: proc.tags, - store: extra.store ?? config.store - }), { - runName: packet.node, - callbacks: manager?.getChild(`graph:step:${step}`), - configurable: { - [CONFIG_KEY_TASK_ID$1]: taskId, - [CONFIG_KEY_SEND$1]: (writes_) => _localWrite$1(step, (items) => writes.push(...items), processes, managed, writes_), - [CONFIG_KEY_READ$1]: (select_, fresh_ = false) => _localRead$1(step, checkpoint, channels, managed, { - name: packet.node, - writes, - triggers, - path: taskPath - }, select_, fresh_), - [CONFIG_KEY_CHECKPOINTER$1]: checkpointer ?? configurable[CONFIG_KEY_CHECKPOINTER$1], - [CONFIG_KEY_CHECKPOINT_MAP$1]: { - ...configurable[CONFIG_KEY_CHECKPOINT_MAP$1], - [parentNamespace]: checkpoint.id - }, - [CONFIG_KEY_SCRATCHPAD$1]: _scratchpad$1({ - pendingWrites: pendingWrites ?? [], - taskId, - currentTaskInput: packet.args - }), - [CONFIG_KEY_PREVIOUS_STATE$1]: checkpoint.channel_values[PREVIOUS$1], - checkpoint_id: void 0, - checkpoint_ns: taskCheckpointNamespace - } - }), - triggers, - retry_policy: proc.retryPolicy, - cache_key: proc.cachePolicy ? { - key: (proc.cachePolicy.keyFunc ?? JSON.stringify)([packet.args]), - ns: [ - CACHE_NS_WRITES, - proc.name ?? "__dynamic__", - packet.node - ], - ttl: proc.cachePolicy.ttl - } : void 0, - id: taskId, - path: taskPath, - writers: proc.getWriters() - }; - } - } else return { - id: taskId, - name: packet.node, - interrupts: [], - path: taskPath - }; - } else if (taskPath[0] === PULL$1) { - const name = taskPath[1].toString(); - const proc = processes[name]; - if (proc === void 0) return void 0; - if (pendingWrites?.length) { - const checkpointNamespace = parentNamespace === "" ? name : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR$1}${name}`; - const taskId = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - name, - PULL$1, - name - ]), checkpoint.id); - const hasSuccessfulWrites = pendingWrites.some((w$1) => w$1[0] === taskId && w$1[1] !== ERROR$1); - if (hasSuccessfulWrites) return void 0; - } - const nullVersion = getNullChannelVersion$1(checkpoint.channel_versions); - if (nullVersion === void 0) return void 0; - const seen = checkpoint.versions_seen[name] ?? {}; - const triggers = proc.triggers.filter((chan) => { - const result = readChannel$1(channels, chan, false, true); - const isEmptyChannelError = result instanceof Error && result.name === EmptyChannelError$1.unminifiable_name; - return !isEmptyChannelError && (checkpoint.channel_versions[chan] ?? nullVersion) > (seen[chan] ?? nullVersion); - }).sort(); - if (triggers.length > 0) { - const val = _procInput$1(step, proc, managed, channels, forExecution); - if (val === void 0) return void 0; - const checkpointNamespace = parentNamespace === "" ? name : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR$1}${name}`; - const taskId = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - name, - PULL$1, - triggers - ]), checkpoint.id); - const taskCheckpointNamespace = `${checkpointNamespace}${CHECKPOINT_NAMESPACE_END$1}${taskId}`; - let metadata = { - langgraph_step: step, - langgraph_node: name, - langgraph_triggers: triggers, - langgraph_path: taskPath, - langgraph_checkpoint_ns: taskCheckpointNamespace - }; - if (forExecution) { - const node = proc.getNode(); - if (node !== void 0) { - if (proc.metadata !== void 0) metadata = { - ...metadata, - ...proc.metadata - }; - const writes = []; - return { - name, - input: val, - proc: node, - subgraphs: proc.subgraphs, - writes, - config: patchConfig(mergeConfigs(config, { - metadata, - tags: proc.tags, - store: extra.store ?? config.store - }), { - runName: name, - callbacks: manager?.getChild(`graph:step:${step}`), - configurable: { - [CONFIG_KEY_TASK_ID$1]: taskId, - [CONFIG_KEY_SEND$1]: (writes_) => _localWrite$1(step, (items) => { - writes.push(...items); - }, processes, managed, writes_), - [CONFIG_KEY_READ$1]: (select_, fresh_ = false) => _localRead$1(step, checkpoint, channels, managed, { - name, - writes, - triggers, - path: taskPath - }, select_, fresh_), - [CONFIG_KEY_CHECKPOINTER$1]: checkpointer ?? configurable[CONFIG_KEY_CHECKPOINTER$1], - [CONFIG_KEY_CHECKPOINT_MAP$1]: { - ...configurable[CONFIG_KEY_CHECKPOINT_MAP$1], - [parentNamespace]: checkpoint.id - }, - [CONFIG_KEY_SCRATCHPAD$1]: _scratchpad$1({ - pendingWrites: pendingWrites ?? [], - taskId, - currentTaskInput: val - }), - [CONFIG_KEY_PREVIOUS_STATE$1]: checkpoint.channel_values[PREVIOUS$1], - checkpoint_id: void 0, - checkpoint_ns: taskCheckpointNamespace - } - }), - triggers, - retry_policy: proc.retryPolicy, - cache_key: proc.cachePolicy ? { - key: (proc.cachePolicy.keyFunc ?? JSON.stringify)([val]), - ns: [ - CACHE_NS_WRITES, - proc.name ?? "__dynamic__", - name - ], - ttl: proc.cachePolicy.ttl - } : void 0, - id: taskId, - path: taskPath, - writers: proc.getWriters() - }; - } - } else return { - id: taskId, - name, - interrupts: [], - path: taskPath - }; - } - } - return void 0; -} -/** -* Function injected under CONFIG_KEY_READ in task config, to read current state. -* Used by conditional edges to read a copy of the state with reflecting the writes -* from that node only. -* -* @internal -*/ -function _procInput$1(step, proc, managed, channels, forExecution) { - let val; - if (typeof proc.channels === "object" && !Array.isArray(proc.channels)) { - val = {}; - for (const [k, chan] of Object.entries(proc.channels)) if (proc.triggers.includes(chan)) try { - val[k] = readChannel$1(channels, chan, false); - } catch (e) { - if (e.name === EmptyChannelError$1.unminifiable_name) return void 0; - else throw e; - } - else if (chan in channels) try { - val[k] = readChannel$1(channels, chan, false); - } catch (e) { - if (e.name === EmptyChannelError$1.unminifiable_name) continue; - else throw e; - } - else val[k] = managed.get(k)?.call(step); - } else if (Array.isArray(proc.channels)) { - let successfulRead = false; - for (const chan of proc.channels) try { - val = readChannel$1(channels, chan, false); - successfulRead = true; - break; - } catch (e) { - if (e.name === EmptyChannelError$1.unminifiable_name) continue; - else throw e; - } - if (!successfulRead) return void 0; - } else throw new Error(`Invalid channels type, expected list or dict, got ${proc.channels}`); - if (forExecution && proc.mapper !== void 0) val = proc.mapper(val); - return val; -} -function _scratchpad$1({ pendingWrites, taskId, currentTaskInput }) { - const nullResume = pendingWrites.find(([writeTaskId, chan]) => writeTaskId === NULL_TASK_ID$1 && chan === RESUME$1)?.[2]; - const scratchpad = { - callCounter: 0, - interruptCounter: -1, - resume: pendingWrites.filter(([writeTaskId, chan]) => writeTaskId === taskId && chan === RESUME$1).flatMap(([_writeTaskId, _chan, resume]) => resume), - nullResume, - subgraphCounter: 0, - currentTaskInput, - consumeNullResume: () => { - if (scratchpad.nullResume) { - delete scratchpad.nullResume; - pendingWrites.splice(pendingWrites.findIndex(([writeTaskId, chan]) => writeTaskId === NULL_TASK_ID$1 && chan === RESUME$1), 1); - return nullResume; - } - return void 0; - } - }; - return scratchpad; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/stream.js -/** -* A wrapper around an IterableReadableStream that allows for aborting the stream when -* {@link cancel} is called. -*/ -var IterableReadableStreamWithAbortSignal$1 = class extends IterableReadableStream { - /** - * @param readableStream - The stream to wrap. - * @param abortController - The abort controller to use. Optional. One will be created if not provided. - */ - constructor(readableStream, abortController) { - const reader = readableStream.getReader(); - const ac = abortController ?? new AbortController(); - super({ start(controller) { - return pump(); - function pump() { - return reader.read().then(({ done, value }) => { - if (done) { - controller.close(); - return; - } - controller.enqueue(value); - return pump(); - }); - } - } }); - Object.defineProperty(this, "_abortController", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_reader", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this._abortController = ac; - this._reader = reader; - } - /** - * Aborts the stream, abandoning any pending operations in progress. Calling this triggers an - * {@link AbortSignal} that is propagated to the tasks that are producing the data for this stream. - * @param reason - The reason for aborting the stream. Optional. - */ - async cancel(reason) { - this._abortController.abort(reason); - this._reader.releaseLock(); - } - /** - * The {@link AbortSignal} for the stream. Aborted when {@link cancel} is called. - */ - get signal() { - return this._abortController.signal; - } -}; -var IterableReadableWritableStream$1 = class extends IterableReadableStream { - get closed() { - return this._closed; - } - constructor(params) { - let streamControllerPromiseResolver; - const streamControllerPromise = new Promise((resolve) => { - streamControllerPromiseResolver = resolve; - }); - super({ start: (controller) => { - streamControllerPromiseResolver(controller); - } }); - Object.defineProperty(this, "modes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "controller", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "passthroughFn", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_closed", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - streamControllerPromise.then((controller) => { - this.controller = controller; - }); - this.passthroughFn = params.passthroughFn; - this.modes = params.modes; - } - push(chunk) { - this.passthroughFn?.(chunk); - this.controller.enqueue(chunk); - } - close() { - try { - this.controller.close(); - } catch (e) {} finally { - this._closed = true; - } - } - error(e) { - this.controller.error(e); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/loop.js -const INPUT_DONE$1 = Symbol.for("INPUT_DONE"); -const INPUT_RESUMING$1 = Symbol.for("INPUT_RESUMING"); -const DEFAULT_LOOP_LIMIT$1 = 25; -function createDuplexStream$1(...streams) { - return new IterableReadableWritableStream$1({ - passthroughFn: (value) => { - for (const stream of streams) if (stream.modes.has(value[1])) stream.push(value); - }, - modes: new Set(streams.flatMap((s$1) => Array.from(s$1.modes))) - }); -} -var AsyncBatchedCache = class extends BaseCache { - constructor(cache$1) { - super(); - Object.defineProperty(this, "cache", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "queue", { - enumerable: true, - configurable: true, - writable: true, - value: Promise.resolve() - }); - this.cache = cache$1; - } - async get(keys) { - return this.enqueueOperation("get", keys); - } - async set(pairs) { - return this.enqueueOperation("set", pairs); - } - async clear(namespaces) { - return this.enqueueOperation("clear", namespaces); - } - async stop() { - await this.queue; - } - enqueueOperation(type, ...args) { - const newPromise = this.queue.then(() => { - return this.cache[type](...args); - }); - this.queue = newPromise.then(() => void 0, () => void 0); - return newPromise; - } -}; -var PregelLoop$1 = class PregelLoop$1 { - get isResuming() { - const hasChannelVersions = Object.keys(this.checkpoint.channel_versions).length !== 0; - const configHasResumingFlag = this.config.configurable?.[CONFIG_KEY_RESUMING$1] !== void 0; - const configIsResuming = configHasResumingFlag && this.config.configurable?.[CONFIG_KEY_RESUMING$1]; - const inputIsNullOrUndefined = this.input === null || this.input === void 0; - const inputIsCommandResuming = isCommand$1(this.input) && this.input.resume != null; - const inputIsResuming = this.input === INPUT_RESUMING$1; - return hasChannelVersions && (configIsResuming || inputIsNullOrUndefined || inputIsCommandResuming || inputIsResuming); - } - constructor(params) { - Object.defineProperty(this, "input", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "output", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointer", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointerGetNextVersion", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "managed", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpoint", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointConfig", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointMetadata", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointNamespace", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointPendingWrites", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "checkpointPreviousVersions", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "step", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "stop", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "outputKeys", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "streamKeys", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "nodes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "skipDoneTasks", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "prevCheckpointConfig", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "status", { - enumerable: true, - configurable: true, - writable: true, - value: "pending" - }); - Object.defineProperty(this, "tasks", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "stream", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointerPromises", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "isNested", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_checkpointerChainedPromise", { - enumerable: true, - configurable: true, - writable: true, - value: Promise.resolve() - }); - Object.defineProperty(this, "store", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "cache", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "manager", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "interruptAfter", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "interruptBefore", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "toInterrupt", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "debug", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "triggerToNodes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.input = params.input; - this.checkpointer = params.checkpointer; - if (this.checkpointer !== void 0) this.checkpointerGetNextVersion = this.checkpointer.getNextVersion.bind(this.checkpointer); - else this.checkpointerGetNextVersion = increment$1; - this.checkpoint = params.checkpoint; - this.checkpointMetadata = params.checkpointMetadata; - this.checkpointPreviousVersions = params.checkpointPreviousVersions; - this.channels = params.channels; - this.managed = params.managed; - this.checkpointPendingWrites = params.checkpointPendingWrites; - this.step = params.step; - this.stop = params.stop; - this.config = params.config; - this.checkpointConfig = params.checkpointConfig; - this.isNested = params.isNested; - this.manager = params.manager; - this.outputKeys = params.outputKeys; - this.streamKeys = params.streamKeys; - this.nodes = params.nodes; - this.skipDoneTasks = params.skipDoneTasks; - this.store = params.store; - this.cache = params.cache ? new AsyncBatchedCache(params.cache) : void 0; - this.stream = params.stream; - this.checkpointNamespace = params.checkpointNamespace; - this.prevCheckpointConfig = params.prevCheckpointConfig; - this.interruptAfter = params.interruptAfter; - this.interruptBefore = params.interruptBefore; - this.debug = params.debug; - this.triggerToNodes = params.triggerToNodes; - } - static async initialize(params) { - let { config, stream } = params; - if (stream !== void 0 && config.configurable?.[CONFIG_KEY_STREAM$1] !== void 0) stream = createDuplexStream$1(stream, config.configurable[CONFIG_KEY_STREAM$1]); - const skipDoneTasks = config.configurable ? !("checkpoint_id" in config.configurable) : true; - const scratchpad = config.configurable?.[CONFIG_KEY_SCRATCHPAD$1]; - if (config.configurable && scratchpad) { - if (scratchpad.subgraphCounter > 0) config = patchConfigurable$3(config, { [CONFIG_KEY_CHECKPOINT_NS$1]: [config.configurable[CONFIG_KEY_CHECKPOINT_NS$1], scratchpad.subgraphCounter.toString()].join(CHECKPOINT_NAMESPACE_SEPARATOR$1) }); - scratchpad.subgraphCounter += 1; - } - const isNested = CONFIG_KEY_READ$1 in (config.configurable ?? {}); - if (!isNested && config.configurable?.checkpoint_ns !== void 0 && config.configurable?.checkpoint_ns !== "") config = patchConfigurable$3(config, { - checkpoint_ns: "", - checkpoint_id: void 0 - }); - let checkpointConfig = config; - if (config.configurable?.[CONFIG_KEY_CHECKPOINT_MAP$1] !== void 0 && config.configurable?.[CONFIG_KEY_CHECKPOINT_MAP$1]?.[config.configurable?.checkpoint_ns]) checkpointConfig = patchConfigurable$3(config, { checkpoint_id: config.configurable[CONFIG_KEY_CHECKPOINT_MAP$1][config.configurable?.checkpoint_ns] }); - const checkpointNamespace = config.configurable?.checkpoint_ns?.split(CHECKPOINT_NAMESPACE_SEPARATOR$1) ?? []; - const saved = await params.checkpointer?.getTuple(checkpointConfig) ?? { - config, - checkpoint: emptyCheckpoint(), - metadata: { - source: "input", - step: -2, - writes: null, - parents: {} - }, - pendingWrites: [] - }; - checkpointConfig = { - ...config, - ...saved.config, - configurable: { - checkpoint_ns: "", - ...config.configurable, - ...saved.config.configurable - } - }; - const prevCheckpointConfig = saved.parentConfig; - const checkpoint = copyCheckpoint(saved.checkpoint); - const checkpointMetadata = { ...saved.metadata }; - const checkpointPendingWrites = saved.pendingWrites ?? []; - const channels = emptyChannels$1(params.channelSpecs, checkpoint); - const step = (checkpointMetadata.step ?? 0) + 1; - const stop = step + (config.recursionLimit ?? DEFAULT_LOOP_LIMIT$1) + 1; - const checkpointPreviousVersions = { ...checkpoint.channel_versions }; - const store = params.store ? new AsyncBatchedStore(params.store) : void 0; - if (store) store.start(); - return new PregelLoop$1({ - input: params.input, - config, - checkpointer: params.checkpointer, - checkpoint, - checkpointMetadata, - checkpointConfig, - prevCheckpointConfig, - checkpointNamespace, - channels, - managed: params.managed, - isNested, - manager: params.manager, - skipDoneTasks, - step, - stop, - checkpointPreviousVersions, - checkpointPendingWrites, - outputKeys: params.outputKeys ?? [], - streamKeys: params.streamKeys ?? [], - nodes: params.nodes, - stream, - store, - cache: params.cache, - interruptAfter: params.interruptAfter, - interruptBefore: params.interruptBefore, - debug: params.debug, - triggerToNodes: params.triggerToNodes - }); - } - _checkpointerPutAfterPrevious(input) { - this._checkpointerChainedPromise = this._checkpointerChainedPromise.then(() => { - return this.checkpointer?.put(input.config, input.checkpoint, input.metadata, input.newVersions); - }); - this.checkpointerPromises.push(this._checkpointerChainedPromise); - } - async updateManagedValues(key$1, values) { - const mv = this.managed.get(key$1); - if (mv && "update" in mv && typeof mv.update === "function") await mv.update(values); - } - /** - * Put writes for a task, to be read by the next tick. - * @param taskId - * @param writes - */ - putWrites(taskId, writes) { - let writesCopy = writes; - if (writesCopy.length === 0) return; - if (writesCopy.every(([key$1]) => key$1 in WRITES_IDX_MAP)) writesCopy = Array.from(new Map(writesCopy.map((w$1) => [w$1[0], w$1])).values()); - for (const [c, v] of writesCopy) { - const idx = this.checkpointPendingWrites.findIndex((w$1) => w$1[0] === taskId && w$1[1] === c); - if (c in WRITES_IDX_MAP && idx !== -1) this.checkpointPendingWrites[idx] = [ - taskId, - c, - v - ]; - else this.checkpointPendingWrites.push([ - taskId, - c, - v - ]); - } - const putWritePromise = this.checkpointer?.putWrites({ - ...this.checkpointConfig, - configurable: { - ...this.checkpointConfig.configurable, - checkpoint_ns: this.config.configurable?.checkpoint_ns ?? "", - checkpoint_id: this.checkpoint.id - } - }, writesCopy, taskId); - if (putWritePromise !== void 0) this.checkpointerPromises.push(putWritePromise); - if (this.tasks) this._outputWrites(taskId, writesCopy); - if (!writes.length || !this.cache || !this.tasks) return; - const task = this.tasks[taskId]; - if (task == null || task.cache_key == null) return; - if (writes[0][0] === ERROR$1 || writes[0][0] === INTERRUPT$1) return; - this.cache.set([{ - key: [task.cache_key.ns, task.cache_key.key], - value: task.writes, - ttl: task.cache_key.ttl - }]); - } - _outputWrites(taskId, writes, cached = false) { - const task = this.tasks[taskId]; - if (task !== void 0) { - if (task.config !== void 0 && (task.config.tags ?? []).includes(TAG_HIDDEN$1)) return; - if (writes.length > 0 && writes[0][0] !== ERROR$1 && writes[0][0] !== INTERRUPT$1) this._emit(gatherIteratorSync$1(prefixGenerator$1(mapOutputUpdates$1(this.outputKeys, [[task, writes]], cached), "updates"))); - if (!cached) this._emit(gatherIteratorSync$1(prefixGenerator$1(mapDebugTaskResults$1(this.step, [[task, writes]], this.streamKeys), "debug"))); - } - } - async _matchCachedWrites() { - if (!this.cache) return []; - const matched = []; - const serializeKey = ([ns, key$1]) => { - return `ns:${ns.join(",")}|key:${key$1}`; - }; - const keys = []; - const keyMap = {}; - for (const task of Object.values(this.tasks)) if (task.cache_key != null && !task.writes.length) { - keys.push([task.cache_key.ns, task.cache_key.key]); - keyMap[serializeKey([task.cache_key.ns, task.cache_key.key])] = task; - } - if (keys.length === 0) return []; - const cache$1 = await this.cache.get(keys); - for (const { key: key$1, value } of cache$1) { - const task = keyMap[serializeKey(key$1)]; - if (task != null) { - task.writes.push(...value); - matched.push({ - task, - result: value - }); - } - } - return matched; - } - /** - * Execute a single iteration of the Pregel loop. - * Returns true if more iterations are needed. - * @param params - */ - async tick(params) { - if (this.store && !this.store.isRunning) this.store?.start(); - const { inputKeys = [] } = params; - if (this.status !== "pending") throw new Error(`Cannot tick when status is no longer "pending". Current status: "${this.status}"`); - if (![INPUT_DONE$1, INPUT_RESUMING$1].includes(this.input)) await this._first(inputKeys); - else if (this.toInterrupt.length > 0) { - this.status = "interrupt_before"; - throw new GraphInterrupt$1(); - } else if (Object.values(this.tasks).every((task) => task.writes.length > 0)) { - const writes = Object.values(this.tasks).flatMap((t) => t.writes); - const managedValueWrites = _applyWrites$1(this.checkpoint, this.channels, Object.values(this.tasks), this.checkpointerGetNextVersion, this.triggerToNodes); - for (const [key$1, values] of Object.entries(managedValueWrites)) await this.updateManagedValues(key$1, values); - const valuesOutput = await gatherIterator$1(prefixGenerator$1(mapOutputValues$1(this.outputKeys, writes, this.channels), "values")); - this._emit(valuesOutput); - this.checkpointPendingWrites = []; - await this._putCheckpoint({ - source: "loop", - writes: mapOutputUpdates$1(this.outputKeys, Object.values(this.tasks).map((task) => [task, task.writes])).next().value ?? null - }); - if (shouldInterrupt$1(this.checkpoint, this.interruptAfter, Object.values(this.tasks))) { - this.status = "interrupt_after"; - throw new GraphInterrupt$1(); - } - if (this.config.configurable?.[CONFIG_KEY_RESUMING$1] !== void 0) delete this.config.configurable?.[CONFIG_KEY_RESUMING$1]; - } else return false; - if (this.step > this.stop) { - this.status = "out_of_steps"; - return false; - } - const nextTasks = _prepareNextTasks$1(this.checkpoint, this.checkpointPendingWrites, this.nodes, this.channels, this.managed, this.config, true, { - step: this.step, - checkpointer: this.checkpointer, - isResuming: this.isResuming, - manager: this.manager, - store: this.store, - stream: this.stream - }); - this.tasks = nextTasks; - if (this.checkpointer) this._emit(await gatherIterator$1(prefixGenerator$1(mapDebugCheckpoint$1(this.step - 1, this.checkpointConfig, this.channels, this.streamKeys, this.checkpointMetadata, Object.values(this.tasks), this.checkpointPendingWrites, this.prevCheckpointConfig), "debug"))); - if (Object.values(this.tasks).length === 0) { - this.status = "done"; - return false; - } - if (this.skipDoneTasks && this.checkpointPendingWrites.length > 0) { - for (const [tid, k, v] of this.checkpointPendingWrites) { - if (k === ERROR$1 || k === INTERRUPT$1 || k === RESUME$1) continue; - const task = Object.values(this.tasks).find((t) => t.id === tid); - if (task) task.writes.push([k, v]); - } - for (const task of Object.values(this.tasks)) if (task.writes.length > 0) this._outputWrites(task.id, task.writes, true); - } - if (Object.values(this.tasks).every((task) => task.writes.length > 0)) return this.tick({ inputKeys }); - if (shouldInterrupt$1(this.checkpoint, this.interruptBefore, Object.values(this.tasks))) { - this.status = "interrupt_before"; - throw new GraphInterrupt$1(); - } - const debugOutput = await gatherIterator$1(prefixGenerator$1(mapDebugTasks$1(this.step, Object.values(this.tasks)), "debug")); - this._emit(debugOutput); - return true; - } - async finishAndHandleError(error) { - const suppress = this._suppressInterrupt(error); - if (suppress || error === void 0) this.output = readChannels$1(this.channels, this.outputKeys); - if (suppress) { - if (this.tasks !== void 0 && this.checkpointPendingWrites.length > 0 && Object.values(this.tasks).some((task) => task.writes.length > 0)) { - const managedValueWrites = _applyWrites$1(this.checkpoint, this.channels, Object.values(this.tasks), this.checkpointerGetNextVersion, this.triggerToNodes); - for (const [key$1, values] of Object.entries(managedValueWrites)) await this.updateManagedValues(key$1, values); - this._emit(gatherIteratorSync$1(prefixGenerator$1(mapOutputValues$1(this.outputKeys, Object.values(this.tasks).flatMap((t) => t.writes), this.channels), "values"))); - } - const interrupts = { [INTERRUPT$1]: error.interrupts }; - this._emit([["updates", interrupts], ["values", interrupts]]); - } - return suppress; - } - async acceptPush(task, writeIdx, call$4) { - if (this.interruptAfter?.length > 0 && shouldInterrupt$1(this.checkpoint, this.interruptAfter, [task])) { - this.toInterrupt.push(task); - return; - } - const pushed = _prepareSingleTask$1([ - PUSH$1, - task.path ?? [], - writeIdx, - task.id, - call$4 - ], this.checkpoint, this.checkpointPendingWrites, this.nodes, this.channels, this.managed, task.config ?? {}, true, { - step: this.step, - checkpointer: this.checkpointer, - manager: this.manager, - store: this.store, - stream: this.stream - }); - if (!pushed) return; - if (this.interruptBefore?.length > 0 && shouldInterrupt$1(this.checkpoint, this.interruptBefore, [pushed])) { - this.toInterrupt.push(pushed); - return; - } - this._emit(gatherIteratorSync$1(prefixGenerator$1(mapDebugTasks$1(this.step, [pushed]), "debug"))); - if (this.debug) printStepTasks$1(this.step, [pushed]); - this.tasks[pushed.id] = pushed; - if (this.skipDoneTasks) this._matchWrites({ [pushed.id]: pushed }); - const tasks = await this._matchCachedWrites(); - for (const { task: task$1 } of tasks) this._outputWrites(task$1.id, task$1.writes, true); - return pushed; - } - _suppressInterrupt(e) { - return isGraphInterrupt$1(e) && !this.isNested; - } - async _first(inputKeys) { - const { configurable } = this.config; - const scratchpad = configurable?.[CONFIG_KEY_SCRATCHPAD$1]; - if (scratchpad && scratchpad.nullResume !== void 0) this.putWrites(NULL_TASK_ID$1, [[RESUME$1, scratchpad.nullResume]]); - if (isCommand$1(this.input)) { - const hasResume = this.input.resume != null; - if (hasResume && this.checkpointer == null) throw new Error("Cannot use Command(resume=...) without checkpointer"); - const writes = {}; - for (const [tid, key$1, value] of mapCommand$1(this.input, this.checkpointPendingWrites)) { - if (writes[tid] === void 0) writes[tid] = []; - writes[tid].push([key$1, value]); - } - if (Object.keys(writes).length === 0) throw new EmptyInputError$1("Received empty Command input"); - for (const [tid, ws] of Object.entries(writes)) this.putWrites(tid, ws); - } - const nullWrites = (this.checkpointPendingWrites ?? []).filter((w$1) => w$1[0] === NULL_TASK_ID$1).map((w$1) => w$1.slice(1)); - if (nullWrites.length > 0) _applyWrites$1(this.checkpoint, this.channels, [{ - name: INPUT$1, - writes: nullWrites, - triggers: [] - }], this.checkpointerGetNextVersion, this.triggerToNodes); - const isCommandUpdateOrGoto = isCommand$1(this.input) && nullWrites.length > 0; - if (this.isResuming || isCommandUpdateOrGoto) { - for (const channelName of Object.keys(this.channels)) if (this.checkpoint.channel_versions[channelName] !== void 0) { - const version = this.checkpoint.channel_versions[channelName]; - this.checkpoint.versions_seen[INTERRUPT$1] = { - ...this.checkpoint.versions_seen[INTERRUPT$1], - [channelName]: version - }; - } - const valuesOutput = await gatherIterator$1(prefixGenerator$1(mapOutputValues$1(this.outputKeys, true, this.channels), "values")); - this._emit(valuesOutput); - } - if (this.isResuming) this.input = INPUT_RESUMING$1; - else if (isCommandUpdateOrGoto) { - await this._putCheckpoint({ - source: "input", - writes: {} - }); - this.input = INPUT_DONE$1; - } else { - const inputWrites = await gatherIterator$1(mapInput$1(inputKeys, this.input)); - if (inputWrites.length > 0) { - const discardTasks = _prepareNextTasks$1(this.checkpoint, this.checkpointPendingWrites, this.nodes, this.channels, this.managed, this.config, true, { step: this.step }); - _applyWrites$1(this.checkpoint, this.channels, Object.values(discardTasks).concat([{ - name: INPUT$1, - writes: inputWrites, - triggers: [] - }]), this.checkpointerGetNextVersion, this.triggerToNodes); - await this._putCheckpoint({ - source: "input", - writes: Object.fromEntries(inputWrites) - }); - this.input = INPUT_DONE$1; - } else if (!(CONFIG_KEY_RESUMING$1 in (this.config.configurable ?? {}))) throw new EmptyInputError$1(`Received no input writes for ${JSON.stringify(inputKeys, null, 2)}`); - else this.input = INPUT_DONE$1; - } - if (!this.isNested) this.config = patchConfigurable$3(this.config, { [CONFIG_KEY_RESUMING$1]: this.isResuming }); - } - _emit(values) { - for (const chunk of values) if (this.stream.modes.has(chunk[0])) this.stream.push([this.checkpointNamespace, ...chunk]); - } - async _putCheckpoint(inputMetadata) { - const metadata = { - ...inputMetadata, - step: this.step, - parents: this.config.configurable?.[CONFIG_KEY_CHECKPOINT_MAP$1] ?? {} - }; - if (this.checkpointer !== void 0) { - this.prevCheckpointConfig = this.checkpointConfig?.configurable?.checkpoint_id ? this.checkpointConfig : void 0; - this.checkpointMetadata = metadata; - this.checkpoint = createCheckpoint$1(this.checkpoint, this.channels, this.step); - this.checkpointConfig = { - ...this.checkpointConfig, - configurable: { - ...this.checkpointConfig.configurable, - checkpoint_ns: this.config.configurable?.checkpoint_ns ?? "" - } - }; - const channelVersions = { ...this.checkpoint.channel_versions }; - const newVersions = getNewChannelVersions$1(this.checkpointPreviousVersions, channelVersions); - this.checkpointPreviousVersions = channelVersions; - this._checkpointerPutAfterPrevious({ - config: { ...this.checkpointConfig }, - checkpoint: copyCheckpoint(this.checkpoint), - metadata: { ...this.checkpointMetadata }, - newVersions - }); - this.checkpointConfig = { - ...this.checkpointConfig, - configurable: { - ...this.checkpointConfig.configurable, - checkpoint_id: this.checkpoint.id - } - }; - } - this.step += 1; - } - _matchWrites(tasks) { - for (const [tid, k, v] of this.checkpointPendingWrites) { - if (k === ERROR$1 || k === INTERRUPT$1 || k === RESUME$1) continue; - const task = Object.values(tasks).find((t) => t.id === tid); - if (task) task.writes.push([k, v]); - } - for (const task of Object.values(tasks)) if (task.writes.length > 0) this._outputWrites(task.id, task.writes, true); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/messages.js -function isChatGenerationChunk$1(x) { - return isBaseMessage(x?.message); -} -/** -* A callback handler that implements stream_mode=messages. -* Collects messages from (1) chat model stream events and (2) node outputs. -*/ -var StreamMessagesHandler$1 = class extends BaseCallbackHandler { - constructor(streamFn) { - super(); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "StreamMessagesHandler" - }); - Object.defineProperty(this, "streamFn", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "metadatas", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "seen", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "emittedChatModelRunIds", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "stableMessageIdMap", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "lc_prefer_streaming", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.streamFn = streamFn; - } - _emit(meta, message, runId, dedupe = false) { - if (dedupe && message.id !== void 0 && this.seen[message.id] !== void 0) return; - let messageId = message.id; - if (runId != null) if (isToolMessage(message)) messageId ??= `run-${runId}-tool-${message.tool_call_id}`; - else { - if (messageId == null || messageId === `run-${runId}`) messageId = this.stableMessageIdMap[runId] ?? messageId ?? `run-${runId}`; - this.stableMessageIdMap[runId] ??= messageId; - } - if (messageId !== message.id) { - message.id = messageId; - message.lc_kwargs.id = messageId; - } - if (message.id != null) this.seen[message.id] = message; - this.streamFn([ - meta[0], - "messages", - [message, meta[1]] - ]); - } - handleChatModelStart(_llm, _messages, runId, _parentRunId, _extraParams, tags, metadata, name) { - if (metadata && (!tags || !tags.includes(TAG_NOSTREAM$1) && !tags.includes("nostream"))) this.metadatas[runId] = [metadata.langgraph_checkpoint_ns.split("|"), { - tags, - name, - ...metadata - }]; - } - handleLLMNewToken(token, _idx, runId, _parentRunId, _tags, fields) { - const chunk = fields?.chunk; - this.emittedChatModelRunIds[runId] = true; - if (this.metadatas[runId] !== void 0) if (isChatGenerationChunk$1(chunk)) this._emit(this.metadatas[runId], chunk.message, runId); - else this._emit(this.metadatas[runId], new AIMessageChunk({ content: token }), runId); - } - handleLLMEnd(output, runId) { - if (!this.emittedChatModelRunIds[runId]) { - const chatGeneration = output.generations?.[0]?.[0]; - if (isBaseMessage(chatGeneration?.message)) this._emit(this.metadatas[runId], chatGeneration?.message, runId, true); - delete this.emittedChatModelRunIds[runId]; - } - delete this.metadatas[runId]; - delete this.stableMessageIdMap[runId]; - } - handleLLMError(_err, runId) { - delete this.metadatas[runId]; - } - handleChainStart(_chain, inputs, runId, _parentRunId, tags, metadata, _runType, name) { - if (metadata !== void 0 && name === metadata.langgraph_node && (tags === void 0 || !tags.includes(TAG_HIDDEN$1))) { - this.metadatas[runId] = [metadata.langgraph_checkpoint_ns.split("|"), { - tags, - name, - ...metadata - }]; - if (typeof inputs === "object") { - for (const value of Object.values(inputs)) if ((isBaseMessage(value) || isBaseMessageChunk(value)) && value.id !== void 0) this.seen[value.id] = value; - else if (Array.isArray(value)) { - for (const item of value) if ((isBaseMessage(item) || isBaseMessageChunk(item)) && item.id !== void 0) this.seen[item.id] = item; - } - } - } - } - handleChainEnd(outputs, runId) { - const metadata = this.metadatas[runId]; - delete this.metadatas[runId]; - if (metadata !== void 0) { - if (isBaseMessage(outputs)) this._emit(metadata, outputs, runId, true); - else if (Array.isArray(outputs)) { - for (const value of outputs) if (isBaseMessage(value)) this._emit(metadata, value, runId, true); - } else if (outputs != null && typeof outputs === "object") { - for (const value of Object.values(outputs)) if (isBaseMessage(value)) this._emit(metadata, value, runId, true); - else if (Array.isArray(value)) { - for (const item of value) if (isBaseMessage(item)) this._emit(metadata, item, runId, true); - } - } - } - } - handleChainError(_err, runId) { - delete this.metadatas[runId]; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/retry.js -const DEFAULT_INITIAL_INTERVAL$1 = 500; -const DEFAULT_BACKOFF_FACTOR$1 = 2; -const DEFAULT_MAX_INTERVAL$1 = 128e3; -const DEFAULT_MAX_RETRIES$1 = 3; -const DEFAULT_STATUS_NO_RETRY$1 = [ - 400, - 401, - 402, - 403, - 404, - 405, - 406, - 407, - 409 -]; -const DEFAULT_RETRY_ON_HANDLER$1 = (error) => { - if (error.message.startsWith("Cancel") || error.message.startsWith("AbortError") || error.name === "AbortError") return false; - if (error?.code === "ECONNABORTED") return false; - const status = error?.response?.status ?? error?.status; - if (status && DEFAULT_STATUS_NO_RETRY$1.includes(+status)) return false; - if (error?.error?.code === "insufficient_quota") return false; - return true; -}; -async function _runWithRetry$1(pregelTask, retryPolicy, configurable, signal) { - const resolvedRetryPolicy = pregelTask.retry_policy ?? retryPolicy; - let interval = resolvedRetryPolicy !== void 0 ? resolvedRetryPolicy.initialInterval ?? DEFAULT_INITIAL_INTERVAL$1 : 0; - let attempts = 0; - let error; - let result; - let { config } = pregelTask; - if (configurable) config = patchConfigurable$3(config, configurable); - config = { - ...config, - signal - }; - while (true) { - if (signal?.aborted) break; - pregelTask.writes.splice(0, pregelTask.writes.length); - error = void 0; - try { - result = await pregelTask.proc.invoke(pregelTask.input, config); - break; - } catch (e) { - error = e; - error.pregelTaskId = pregelTask.id; - if (isParentCommand$1(error)) { - const ns = config?.configurable?.checkpoint_ns; - const cmd = error.command; - if (cmd.graph === ns) { - for (const writer of pregelTask.writers) await writer.invoke(cmd, config); - error = void 0; - break; - } else if (cmd.graph === Command$1.PARENT) { - const parentNs = getParentCheckpointNamespace$1(ns); - error.command = new Command$1({ - ...error.command, - graph: parentNs - }); - } - } - if (isGraphBubbleUp$1(error)) break; - if (resolvedRetryPolicy === void 0) break; - attempts += 1; - if (attempts >= (resolvedRetryPolicy.maxAttempts ?? DEFAULT_MAX_RETRIES$1)) break; - const retryOn = resolvedRetryPolicy.retryOn ?? DEFAULT_RETRY_ON_HANDLER$1; - if (!retryOn(error)) break; - interval = Math.min(resolvedRetryPolicy.maxInterval ?? DEFAULT_MAX_INTERVAL$1, interval * (resolvedRetryPolicy.backoffFactor ?? DEFAULT_BACKOFF_FACTOR$1)); - const intervalWithJitter = resolvedRetryPolicy.jitter ? Math.floor(interval + Math.random() * 1e3) : interval; - await new Promise((resolve) => setTimeout(resolve, intervalWithJitter)); - const errorName = error.name ?? error.constructor.unminifiable_name ?? error.constructor.name; - if (resolvedRetryPolicy?.logWarning ?? true) console.log(`Retrying task "${String(pregelTask.name)}" after ${interval.toFixed(2)}ms (attempt ${attempts}) after ${errorName}: ${error}`); - config = patchConfigurable$3(config, { [CONFIG_KEY_RESUMING$1]: true }); - } - } - return { - task: pregelTask, - result, - error, - signalAborted: signal?.aborted - }; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/runner.js -const PROMISE_ADDED_SYMBOL$1 = Symbol.for("promiseAdded"); -function createPromiseBarrier$1() { - const barrier = { - next: () => void 0, - wait: Promise.resolve(PROMISE_ADDED_SYMBOL$1) - }; - function waitHandler(resolve) { - barrier.next = () => { - barrier.wait = new Promise(waitHandler); - resolve(PROMISE_ADDED_SYMBOL$1); - }; - } - barrier.wait = new Promise(waitHandler); - return barrier; -} -/** -* Responsible for handling task execution on each tick of the {@link PregelLoop}. -*/ -var PregelRunner$1 = class { - /** - * Construct a new PregelRunner, which executes tasks from the provided PregelLoop. - * @param loop - The PregelLoop that produces tasks for this runner to execute. - */ - constructor({ loop, nodeFinished }) { - Object.defineProperty(this, "nodeFinished", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "loop", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.loop = loop; - this.nodeFinished = nodeFinished; - } - /** - * Execute tasks from the current step of the PregelLoop. - * - * Note: this method does NOT call {@link PregelLoop}#tick. That must be handled externally. - * @param options - Options for the execution. - */ - async tick(options = {}) { - const { timeout, retryPolicy, onStepWrite, maxConcurrency } = options; - const nodeErrors = /* @__PURE__ */ new Set(); - let graphBubbleUp; - const exceptionSignalController = new AbortController(); - const pendingTasks = Object.values(this.loop.tasks).filter((t) => t.writes.length === 0); - const currentSignals = this._initializeAbortSignals({ - exceptionSignalController, - timeout, - signal: options.signal - }); - const taskStream = this._executeTasksWithRetry(pendingTasks, { - signals: currentSignals, - retryPolicy, - maxConcurrency - }); - for await (const { task, error, signalAborted } of taskStream) { - this._commit(task, error); - if (isGraphInterrupt$1(error)) graphBubbleUp = error; - else if (isGraphBubbleUp$1(error) && !isGraphInterrupt$1(graphBubbleUp)) graphBubbleUp = error; - else if (error && (nodeErrors.size === 0 || !signalAborted)) { - exceptionSignalController.abort(); - nodeErrors.add(error); - } - } - onStepWrite?.(this.loop.step, Object.values(this.loop.tasks).map((task) => task.writes).flat()); - if (nodeErrors.size === 1) throw Array.from(nodeErrors)[0]; - else if (nodeErrors.size > 1) throw new AggregateError(Array.from(nodeErrors), `Multiple errors occurred during superstep ${this.loop.step}. See the "errors" field of this exception for more details.`); - if (isGraphInterrupt$1(graphBubbleUp)) throw graphBubbleUp; - if (isGraphBubbleUp$1(graphBubbleUp) && this.loop.isNested) throw graphBubbleUp; - } - /** - * Initializes the current AbortSignals for the PregelRunner, handling the various ways that - * AbortSignals must be chained together so that the PregelLoop can be interrupted if necessary - * while still allowing nodes to gracefully exit. - * - * This method must only be called once per PregelRunner#tick. It has the side effect of updating - * the PregelLoop#config with the new AbortSignals so they may be propagated correctly to future - * ticks and subgraph calls. - * - * @param options - Options for the initialization. - * @returns The current abort signals. - * @internal - */ - _initializeAbortSignals({ exceptionSignalController, timeout, signal }) { - const previousSignals = this.loop.config.configurable?.[CONFIG_KEY_ABORT_SIGNALS$1] ?? {}; - const subgraphCalledWithSignalCreatedByNode = signal && previousSignals.composedAbortSignal && signal !== previousSignals.composedAbortSignal; - const externalAbortSignal = subgraphCalledWithSignalCreatedByNode ? combineAbortSignals$1(previousSignals.externalAbortSignal, signal) : previousSignals.externalAbortSignal ?? signal; - const errorAbortSignal = previousSignals.errorAbortSignal ? combineAbortSignals$1(previousSignals.errorAbortSignal, exceptionSignalController.signal) : exceptionSignalController.signal; - const timeoutAbortSignal = timeout ? AbortSignal.timeout(timeout) : void 0; - const composedAbortSignal = combineAbortSignals$1(...externalAbortSignal ? [externalAbortSignal] : [], ...timeoutAbortSignal ? [timeoutAbortSignal] : [], errorAbortSignal); - const currentSignals = { - externalAbortSignal, - errorAbortSignal, - timeoutAbortSignal, - composedAbortSignal - }; - this.loop.config = patchConfigurable$3(this.loop.config, { [CONFIG_KEY_ABORT_SIGNALS$1]: currentSignals }); - return currentSignals; - } - /** - * Concurrently executes tasks with the requested retry policy, yielding a {@link SettledPregelTask} for each task as it completes. - * @param tasks - The tasks to execute. - * @param options - Options for the execution. - */ - async *_executeTasksWithRetry(tasks, options) { - const { retryPolicy, maxConcurrency, signals: signals$1 } = options ?? {}; - const barrier = createPromiseBarrier$1(); - const executingTasksMap = {}; - const thisCall = { - executingTasksMap, - barrier, - retryPolicy, - scheduleTask: async (task, writeIdx, call$4) => this.loop.acceptPush(task, writeIdx, call$4) - }; - if (signals$1?.composedAbortSignal?.aborted) throw new Error("Abort"); - let startedTasksCount = 0; - let listener; - const timeoutOrCancelSignal = signals$1?.externalAbortSignal || signals$1?.timeoutAbortSignal ? combineAbortSignals$1(...signals$1.externalAbortSignal ? [signals$1.externalAbortSignal] : [], ...signals$1.timeoutAbortSignal ? [signals$1.timeoutAbortSignal] : []) : void 0; - const abortPromise = timeoutOrCancelSignal ? new Promise((_resolve, reject) => { - listener = () => reject(new Error("Abort")); - timeoutOrCancelSignal.addEventListener("abort", listener, { once: true }); - }) : void 0; - while ((startedTasksCount === 0 || Object.keys(executingTasksMap).length > 0) && tasks.length) { - for (; Object.values(executingTasksMap).length < (maxConcurrency ?? tasks.length) && startedTasksCount < tasks.length; startedTasksCount += 1) { - const task = tasks[startedTasksCount]; - executingTasksMap[task.id] = _runWithRetry$1(task, retryPolicy, { [CONFIG_KEY_CALL$1]: call$3?.bind(thisCall, this, task) }, signals$1?.composedAbortSignal).catch((error) => { - return { - task, - error, - signalAborted: signals$1?.composedAbortSignal?.aborted - }; - }); - } - const settledTask = await Promise.race([ - ...Object.values(executingTasksMap), - ...abortPromise ? [abortPromise] : [], - barrier.wait - ]); - if (settledTask === PROMISE_ADDED_SYMBOL$1) continue; - yield settledTask; - delete executingTasksMap[settledTask.task.id]; - } - } - /** - * Determines what writes to apply based on whether the task completed successfully, and what type of error occurred. - * - * Throws an error if the error is a {@link GraphBubbleUp} error and {@link PregelLoop}#isNested is true. - * - * @param task - The task to commit. - * @param error - The error that occurred, if any. - */ - _commit(task, error) { - if (error !== void 0) if (isGraphInterrupt$1(error)) { - if (error.interrupts.length) { - const interrupts = error.interrupts.map((interrupt$1) => [INTERRUPT$1, interrupt$1]); - const resumes = task.writes.filter((w$1) => w$1[0] === RESUME$1); - if (resumes.length) interrupts.push(...resumes); - this.loop.putWrites(task.id, interrupts); - } - } else if (isGraphBubbleUp$1(error) && task.writes.length) this.loop.putWrites(task.id, task.writes); - else this.loop.putWrites(task.id, [[ERROR$1, { - message: error.message, - name: error.name - }]]); - else { - if (this.nodeFinished && (task.config?.tags == null || !task.config.tags.includes(TAG_HIDDEN$1))) this.nodeFinished(String(task.name)); - if (task.writes.length === 0) task.writes.push([NO_WRITES$1, null]); - this.loop.putWrites(task.id, task.writes); - } - } -}; -async function call$3(runner, task, func, name, input, options = {}) { - const scratchpad = task.config?.configurable?.[CONFIG_KEY_SCRATCHPAD$1]; - if (!scratchpad) throw new Error(`BUG: No scratchpad found on task ${task.name}__${task.id}`); - const cnt = scratchpad.callCounter; - scratchpad.callCounter += 1; - const wcall = new Call$1({ - func, - name, - input, - cache: options.cache, - retry: options.retry, - callbacks: options.callbacks - }); - const nextTask = await this.scheduleTask(task, cnt, wcall); - if (!nextTask) return void 0; - const existingPromise = this.executingTasksMap[nextTask.id]; - if (existingPromise !== void 0) return existingPromise; - if (nextTask.writes.length > 0) { - const returns = nextTask.writes.filter(([c]) => c === RETURN$1); - const errors = nextTask.writes.filter(([c]) => c === ERROR$1); - if (returns.length > 0) { - if (returns.length === 1) return Promise.resolve(returns[0][1]); - throw new Error(`BUG: multiple returns found for task ${nextTask.name}__${nextTask.id}`); - } - if (errors.length > 0) { - if (errors.length === 1) { - const errorValue = errors[0][1]; - const error = errorValue instanceof Error ? errorValue : new Error(String(errorValue)); - return Promise.reject(error); - } - throw new Error(`BUG: multiple errors found for task ${nextTask.name}__${nextTask.id}`); - } - return void 0; - } else { - const prom = _runWithRetry$1(nextTask, options.retry, { [CONFIG_KEY_CALL$1]: call$3.bind(this, runner, nextTask) }); - this.executingTasksMap[nextTask.id] = prom; - this.barrier.next(); - return prom.then(({ result, error }) => { - if (error) return Promise.reject(error); - return result; - }); - } -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/pregel/index.js -/** -* Utility class for working with channels in the Pregel system. -* Provides static methods for subscribing to channels and writing to them. -* -* Channels are the communication pathways between nodes in a Pregel graph. -* They enable message passing and state updates between different parts of the graph. -*/ -var Channel = class { - static subscribeTo(channels, options) { - const { key: key$1, tags } = { - key: void 0, - tags: void 0, - ...options ?? {} - }; - if (Array.isArray(channels) && key$1 !== void 0) throw new Error("Can't specify a key when subscribing to multiple channels"); - let channelMappingOrArray; - if (typeof channels === "string") if (key$1) channelMappingOrArray = { [key$1]: channels }; - else channelMappingOrArray = [channels]; - else channelMappingOrArray = Object.fromEntries(channels.map((chan) => [chan, chan])); - const triggers = Array.isArray(channels) ? channels : [channels]; - return new PregelNode$1({ - channels: channelMappingOrArray, - triggers, - tags - }); - } - /** - * Creates a ChannelWrite that specifies how to write values to channels. - * This is used to define how nodes send output to channels. - * - * @example - * ```typescript - * // Write to multiple channels - * const write = Channel.writeTo(["output", "state"]); - * - * // Write with specific values - * const write = Channel.writeTo(["output"], { - * state: "completed", - * result: calculateResult() - * }); - * - * // Write with a transformation function - * const write = Channel.writeTo(["output"], { - * result: (x) => processResult(x) - * }); - * ``` - * - * @param channels - Array of channel names to write to - * @param writes - Optional map of channel names to values or transformations - * @returns A ChannelWrite object that can be used to write to the specified channels - */ - static writeTo(channels, writes) { - const channelWriteEntries = []; - for (const channel of channels) channelWriteEntries.push({ - channel, - value: PASSTHROUGH$1, - skipNone: false - }); - for (const [key$1, value] of Object.entries(writes ?? {})) if (Runnable.isRunnable(value) || typeof value === "function") channelWriteEntries.push({ - channel: key$1, - value: PASSTHROUGH$1, - skipNone: true, - mapper: _coerceToRunnable(value) - }); - else channelWriteEntries.push({ - channel: key$1, - value, - skipNone: false - }); - return new ChannelWrite$1(channelWriteEntries); - } -}; -var PartialRunnable = class extends Runnable { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langgraph", "pregel"] - }); - } - invoke(_input, _options) { - throw new Error("Not implemented"); - } - withConfig(_config) { - return super.withConfig(_config); - } - stream(input, options) { - return super.stream(input, options); - } -}; -/** -* The Pregel class is the core runtime engine of LangGraph, implementing a message-passing graph computation model -* inspired by [Google's Pregel system](https://research.google/pubs/pregel-a-system-for-large-scale-graph-processing/). -* It provides the foundation for building reliable, controllable agent workflows that can evolve state over time. -* -* Key features: -* - Message passing between nodes in discrete "supersteps" -* - Built-in persistence layer through checkpointers -* - First-class streaming support for values, updates, and events -* - Human-in-the-loop capabilities via interrupts -* - Support for parallel node execution within supersteps -* -* The Pregel class is not intended to be instantiated directly by consumers. Instead, use the following higher-level APIs: -* - {@link StateGraph}: The main graph class for building agent workflows -* - Compiling a {@link StateGraph} will return a {@link CompiledGraph} instance, which extends `Pregel` -* - Functional API: A declarative approach using tasks and entrypoints -* - A `Pregel` instance is returned by the {@link entrypoint} function -* -* @example -* ```typescript -* // Using StateGraph API -* const graph = new StateGraph(annotation) -* .addNode("nodeA", myNodeFunction) -* .addEdge("nodeA", "nodeB") -* .compile(); -* -* // The compiled graph is a Pregel instance -* const result = await graph.invoke(input); -* ``` -* -* @example -* ```typescript -* // Using Functional API -* import { task, entrypoint } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* -* // Define tasks that can be composed -* const addOne = task("add", async (x: number) => x + 1); -* -* // Create a workflow using the entrypoint function -* const workflow = entrypoint({ -* name: "workflow", -* checkpointer: new MemorySaver() -* }, async (numbers: number[]) => { -* // Tasks can be run in parallel -* const results = await Promise.all(numbers.map(n => addOne(n))); -* return results; -* }); -* -* // The workflow is a Pregel instance -* const result = await workflow.invoke([1, 2, 3]); // Returns [2, 3, 4] -* ``` -* -* @typeParam Nodes - Mapping of node names to their {@link PregelNode} implementations -* @typeParam Channels - Mapping of channel names to their {@link BaseChannel} or {@link ManagedValueSpec} implementations -* @typeParam ConfigurableFieldType - Type of configurable fields that can be passed to the graph -* @typeParam InputType - Type of input values accepted by the graph -* @typeParam OutputType - Type of output values produced by the graph -*/ -var Pregel$1 = class extends PartialRunnable { - /** - * Name of the class when serialized - * @internal - */ - static lc_name() { - return "LangGraph"; - } - /** - * Constructor for Pregel - meant for internal use only. - * - * @internal - */ - constructor(fields) { - super(fields); - /** @internal LangChain namespace for serialization necessary because Pregel extends Runnable */ - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langgraph", "pregel"] - }); - /** @internal Flag indicating this is a Pregel instance - necessary for serialization */ - Object.defineProperty(this, "lg_is_pregel", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - /** The nodes in the graph, mapping node names to their PregelNode instances */ - Object.defineProperty(this, "nodes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** The channels in the graph, mapping channel names to their BaseChannel or ManagedValueSpec instances */ - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * The input channels for the graph. These channels receive the initial input when the graph is invoked. - * Can be a single channel key or an array of channel keys. - */ - Object.defineProperty(this, "inputChannels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * The output channels for the graph. These channels contain the final output when the graph completes. - * Can be a single channel key or an array of channel keys. - */ - Object.defineProperty(this, "outputChannels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Whether to automatically validate the graph structure when it is compiled. Defaults to true. */ - Object.defineProperty(this, "autoValidate", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - /** - * The streaming modes enabled for this graph. Defaults to ["values"]. - * Supported modes: - * - "values": Streams the full state after each step - * - "updates": Streams state updates after each step - * - "messages": Streams messages from within nodes - * - "custom": Streams custom events from within nodes - * - "debug": Streams events related to the execution of the graph - useful for tracing & debugging graph execution - */ - Object.defineProperty(this, "streamMode", { - enumerable: true, - configurable: true, - writable: true, - value: ["values"] - }); - /** - * Optional channels to stream. If not specified, all channels will be streamed. - * Can be a single channel key or an array of channel keys. - */ - Object.defineProperty(this, "streamChannels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional array of node names or "all" to interrupt after executing these nodes. - * Used for implementing human-in-the-loop workflows. - */ - Object.defineProperty(this, "interruptAfter", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional array of node names or "all" to interrupt before executing these nodes. - * Used for implementing human-in-the-loop workflows. - */ - Object.defineProperty(this, "interruptBefore", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Optional timeout in milliseconds for the execution of each superstep */ - Object.defineProperty(this, "stepTimeout", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Whether to enable debug logging. Defaults to false. */ - Object.defineProperty(this, "debug", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - /** - * Optional checkpointer for persisting graph state. - * When provided, saves a checkpoint of the graph state at every superstep. - * When false or undefined, checkpointing is disabled, and the graph will not be able to save or restore state. - */ - Object.defineProperty(this, "checkpointer", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Optional retry policy for handling failures in node execution */ - Object.defineProperty(this, "retryPolicy", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** The default configuration for graph execution, can be overridden on a per-invocation basis */ - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional long-term memory store for the graph, allows for persistence & retrieval of data across threads - */ - Object.defineProperty(this, "store", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "triggerToNodes", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - /** - * Optional cache for the graph, useful for caching tasks. - */ - Object.defineProperty(this, "cache", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - let { streamMode } = fields; - if (streamMode != null && !Array.isArray(streamMode)) streamMode = [streamMode]; - this.nodes = fields.nodes; - this.channels = fields.channels; - this.autoValidate = fields.autoValidate ?? this.autoValidate; - this.streamMode = streamMode ?? this.streamMode; - this.inputChannels = fields.inputChannels; - this.outputChannels = fields.outputChannels; - this.streamChannels = fields.streamChannels ?? this.streamChannels; - this.interruptAfter = fields.interruptAfter; - this.interruptBefore = fields.interruptBefore; - this.stepTimeout = fields.stepTimeout ?? this.stepTimeout; - this.debug = fields.debug ?? this.debug; - this.checkpointer = fields.checkpointer; - this.retryPolicy = fields.retryPolicy; - this.config = fields.config; - this.store = fields.store; - this.cache = fields.cache; - this.name = fields.name; - if (this.autoValidate) this.validate(); - } - /** - * Creates a new instance of the Pregel graph with updated configuration. - * This method follows the immutable pattern - instead of modifying the current instance, - * it returns a new instance with the merged configuration. - * - * @example - * ```typescript - * // Create a new instance with debug enabled - * const debugGraph = graph.withConfig({ debug: true }); - * - * // Create a new instance with a specific thread ID - * const threadGraph = graph.withConfig({ - * configurable: { thread_id: "123" } - * }); - * ``` - * - * @param config - The configuration to merge with the current configuration - * @returns A new Pregel instance with the merged configuration - */ - withConfig(config) { - const mergedConfig = mergeConfigs(this.config, config); - return new this.constructor({ - ...this, - config: mergedConfig - }); - } - /** - * Validates the graph structure to ensure it is well-formed. - * Checks for: - * - No orphaned nodes - * - Valid input/output channel configurations - * - Valid interrupt configurations - * - * @returns this - The Pregel instance for method chaining - * @throws {GraphValidationError} If the graph structure is invalid - */ - validate() { - validateGraph$1({ - nodes: this.nodes, - channels: this.channels, - outputChannels: this.outputChannels, - inputChannels: this.inputChannels, - streamChannels: this.streamChannels, - interruptAfterNodes: this.interruptAfter, - interruptBeforeNodes: this.interruptBefore - }); - for (const [name, node] of Object.entries(this.nodes)) for (const trigger of node.triggers) { - this.triggerToNodes[trigger] ??= []; - this.triggerToNodes[trigger].push(name); - } - return this; - } - /** - * Gets a list of all channels that should be streamed. - * If streamChannels is specified, returns those channels. - * Otherwise, returns all channels in the graph. - * - * @returns Array of channel keys to stream - */ - get streamChannelsList() { - if (Array.isArray(this.streamChannels)) return this.streamChannels; - else if (this.streamChannels) return [this.streamChannels]; - else return Object.keys(this.channels); - } - /** - * Gets the channels to stream in their original format. - * If streamChannels is specified, returns it as-is (either single key or array). - * Otherwise, returns all channels in the graph as an array. - * - * @returns Channel keys to stream, either as a single key or array - */ - get streamChannelsAsIs() { - if (this.streamChannels) return this.streamChannels; - else return Object.keys(this.channels); - } - /** - * Gets a drawable representation of the graph structure. - * This is an async version of getGraph() and is the preferred method to use. - * - * @param config - Configuration for generating the graph visualization - * @returns A representation of the graph that can be visualized - */ - async getGraphAsync(config) { - return this.getGraph(config); - } - /** - * Gets all subgraphs within this graph. - * A subgraph is a Pregel instance that is nested within a node of this graph. - * - * @deprecated Use getSubgraphsAsync instead. The async method will become the default in the next minor release. - * @param namespace - Optional namespace to filter subgraphs - * @param recurse - Whether to recursively get subgraphs of subgraphs - * @returns Generator yielding tuples of [name, subgraph] - */ - *getSubgraphs(namespace, recurse) { - for (const [name, node] of Object.entries(this.nodes)) { - if (namespace !== void 0) { - if (!namespace.startsWith(name)) continue; - } - const candidates = node.subgraphs?.length ? node.subgraphs : [node.bound]; - for (const candidate of candidates) { - const graph$1 = findSubgraphPregel$1(candidate); - if (graph$1 !== void 0) { - if (name === namespace) { - yield [name, graph$1]; - return; - } - if (namespace === void 0) yield [name, graph$1]; - if (recurse) { - let newNamespace = namespace; - if (namespace !== void 0) newNamespace = namespace.slice(name.length + 1); - for (const [subgraphName, subgraph] of graph$1.getSubgraphs(newNamespace, recurse)) yield [`${name}${CHECKPOINT_NAMESPACE_SEPARATOR$1}${subgraphName}`, subgraph]; - } - } - } - } - } - /** - * Gets all subgraphs within this graph asynchronously. - * A subgraph is a Pregel instance that is nested within a node of this graph. - * - * @param namespace - Optional namespace to filter subgraphs - * @param recurse - Whether to recursively get subgraphs of subgraphs - * @returns AsyncGenerator yielding tuples of [name, subgraph] - */ - async *getSubgraphsAsync(namespace, recurse) { - yield* this.getSubgraphs(namespace, recurse); - } - /** - * Prepares a state snapshot from saved checkpoint data. - * This is an internal method used by getState and getStateHistory. - * - * @param config - Configuration for preparing the snapshot - * @param saved - Optional saved checkpoint data - * @param subgraphCheckpointer - Optional checkpointer for subgraphs - * @param applyPendingWrites - Whether to apply pending writes to tasks and then to channels - * @returns A snapshot of the graph state - * @internal - */ - async _prepareStateSnapshot({ config, saved, subgraphCheckpointer, applyPendingWrites = false }) { - if (saved === void 0) return { - values: {}, - next: [], - config, - tasks: [] - }; - const { managed } = await this.prepareSpecs(config, { skipManaged: true }); - const channels = emptyChannels$1(this.channels, saved.checkpoint); - if (saved.pendingWrites?.length) { - const nullWrites = saved.pendingWrites.filter(([taskId, _]) => taskId === NULL_TASK_ID$1).map(([_, channel, value]) => [String(channel), value]); - if (nullWrites.length > 0) _applyWrites$1(saved.checkpoint, channels, [{ - name: INPUT$1, - writes: nullWrites, - triggers: [] - }], void 0, this.triggerToNodes); - } - const nextTasks = Object.values(_prepareNextTasks$1(saved.checkpoint, saved.pendingWrites, this.nodes, channels, managed, saved.config, true, { - step: (saved.metadata?.step ?? -1) + 1, - store: this.store - })); - const subgraphs = await gatherIterator$1(this.getSubgraphsAsync()); - const parentNamespace = saved.config.configurable?.checkpoint_ns ?? ""; - const taskStates = {}; - for (const task of nextTasks) { - const matchingSubgraph = subgraphs.find(([name]) => name === task.name); - if (!matchingSubgraph) continue; - let taskNs = `${String(task.name)}${CHECKPOINT_NAMESPACE_END$1}${task.id}`; - if (parentNamespace) taskNs = `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR$1}${taskNs}`; - if (subgraphCheckpointer === void 0) { - const config$1 = { configurable: { - thread_id: saved.config.configurable?.thread_id, - checkpoint_ns: taskNs - } }; - taskStates[task.id] = config$1; - } else { - const subgraphConfig = { configurable: { - [CONFIG_KEY_CHECKPOINTER$1]: subgraphCheckpointer, - thread_id: saved.config.configurable?.thread_id, - checkpoint_ns: taskNs - } }; - const pregel = matchingSubgraph[1]; - taskStates[task.id] = await pregel.getState(subgraphConfig, { subgraphs: true }); - } - } - if (applyPendingWrites && saved.pendingWrites?.length) { - const nextTaskById = Object.fromEntries(nextTasks.map((task) => [task.id, task])); - for (const [taskId, channel, value] of saved.pendingWrites) { - if ([ - ERROR$1, - INTERRUPT$1, - SCHEDULED - ].includes(channel)) continue; - if (!(taskId in nextTaskById)) continue; - nextTaskById[taskId].writes.push([String(channel), value]); - } - const tasksWithWrites$2 = nextTasks.filter((task) => task.writes.length > 0); - if (tasksWithWrites$2.length > 0) _applyWrites$1(saved.checkpoint, channels, tasksWithWrites$2, void 0, this.triggerToNodes); - } - let metadata = saved?.metadata; - if (metadata && saved?.config?.configurable?.thread_id) metadata = { - ...metadata, - thread_id: saved.config.configurable.thread_id - }; - const nextList = nextTasks.filter((task) => task.writes.length === 0).map((task) => task.name); - return { - values: readChannels$1(channels, this.streamChannelsAsIs), - next: nextList, - tasks: tasksWithWrites$1(nextTasks, saved?.pendingWrites ?? [], taskStates), - metadata, - config: patchCheckpointMap$1(saved.config, saved.metadata), - createdAt: saved.checkpoint.ts, - parentConfig: saved.parentConfig - }; - } - /** - * Gets the current state of the graph. - * Requires a checkpointer to be configured. - * - * @param config - Configuration for retrieving the state - * @param options - Additional options - * @returns A snapshot of the current graph state - * @throws {GraphValueError} If no checkpointer is configured - */ - async getState(config, options) { - const checkpointer = config.configurable?.[CONFIG_KEY_CHECKPOINTER$1] ?? this.checkpointer; - if (!checkpointer) throw new GraphValueError$1("No checkpointer set"); - const checkpointNamespace = config.configurable?.checkpoint_ns ?? ""; - if (checkpointNamespace !== "" && config.configurable?.[CONFIG_KEY_CHECKPOINTER$1] === void 0) { - const recastNamespace = recastCheckpointNamespace$1(checkpointNamespace); - for await (const [name, subgraph] of this.getSubgraphsAsync(recastNamespace, true)) if (name === recastNamespace) return await subgraph.getState(patchConfigurable$2(config, { [CONFIG_KEY_CHECKPOINTER$1]: checkpointer }), { subgraphs: options?.subgraphs }); - throw new Error(`Subgraph with namespace "${recastNamespace}" not found.`); - } - const mergedConfig = mergeConfigs(this.config, config); - const saved = await checkpointer.getTuple(config); - const snapshot = await this._prepareStateSnapshot({ - config: mergedConfig, - saved, - subgraphCheckpointer: options?.subgraphs ? checkpointer : void 0, - applyPendingWrites: !config.configurable?.checkpoint_id - }); - return snapshot; - } - /** - * Gets the history of graph states. - * Requires a checkpointer to be configured. - * Useful for: - * - Debugging execution history - * - Implementing time travel - * - Analyzing graph behavior - * - * @param config - Configuration for retrieving the history - * @param options - Options for filtering the history - * @returns An async iterator of state snapshots - * @throws {Error} If no checkpointer is configured - */ - async *getStateHistory(config, options) { - const checkpointer = config.configurable?.[CONFIG_KEY_CHECKPOINTER$1] ?? this.checkpointer; - if (!checkpointer) throw new Error("No checkpointer set"); - const checkpointNamespace = config.configurable?.checkpoint_ns ?? ""; - if (checkpointNamespace !== "" && config.configurable?.[CONFIG_KEY_CHECKPOINTER$1] === void 0) { - const recastNamespace = recastCheckpointNamespace$1(checkpointNamespace); - for await (const [name, pregel] of this.getSubgraphsAsync(recastNamespace, true)) if (name === recastNamespace) { - yield* pregel.getStateHistory(patchConfigurable$2(config, { [CONFIG_KEY_CHECKPOINTER$1]: checkpointer }), options); - return; - } - throw new Error(`Subgraph with namespace "${recastNamespace}" not found.`); - } - const mergedConfig = mergeConfigs(this.config, config, { configurable: { checkpoint_ns: checkpointNamespace } }); - for await (const checkpointTuple of checkpointer.list(mergedConfig, options)) yield this._prepareStateSnapshot({ - config: checkpointTuple.config, - saved: checkpointTuple - }); - } - /** - * Apply updates to the graph state in bulk. - * Requires a checkpointer to be configured. - * - * This method is useful for recreating a thread - * from a list of updates, especially if a checkpoint - * is created as a result of multiple tasks. - * - * @internal The API might change in the future. - * - * @param startConfig - Configuration for the update - * @param updates - The list of updates to apply to graph state - * @returns Updated configuration - * @throws {GraphValueError} If no checkpointer is configured - * @throws {InvalidUpdateError} If the update cannot be attributed to a node or an update can be only applied in sequence. - */ - async bulkUpdateState(startConfig, supersteps) { - const checkpointer = startConfig.configurable?.[CONFIG_KEY_CHECKPOINTER$1] ?? this.checkpointer; - if (!checkpointer) throw new GraphValueError$1("No checkpointer set"); - if (supersteps.length === 0) throw new Error("No supersteps provided"); - if (supersteps.some((s$1) => s$1.updates.length === 0)) throw new Error("No updates provided"); - const checkpointNamespace = startConfig.configurable?.checkpoint_ns ?? ""; - if (checkpointNamespace !== "" && startConfig.configurable?.[CONFIG_KEY_CHECKPOINTER$1] === void 0) { - const recastNamespace = recastCheckpointNamespace$1(checkpointNamespace); - for await (const [, pregel] of this.getSubgraphsAsync(recastNamespace, true)) return await pregel.bulkUpdateState(patchConfigurable$2(startConfig, { [CONFIG_KEY_CHECKPOINTER$1]: checkpointer }), supersteps); - throw new Error(`Subgraph "${recastNamespace}" not found`); - } - const updateSuperStep = async (inputConfig, updates) => { - const config = this.config ? mergeConfigs(this.config, inputConfig) : inputConfig; - const saved = await checkpointer.getTuple(config); - const checkpoint = saved !== void 0 ? copyCheckpoint(saved.checkpoint) : emptyCheckpoint(); - const checkpointPreviousVersions = { ...saved?.checkpoint.channel_versions }; - const step = saved?.metadata?.step ?? -1; - let checkpointConfig = patchConfigurable$2(config, { checkpoint_ns: config.configurable?.checkpoint_ns ?? "" }); - let checkpointMetadata = config.metadata ?? {}; - if (saved?.config.configurable) { - checkpointConfig = patchConfigurable$2(config, saved.config.configurable); - checkpointMetadata = { - ...saved.metadata, - ...checkpointMetadata - }; - } - const { values, asNode } = updates[0]; - if (values == null && asNode === void 0) { - if (updates.length > 1) throw new InvalidUpdateError$1(`Cannot create empty checkpoint with multiple updates`); - const nextConfig$1 = await checkpointer.put(checkpointConfig, createCheckpoint$1(checkpoint, void 0, step), { - source: "update", - step: step + 1, - writes: {}, - parents: saved?.metadata?.parents ?? {} - }, {}); - return patchCheckpointMap$1(nextConfig$1, saved ? saved.metadata : void 0); - } - const channels = emptyChannels$1(this.channels, checkpoint); - const { managed } = await this.prepareSpecs(config, { skipManaged: true }); - if (values === null && asNode === END) { - if (updates.length > 1) throw new InvalidUpdateError$1(`Cannot apply multiple updates when clearing state`); - if (saved) { - const nextTasks = _prepareNextTasks$1(checkpoint, saved.pendingWrites || [], this.nodes, channels, managed, saved.config, true, { - step: (saved.metadata?.step ?? -1) + 1, - checkpointer: this.checkpointer || void 0, - store: this.store - }); - const nullWrites = (saved.pendingWrites || []).filter((w$1) => w$1[0] === NULL_TASK_ID$1).map((w$1) => w$1.slice(1)); - if (nullWrites.length > 0) _applyWrites$1(saved.checkpoint, channels, [{ - name: INPUT$1, - writes: nullWrites, - triggers: [] - }], void 0, this.triggerToNodes); - for (const [taskId, k, v] of saved.pendingWrites || []) { - if ([ - ERROR$1, - INTERRUPT$1, - SCHEDULED - ].includes(k)) continue; - if (!(taskId in nextTasks)) continue; - nextTasks[taskId].writes.push([k, v]); - } - _applyWrites$1(checkpoint, channels, Object.values(nextTasks), void 0, this.triggerToNodes); - } - const nextConfig$1 = await checkpointer.put(checkpointConfig, createCheckpoint$1(checkpoint, void 0, step), { - ...checkpointMetadata, - source: "update", - step: step + 1, - writes: {}, - parents: saved?.metadata?.parents ?? {} - }, {}); - return patchCheckpointMap$1(nextConfig$1, saved ? saved.metadata : void 0); - } - if (values == null && asNode === COPY$1) { - if (updates.length > 1) throw new InvalidUpdateError$1(`Cannot copy checkpoint with multiple updates`); - const nextConfig$1 = await checkpointer.put(saved?.parentConfig ?? checkpointConfig, createCheckpoint$1(checkpoint, void 0, step), { - source: "fork", - step: step + 1, - writes: {}, - parents: saved?.metadata?.parents ?? {} - }, {}); - return patchCheckpointMap$1(nextConfig$1, saved ? saved.metadata : void 0); - } - if (asNode === INPUT$1) { - if (updates.length > 1) throw new InvalidUpdateError$1(`Cannot apply multiple updates when updating as input`); - const inputWrites = await gatherIterator$1(mapInput$1(this.inputChannels, values)); - if (inputWrites.length === 0) throw new InvalidUpdateError$1(`Received no input writes for ${JSON.stringify(this.inputChannels, null, 2)}`); - _applyWrites$1(checkpoint, channels, [{ - name: INPUT$1, - writes: inputWrites, - triggers: [] - }], checkpointer.getNextVersion.bind(this.checkpointer), this.triggerToNodes); - const nextStep = saved?.metadata?.step != null ? saved.metadata.step + 1 : -1; - const nextConfig$1 = await checkpointer.put(checkpointConfig, createCheckpoint$1(checkpoint, channels, nextStep), { - source: "input", - step: nextStep, - writes: Object.fromEntries(inputWrites), - parents: saved?.metadata?.parents ?? {} - }, getNewChannelVersions$1(checkpointPreviousVersions, checkpoint.channel_versions)); - await checkpointer.putWrites(nextConfig$1, inputWrites, uuid5(INPUT$1, checkpoint.id)); - return patchCheckpointMap$1(nextConfig$1, saved ? saved.metadata : void 0); - } - if (config.configurable?.checkpoint_id === void 0 && saved?.pendingWrites !== void 0 && saved.pendingWrites.length > 0) { - const nextTasks = _prepareNextTasks$1(checkpoint, saved.pendingWrites, this.nodes, channels, managed, saved.config, true, { - store: this.store, - checkpointer: this.checkpointer, - step: (saved.metadata?.step ?? -1) + 1 - }); - const nullWrites = (saved.pendingWrites ?? []).filter((w$1) => w$1[0] === NULL_TASK_ID$1).map((w$1) => w$1.slice(1)); - if (nullWrites.length > 0) _applyWrites$1(saved.checkpoint, channels, [{ - name: INPUT$1, - writes: nullWrites, - triggers: [] - }], void 0, this.triggerToNodes); - for (const [tid, k, v] of saved.pendingWrites) { - if ([ - ERROR$1, - INTERRUPT$1, - SCHEDULED - ].includes(k) || nextTasks[tid] === void 0) continue; - nextTasks[tid].writes.push([k, v]); - } - const tasks$1 = Object.values(nextTasks).filter((task) => { - return task.writes.length > 0; - }); - if (tasks$1.length > 0) _applyWrites$1(checkpoint, channels, tasks$1, void 0, this.triggerToNodes); - } - const nonNullVersion = Object.values(checkpoint.versions_seen).map((seenVersions) => { - return Object.values(seenVersions); - }).flat().find((v) => !!v); - const validUpdates = []; - if (updates.length === 1) { - let { values: values$1, asNode: asNode$1 } = updates[0]; - if (asNode$1 === void 0 && Object.keys(this.nodes).length === 1) [asNode$1] = Object.keys(this.nodes); - else if (asNode$1 === void 0 && nonNullVersion === void 0) { - if (typeof this.inputChannels === "string" && this.nodes[this.inputChannels] !== void 0) asNode$1 = this.inputChannels; - } else if (asNode$1 === void 0) { - const lastSeenByNode = Object.entries(checkpoint.versions_seen).map(([n, seen]) => { - return Object.values(seen).map((v) => { - return [v, n]; - }); - }).flat().sort(([aNumber], [bNumber]) => compareChannelVersions(aNumber, bNumber)); - if (lastSeenByNode) { - if (lastSeenByNode.length === 1) asNode$1 = lastSeenByNode[0][1]; - else if (lastSeenByNode[lastSeenByNode.length - 1][0] !== lastSeenByNode[lastSeenByNode.length - 2][0]) asNode$1 = lastSeenByNode[lastSeenByNode.length - 1][1]; - } - } - if (asNode$1 === void 0) throw new InvalidUpdateError$1(`Ambiguous update, specify "asNode"`); - validUpdates.push({ - values: values$1, - asNode: asNode$1 - }); - } else for (const { asNode: asNode$1, values: values$1 } of updates) { - if (asNode$1 == null) throw new InvalidUpdateError$1(`"asNode" is required when applying multiple updates`); - validUpdates.push({ - values: values$1, - asNode: asNode$1 - }); - } - const tasks = []; - for (const { asNode: asNode$1, values: values$1 } of validUpdates) { - if (this.nodes[asNode$1] === void 0) throw new InvalidUpdateError$1(`Node "${asNode$1.toString()}" does not exist`); - const writers = this.nodes[asNode$1].getWriters(); - if (!writers.length) throw new InvalidUpdateError$1(`No writers found for node "${asNode$1.toString()}"`); - tasks.push({ - name: asNode$1, - input: values$1, - proc: writers.length > 1 ? RunnableSequence.from(writers, { omitSequenceTags: true }) : writers[0], - writes: [], - triggers: [INTERRUPT$1], - id: uuid5(INTERRUPT$1, checkpoint.id), - writers: [] - }); - } - for (const task of tasks) await task.proc.invoke(task.input, patchConfig({ - ...config, - store: config?.store ?? this.store - }, { - runName: config.runName ?? `${this.getName()}UpdateState`, - configurable: { - [CONFIG_KEY_SEND$1]: (items) => task.writes.push(...items), - [CONFIG_KEY_READ$1]: (select_, fresh_ = false) => _localRead$1(step, checkpoint, channels, managed, task, select_, fresh_) - } - })); - for (const task of tasks) { - const channelWrites = task.writes.filter((w$1) => w$1[0] !== PUSH$1); - if (saved !== void 0 && channelWrites.length > 0) await checkpointer.putWrites(checkpointConfig, channelWrites, task.id); - } - _applyWrites$1(checkpoint, channels, tasks, checkpointer.getNextVersion.bind(this.checkpointer), this.triggerToNodes); - const newVersions = getNewChannelVersions$1(checkpointPreviousVersions, checkpoint.channel_versions); - const nextConfig = await checkpointer.put(checkpointConfig, createCheckpoint$1(checkpoint, channels, step + 1), { - source: "update", - step: step + 1, - writes: Object.fromEntries(validUpdates.map((update) => [update.asNode, update.values])), - parents: saved?.metadata?.parents ?? {} - }, newVersions); - for (const task of tasks) { - const pushWrites = task.writes.filter((w$1) => w$1[0] === PUSH$1); - if (pushWrites.length > 0) await checkpointer.putWrites(nextConfig, pushWrites, task.id); - } - return patchCheckpointMap$1(nextConfig, saved ? saved.metadata : void 0); - }; - let currentConfig = startConfig; - for (const { updates } of supersteps) currentConfig = await updateSuperStep(currentConfig, updates); - return currentConfig; - } - /** - * Updates the state of the graph with new values. - * Requires a checkpointer to be configured. - * - * This method can be used for: - * - Implementing human-in-the-loop workflows - * - Modifying graph state during breakpoints - * - Integrating external inputs into the graph - * - * @param inputConfig - Configuration for the update - * @param values - The values to update the state with - * @param asNode - Optional node name to attribute the update to - * @returns Updated configuration - * @throws {GraphValueError} If no checkpointer is configured - * @throws {InvalidUpdateError} If the update cannot be attributed to a node - */ - async updateState(inputConfig, values, asNode) { - return this.bulkUpdateState(inputConfig, [{ updates: [{ - values, - asNode - }] }]); - } - /** - * Gets the default values for various graph configuration options. - * This is an internal method used to process and normalize configuration options. - * - * @param config - The input configuration options - * @returns A tuple containing normalized values for: - * - debug mode - * - stream modes - * - input keys - * - output keys - * - remaining config - * - interrupt before nodes - * - interrupt after nodes - * - checkpointer - * - store - * - whether stream mode is single - * @internal - */ - _defaults(config) { - const { debug: debug$2, streamMode, inputKeys, outputKeys, interruptAfter, interruptBefore,...rest } = config; - let streamModeSingle = true; - const defaultDebug = debug$2 !== void 0 ? debug$2 : this.debug; - let defaultOutputKeys = outputKeys; - if (defaultOutputKeys === void 0) defaultOutputKeys = this.streamChannelsAsIs; - else validateKeys$1(defaultOutputKeys, this.channels); - let defaultInputKeys = inputKeys; - if (defaultInputKeys === void 0) defaultInputKeys = this.inputChannels; - else validateKeys$1(defaultInputKeys, this.channels); - const defaultInterruptBefore = interruptBefore ?? this.interruptBefore ?? []; - const defaultInterruptAfter = interruptAfter ?? this.interruptAfter ?? []; - let defaultStreamMode; - if (streamMode !== void 0) { - defaultStreamMode = Array.isArray(streamMode) ? streamMode : [streamMode]; - streamModeSingle = typeof streamMode === "string"; - } else { - defaultStreamMode = this.streamMode; - streamModeSingle = true; - } - if (config.configurable?.[CONFIG_KEY_TASK_ID$1] !== void 0) defaultStreamMode = ["values"]; - let defaultCheckpointer; - if (this.checkpointer === false) defaultCheckpointer = void 0; - else if (config !== void 0 && config.configurable?.[CONFIG_KEY_CHECKPOINTER$1] !== void 0) defaultCheckpointer = config.configurable[CONFIG_KEY_CHECKPOINTER$1]; - else defaultCheckpointer = this.checkpointer; - const defaultStore = config.store ?? this.store; - const defaultCache = config.cache ?? this.cache; - return [ - defaultDebug, - defaultStreamMode, - defaultInputKeys, - defaultOutputKeys, - rest, - defaultInterruptBefore, - defaultInterruptAfter, - defaultCheckpointer, - defaultStore, - streamModeSingle, - defaultCache - ]; - } - /** - * Streams the execution of the graph, emitting state updates as they occur. - * This is the primary method for observing graph execution in real-time. - * - * Stream modes: - * - "values": Emits complete state after each step - * - "updates": Emits only state changes after each step - * - "debug": Emits detailed debug information - * - "messages": Emits messages from within nodes - * - * For more details, see the [Streaming how-to guides](../../how-tos/#streaming_1). - * - * @param input - The input to start graph execution with - * @param options - Configuration options for streaming - * @returns An async iterable stream of graph state updates - */ - async stream(input, options) { - const abortController = new AbortController(); - const config = { - recursionLimit: this.config?.recursionLimit, - ...options, - signal: options?.signal ? combineAbortSignals$1(options.signal, abortController.signal) : abortController.signal - }; - return new IterableReadableStreamWithAbortSignal$1(await super.stream(input, config), abortController); - } - streamEvents(input, options, streamOptions) { - const abortController = new AbortController(); - const config = { - recursionLimit: this.config?.recursionLimit, - callbacks: this.config?.callbacks, - ...options, - signal: options?.signal ? combineAbortSignals$1(options.signal, abortController.signal) : abortController.signal - }; - return new IterableReadableStreamWithAbortSignal$1(super.streamEvents(input, config, streamOptions), abortController); - } - /** - * Prepares channel specifications and managed values for graph execution. - * This is an internal method used to set up the graph's communication channels - * and managed state before execution. - * - * @param config - Configuration for preparing specs - * @param options - Additional options - * @param options.skipManaged - Whether to skip initialization of managed values - * @returns Object containing channel specs and managed value mapping - * @internal - */ - async prepareSpecs(config, options) { - const configForManaged = { - ...config, - store: this.store - }; - const channelSpecs = {}; - const managedSpecs = {}; - for (const [name, spec] of Object.entries(this.channels)) if (isBaseChannel$1(spec)) channelSpecs[name] = spec; - else if (options?.skipManaged) managedSpecs[name] = { - cls: NoopManagedValue$1, - params: { config: {} } - }; - else managedSpecs[name] = spec; - const managed = new ManagedValueMapping$1(await Object.entries(managedSpecs).reduce(async (accPromise, [key$1, value]) => { - const acc = await accPromise; - let initializedValue; - if (isConfiguredManagedValue$1(value)) { - if ("key" in value.params && value.params.key === ChannelKeyPlaceholder$1) value.params.key = key$1; - initializedValue = await value.cls.initialize(configForManaged, value.params); - } else initializedValue = await value.initialize(configForManaged); - if (initializedValue !== void 0) acc.push([key$1, initializedValue]); - return acc; - }, Promise.resolve([]))); - return { - channelSpecs, - managed - }; - } - /** - * Validates the input for the graph. - * @param input - The input to validate - * @returns The validated input - * @internal - */ - async _validateInput(input) { - return input; - } - /** - * Validates the configurable options for the graph. - * @param config - The configurable options to validate - * @returns The validated configurable options - * @internal - */ - async _validateConfigurable(config) { - return config; - } - /** - * Internal iterator used by stream() to generate state updates. - * This method handles the core logic of graph execution and streaming. - * - * @param input - The input to start graph execution with - * @param options - Configuration options for streaming - * @returns AsyncGenerator yielding state updates - * @internal - */ - async *_streamIterator(input, options) { - const streamSubgraphs = options?.subgraphs; - const inputConfig = ensureLangGraphConfig$1(this.config, options); - if (inputConfig.recursionLimit === void 0 || inputConfig.recursionLimit < 1) throw new Error(`Passed "recursionLimit" must be at least 1.`); - if (this.checkpointer !== void 0 && this.checkpointer !== false && inputConfig.configurable === void 0) throw new Error(`Checkpointer requires one or more of the following "configurable" keys: "thread_id", "checkpoint_ns", "checkpoint_id"`); - const validInput = await this._validateInput(input); - const { runId,...restConfig } = inputConfig; - const [debug$2, streamMode, , outputKeys, config, interruptBefore, interruptAfter, checkpointer, store, streamModeSingle, cache$1] = this._defaults(restConfig); - config.configurable = await this._validateConfigurable(config.configurable); - const stream = new IterableReadableWritableStream$1({ modes: new Set(streamMode) }); - if (streamMode.includes("messages")) { - const messageStreamer = new StreamMessagesHandler$1((chunk) => stream.push(chunk)); - const { callbacks } = config; - if (callbacks === void 0) config.callbacks = [messageStreamer]; - else if (Array.isArray(callbacks)) config.callbacks = callbacks.concat(messageStreamer); - else { - const copiedCallbacks = callbacks.copy(); - copiedCallbacks.addHandler(messageStreamer, true); - config.callbacks = copiedCallbacks; - } - } - if (streamMode.includes("custom")) config.writer = (chunk) => stream.push([ - [], - "custom", - chunk - ]); - const callbackManager = await getCallbackManagerForConfig(config); - const runManager = await callbackManager?.handleChainStart(this.toJSON(), _coerceToDict$2(input, "input"), runId, void 0, void 0, void 0, config?.runName ?? this.getName()); - const { channelSpecs, managed } = await this.prepareSpecs(config); - let loop; - let loopError; - /** - * The PregelLoop will yield events from concurrent tasks as soon as they are - * generated. Each task can push multiple events onto the stream in any order. - * - * We use a separate background method and stream here in order to yield events - * from the loop to the main stream and therefore back to the user as soon as - * they are available. - */ - const createAndRunLoop = async () => { - try { - loop = await PregelLoop$1.initialize({ - input: validInput, - config, - checkpointer, - nodes: this.nodes, - channelSpecs, - managed, - outputKeys, - streamKeys: this.streamChannelsAsIs, - store, - cache: cache$1, - stream, - interruptAfter, - interruptBefore, - manager: runManager, - debug: this.debug, - triggerToNodes: this.triggerToNodes - }); - const runner = new PregelRunner$1({ - loop, - nodeFinished: config.configurable?.[CONFIG_KEY_NODE_FINISHED$1] - }); - if (options?.subgraphs) loop.config.configurable = { - ...loop.config.configurable, - [CONFIG_KEY_STREAM$1]: loop.stream - }; - await this._runLoop({ - loop, - runner, - debug: debug$2, - config - }); - } catch (e) { - loopError = e; - } finally { - try { - if (loop) { - await loop.store?.stop(); - await loop.cache?.stop(); - } - await Promise.all([...loop?.checkpointerPromises ?? [], ...Array.from(managed.values()).map((mv) => mv.promises())]); - } catch (e) { - loopError = loopError ?? e; - } - if (loopError) stream.error(loopError); - else stream.close(); - } - }; - const runLoopPromise = createAndRunLoop(); - try { - for await (const chunk of stream) { - if (chunk === void 0) throw new Error("Data structure error."); - const [namespace, mode, payload] = chunk; - if (streamMode.includes(mode)) if (streamSubgraphs && !streamModeSingle) yield [ - namespace, - mode, - payload - ]; - else if (!streamModeSingle) yield [mode, payload]; - else if (streamSubgraphs) yield [namespace, payload]; - else yield payload; - } - } catch (e) { - await runManager?.handleChainError(loopError); - throw e; - } finally { - await runLoopPromise; - } - await runManager?.handleChainEnd(loop?.output ?? {}, runId, void 0, void 0, void 0); - } - /** - * Run the graph with a single input and config. - * @param input The input to the graph. - * @param options The configuration to use for the run. - */ - async invoke(input, options) { - const streamMode = options?.streamMode ?? "values"; - const config = { - ...options, - outputKeys: options?.outputKeys ?? this.outputChannels, - streamMode - }; - const chunks = []; - const stream = await this.stream(input, config); - const interruptChunks = []; - let latest; - for await (const chunk of stream) if (streamMode === "values") if (isInterrupted(chunk)) interruptChunks.push(chunk[INTERRUPT$1]); - else latest = chunk; - else chunks.push(chunk); - if (streamMode === "values") { - if (interruptChunks.length > 0) { - const interrupts = interruptChunks.flat(1); - if (latest == null) return { [INTERRUPT$1]: interrupts }; - if (typeof latest === "object") return { - ...latest, - [INTERRUPT$1]: interrupts - }; - } - return latest; - } - return chunks; - } - async _runLoop(params) { - const { loop, runner, debug: debug$2, config } = params; - let tickError; - try { - while (await loop.tick({ inputKeys: this.inputChannels })) { - for (const { task } of await loop._matchCachedWrites()) loop._outputWrites(task.id, task.writes, true); - if (debug$2) printStepCheckpoint$1(loop.checkpointMetadata.step, loop.channels, this.streamChannelsList); - if (debug$2) printStepTasks$1(loop.step, Object.values(loop.tasks)); - await runner.tick({ - timeout: this.stepTimeout, - retryPolicy: this.retryPolicy, - onStepWrite: (step, writes) => { - if (debug$2) printStepWrites$1(step, writes, this.streamChannelsList); - }, - maxConcurrency: config.maxConcurrency, - signal: config.signal - }); - } - if (loop.status === "out_of_steps") throw new GraphRecursionError$1([ - `Recursion limit of ${config.recursionLimit} reached`, - "without hitting a stop condition. You can increase the", - `limit by setting the "recursionLimit" config key.` - ].join(" "), { lc_error_code: "GRAPH_RECURSION_LIMIT" }); - } catch (e) { - tickError = e; - const suppress = await loop.finishAndHandleError(tickError); - if (!suppress) throw e; - } finally { - if (tickError === void 0) await loop.finishAndHandleError(); - } - } - async clearCache() { - await this.cache?.clear([]); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.js -/** -* Stores the value received in the step immediately preceding, clears after. -* @internal -*/ -var EphemeralValue$1 = class EphemeralValue$1 extends BaseChannel$1 { - constructor(guard = true) { - super(); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "EphemeralValue" - }); - Object.defineProperty(this, "guard", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.guard = guard; - } - fromCheckpoint(checkpoint) { - const empty = new EphemeralValue$1(this.guard); - if (typeof checkpoint !== "undefined") empty.value = [checkpoint]; - return empty; - } - update(values) { - if (values.length === 0) { - const updated = this.value.length > 0; - this.value = []; - return updated; - } - if (values.length !== 1 && this.guard) throw new InvalidUpdateError$1("EphemeralValue can only receive one value per step."); - this.value = [values[values.length - 1]]; - return true; - } - get() { - if (this.value.length === 0) throw new EmptyChannelError$1(); - return this.value[0]; - } - checkpoint() { - if (this.value.length === 0) throw new EmptyChannelError$1(); - return this.value[0]; - } - isAvailable() { - return this.value.length !== 0; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/graph/graph.js -var Branch = class { - constructor(options) { - Object.defineProperty(this, "path", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "ends", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - if (Runnable.isRunnable(options.path)) this.path = options.path; - else this.path = _coerceToRunnable(options.path).withConfig({ runName: `Branch` }); - this.ends = Array.isArray(options.pathMap) ? options.pathMap.reduce((acc, n) => { - acc[n] = n; - return acc; - }, {}) : options.pathMap; - } - run(writer, reader) { - return ChannelWrite$1.registerWriter(new RunnableCallable$1({ - name: "", - trace: false, - func: async (input, config) => { - try { - return await this._route(input, config, writer, reader); - } catch (e) { - if (e.name === NodeInterrupt$1.unminifiable_name) console.warn("[WARN]: 'NodeInterrupt' thrown in conditional edge. This is likely a bug in your graph implementation.\nNodeInterrupt should only be thrown inside a node, not in edge conditions."); - throw e; - } - } - })); - } - async _route(input, config, writer, reader) { - let result = await this.path.invoke(reader ? reader(config) : input, config); - if (!Array.isArray(result)) result = [result]; - let destinations; - if (this.ends) destinations = result.map((r) => _isSend$1(r) ? r : this.ends[r]); - else destinations = result; - if (destinations.some((dest) => !dest)) throw new Error("Branch condition returned unknown or null destination"); - if (destinations.filter(_isSend$1).some((packet) => packet.node === END)) throw new InvalidUpdateError$1("Cannot send a packet to the END node"); - const writeResult = await writer(destinations, config); - return writeResult ?? input; - } -}; -var Graph$2 = class { - constructor() { - Object.defineProperty(this, "nodes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "edges", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "branches", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "entryPoint", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "compiled", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - this.nodes = {}; - this.edges = /* @__PURE__ */ new Set(); - this.branches = {}; - } - warnIfCompiled(message) { - if (this.compiled) console.warn(message); - } - get allEdges() { - return this.edges; - } - addNode(...args) { - function isMutlipleNodes(args$1) { - return args$1.length >= 1 && typeof args$1[0] !== "string"; - } - const nodes = isMutlipleNodes(args) ? Array.isArray(args[0]) ? args[0] : Object.entries(args[0]) : [[ - args[0], - args[1], - args[2] - ]]; - if (nodes.length === 0) throw new Error("No nodes provided in `addNode`"); - for (const [key$1, action, options] of nodes) { - for (const reservedChar of [CHECKPOINT_NAMESPACE_SEPARATOR$1, CHECKPOINT_NAMESPACE_END$1]) if (key$1.includes(reservedChar)) throw new Error(`"${reservedChar}" is a reserved character and is not allowed in node names.`); - this.warnIfCompiled(`Adding a node to a graph that has already been compiled. This will not be reflected in the compiled graph.`); - if (key$1 in this.nodes) throw new Error(`Node \`${key$1}\` already present.`); - if (key$1 === END) throw new Error(`Node \`${key$1}\` is reserved.`); - const runnable = _coerceToRunnable(action); - this.nodes[key$1] = { - runnable, - metadata: options?.metadata, - subgraphs: isPregelLike$1(runnable) ? [runnable] : options?.subgraphs, - ends: options?.ends - }; - } - return this; - } - addEdge(startKey, endKey) { - this.warnIfCompiled(`Adding an edge to a graph that has already been compiled. This will not be reflected in the compiled graph.`); - if (startKey === END) throw new Error("END cannot be a start node"); - if (endKey === START$1) throw new Error("START cannot be an end node"); - if (Array.from(this.edges).some(([start]) => start === startKey) && !("channels" in this)) throw new Error(`Already found path for ${startKey}. For multiple edges, use StateGraph.`); - this.edges.add([startKey, endKey]); - return this; - } - addConditionalEdges(source, path, pathMap) { - const options = typeof source === "object" ? source : { - source, - path, - pathMap - }; - this.warnIfCompiled("Adding an edge to a graph that has already been compiled. This will not be reflected in the compiled graph."); - if (!Runnable.isRunnable(options.path)) { - const pathDisplayValues = Array.isArray(options.pathMap) ? options.pathMap.join(",") : Object.keys(options.pathMap ?? {}).join(","); - options.path = _coerceToRunnable(options.path).withConfig({ runName: `Branch<${options.source}${pathDisplayValues !== "" ? `,${pathDisplayValues}` : ""}>`.slice(0, 63) }); - } - const name = options.path.getName() === "RunnableLambda" ? "condition" : options.path.getName(); - if (this.branches[options.source] && this.branches[options.source][name]) throw new Error(`Condition \`${name}\` already present for node \`${source}\``); - this.branches[options.source] ??= {}; - this.branches[options.source][name] = new Branch(options); - return this; - } - /** - * @deprecated use `addEdge(START, key)` instead - */ - setEntryPoint(key$1) { - this.warnIfCompiled("Setting the entry point of a graph that has already been compiled. This will not be reflected in the compiled graph."); - return this.addEdge(START$1, key$1); - } - /** - * @deprecated use `addEdge(key, END)` instead - */ - setFinishPoint(key$1) { - this.warnIfCompiled("Setting a finish point of a graph that has already been compiled. This will not be reflected in the compiled graph."); - return this.addEdge(key$1, END); - } - compile({ checkpointer, interruptBefore, interruptAfter, name } = {}) { - this.validate([...Array.isArray(interruptBefore) ? interruptBefore : [], ...Array.isArray(interruptAfter) ? interruptAfter : []]); - const compiled = new CompiledGraph({ - builder: this, - checkpointer, - interruptAfter, - interruptBefore, - autoValidate: false, - nodes: {}, - channels: { - [START$1]: new EphemeralValue$1(), - [END]: new EphemeralValue$1() - }, - inputChannels: START$1, - outputChannels: END, - streamChannels: [], - streamMode: "values", - name - }); - for (const [key$1, node] of Object.entries(this.nodes)) compiled.attachNode(key$1, node); - for (const [start, end] of this.edges) compiled.attachEdge(start, end); - for (const [start, branches] of Object.entries(this.branches)) for (const [name$1, branch] of Object.entries(branches)) compiled.attachBranch(start, name$1, branch); - return compiled.validate(); - } - validate(interrupt$1) { - const allSources = new Set([...this.allEdges].map(([src, _]) => src)); - for (const [start] of Object.entries(this.branches)) allSources.add(start); - for (const source of allSources) if (source !== START$1 && !(source in this.nodes)) throw new Error(`Found edge starting at unknown node \`${source}\``); - const allTargets = new Set([...this.allEdges].map(([_, target]) => target)); - for (const [start, branches] of Object.entries(this.branches)) for (const branch of Object.values(branches)) if (branch.ends != null) for (const end of Object.values(branch.ends)) allTargets.add(end); - else { - allTargets.add(END); - for (const node of Object.keys(this.nodes)) if (node !== start) allTargets.add(node); - } - for (const node of Object.values(this.nodes)) for (const target of node.ends ?? []) allTargets.add(target); - for (const node of Object.keys(this.nodes)) if (!allTargets.has(node)) throw new UnreachableNodeError([ - `Node \`${node}\` is not reachable.`, - "", - "If you are returning Command objects from your node,", - "make sure you are passing names of potential destination nodes as an \"ends\" array", - "into \".addNode(..., { ends: [\"node1\", \"node2\"] })\"." - ].join("\n"), { lc_error_code: "UNREACHABLE_NODE" }); - for (const target of allTargets) if (target !== END && !(target in this.nodes)) throw new Error(`Found edge ending at unknown node \`${target}\``); - if (interrupt$1) { - for (const node of interrupt$1) if (!(node in this.nodes)) throw new Error(`Interrupt node \`${node}\` is not present`); - } - this.compiled = true; - } -}; -var CompiledGraph = class extends Pregel$1 { - constructor({ builder,...rest }) { - super(rest); - Object.defineProperty(this, "builder", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.builder = builder; - } - attachNode(key$1, node) { - this.channels[key$1] = new EphemeralValue$1(); - this.nodes[key$1] = new PregelNode$1({ - channels: [], - triggers: [], - metadata: node.metadata, - subgraphs: node.subgraphs, - ends: node.ends - }).pipe(node.runnable).pipe(new ChannelWrite$1([{ - channel: key$1, - value: PASSTHROUGH$1 - }], [TAG_HIDDEN$1])); - this.streamChannels.push(key$1); - } - attachEdge(start, end) { - if (end === END) { - if (start === START$1) throw new Error("Cannot have an edge from START to END"); - this.nodes[start].writers.push(new ChannelWrite$1([{ - channel: END, - value: PASSTHROUGH$1 - }], [TAG_HIDDEN$1])); - } else { - this.nodes[end].triggers.push(start); - this.nodes[end].channels.push(start); - } - } - attachBranch(start, name, branch) { - if (start === START$1 && !this.nodes[START$1]) this.nodes[START$1] = Channel.subscribeTo(START$1, { tags: [TAG_HIDDEN$1] }); - this.nodes[start].pipe(branch.run((dests) => { - const writes = dests.map((dest) => { - if (_isSend$1(dest)) return dest; - return { - channel: dest === END ? END : `branch:${start}:${name}:${dest}`, - value: PASSTHROUGH$1 - }; - }); - return new ChannelWrite$1(writes, [TAG_HIDDEN$1]); - })); - const ends = branch.ends ? Object.values(branch.ends) : Object.keys(this.nodes); - for (const end of ends) if (end !== END) { - const channelName = `branch:${start}:${name}:${end}`; - this.channels[channelName] = new EphemeralValue$1(); - this.nodes[end].triggers.push(channelName); - this.nodes[end].channels.push(channelName); - } - } - /** - * Returns a drawable representation of the computation graph. - */ - async getGraphAsync(config) { - const xray = config?.xray; - const graph$1 = new Graph(); - const startNodes = { [START$1]: graph$1.addNode({ schema: anyType() }, START$1) }; - const endNodes = {}; - let subgraphs = {}; - if (xray) subgraphs = Object.fromEntries((await gatherIterator$1(this.getSubgraphsAsync())).filter((x) => isCompiledGraph(x[1]))); - function addEdge(start, end, label, conditional = false) { - if (end === END && endNodes[END] === void 0) endNodes[END] = graph$1.addNode({ schema: anyType() }, END); - if (startNodes[start] === void 0) return; - if (endNodes[end] === void 0) throw new Error(`End node ${end} not found!`); - return graph$1.addEdge(startNodes[start], endNodes[end], label !== end ? label : void 0, conditional); - } - for (const [key$1, nodeSpec] of Object.entries(this.builder.nodes)) { - const displayKey = _escapeMermaidKeywords(key$1); - const node = nodeSpec.runnable; - const metadata = nodeSpec.metadata ?? {}; - if (this.interruptBefore?.includes(key$1) && this.interruptAfter?.includes(key$1)) metadata.__interrupt = "before,after"; - else if (this.interruptBefore?.includes(key$1)) metadata.__interrupt = "before"; - else if (this.interruptAfter?.includes(key$1)) metadata.__interrupt = "after"; - if (xray) { - const newXrayValue = typeof xray === "number" ? xray - 1 : xray; - const drawableSubgraph = subgraphs[key$1] !== void 0 ? await subgraphs[key$1].getGraphAsync({ - ...config, - xray: newXrayValue - }) : node.getGraph(config); - drawableSubgraph.trimFirstNode(); - drawableSubgraph.trimLastNode(); - if (Object.keys(drawableSubgraph.nodes).length > 1) { - const [e, s$1] = graph$1.extend(drawableSubgraph, displayKey); - if (e === void 0) throw new Error(`Could not extend subgraph "${key$1}" due to missing entrypoint.`); - function _isRunnableInterface(thing) { - return thing ? thing.lc_runnable : false; - } - function _nodeDataStr(id, data) { - if (id !== void 0 && !validate_default(id)) return id; - else if (_isRunnableInterface(data)) try { - let dataStr = data.getName(); - dataStr = dataStr.startsWith("Runnable") ? dataStr.slice(8) : dataStr; - return dataStr; - } catch (error) { - return data.getName(); - } - else return data.name ?? "UnknownSchema"; - } - if (s$1 !== void 0) startNodes[displayKey] = { - name: _nodeDataStr(s$1.id, s$1.data), - ...s$1 - }; - endNodes[displayKey] = { - name: _nodeDataStr(e.id, e.data), - ...e - }; - } else { - const newNode = graph$1.addNode(node, displayKey, metadata); - startNodes[displayKey] = newNode; - endNodes[displayKey] = newNode; - } - } else { - const newNode = graph$1.addNode(node, displayKey, metadata); - startNodes[displayKey] = newNode; - endNodes[displayKey] = newNode; - } - } - const sortedEdges = [...this.builder.allEdges].sort(([a], [b]) => { - if (a < b) return -1; - else if (b > a) return 1; - else return 0; - }); - for (const [start, end] of sortedEdges) addEdge(_escapeMermaidKeywords(start), _escapeMermaidKeywords(end)); - for (const [start, branches] of Object.entries(this.builder.branches)) { - const defaultEnds = { - ...Object.fromEntries(Object.keys(this.builder.nodes).filter((k) => k !== start).map((k) => [_escapeMermaidKeywords(k), _escapeMermaidKeywords(k)])), - [END]: END - }; - for (const branch of Object.values(branches)) { - let ends; - if (branch.ends !== void 0) ends = branch.ends; - else ends = defaultEnds; - for (const [label, end] of Object.entries(ends)) addEdge(_escapeMermaidKeywords(start), _escapeMermaidKeywords(end), label, true); - } - } - for (const [key$1, node] of Object.entries(this.builder.nodes)) if (node.ends !== void 0) for (const end of node.ends) addEdge(_escapeMermaidKeywords(key$1), _escapeMermaidKeywords(end), void 0, true); - return graph$1; - } - /** - * Returns a drawable representation of the computation graph. - * - * @deprecated Use getGraphAsync instead. The async method will be the default in the next minor core release. - */ - getGraph(config) { - const xray = config?.xray; - const graph$1 = new Graph(); - const startNodes = { [START$1]: graph$1.addNode({ schema: anyType() }, START$1) }; - const endNodes = {}; - let subgraphs = {}; - if (xray) subgraphs = Object.fromEntries(gatherIteratorSync$1(this.getSubgraphs()).filter((x) => isCompiledGraph(x[1]))); - function addEdge(start, end, label, conditional = false) { - if (end === END && endNodes[END] === void 0) endNodes[END] = graph$1.addNode({ schema: anyType() }, END); - return graph$1.addEdge(startNodes[start], endNodes[end], label !== end ? label : void 0, conditional); - } - for (const [key$1, nodeSpec] of Object.entries(this.builder.nodes)) { - const displayKey = _escapeMermaidKeywords(key$1); - const node = nodeSpec.runnable; - const metadata = nodeSpec.metadata ?? {}; - if (this.interruptBefore?.includes(key$1) && this.interruptAfter?.includes(key$1)) metadata.__interrupt = "before,after"; - else if (this.interruptBefore?.includes(key$1)) metadata.__interrupt = "before"; - else if (this.interruptAfter?.includes(key$1)) metadata.__interrupt = "after"; - if (xray) { - const newXrayValue = typeof xray === "number" ? xray - 1 : xray; - const drawableSubgraph = subgraphs[key$1] !== void 0 ? subgraphs[key$1].getGraph({ - ...config, - xray: newXrayValue - }) : node.getGraph(config); - drawableSubgraph.trimFirstNode(); - drawableSubgraph.trimLastNode(); - if (Object.keys(drawableSubgraph.nodes).length > 1) { - const [e, s$1] = graph$1.extend(drawableSubgraph, displayKey); - if (e === void 0) throw new Error(`Could not extend subgraph "${key$1}" due to missing entrypoint.`); - function _isRunnableInterface(thing) { - return thing ? thing.lc_runnable : false; - } - function _nodeDataStr(id, data) { - if (id !== void 0 && !validate_default(id)) return id; - else if (_isRunnableInterface(data)) try { - let dataStr = data.getName(); - dataStr = dataStr.startsWith("Runnable") ? dataStr.slice(8) : dataStr; - return dataStr; - } catch (error) { - return data.getName(); - } - else return data.name ?? "UnknownSchema"; - } - if (s$1 !== void 0) startNodes[displayKey] = { - name: _nodeDataStr(s$1.id, s$1.data), - ...s$1 - }; - endNodes[displayKey] = { - name: _nodeDataStr(e.id, e.data), - ...e - }; - } else { - const newNode = graph$1.addNode(node, displayKey, metadata); - startNodes[displayKey] = newNode; - endNodes[displayKey] = newNode; - } - } else { - const newNode = graph$1.addNode(node, displayKey, metadata); - startNodes[displayKey] = newNode; - endNodes[displayKey] = newNode; - } - } - const sortedEdges = [...this.builder.allEdges].sort(([a], [b]) => { - if (a < b) return -1; - else if (b > a) return 1; - else return 0; - }); - for (const [start, end] of sortedEdges) addEdge(_escapeMermaidKeywords(start), _escapeMermaidKeywords(end)); - for (const [start, branches] of Object.entries(this.builder.branches)) { - const defaultEnds = { - ...Object.fromEntries(Object.keys(this.builder.nodes).filter((k) => k !== start).map((k) => [_escapeMermaidKeywords(k), _escapeMermaidKeywords(k)])), - [END]: END - }; - for (const branch of Object.values(branches)) { - let ends; - if (branch.ends !== void 0) ends = branch.ends; - else ends = defaultEnds; - for (const [label, end] of Object.entries(ends)) addEdge(_escapeMermaidKeywords(start), _escapeMermaidKeywords(end), label, true); - } - } - return graph$1; - } -}; -function isCompiledGraph(x) { - return typeof x.attachNode === "function" && typeof x.attachEdge === "function"; -} -function _escapeMermaidKeywords(key$1) { - if (key$1 === "subgraph") return `"${key$1}"`; - return key$1; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.js -const areSetsEqual = (a, b) => a.size === b.size && [...a].every((value) => b.has(value)); -/** -* A channel that waits until all named values are received before making the value available. -* -* This ensures that if node N and node M both write to channel C, the value of C will not be updated -* until N and M have completed updating. -* @internal -*/ -var NamedBarrierValue = class NamedBarrierValue extends BaseChannel$1 { - constructor(names) { - super(); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "NamedBarrierValue" - }); - Object.defineProperty(this, "names", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "seen", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.names = names; - this.seen = /* @__PURE__ */ new Set(); - } - fromCheckpoint(checkpoint) { - const empty = new NamedBarrierValue(this.names); - if (typeof checkpoint !== "undefined") empty.seen = new Set(checkpoint); - return empty; - } - update(values) { - let updated = false; - for (const nodeName of values) if (this.names.has(nodeName)) { - if (!this.seen.has(nodeName)) { - this.seen.add(nodeName); - updated = true; - } - } else throw new InvalidUpdateError$1(`Value ${JSON.stringify(nodeName)} not in names ${JSON.stringify(this.names)}`); - return updated; - } - get() { - if (!areSetsEqual(this.names, this.seen)) throw new EmptyChannelError$1(); - return void 0; - } - checkpoint() { - return [...this.seen]; - } - consume() { - if (this.seen && this.names && areSetsEqual(this.seen, this.names)) { - this.seen = /* @__PURE__ */ new Set(); - return true; - } - return false; - } - isAvailable() { - return !!this.names && areSetsEqual(this.names, this.seen); - } -}; -/** -* A channel that waits until all named values are received before making the value ready to be made available. -* It is only made available after finish() is called. -* @internal -*/ -var NamedBarrierValueAfterFinish = class NamedBarrierValueAfterFinish extends BaseChannel$1 { - constructor(names) { - super(); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "NamedBarrierValueAfterFinish" - }); - Object.defineProperty(this, "names", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "seen", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "finished", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.names = names; - this.seen = /* @__PURE__ */ new Set(); - this.finished = false; - } - fromCheckpoint(checkpoint) { - const empty = new NamedBarrierValueAfterFinish(this.names); - if (typeof checkpoint !== "undefined") { - const [seen, finished] = checkpoint; - empty.seen = new Set(seen); - empty.finished = finished; - } - return empty; - } - update(values) { - let updated = false; - for (const nodeName of values) if (this.names.has(nodeName) && !this.seen.has(nodeName)) { - this.seen.add(nodeName); - updated = true; - } else if (!this.names.has(nodeName)) throw new InvalidUpdateError$1(`Value ${JSON.stringify(nodeName)} not in names ${JSON.stringify(this.names)}`); - return updated; - } - get() { - if (!this.finished || !areSetsEqual(this.names, this.seen)) throw new EmptyChannelError$1(); - return void 0; - } - checkpoint() { - return [[...this.seen], this.finished]; - } - consume() { - if (this.finished && this.seen && this.names && areSetsEqual(this.seen, this.names)) { - this.seen = /* @__PURE__ */ new Set(); - this.finished = false; - return true; - } - return false; - } - finish() { - if (!this.finished && !!this.names && areSetsEqual(this.names, this.seen)) { - this.finished = true; - return true; - } - return false; - } - isAvailable() { - return this.finished && !!this.names && areSetsEqual(this.names, this.seen); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/graph/zod/state.js -const META_MAP$1 = /* @__PURE__ */ new WeakMap(); -function isZodType$1(value) { - return typeof value === "object" && value != null && "_parse" in value && typeof value._parse === "function"; -} -/** -* @internal -*/ -function isZodDefault$1(value) { - return isZodType$1(value) && "removeDefault" in value && typeof value.removeDefault === "function"; -} -/** -* @internal -*/ -function isAnyZodObject(value) { - return isZodType$1(value) && "partial" in value && typeof value.partial === "function"; -} -function withLangGraph$1(schema, meta) { - if (meta.reducer && !meta.default) { - const defaultValue = isZodDefault$1(schema) ? schema._def.defaultValue : void 0; - if (defaultValue != null) meta.default = defaultValue; - } - META_MAP$1.set(schema, meta); - return schema; -} -function getMeta(schema) { - return META_MAP$1.get(schema); -} -function getChannelsFromZod(schema) { - const channels = {}; - for (const key$1 in schema.shape) if (Object.prototype.hasOwnProperty.call(schema.shape, key$1)) { - const keySchema = schema.shape[key$1]; - const meta = getMeta(keySchema); - if (meta?.reducer) channels[key$1] = new BinaryOperatorAggregate$1(meta.reducer.fn, meta.default); - else channels[key$1] = new LastValue$1(); - } - return channels; -} -const ZOD_TYPE_CACHE = {}; -const ZOD_DESCRIPTION_PREFIX = "lg:"; -function applyZodPlugin(schema, actions) { - const cacheKey = [ - `reducer:${actions.reducer ?? false}`, - `jsonSchemaExtra:${actions.jsonSchemaExtra ?? false}`, - `partial:${actions.partial ?? false}` - ].join("|"); - ZOD_TYPE_CACHE[cacheKey] ??= /* @__PURE__ */ new WeakMap(); - const cache$1 = ZOD_TYPE_CACHE[cacheKey]; - if (cache$1.has(schema)) return cache$1.get(schema); - let shape = schema.extend({ ...Object.fromEntries(Object.entries(schema.shape).map(([key$1, input]) => { - const meta = getMeta(input); - let output = actions.reducer ? meta?.reducer?.schema ?? input : input; - if (actions.jsonSchemaExtra) { - const strMeta = JSON.stringify({ - ...meta?.jsonSchemaExtra, - description: output.description ?? input.description - }); - if (strMeta !== "{}") output = output.describe(`${ZOD_DESCRIPTION_PREFIX}${strMeta}`); - } - return [key$1, output]; - })) }); - if ("_def" in shape && shape._def != null && typeof shape._def === "object" && "unknownKeys" in shape._def) shape._def.unknownKeys = "strip"; - if (actions.partial) shape = shape.partial(); - cache$1.set(schema, shape); - return shape; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/graph/state.js -const ROOT = "__root__"; -const PartialStateSchema = Symbol.for("langgraph.state.partial"); -/** -* A graph whose nodes communicate by reading and writing to a shared state. -* Each node takes a defined `State` as input and returns a `Partial`. -* -* Each state key can optionally be annotated with a reducer function that -* will be used to aggregate the values of that key received from multiple nodes. -* The signature of a reducer function is (left: Value, right: UpdateValue) => Value. -* -* See {@link Annotation} for more on defining state. -* -* After adding nodes and edges to your graph, you must call `.compile()` on it before -* you can use it. -* -* @example -* ```ts -* import { -* type BaseMessage, -* AIMessage, -* HumanMessage, -* } from "@langchain/core/messages"; -* import { StateGraph, Annotation } from "@langchain/langgraph"; -* -* // Define a state with a single key named "messages" that will -* // combine a returned BaseMessage or arrays of BaseMessages -* const StateAnnotation = Annotation.Root({ -* sentiment: Annotation, -* messages: Annotation({ -* reducer: (left: BaseMessage[], right: BaseMessage | BaseMessage[]) => { -* if (Array.isArray(right)) { -* return left.concat(right); -* } -* return left.concat([right]); -* }, -* default: () => [], -* }), -* }); -* -* const graphBuilder = new StateGraph(StateAnnotation); -* -* // A node in the graph that returns an object with a "messages" key -* // will update the state by combining the existing value with the returned one. -* const myNode = (state: typeof StateAnnotation.State) => { -* return { -* messages: [new AIMessage("Some new response")], -* sentiment: "positive", -* }; -* }; -* -* const graph = graphBuilder -* .addNode("myNode", myNode) -* .addEdge("__start__", "myNode") -* .addEdge("myNode", "__end__") -* .compile(); -* -* await graph.invoke({ messages: [new HumanMessage("how are you?")] }); -* -* // { -* // messages: [HumanMessage("how are you?"), AIMessage("Some new response")], -* // sentiment: "positive", -* // } -* ``` -*/ -var StateGraph = class extends Graph$2 { - constructor(fields, configSchema) { - super(); - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "waitingEdges", { - enumerable: true, - configurable: true, - writable: true, - value: /* @__PURE__ */ new Set() - }); - /** @internal */ - Object.defineProperty(this, "_schemaDefinition", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @internal */ - Object.defineProperty(this, "_schemaRuntimeDefinition", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @internal */ - Object.defineProperty(this, "_inputDefinition", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @internal */ - Object.defineProperty(this, "_inputRuntimeDefinition", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @internal */ - Object.defineProperty(this, "_outputDefinition", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @internal */ - Object.defineProperty(this, "_outputRuntimeDefinition", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Map schemas to managed values - * @internal - */ - Object.defineProperty(this, "_schemaDefinitions", { - enumerable: true, - configurable: true, - writable: true, - value: /* @__PURE__ */ new Map() - }); - /** @internal Used only for typing. */ - Object.defineProperty(this, "_configSchema", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @internal */ - Object.defineProperty(this, "_configRuntimeSchema", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - if (isZodStateGraphArgsWithStateSchema(fields)) { - const stateDef = getChannelsFromZod(fields.state); - const inputDef = fields.input != null ? getChannelsFromZod(fields.input) : stateDef; - const outputDef = fields.output != null ? getChannelsFromZod(fields.output) : stateDef; - this._schemaDefinition = stateDef; - this._schemaRuntimeDefinition = fields.state; - this._inputDefinition = inputDef; - this._inputRuntimeDefinition = fields.input ?? PartialStateSchema; - this._outputDefinition = outputDef; - this._outputRuntimeDefinition = fields.output ?? fields.state; - } else if (isAnyZodObject(fields)) { - const stateDef = getChannelsFromZod(fields); - this._schemaDefinition = stateDef; - this._schemaRuntimeDefinition = fields; - this._inputDefinition = stateDef; - this._inputRuntimeDefinition = PartialStateSchema; - this._outputDefinition = stateDef; - this._outputRuntimeDefinition = fields; - } else if (isStateGraphArgsWithInputOutputSchemas(fields)) { - this._schemaDefinition = fields.input.spec; - this._inputDefinition = fields.input.spec; - this._outputDefinition = fields.output.spec; - } else if (isStateGraphArgsWithStateSchema(fields)) { - this._schemaDefinition = fields.stateSchema.spec; - this._inputDefinition = fields.input?.spec ?? this._schemaDefinition; - this._outputDefinition = fields.output?.spec ?? this._schemaDefinition; - } else if (isStateDefinition(fields) || isAnnotationRoot(fields)) { - const spec = isAnnotationRoot(fields) ? fields.spec : fields; - this._schemaDefinition = spec; - } else if (isStateGraphArgs(fields)) { - const spec = _getChannels(fields.channels); - this._schemaDefinition = spec; - } else throw new Error("Invalid StateGraph input. Make sure to pass a valid Annotation.Root or Zod schema."); - this._inputDefinition ??= this._schemaDefinition; - this._outputDefinition ??= this._schemaDefinition; - this._addSchema(this._schemaDefinition); - this._addSchema(this._inputDefinition); - this._addSchema(this._outputDefinition); - if (isAnyZodObject(configSchema)) this._configRuntimeSchema = configSchema.passthrough(); - } - get allEdges() { - return new Set([...this.edges, ...Array.from(this.waitingEdges).flatMap(([starts, end]) => starts.map((start) => [start, end]))]); - } - _addSchema(stateDefinition) { - if (this._schemaDefinitions.has(stateDefinition)) return; - this._schemaDefinitions.set(stateDefinition, stateDefinition); - for (const [key$1, val] of Object.entries(stateDefinition)) { - let channel; - if (typeof val === "function") channel = val(); - else channel = val; - if (this.channels[key$1] !== void 0) { - if (this.channels[key$1] !== channel) { - if (!isConfiguredManagedValue$1(channel) && channel.lc_graph_name !== "LastValue") throw new Error(`Channel "${key$1}" already exists with a different type.`); - } - } else this.channels[key$1] = channel; - } - } - addNode(...args) { - function isMultipleNodes(args$1) { - return args$1.length >= 1 && typeof args$1[0] !== "string"; - } - const nodes = isMultipleNodes(args) ? Array.isArray(args[0]) ? args[0] : Object.entries(args[0]).map(([key$1, action]) => [ - key$1, - action, - action[Symbol.for("langgraph.state.node")] ?? void 0 - ]) : [[ - args[0], - args[1], - args[2] - ]]; - if (nodes.length === 0) throw new Error("No nodes provided in `addNode`"); - for (const [key$1, action, options] of nodes) { - if (key$1 in this.channels) throw new Error(`${key$1} is already being used as a state attribute (a.k.a. a channel), cannot also be used as a node name.`); - for (const reservedChar of [CHECKPOINT_NAMESPACE_SEPARATOR$1, CHECKPOINT_NAMESPACE_END$1]) if (key$1.includes(reservedChar)) throw new Error(`"${reservedChar}" is a reserved character and is not allowed in node names.`); - this.warnIfCompiled(`Adding a node to a graph that has already been compiled. This will not be reflected in the compiled graph.`); - if (key$1 in this.nodes) throw new Error(`Node \`${key$1}\` already present.`); - if (key$1 === END || key$1 === START$1) throw new Error(`Node \`${key$1}\` is reserved.`); - let inputSpec = this._schemaDefinition; - if (options?.input !== void 0) { - if (isAnyZodObject(options.input)) inputSpec = getChannelsFromZod(options.input); - else if (options.input.spec !== void 0) inputSpec = options.input.spec; - } - if (inputSpec !== void 0) this._addSchema(inputSpec); - let runnable; - if (Runnable.isRunnable(action)) runnable = action; - else if (typeof action === "function") runnable = new RunnableCallable$1({ - func: action, - name: key$1, - trace: false - }); - else runnable = _coerceToRunnable(action); - let cachePolicy = options?.cachePolicy; - if (typeof cachePolicy === "boolean") cachePolicy = cachePolicy ? {} : void 0; - const nodeSpec = { - runnable, - retryPolicy: options?.retryPolicy, - cachePolicy, - metadata: options?.metadata, - input: inputSpec ?? this._schemaDefinition, - subgraphs: isPregelLike$1(runnable) ? [runnable] : options?.subgraphs, - ends: options?.ends, - defer: options?.defer - }; - this.nodes[key$1] = nodeSpec; - } - return this; - } - addEdge(startKey, endKey) { - if (typeof startKey === "string") return super.addEdge(startKey, endKey); - if (this.compiled) console.warn("Adding an edge to a graph that has already been compiled. This will not be reflected in the compiled graph."); - for (const start of startKey) { - if (start === END) throw new Error("END cannot be a start node"); - if (!Object.keys(this.nodes).some((node) => node === start)) throw new Error(`Need to add a node named "${start}" first`); - } - if (endKey === END) throw new Error("END cannot be an end node"); - if (!Object.keys(this.nodes).some((node) => node === endKey)) throw new Error(`Need to add a node named "${endKey}" first`); - this.waitingEdges.add([startKey, endKey]); - return this; - } - addSequence(nodes) { - const parsedNodes = Array.isArray(nodes) ? nodes : Object.entries(nodes).map(([key$1, action]) => [ - key$1, - action, - action[Symbol.for("langgraph.state.node")] ?? void 0 - ]); - if (parsedNodes.length === 0) throw new Error("Sequence requires at least one node."); - let previousNode; - for (const [key$1, action, options] of parsedNodes) { - if (key$1 in this.nodes) throw new Error(`Node names must be unique: node with the name "${key$1}" already exists.`); - const validKey = key$1; - this.addNode(validKey, action, options); - if (previousNode != null) this.addEdge(previousNode, validKey); - previousNode = validKey; - } - return this; - } - compile({ checkpointer, store, cache: cache$1, interruptBefore, interruptAfter, name } = {}) { - this.validate([...Array.isArray(interruptBefore) ? interruptBefore : [], ...Array.isArray(interruptAfter) ? interruptAfter : []]); - const outputKeys = Object.keys(this._schemaDefinitions.get(this._outputDefinition)); - const outputChannels = outputKeys.length === 1 && outputKeys[0] === ROOT ? ROOT : outputKeys; - const streamKeys = Object.keys(this.channels); - const streamChannels = streamKeys.length === 1 && streamKeys[0] === ROOT ? ROOT : streamKeys; - const compiled = new CompiledStateGraph$1({ - builder: this, - checkpointer, - interruptAfter, - interruptBefore, - autoValidate: false, - nodes: {}, - channels: { - ...this.channels, - [START$1]: new EphemeralValue$1() - }, - inputChannels: START$1, - outputChannels, - streamChannels, - streamMode: "updates", - store, - cache: cache$1, - name - }); - compiled.attachNode(START$1); - for (const [key$1, node] of Object.entries(this.nodes)) compiled.attachNode(key$1, node); - compiled.attachBranch(START$1, SELF, _getControlBranch(), { withReader: false }); - for (const [key$1] of Object.entries(this.nodes)) compiled.attachBranch(key$1, SELF, _getControlBranch(), { withReader: false }); - for (const [start, end] of this.edges) compiled.attachEdge(start, end); - for (const [starts, end] of this.waitingEdges) compiled.attachEdge(starts, end); - for (const [start, branches] of Object.entries(this.branches)) for (const [name$1, branch] of Object.entries(branches)) compiled.attachBranch(start, name$1, branch); - return compiled.validate(); - } -}; -function _getChannels(schema) { - const channels = {}; - for (const [name, val] of Object.entries(schema)) if (name === ROOT) channels[name] = getChannel$1(val); - else { - const key$1 = name; - channels[name] = getChannel$1(val); - } - return channels; -} -/** -* Final result from building and compiling a {@link StateGraph}. -* Should not be instantiated directly, only using the StateGraph `.compile()` -* instance method. -*/ -var CompiledStateGraph$1 = class extends CompiledGraph { - attachNode(key$1, node) { - let outputKeys; - if (key$1 === START$1) outputKeys = Object.entries(this.builder._schemaDefinitions.get(this.builder._inputDefinition)).filter(([_, v]) => !isConfiguredManagedValue$1(v)).map(([k]) => k); - else outputKeys = Object.keys(this.builder.channels); - function _getRoot(input) { - if (isCommand$1(input)) { - if (input.graph === Command$1.PARENT) return null; - return input._updateAsTuples(); - } else if (Array.isArray(input) && input.length > 0 && input.some((i$4) => isCommand$1(i$4))) { - const updates = []; - for (const i$4 of input) if (isCommand$1(i$4)) { - if (i$4.graph === Command$1.PARENT) continue; - updates.push(...i$4._updateAsTuples()); - } else updates.push([ROOT, i$4]); - return updates; - } else if (input != null) return [[ROOT, input]]; - return null; - } - const nodeKey = key$1; - function _getUpdates(input) { - if (!input) return null; - else if (isCommand$1(input)) { - if (input.graph === Command$1.PARENT) return null; - return input._updateAsTuples().filter(([k]) => outputKeys.includes(k)); - } else if (Array.isArray(input) && input.length > 0 && input.some(isCommand$1)) { - const updates = []; - for (const item of input) if (isCommand$1(item)) { - if (item.graph === Command$1.PARENT) continue; - updates.push(...item._updateAsTuples().filter(([k]) => outputKeys.includes(k))); - } else { - const itemUpdates = _getUpdates(item); - if (itemUpdates) updates.push(...itemUpdates ?? []); - } - return updates; - } else if (typeof input === "object" && !Array.isArray(input)) return Object.entries(input).filter(([k]) => outputKeys.includes(k)); - else { - const typeofInput = Array.isArray(input) ? "array" : typeof input; - throw new InvalidUpdateError$1(`Expected node "${nodeKey.toString()}" to return an object or an array containing at least one Command object, received ${typeofInput}`, { lc_error_code: "INVALID_GRAPH_NODE_RETURN_VALUE" }); - } - } - const stateWriteEntries = [{ - value: PASSTHROUGH$1, - mapper: new RunnableCallable$1({ - func: outputKeys.length && outputKeys[0] === ROOT ? _getRoot : _getUpdates, - trace: false, - recurse: false - }) - }]; - if (key$1 === START$1) this.nodes[key$1] = new PregelNode$1({ - tags: [TAG_HIDDEN$1], - triggers: [START$1], - channels: [START$1], - writers: [new ChannelWrite$1(stateWriteEntries, [TAG_HIDDEN$1])] - }); - else { - const inputDefinition = node?.input ?? this.builder._schemaDefinition; - const inputValues = Object.fromEntries(Object.keys(this.builder._schemaDefinitions.get(inputDefinition)).map((k) => [k, k])); - const isSingleInput = Object.keys(inputValues).length === 1 && ROOT in inputValues; - const branchChannel = `branch:to:${key$1}`; - this.channels[branchChannel] = node?.defer ? new LastValueAfterFinish() : new EphemeralValue$1(false); - this.nodes[key$1] = new PregelNode$1({ - triggers: [branchChannel], - channels: isSingleInput ? Object.keys(inputValues) : inputValues, - writers: [new ChannelWrite$1(stateWriteEntries, [TAG_HIDDEN$1])], - mapper: isSingleInput ? void 0 : (input) => { - return Object.fromEntries(Object.entries(input).filter(([k]) => k in inputValues)); - }, - bound: node?.runnable, - metadata: node?.metadata, - retryPolicy: node?.retryPolicy, - cachePolicy: node?.cachePolicy, - subgraphs: node?.subgraphs, - ends: node?.ends - }); - } - } - attachEdge(starts, end) { - if (end === END) return; - if (typeof starts === "string") this.nodes[starts].writers.push(new ChannelWrite$1([{ - channel: `branch:to:${end}`, - value: null - }], [TAG_HIDDEN$1])); - else if (Array.isArray(starts)) { - const channelName = `join:${starts.join("+")}:${end}`; - this.channels[channelName] = this.builder.nodes[end].defer ? new NamedBarrierValueAfterFinish(new Set(starts)) : new NamedBarrierValue(new Set(starts)); - this.nodes[end].triggers.push(channelName); - for (const start of starts) this.nodes[start].writers.push(new ChannelWrite$1([{ - channel: channelName, - value: start - }], [TAG_HIDDEN$1])); - } - } - attachBranch(start, _, branch, options = { withReader: true }) { - const branchWriter = async (packets, config) => { - const filteredPackets = packets.filter((p) => p !== END); - if (!filteredPackets.length) return; - const writes = filteredPackets.map((p) => { - if (_isSend$1(p)) return p; - return { - channel: p === END ? p : `branch:to:${p}`, - value: start - }; - }); - await ChannelWrite$1.doWrite({ - ...config, - tags: (config.tags ?? []).concat([TAG_HIDDEN$1]) - }, writes); - }; - this.nodes[start].writers.push(branch.run(branchWriter, options.withReader ? (config) => ChannelRead.doRead(config, this.streamChannels ?? this.outputChannels, true) : void 0)); - } - async _validateInput(input) { - if (input == null) return input; - const schema = (() => { - const input$1 = this.builder._inputRuntimeDefinition; - const schema$1 = this.builder._schemaRuntimeDefinition; - const apply = (schema$2) => { - if (schema$2 == null) return void 0; - return applyZodPlugin(schema$2, { reducer: true }); - }; - if (isAnyZodObject(input$1)) return apply(input$1); - if (input$1 === PartialStateSchema) return apply(schema$1)?.partial(); - return void 0; - })(); - if (isCommand$1(input)) { - const parsedInput = input; - if (input.update && schema != null) parsedInput.update = schema.parse(input.update); - return parsedInput; - } - if (schema != null) return schema.parse(input); - return input; - } - async _validateConfigurable(config) { - const configSchema = this.builder._configRuntimeSchema; - if (isAnyZodObject(configSchema)) configSchema.parse(config); - return config; - } -}; -function isStateDefinition(obj) { - return typeof obj === "object" && obj !== null && !Array.isArray(obj) && Object.keys(obj).length > 0 && Object.values(obj).every((v) => typeof v === "function" || isBaseChannel$1(v)); -} -function isAnnotationRoot(obj) { - return typeof obj === "object" && obj !== null && "lc_graph_name" in obj && obj.lc_graph_name === "AnnotationRoot"; -} -function isStateGraphArgs(obj) { - return typeof obj === "object" && obj !== null && obj.channels !== void 0; -} -function isStateGraphArgsWithStateSchema(obj) { - return typeof obj === "object" && obj !== null && obj.stateSchema !== void 0; -} -function isStateGraphArgsWithInputOutputSchemas(obj) { - return typeof obj === "object" && obj !== null && obj.stateSchema === void 0 && obj.input !== void 0 && obj.output !== void 0; -} -function isZodStateGraphArgsWithStateSchema(value) { - if (typeof value !== "object" || value == null) return false; - if (!("state" in value) || !isAnyZodObject(value.state)) return false; - if ("input" in value && !isAnyZodObject(value.input)) return false; - if ("output" in value && !isAnyZodObject(value.output)) return false; - return true; -} -function _controlBranch(value) { - if (_isSend$1(value)) return [value]; - const commands = []; - if (isCommand$1(value)) commands.push(value); - else if (Array.isArray(value)) commands.push(...value.filter(isCommand$1)); - const destinations = []; - for (const command of commands) { - if (command.graph === Command$1.PARENT) throw new ParentCommand$1(command); - if (_isSend$1(command.goto)) destinations.push(command.goto); - else if (typeof command.goto === "string") destinations.push(command.goto); - else if (Array.isArray(command.goto)) destinations.push(...command.goto); - } - return destinations; -} -function _getControlBranch() { - const CONTROL_BRANCH_PATH = new RunnableCallable$1({ - func: _controlBranch, - tags: [TAG_HIDDEN$1], - trace: false, - recurse: false, - name: "" - }); - return new Branch({ path: CONTROL_BRANCH_PATH }); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/graph/message.js -const REMOVE_ALL_MESSAGES$1 = "__remove_all__"; -/** -* Prebuilt reducer that combines returned messages. -* Can handle standard messages and special modifiers like {@link RemoveMessage} -* instances. -*/ -function messagesStateReducer$1(left, right) { - const leftArray = Array.isArray(left) ? left : [left]; - const rightArray = Array.isArray(right) ? right : [right]; - const leftMessages = leftArray.map(coerceMessageLikeToMessage); - const rightMessages = rightArray.map(coerceMessageLikeToMessage); - for (const m$1 of leftMessages) if (m$1.id === null || m$1.id === void 0) { - m$1.id = v4_default(); - m$1.lc_kwargs.id = m$1.id; - } - let removeAllIdx; - for (let i$4 = 0; i$4 < rightMessages.length; i$4 += 1) { - const m$1 = rightMessages[i$4]; - if (m$1.id === null || m$1.id === void 0) { - m$1.id = v4_default(); - m$1.lc_kwargs.id = m$1.id; - } - if (m$1.getType() === "remove" && m$1.id === REMOVE_ALL_MESSAGES$1) removeAllIdx = i$4; - } - if (removeAllIdx != null) return rightMessages.slice(removeAllIdx + 1); - const merged = [...leftMessages]; - const mergedById = new Map(merged.map((m$1, i$4) => [m$1.id, i$4])); - const idsToRemove = /* @__PURE__ */ new Set(); - for (const m$1 of rightMessages) { - const existingIdx = mergedById.get(m$1.id); - if (existingIdx !== void 0) if (m$1.getType() === "remove") idsToRemove.add(m$1.id); - else { - idsToRemove.delete(m$1.id); - merged[existingIdx] = m$1; - } - else { - if (m$1.getType() === "remove") throw new Error(`Attempting to delete a message with an ID that doesn't exist ('${m$1.id}')`); - mergedById.set(m$1.id, merged.length); - merged.push(m$1); - } - } - return merged.filter((m$1) => !idsToRemove.has(m$1.id)); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/func/index.js -/** -* Define a LangGraph workflow using the `entrypoint` function. -* -* ### Function signature -* -* The wrapped function must accept at most **two parameters**. The first parameter -* is the input to the function. The second (optional) parameter is a -* {@link LangGraphRunnableConfig} object. If you wish to pass multiple parameters to -* the function, you can pass them as an object. -* -* ### Helper functions -* -* #### Streaming -* To write data to the "custom" stream, use the {@link getWriter} function, or the -* {@link LangGraphRunnableConfig.writer} property. -* -* #### State management -* The {@link getPreviousState} function can be used to access the previous state -* that was returned from the last invocation of the entrypoint on the same thread id. -* -* If you wish to save state other than the return value, you can use the -* {@link entrypoint.final} function. -* -* @typeParam InputT - The type of input the entrypoint accepts -* @typeParam OutputT - The type of output the entrypoint produces -* @param optionsOrName - Either an {@link EntrypointOptions} object, or a string for the name of the entrypoint -* @param func - The function that executes this entrypoint -* @returns A {@link Pregel} instance that can be run to execute the workflow -* -* @example Using entrypoint and tasks -* ```typescript -* import { task, entrypoint } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* import { interrupt, Command } from "@langchain/langgraph"; -* -* const composeEssay = task("compose", async (topic: string) => { -* await new Promise(r => setTimeout(r, 1000)); // Simulate slow operation -* return `An essay about ${topic}`; -* }); -* -* const reviewWorkflow = entrypoint({ -* name: "review", -* checkpointer: new MemorySaver() -* }, async (topic: string) => { -* const essay = await composeEssay(topic); -* const humanReview = await interrupt({ -* question: "Please provide a review", -* essay -* }); -* return { -* essay, -* review: humanReview -* }; -* }); -* -* // Example configuration for the workflow -* const config = { -* configurable: { -* thread_id: "some_thread" -* } -* }; -* -* // Topic for the essay -* const topic = "cats"; -* -* // Stream the workflow to generate the essay and await human review -* for await (const result of reviewWorkflow.stream(topic, config)) { -* console.log(result); -* } -* -* // Example human review provided after the interrupt -* const humanReview = "This essay is great."; -* -* // Resume the workflow with the provided human review -* for await (const result of reviewWorkflow.stream(new Command({ resume: humanReview }), config)) { -* console.log(result); -* } -* ``` -* -* @example Accessing the previous return value -* ```typescript -* import { entrypoint, getPreviousState } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* -* const accumulator = entrypoint({ -* name: "accumulator", -* checkpointer: new MemorySaver() -* }, async (input: string) => { -* const previous = getPreviousState(); -* return previous !== undefined ? `${previous } ${input}` : input; -* }); -* -* const config = { -* configurable: { -* thread_id: "some_thread" -* } -* }; -* await accumulator.invoke("hello", config); // returns "hello" -* await accumulator.invoke("world", config); // returns "hello world" -* ``` -* -* @example Using entrypoint.final to save a value -* ```typescript -* import { entrypoint, getPreviousState } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* -* const myWorkflow = entrypoint({ -* name: "accumulator", -* checkpointer: new MemorySaver() -* }, async (num: number) => { -* const previous = getPreviousState(); -* -* // This will return the previous value to the caller, saving -* // 2 * num to the checkpoint, which will be used in the next invocation -* // for the `previous` parameter. -* return entrypoint.final({ -* value: previous ?? 0, -* save: 2 * num -* }); -* }); -* -* const config = { -* configurable: { -* thread_id: "some_thread" -* } -* }; -* -* await myWorkflow.invoke(3, config); // 0 (previous was undefined) -* await myWorkflow.invoke(1, config); // 6 (previous was 3 * 2 from the previous invocation) -* ``` -*/ -const entrypoint$1 = function entrypoint$2(optionsOrName, func) { - const { name, checkpointer, store, cache: cache$1 } = typeof optionsOrName === "string" ? { - name: optionsOrName, - checkpointer: void 0, - store: void 0 - } : optionsOrName; - if (isAsyncGeneratorFunction$1(func) || isGeneratorFunction$1(func)) throw new Error("Generators are disallowed as entrypoints. For streaming responses, use config.write."); - const streamMode = "updates"; - const bound = getRunnableForEntrypoint$1(name, func); - function isEntrypointFinal(value) { - return typeof value === "object" && value !== null && "__lg_type" in value && value.__lg_type === "__pregel_final"; - } - const pluckReturnValue = new RunnableCallable$1({ - name: "pluckReturnValue", - func: (value) => { - return isEntrypointFinal(value) ? value.value : value; - } - }); - const pluckSaveValue = new RunnableCallable$1({ - name: "pluckSaveValue", - func: (value) => { - return isEntrypointFinal(value) ? value.save : value; - } - }); - const entrypointNode = new PregelNode$1({ - bound, - triggers: [START$1], - channels: [START$1], - writers: [new ChannelWrite$1([{ - channel: END, - value: PASSTHROUGH$1, - mapper: pluckReturnValue - }, { - channel: PREVIOUS$1, - value: PASSTHROUGH$1, - mapper: pluckSaveValue - }], [TAG_HIDDEN$1])] - }); - return new Pregel$1({ - name, - checkpointer, - nodes: { [name]: entrypointNode }, - channels: { - [START$1]: new EphemeralValue$1(), - [END]: new LastValue$1(), - [PREVIOUS$1]: new LastValue$1() - }, - inputChannels: START$1, - outputChannels: END, - streamChannels: END, - streamMode, - store, - cache: cache$1 - }); -}; -entrypoint$1.final = function final({ value, save }) { - return { - value, - save, - __lg_type: "__pregel_final" - }; -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/graph/messages_annotation.js -/** -* Prebuilt state annotation that combines returned messages. -* Can handle standard messages and special modifiers like {@link RemoveMessage} -* instances. -* -* Specifically, importing and using the prebuilt MessagesAnnotation like this: -* -* @example -* ```ts -* import { MessagesAnnotation, StateGraph } from "@langchain/langgraph"; -* -* const graph = new StateGraph(MessagesAnnotation) -* .addNode(...) -* ... -* ``` -* -* Is equivalent to initializing your state manually like this: -* -* @example -* ```ts -* import { BaseMessage } from "@langchain/core/messages"; -* import { Annotation, StateGraph, messagesStateReducer } from "@langchain/langgraph"; -* -* export const StateAnnotation = Annotation.Root({ -* messages: Annotation({ -* reducer: messagesStateReducer, -* default: () => [], -* }), -* }); -* -* const graph = new StateGraph(StateAnnotation) -* .addNode(...) -* ... -* ``` -*/ -const MessagesAnnotation$1 = Annotation.Root({ messages: Annotation({ - reducer: messagesStateReducer$1, - default: () => [] -}) }); -/** -* Prebuilt state object that uses Zod to combine returned messages. -* This utility is synonymous with the `MessagesAnnotation` annotation, -* but uses Zod as the way to express messages state. -* -* You can use import and use this prebuilt schema like this: -* -* @example -* ```ts -* import { MessagesZodState, StateGraph } from "@langchain/langgraph"; -* -* const graph = new StateGraph(MessagesZodState) -* .addNode(...) -* ... -* ``` -* -* Which is equivalent to initializing the schema object manually like this: -* -* @example -* ```ts -* import { z } from "zod"; -* import type { BaseMessage, BaseMessageLike } from "@langchain/core/messages"; -* import { StateGraph, messagesStateReducer } from "@langchain/langgraph"; -* import "@langchain/langgraph/zod"; -* -* const AgentState = z.object({ -* messages: z -* .custom() -* .default(() => []) -* .langgraph.reducer( -* messagesStateReducer, -* z.custom() -* ), -* }); -* const graph = new StateGraph(AgentState) -* .addNode(...) -* ... -* ``` -*/ -const MessagesZodState$1 = objectType({ messages: withLangGraph$1(custom(), { - reducer: { - schema: custom(), - fn: messagesStateReducer$1 - }, - jsonSchemaExtra: { langgraph_type: "messages" }, - default: () => [] -}) }); - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.3.1_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57____3f6c5d5420b59bb0e3b86abfffd23a38/node_modules/@langchain/langgraph/dist/index.js -initializeAsyncLocalStorageSingleton$1(); - -//#endregion -//#region node_modules/.pnpm/ulid@3.0.1/node_modules/ulid/dist/node/index.js -const ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; -const ENCODING_LEN = 32; -const RANDOM_LEN = 16; -const TIME_LEN = 10; -const TIME_MAX = 0xffffffffffff; -var ULIDErrorCode; -(function(ULIDErrorCode$1) { - ULIDErrorCode$1["Base32IncorrectEncoding"] = "B32_ENC_INVALID"; - ULIDErrorCode$1["DecodeTimeInvalidCharacter"] = "DEC_TIME_CHAR"; - ULIDErrorCode$1["DecodeTimeValueMalformed"] = "DEC_TIME_MALFORMED"; - ULIDErrorCode$1["EncodeTimeNegative"] = "ENC_TIME_NEG"; - ULIDErrorCode$1["EncodeTimeSizeExceeded"] = "ENC_TIME_SIZE_EXCEED"; - ULIDErrorCode$1["EncodeTimeValueMalformed"] = "ENC_TIME_MALFORMED"; - ULIDErrorCode$1["PRNGDetectFailure"] = "PRNG_DETECT"; - ULIDErrorCode$1["ULIDInvalid"] = "ULID_INVALID"; - ULIDErrorCode$1["Unexpected"] = "UNEXPECTED"; - ULIDErrorCode$1["UUIDInvalid"] = "UUID_INVALID"; -})(ULIDErrorCode || (ULIDErrorCode = {})); -var ULIDError = class extends Error { - constructor(errorCode, message) { - super(`${message} (${errorCode})`); - this.name = "ULIDError"; - this.code = errorCode; - } -}; -function randomChar(prng) { - const randomPosition = Math.floor(prng() * ENCODING_LEN) % ENCODING_LEN; - return ENCODING.charAt(randomPosition); -} -/** -* Detect the best PRNG (pseudo-random number generator) -* @param root The root to check from (global/window) -* @returns The PRNG function -*/ -function detectPRNG(root$1) { - const rootLookup = detectRoot(); - const globalCrypto = rootLookup && (rootLookup.crypto || rootLookup.msCrypto) || (typeof crypto$1 !== "undefined" ? crypto$1 : null); - if (typeof globalCrypto?.getRandomValues === "function") return () => { - const buffer$1 = new Uint8Array(1); - globalCrypto.getRandomValues(buffer$1); - return buffer$1[0] / 255; - }; - else if (typeof globalCrypto?.randomBytes === "function") return () => globalCrypto.randomBytes(1).readUInt8() / 255; - else if (crypto$1?.randomBytes) return () => crypto$1.randomBytes(1).readUInt8() / 255; - throw new ULIDError(ULIDErrorCode.PRNGDetectFailure, "Failed to find a reliable PRNG"); -} -function detectRoot() { - if (inWebWorker()) return self; - if (typeof window !== "undefined") return window; - if (typeof global !== "undefined") return global; - if (typeof globalThis !== "undefined") return globalThis; - return null; -} -function encodeRandom(len$1, prng) { - let str$1 = ""; - for (; len$1 > 0; len$1--) str$1 = randomChar(prng) + str$1; - return str$1; -} -/** -* Encode the time portion of a ULID -* @param now The current timestamp -* @param len Length to generate -* @returns The encoded time -*/ -function encodeTime(now, len$1 = TIME_LEN) { - if (isNaN(now)) throw new ULIDError(ULIDErrorCode.EncodeTimeValueMalformed, `Time must be a number: ${now}`); - else if (now > TIME_MAX) throw new ULIDError(ULIDErrorCode.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${TIME_MAX}: ${now}`); - else if (now < 0) throw new ULIDError(ULIDErrorCode.EncodeTimeNegative, `Time must be positive: ${now}`); - else if (Number.isInteger(now) === false) throw new ULIDError(ULIDErrorCode.EncodeTimeValueMalformed, `Time must be an integer: ${now}`); - let mod, str$1 = ""; - for (let currentLen = len$1; currentLen > 0; currentLen--) { - mod = now % ENCODING_LEN; - str$1 = ENCODING.charAt(mod) + str$1; - now = (now - mod) / ENCODING_LEN; - } - return str$1; -} -function inWebWorker() { - return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope; -} -/** -* Generate a ULID -* @param seedTime Optional time seed -* @param prng Optional PRNG function -* @returns A ULID string -* @example -* ulid(); // "01HNZXD07M5CEN5XA66EMZSRZW" -*/ -function ulid(seedTime, prng) { - const currentPRNG = prng || detectPRNG(); - const seed = !seedTime || isNaN(seedTime) ? Date.now() : seedTime; - return encodeTime(seed, TIME_LEN) + encodeRandom(RANDOM_LEN, currentPRNG); -} - -//#endregion -//#region apps/web/src/agent/langgraph/nodes/character-design.ts -const GenerateCharacters = tool(() => {}, { - name: "GenerateCharacters", - description: "Generate character designs based on the concept and storylines.", - schema: objectType({ characters: arrayType(objectType({ - name: stringType().describe("The character aame."), - description: stringType().describe("A detailed description of the character."), - appearance: stringType().describe("The character physical appearance."), - personality: stringType().describe("The character personality traits."), - role: stringType().describe("The role of the character in the story."), - prompt: stringType().describe("Detailed prompt for generating the character image in Midjourney") - })) }) -}); -function characterDesign_node(state) { - const lastMessage = state.messages[state.messages.length - 1]; - if (!lastMessage || !lastMessage.tool_calls) throw new Error("No tool calls found in the last message."); - const toolCall = lastMessage.tool_calls.find((call$4) => call$4.name === "GenerateCharacters"); - if (!toolCall) throw new Error("GenerateCharacters tool call not found."); - const charactersWithIds = toolCall.args.characters.map((character) => ({ - ...character, - id: ulid() - })); - return { - characters: charactersWithIds, - messages: [new ToolMessage({ - tool_call_id: toolCall.id, - content: "Characters generated successfully.", - name: "GenerateCharacters" - })] - }; -} - -//#endregion -//#region apps/web/src/agent/langgraph/nodes/concept.ts -const GenerateConcept = tool(() => {}, { - name: "GenerateConcept", - description: "Generate a complete video concept based on user input. This is the primary tool to use.", - schema: objectType({ concept: objectType({ - title: stringType().describe("Main video title"), - conceptBody: stringType().describe("Detailed concept description"), - genre: stringType().describe("Video genre (e.g., anime, sci-fi, fantasy)"), - tone: stringType().describe("e.g., Dramatic, Light-hearted, Mysterious"), - format: enumType([ - "Custom", - "Short Film", - "Commercial" - ]).describe("The format of the video."), - specialRequests: stringType().describe("Any special requests for the video."), - productService: stringType().describe("The product or service being advertised."), - targetAudience: stringType().describe("The target audience for the video."), - mainMessage: stringType().describe("The main message of the video."), - callToAction: stringType().describe("The call to action for the video."), - addVoiceover: booleanType().describe("Whether to add a voiceover to the video.") - }) }) -}); -function concept_node(state) { - const lastMessage = state.messages[state.messages.length - 1]; - if (!lastMessage || !lastMessage.tool_calls) throw new Error("No tool calls found in the last message."); - const toolCall = lastMessage.tool_calls.find((call$4) => call$4.name === "GenerateConcept"); - if (!toolCall) throw new Error("GenerateConcept tool call not found."); - return { - concept: toolCall.args.concept, - messages: [new ToolMessage({ - tool_call_id: toolCall.id, - content: "Concept generated successfully.", - name: "GenerateConcept" - })] - }; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/callbacks/dispatch/web.js -/** -* Dispatch a custom event. Requires an explicit config object. -* @param name The name of the custom event. -* @param payload The data for the custom event. -* Ideally should be JSON serializable to avoid serialization issues downstream, but not enforced. -* @param config Config object. -* -* @example -* ```typescript -* import { dispatchCustomEvent } from "@langchain/core/callbacks/dispatch"; -* -* const foo = RunnableLambda.from(async (input: string, config?: RunnableConfig) => { -* await dispatchCustomEvent( -* "my_custom_event", -* { arbitraryField: "someval" }, -* config -* ); -* return input; -* }); -* -* const callbacks = [{ -* handleCustomEvent: (eventName: string, payload: any) => { -* // Logs "my_custom_event" and { arbitraryField: "someval" } -* console.log(eventName, payload); -* } -* }]; -* -* await foo.invoke("hi", { callbacks }) -* ``` -*/ -async function dispatchCustomEvent$1(name, payload, config) { - if (config === void 0) throw new Error([ - "Unable to dispatch a custom event without a parent run id.", - `"dispatchCustomEvent" can only be called from within an existing run (e.g.,`, - "inside a tool or a RunnableLambda).", - `\n\nIf you continue to see this error, please import from "@langchain/core/callbacks/dispatch/web"`, - "and explicitly pass in a config parameter.", - `\n\nOr, if you are calling this from a custom tool, ensure you're using the "tool" helper constructor as documented here:`, - "\n |", - "\n └-> https://js.langchain.com/docs/how_to/custom_tools#tool-function", - "\n" - ].join(" ")); - const callbackManager = await getCallbackManagerForConfig(config); - const parentRunId = callbackManager?.getParentRunId(); - if (callbackManager !== void 0 && parentRunId !== void 0) await callbackManager.handleCustomEvent?.(name, payload, parentRunId); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/callbacks/dispatch/index.js -AsyncLocalStorageProviderSingleton.initializeGlobalInstance(new AsyncLocalStorage()); -/** -* Dispatch a custom event. -* -* Note: this method is only supported in non-web environments -* due to usage of async_hooks to infer config. -* -* If you are using this method in the browser, please import and use -* from "@langchain/core/callbacks/dispatch/web". -* -* @param name The name of the custom event. -* @param payload The data for the custom event. -* Ideally should be JSON serializable to avoid serialization issues downstream, but not enforced. -* @param config Optional config object. -* -* @example -* ```typescript -* import { dispatchCustomEvent } from "@langchain/core/callbacks/dispatch"; -* -* const foo = RunnableLambda.from(async (input: string) => { -* await dispatchCustomEvent("my_custom_event", { arbitraryField: "someval" }); -* return input; -* }); -* -* const callbacks = [{ -* handleCustomEvent: (eventName: string, payload: any) => { -* // Logs "my_custom_event" and { arbitraryField: "someval" } -* console.log(eventName, payload); -* } -* }]; -* -* await foo.invoke("hi", { callbacks }) -* ``` -*/ -async function dispatchCustomEvent(eventName, payload, config) { - const ensuredConfig = ensureConfig(config); - await dispatchCustomEvent$1(eventName, payload, ensuredConfig); -} - -//#endregion -//#region node_modules/.pnpm/@copilotkit+shared@1.8.14_encoding@0.1.13/node_modules/@copilotkit/shared/dist/chunk-VNNKZIFB.mjs -function randomId() { - return "ck-" + v4_default(); -} - -//#endregion -//#region node_modules/.pnpm/@copilotkit+shared@1.8.14_encoding@0.1.13/node_modules/@copilotkit/shared/dist/chunk-2KQ6HEWZ.mjs -function convertJsonSchemaToZodSchema(jsonSchema, required) { - if (jsonSchema.type === "object") { - const spec = {}; - if (!jsonSchema.properties || !Object.keys(jsonSchema.properties).length) return !required ? objectType(spec).optional() : objectType(spec); - for (const [key$1, value] of Object.entries(jsonSchema.properties)) spec[key$1] = convertJsonSchemaToZodSchema(value, jsonSchema.required ? jsonSchema.required.includes(key$1) : false); - let schema = objectType(spec).describe(jsonSchema.description); - return required ? schema : schema.optional(); - } else if (jsonSchema.type === "string") { - let schema = stringType().describe(jsonSchema.description); - return required ? schema : schema.optional(); - } else if (jsonSchema.type === "number") { - let schema = numberType().describe(jsonSchema.description); - return required ? schema : schema.optional(); - } else if (jsonSchema.type === "boolean") { - let schema = booleanType().describe(jsonSchema.description); - return required ? schema : schema.optional(); - } else if (jsonSchema.type === "array") { - let itemSchema = convertJsonSchemaToZodSchema(jsonSchema.items, true); - let schema = arrayType(itemSchema).describe(jsonSchema.description); - return required ? schema : schema.optional(); - } - throw new Error("Invalid JSON schema"); -} - -//#endregion -//#region node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js -var require_lib$2 = __commonJS({ "node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js"(exports, module) { - var conversions$1 = {}; - module.exports = conversions$1; - function sign(x) { - return x < 0 ? -1 : 1; - } - function evenRound(x) { - if (x % 1 === .5 && (x & 1) === 0) return Math.floor(x); - else return Math.round(x); - } - function createNumberConversion(bitLength, typeOpts) { - if (!typeOpts.unsigned) --bitLength; - const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength); - const upperBound = Math.pow(2, bitLength) - 1; - const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength); - const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1); - return function(V, opts) { - if (!opts) opts = {}; - let x = +V; - if (opts.enforceRange) { - if (!Number.isFinite(x)) throw new TypeError("Argument is not a finite number"); - x = sign(x) * Math.floor(Math.abs(x)); - if (x < lowerBound || x > upperBound) throw new TypeError("Argument is not in byte range"); - return x; - } - if (!isNaN(x) && opts.clamp) { - x = evenRound(x); - if (x < lowerBound) x = lowerBound; - if (x > upperBound) x = upperBound; - return x; - } - if (!Number.isFinite(x) || x === 0) return 0; - x = sign(x) * Math.floor(Math.abs(x)); - x = x % moduloVal; - if (!typeOpts.unsigned && x >= moduloBound) return x - moduloVal; - else if (typeOpts.unsigned) { - if (x < 0) x += moduloVal; - else if (x === -0) return 0; - } - return x; - }; - } - conversions$1["void"] = function() { - return void 0; - }; - conversions$1["boolean"] = function(val) { - return !!val; - }; - conversions$1["byte"] = createNumberConversion(8, { unsigned: false }); - conversions$1["octet"] = createNumberConversion(8, { unsigned: true }); - conversions$1["short"] = createNumberConversion(16, { unsigned: false }); - conversions$1["unsigned short"] = createNumberConversion(16, { unsigned: true }); - conversions$1["long"] = createNumberConversion(32, { unsigned: false }); - conversions$1["unsigned long"] = createNumberConversion(32, { unsigned: true }); - conversions$1["long long"] = createNumberConversion(32, { - unsigned: false, - moduloBitLength: 64 - }); - conversions$1["unsigned long long"] = createNumberConversion(32, { - unsigned: true, - moduloBitLength: 64 - }); - conversions$1["double"] = function(V) { - const x = +V; - if (!Number.isFinite(x)) throw new TypeError("Argument is not a finite floating-point value"); - return x; - }; - conversions$1["unrestricted double"] = function(V) { - const x = +V; - if (isNaN(x)) throw new TypeError("Argument is NaN"); - return x; - }; - conversions$1["float"] = conversions$1["double"]; - conversions$1["unrestricted float"] = conversions$1["unrestricted double"]; - conversions$1["DOMString"] = function(V, opts) { - if (!opts) opts = {}; - if (opts.treatNullAsEmptyString && V === null) return ""; - return String(V); - }; - conversions$1["ByteString"] = function(V, opts) { - const x = String(V); - let c = void 0; - for (let i$4 = 0; (c = x.codePointAt(i$4)) !== void 0; ++i$4) if (c > 255) throw new TypeError("Argument is not a valid bytestring"); - return x; - }; - conversions$1["USVString"] = function(V) { - const S = String(V); - const n = S.length; - const U = []; - for (let i$4 = 0; i$4 < n; ++i$4) { - const c = S.charCodeAt(i$4); - if (c < 55296 || c > 57343) U.push(String.fromCodePoint(c)); - else if (56320 <= c && c <= 57343) U.push(String.fromCodePoint(65533)); - else if (i$4 === n - 1) U.push(String.fromCodePoint(65533)); - else { - const d$1 = S.charCodeAt(i$4 + 1); - if (56320 <= d$1 && d$1 <= 57343) { - const a = c & 1023; - const b = d$1 & 1023; - U.push(String.fromCodePoint(65536 + 1024 * a + b)); - ++i$4; - } else U.push(String.fromCodePoint(65533)); - } - } - return U.join(""); - }; - conversions$1["Date"] = function(V, opts) { - if (!(V instanceof Date)) throw new TypeError("Argument is not a Date object"); - if (isNaN(V)) return void 0; - return V; - }; - conversions$1["RegExp"] = function(V, opts) { - if (!(V instanceof RegExp)) V = new RegExp(V); - return V; - }; -} }); - -//#endregion -//#region node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js -var require_utils = __commonJS({ "node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js"(exports, module) { - module.exports.mixin = function mixin(target, source) { - const keys = Object.getOwnPropertyNames(source); - for (let i$4 = 0; i$4 < keys.length; ++i$4) Object.defineProperty(target, keys[i$4], Object.getOwnPropertyDescriptor(source, keys[i$4])); - }; - module.exports.wrapperSymbol = Symbol("wrapper"); - module.exports.implSymbol = Symbol("impl"); - module.exports.wrapperForImpl = function(impl$1) { - return impl$1[module.exports.wrapperSymbol]; - }; - module.exports.implForWrapper = function(wrapper) { - return wrapper[module.exports.implSymbol]; - }; -} }); - -//#endregion -//#region node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.json -var require_mappingTable = __commonJS({ "node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.json"(exports, module) { - module.exports = [ - [[0, 44], "disallowed_STD3_valid"], - [[45, 46], "valid"], - [[47, 47], "disallowed_STD3_valid"], - [[48, 57], "valid"], - [[58, 64], "disallowed_STD3_valid"], - [ - [65, 65], - "mapped", - [97] - ], - [ - [66, 66], - "mapped", - [98] - ], - [ - [67, 67], - "mapped", - [99] - ], - [ - [68, 68], - "mapped", - [100] - ], - [ - [69, 69], - "mapped", - [101] - ], - [ - [70, 70], - "mapped", - [102] - ], - [ - [71, 71], - "mapped", - [103] - ], - [ - [72, 72], - "mapped", - [104] - ], - [ - [73, 73], - "mapped", - [105] - ], - [ - [74, 74], - "mapped", - [106] - ], - [ - [75, 75], - "mapped", - [107] - ], - [ - [76, 76], - "mapped", - [108] - ], - [ - [77, 77], - "mapped", - [109] - ], - [ - [78, 78], - "mapped", - [110] - ], - [ - [79, 79], - "mapped", - [111] - ], - [ - [80, 80], - "mapped", - [112] - ], - [ - [81, 81], - "mapped", - [113] - ], - [ - [82, 82], - "mapped", - [114] - ], - [ - [83, 83], - "mapped", - [115] - ], - [ - [84, 84], - "mapped", - [116] - ], - [ - [85, 85], - "mapped", - [117] - ], - [ - [86, 86], - "mapped", - [118] - ], - [ - [87, 87], - "mapped", - [119] - ], - [ - [88, 88], - "mapped", - [120] - ], - [ - [89, 89], - "mapped", - [121] - ], - [ - [90, 90], - "mapped", - [122] - ], - [[91, 96], "disallowed_STD3_valid"], - [[97, 122], "valid"], - [[123, 127], "disallowed_STD3_valid"], - [[128, 159], "disallowed"], - [ - [160, 160], - "disallowed_STD3_mapped", - [32] - ], - [ - [161, 167], - "valid", - [], - "NV8" - ], - [ - [168, 168], - "disallowed_STD3_mapped", - [32, 776] - ], - [ - [169, 169], - "valid", - [], - "NV8" - ], - [ - [170, 170], - "mapped", - [97] - ], - [ - [171, 172], - "valid", - [], - "NV8" - ], - [[173, 173], "ignored"], - [ - [174, 174], - "valid", - [], - "NV8" - ], - [ - [175, 175], - "disallowed_STD3_mapped", - [32, 772] - ], - [ - [176, 177], - "valid", - [], - "NV8" - ], - [ - [178, 178], - "mapped", - [50] - ], - [ - [179, 179], - "mapped", - [51] - ], - [ - [180, 180], - "disallowed_STD3_mapped", - [32, 769] - ], - [ - [181, 181], - "mapped", - [956] - ], - [ - [182, 182], - "valid", - [], - "NV8" - ], - [[183, 183], "valid"], - [ - [184, 184], - "disallowed_STD3_mapped", - [32, 807] - ], - [ - [185, 185], - "mapped", - [49] - ], - [ - [186, 186], - "mapped", - [111] - ], - [ - [187, 187], - "valid", - [], - "NV8" - ], - [ - [188, 188], - "mapped", - [ - 49, - 8260, - 52 - ] - ], - [ - [189, 189], - "mapped", - [ - 49, - 8260, - 50 - ] - ], - [ - [190, 190], - "mapped", - [ - 51, - 8260, - 52 - ] - ], - [ - [191, 191], - "valid", - [], - "NV8" - ], - [ - [192, 192], - "mapped", - [224] - ], - [ - [193, 193], - "mapped", - [225] - ], - [ - [194, 194], - "mapped", - [226] - ], - [ - [195, 195], - "mapped", - [227] - ], - [ - [196, 196], - "mapped", - [228] - ], - [ - [197, 197], - "mapped", - [229] - ], - [ - [198, 198], - "mapped", - [230] - ], - [ - [199, 199], - "mapped", - [231] - ], - [ - [200, 200], - "mapped", - [232] - ], - [ - [201, 201], - "mapped", - [233] - ], - [ - [202, 202], - "mapped", - [234] - ], - [ - [203, 203], - "mapped", - [235] - ], - [ - [204, 204], - "mapped", - [236] - ], - [ - [205, 205], - "mapped", - [237] - ], - [ - [206, 206], - "mapped", - [238] - ], - [ - [207, 207], - "mapped", - [239] - ], - [ - [208, 208], - "mapped", - [240] - ], - [ - [209, 209], - "mapped", - [241] - ], - [ - [210, 210], - "mapped", - [242] - ], - [ - [211, 211], - "mapped", - [243] - ], - [ - [212, 212], - "mapped", - [244] - ], - [ - [213, 213], - "mapped", - [245] - ], - [ - [214, 214], - "mapped", - [246] - ], - [ - [215, 215], - "valid", - [], - "NV8" - ], - [ - [216, 216], - "mapped", - [248] - ], - [ - [217, 217], - "mapped", - [249] - ], - [ - [218, 218], - "mapped", - [250] - ], - [ - [219, 219], - "mapped", - [251] - ], - [ - [220, 220], - "mapped", - [252] - ], - [ - [221, 221], - "mapped", - [253] - ], - [ - [222, 222], - "mapped", - [254] - ], - [ - [223, 223], - "deviation", - [115, 115] - ], - [[224, 246], "valid"], - [ - [247, 247], - "valid", - [], - "NV8" - ], - [[248, 255], "valid"], - [ - [256, 256], - "mapped", - [257] - ], - [[257, 257], "valid"], - [ - [258, 258], - "mapped", - [259] - ], - [[259, 259], "valid"], - [ - [260, 260], - "mapped", - [261] - ], - [[261, 261], "valid"], - [ - [262, 262], - "mapped", - [263] - ], - [[263, 263], "valid"], - [ - [264, 264], - "mapped", - [265] - ], - [[265, 265], "valid"], - [ - [266, 266], - "mapped", - [267] - ], - [[267, 267], "valid"], - [ - [268, 268], - "mapped", - [269] - ], - [[269, 269], "valid"], - [ - [270, 270], - "mapped", - [271] - ], - [[271, 271], "valid"], - [ - [272, 272], - "mapped", - [273] - ], - [[273, 273], "valid"], - [ - [274, 274], - "mapped", - [275] - ], - [[275, 275], "valid"], - [ - [276, 276], - "mapped", - [277] - ], - [[277, 277], "valid"], - [ - [278, 278], - "mapped", - [279] - ], - [[279, 279], "valid"], - [ - [280, 280], - "mapped", - [281] - ], - [[281, 281], "valid"], - [ - [282, 282], - "mapped", - [283] - ], - [[283, 283], "valid"], - [ - [284, 284], - "mapped", - [285] - ], - [[285, 285], "valid"], - [ - [286, 286], - "mapped", - [287] - ], - [[287, 287], "valid"], - [ - [288, 288], - "mapped", - [289] - ], - [[289, 289], "valid"], - [ - [290, 290], - "mapped", - [291] - ], - [[291, 291], "valid"], - [ - [292, 292], - "mapped", - [293] - ], - [[293, 293], "valid"], - [ - [294, 294], - "mapped", - [295] - ], - [[295, 295], "valid"], - [ - [296, 296], - "mapped", - [297] - ], - [[297, 297], "valid"], - [ - [298, 298], - "mapped", - [299] - ], - [[299, 299], "valid"], - [ - [300, 300], - "mapped", - [301] - ], - [[301, 301], "valid"], - [ - [302, 302], - "mapped", - [303] - ], - [[303, 303], "valid"], - [ - [304, 304], - "mapped", - [105, 775] - ], - [[305, 305], "valid"], - [ - [306, 307], - "mapped", - [105, 106] - ], - [ - [308, 308], - "mapped", - [309] - ], - [[309, 309], "valid"], - [ - [310, 310], - "mapped", - [311] - ], - [[311, 312], "valid"], - [ - [313, 313], - "mapped", - [314] - ], - [[314, 314], "valid"], - [ - [315, 315], - "mapped", - [316] - ], - [[316, 316], "valid"], - [ - [317, 317], - "mapped", - [318] - ], - [[318, 318], "valid"], - [ - [319, 320], - "mapped", - [108, 183] - ], - [ - [321, 321], - "mapped", - [322] - ], - [[322, 322], "valid"], - [ - [323, 323], - "mapped", - [324] - ], - [[324, 324], "valid"], - [ - [325, 325], - "mapped", - [326] - ], - [[326, 326], "valid"], - [ - [327, 327], - "mapped", - [328] - ], - [[328, 328], "valid"], - [ - [329, 329], - "mapped", - [700, 110] - ], - [ - [330, 330], - "mapped", - [331] - ], - [[331, 331], "valid"], - [ - [332, 332], - "mapped", - [333] - ], - [[333, 333], "valid"], - [ - [334, 334], - "mapped", - [335] - ], - [[335, 335], "valid"], - [ - [336, 336], - "mapped", - [337] - ], - [[337, 337], "valid"], - [ - [338, 338], - "mapped", - [339] - ], - [[339, 339], "valid"], - [ - [340, 340], - "mapped", - [341] - ], - [[341, 341], "valid"], - [ - [342, 342], - "mapped", - [343] - ], - [[343, 343], "valid"], - [ - [344, 344], - "mapped", - [345] - ], - [[345, 345], "valid"], - [ - [346, 346], - "mapped", - [347] - ], - [[347, 347], "valid"], - [ - [348, 348], - "mapped", - [349] - ], - [[349, 349], "valid"], - [ - [350, 350], - "mapped", - [351] - ], - [[351, 351], "valid"], - [ - [352, 352], - "mapped", - [353] - ], - [[353, 353], "valid"], - [ - [354, 354], - "mapped", - [355] - ], - [[355, 355], "valid"], - [ - [356, 356], - "mapped", - [357] - ], - [[357, 357], "valid"], - [ - [358, 358], - "mapped", - [359] - ], - [[359, 359], "valid"], - [ - [360, 360], - "mapped", - [361] - ], - [[361, 361], "valid"], - [ - [362, 362], - "mapped", - [363] - ], - [[363, 363], "valid"], - [ - [364, 364], - "mapped", - [365] - ], - [[365, 365], "valid"], - [ - [366, 366], - "mapped", - [367] - ], - [[367, 367], "valid"], - [ - [368, 368], - "mapped", - [369] - ], - [[369, 369], "valid"], - [ - [370, 370], - "mapped", - [371] - ], - [[371, 371], "valid"], - [ - [372, 372], - "mapped", - [373] - ], - [[373, 373], "valid"], - [ - [374, 374], - "mapped", - [375] - ], - [[375, 375], "valid"], - [ - [376, 376], - "mapped", - [255] - ], - [ - [377, 377], - "mapped", - [378] - ], - [[378, 378], "valid"], - [ - [379, 379], - "mapped", - [380] - ], - [[380, 380], "valid"], - [ - [381, 381], - "mapped", - [382] - ], - [[382, 382], "valid"], - [ - [383, 383], - "mapped", - [115] - ], - [[384, 384], "valid"], - [ - [385, 385], - "mapped", - [595] - ], - [ - [386, 386], - "mapped", - [387] - ], - [[387, 387], "valid"], - [ - [388, 388], - "mapped", - [389] - ], - [[389, 389], "valid"], - [ - [390, 390], - "mapped", - [596] - ], - [ - [391, 391], - "mapped", - [392] - ], - [[392, 392], "valid"], - [ - [393, 393], - "mapped", - [598] - ], - [ - [394, 394], - "mapped", - [599] - ], - [ - [395, 395], - "mapped", - [396] - ], - [[396, 397], "valid"], - [ - [398, 398], - "mapped", - [477] - ], - [ - [399, 399], - "mapped", - [601] - ], - [ - [400, 400], - "mapped", - [603] - ], - [ - [401, 401], - "mapped", - [402] - ], - [[402, 402], "valid"], - [ - [403, 403], - "mapped", - [608] - ], - [ - [404, 404], - "mapped", - [611] - ], - [[405, 405], "valid"], - [ - [406, 406], - "mapped", - [617] - ], - [ - [407, 407], - "mapped", - [616] - ], - [ - [408, 408], - "mapped", - [409] - ], - [[409, 411], "valid"], - [ - [412, 412], - "mapped", - [623] - ], - [ - [413, 413], - "mapped", - [626] - ], - [[414, 414], "valid"], - [ - [415, 415], - "mapped", - [629] - ], - [ - [416, 416], - "mapped", - [417] - ], - [[417, 417], "valid"], - [ - [418, 418], - "mapped", - [419] - ], - [[419, 419], "valid"], - [ - [420, 420], - "mapped", - [421] - ], - [[421, 421], "valid"], - [ - [422, 422], - "mapped", - [640] - ], - [ - [423, 423], - "mapped", - [424] - ], - [[424, 424], "valid"], - [ - [425, 425], - "mapped", - [643] - ], - [[426, 427], "valid"], - [ - [428, 428], - "mapped", - [429] - ], - [[429, 429], "valid"], - [ - [430, 430], - "mapped", - [648] - ], - [ - [431, 431], - "mapped", - [432] - ], - [[432, 432], "valid"], - [ - [433, 433], - "mapped", - [650] - ], - [ - [434, 434], - "mapped", - [651] - ], - [ - [435, 435], - "mapped", - [436] - ], - [[436, 436], "valid"], - [ - [437, 437], - "mapped", - [438] - ], - [[438, 438], "valid"], - [ - [439, 439], - "mapped", - [658] - ], - [ - [440, 440], - "mapped", - [441] - ], - [[441, 443], "valid"], - [ - [444, 444], - "mapped", - [445] - ], - [[445, 451], "valid"], - [ - [452, 454], - "mapped", - [100, 382] - ], - [ - [455, 457], - "mapped", - [108, 106] - ], - [ - [458, 460], - "mapped", - [110, 106] - ], - [ - [461, 461], - "mapped", - [462] - ], - [[462, 462], "valid"], - [ - [463, 463], - "mapped", - [464] - ], - [[464, 464], "valid"], - [ - [465, 465], - "mapped", - [466] - ], - [[466, 466], "valid"], - [ - [467, 467], - "mapped", - [468] - ], - [[468, 468], "valid"], - [ - [469, 469], - "mapped", - [470] - ], - [[470, 470], "valid"], - [ - [471, 471], - "mapped", - [472] - ], - [[472, 472], "valid"], - [ - [473, 473], - "mapped", - [474] - ], - [[474, 474], "valid"], - [ - [475, 475], - "mapped", - [476] - ], - [[476, 477], "valid"], - [ - [478, 478], - "mapped", - [479] - ], - [[479, 479], "valid"], - [ - [480, 480], - "mapped", - [481] - ], - [[481, 481], "valid"], - [ - [482, 482], - "mapped", - [483] - ], - [[483, 483], "valid"], - [ - [484, 484], - "mapped", - [485] - ], - [[485, 485], "valid"], - [ - [486, 486], - "mapped", - [487] - ], - [[487, 487], "valid"], - [ - [488, 488], - "mapped", - [489] - ], - [[489, 489], "valid"], - [ - [490, 490], - "mapped", - [491] - ], - [[491, 491], "valid"], - [ - [492, 492], - "mapped", - [493] - ], - [[493, 493], "valid"], - [ - [494, 494], - "mapped", - [495] - ], - [[495, 496], "valid"], - [ - [497, 499], - "mapped", - [100, 122] - ], - [ - [500, 500], - "mapped", - [501] - ], - [[501, 501], "valid"], - [ - [502, 502], - "mapped", - [405] - ], - [ - [503, 503], - "mapped", - [447] - ], - [ - [504, 504], - "mapped", - [505] - ], - [[505, 505], "valid"], - [ - [506, 506], - "mapped", - [507] - ], - [[507, 507], "valid"], - [ - [508, 508], - "mapped", - [509] - ], - [[509, 509], "valid"], - [ - [510, 510], - "mapped", - [511] - ], - [[511, 511], "valid"], - [ - [512, 512], - "mapped", - [513] - ], - [[513, 513], "valid"], - [ - [514, 514], - "mapped", - [515] - ], - [[515, 515], "valid"], - [ - [516, 516], - "mapped", - [517] - ], - [[517, 517], "valid"], - [ - [518, 518], - "mapped", - [519] - ], - [[519, 519], "valid"], - [ - [520, 520], - "mapped", - [521] - ], - [[521, 521], "valid"], - [ - [522, 522], - "mapped", - [523] - ], - [[523, 523], "valid"], - [ - [524, 524], - "mapped", - [525] - ], - [[525, 525], "valid"], - [ - [526, 526], - "mapped", - [527] - ], - [[527, 527], "valid"], - [ - [528, 528], - "mapped", - [529] - ], - [[529, 529], "valid"], - [ - [530, 530], - "mapped", - [531] - ], - [[531, 531], "valid"], - [ - [532, 532], - "mapped", - [533] - ], - [[533, 533], "valid"], - [ - [534, 534], - "mapped", - [535] - ], - [[535, 535], "valid"], - [ - [536, 536], - "mapped", - [537] - ], - [[537, 537], "valid"], - [ - [538, 538], - "mapped", - [539] - ], - [[539, 539], "valid"], - [ - [540, 540], - "mapped", - [541] - ], - [[541, 541], "valid"], - [ - [542, 542], - "mapped", - [543] - ], - [[543, 543], "valid"], - [ - [544, 544], - "mapped", - [414] - ], - [[545, 545], "valid"], - [ - [546, 546], - "mapped", - [547] - ], - [[547, 547], "valid"], - [ - [548, 548], - "mapped", - [549] - ], - [[549, 549], "valid"], - [ - [550, 550], - "mapped", - [551] - ], - [[551, 551], "valid"], - [ - [552, 552], - "mapped", - [553] - ], - [[553, 553], "valid"], - [ - [554, 554], - "mapped", - [555] - ], - [[555, 555], "valid"], - [ - [556, 556], - "mapped", - [557] - ], - [[557, 557], "valid"], - [ - [558, 558], - "mapped", - [559] - ], - [[559, 559], "valid"], - [ - [560, 560], - "mapped", - [561] - ], - [[561, 561], "valid"], - [ - [562, 562], - "mapped", - [563] - ], - [[563, 563], "valid"], - [[564, 566], "valid"], - [[567, 569], "valid"], - [ - [570, 570], - "mapped", - [11365] - ], - [ - [571, 571], - "mapped", - [572] - ], - [[572, 572], "valid"], - [ - [573, 573], - "mapped", - [410] - ], - [ - [574, 574], - "mapped", - [11366] - ], - [[575, 576], "valid"], - [ - [577, 577], - "mapped", - [578] - ], - [[578, 578], "valid"], - [ - [579, 579], - "mapped", - [384] - ], - [ - [580, 580], - "mapped", - [649] - ], - [ - [581, 581], - "mapped", - [652] - ], - [ - [582, 582], - "mapped", - [583] - ], - [[583, 583], "valid"], - [ - [584, 584], - "mapped", - [585] - ], - [[585, 585], "valid"], - [ - [586, 586], - "mapped", - [587] - ], - [[587, 587], "valid"], - [ - [588, 588], - "mapped", - [589] - ], - [[589, 589], "valid"], - [ - [590, 590], - "mapped", - [591] - ], - [[591, 591], "valid"], - [[592, 680], "valid"], - [[681, 685], "valid"], - [[686, 687], "valid"], - [ - [688, 688], - "mapped", - [104] - ], - [ - [689, 689], - "mapped", - [614] - ], - [ - [690, 690], - "mapped", - [106] - ], - [ - [691, 691], - "mapped", - [114] - ], - [ - [692, 692], - "mapped", - [633] - ], - [ - [693, 693], - "mapped", - [635] - ], - [ - [694, 694], - "mapped", - [641] - ], - [ - [695, 695], - "mapped", - [119] - ], - [ - [696, 696], - "mapped", - [121] - ], - [[697, 705], "valid"], - [ - [706, 709], - "valid", - [], - "NV8" - ], - [[710, 721], "valid"], - [ - [722, 727], - "valid", - [], - "NV8" - ], - [ - [728, 728], - "disallowed_STD3_mapped", - [32, 774] - ], - [ - [729, 729], - "disallowed_STD3_mapped", - [32, 775] - ], - [ - [730, 730], - "disallowed_STD3_mapped", - [32, 778] - ], - [ - [731, 731], - "disallowed_STD3_mapped", - [32, 808] - ], - [ - [732, 732], - "disallowed_STD3_mapped", - [32, 771] - ], - [ - [733, 733], - "disallowed_STD3_mapped", - [32, 779] - ], - [ - [734, 734], - "valid", - [], - "NV8" - ], - [ - [735, 735], - "valid", - [], - "NV8" - ], - [ - [736, 736], - "mapped", - [611] - ], - [ - [737, 737], - "mapped", - [108] - ], - [ - [738, 738], - "mapped", - [115] - ], - [ - [739, 739], - "mapped", - [120] - ], - [ - [740, 740], - "mapped", - [661] - ], - [ - [741, 745], - "valid", - [], - "NV8" - ], - [ - [746, 747], - "valid", - [], - "NV8" - ], - [[748, 748], "valid"], - [ - [749, 749], - "valid", - [], - "NV8" - ], - [[750, 750], "valid"], - [ - [751, 767], - "valid", - [], - "NV8" - ], - [[768, 831], "valid"], - [ - [832, 832], - "mapped", - [768] - ], - [ - [833, 833], - "mapped", - [769] - ], - [[834, 834], "valid"], - [ - [835, 835], - "mapped", - [787] - ], - [ - [836, 836], - "mapped", - [776, 769] - ], - [ - [837, 837], - "mapped", - [953] - ], - [[838, 846], "valid"], - [[847, 847], "ignored"], - [[848, 855], "valid"], - [[856, 860], "valid"], - [[861, 863], "valid"], - [[864, 865], "valid"], - [[866, 866], "valid"], - [[867, 879], "valid"], - [ - [880, 880], - "mapped", - [881] - ], - [[881, 881], "valid"], - [ - [882, 882], - "mapped", - [883] - ], - [[883, 883], "valid"], - [ - [884, 884], - "mapped", - [697] - ], - [[885, 885], "valid"], - [ - [886, 886], - "mapped", - [887] - ], - [[887, 887], "valid"], - [[888, 889], "disallowed"], - [ - [890, 890], - "disallowed_STD3_mapped", - [32, 953] - ], - [[891, 893], "valid"], - [ - [894, 894], - "disallowed_STD3_mapped", - [59] - ], - [ - [895, 895], - "mapped", - [1011] - ], - [[896, 899], "disallowed"], - [ - [900, 900], - "disallowed_STD3_mapped", - [32, 769] - ], - [ - [901, 901], - "disallowed_STD3_mapped", - [ - 32, - 776, - 769 - ] - ], - [ - [902, 902], - "mapped", - [940] - ], - [ - [903, 903], - "mapped", - [183] - ], - [ - [904, 904], - "mapped", - [941] - ], - [ - [905, 905], - "mapped", - [942] - ], - [ - [906, 906], - "mapped", - [943] - ], - [[907, 907], "disallowed"], - [ - [908, 908], - "mapped", - [972] - ], - [[909, 909], "disallowed"], - [ - [910, 910], - "mapped", - [973] - ], - [ - [911, 911], - "mapped", - [974] - ], - [[912, 912], "valid"], - [ - [913, 913], - "mapped", - [945] - ], - [ - [914, 914], - "mapped", - [946] - ], - [ - [915, 915], - "mapped", - [947] - ], - [ - [916, 916], - "mapped", - [948] - ], - [ - [917, 917], - "mapped", - [949] - ], - [ - [918, 918], - "mapped", - [950] - ], - [ - [919, 919], - "mapped", - [951] - ], - [ - [920, 920], - "mapped", - [952] - ], - [ - [921, 921], - "mapped", - [953] - ], - [ - [922, 922], - "mapped", - [954] - ], - [ - [923, 923], - "mapped", - [955] - ], - [ - [924, 924], - "mapped", - [956] - ], - [ - [925, 925], - "mapped", - [957] - ], - [ - [926, 926], - "mapped", - [958] - ], - [ - [927, 927], - "mapped", - [959] - ], - [ - [928, 928], - "mapped", - [960] - ], - [ - [929, 929], - "mapped", - [961] - ], - [[930, 930], "disallowed"], - [ - [931, 931], - "mapped", - [963] - ], - [ - [932, 932], - "mapped", - [964] - ], - [ - [933, 933], - "mapped", - [965] - ], - [ - [934, 934], - "mapped", - [966] - ], - [ - [935, 935], - "mapped", - [967] - ], - [ - [936, 936], - "mapped", - [968] - ], - [ - [937, 937], - "mapped", - [969] - ], - [ - [938, 938], - "mapped", - [970] - ], - [ - [939, 939], - "mapped", - [971] - ], - [[940, 961], "valid"], - [ - [962, 962], - "deviation", - [963] - ], - [[963, 974], "valid"], - [ - [975, 975], - "mapped", - [983] - ], - [ - [976, 976], - "mapped", - [946] - ], - [ - [977, 977], - "mapped", - [952] - ], - [ - [978, 978], - "mapped", - [965] - ], - [ - [979, 979], - "mapped", - [973] - ], - [ - [980, 980], - "mapped", - [971] - ], - [ - [981, 981], - "mapped", - [966] - ], - [ - [982, 982], - "mapped", - [960] - ], - [[983, 983], "valid"], - [ - [984, 984], - "mapped", - [985] - ], - [[985, 985], "valid"], - [ - [986, 986], - "mapped", - [987] - ], - [[987, 987], "valid"], - [ - [988, 988], - "mapped", - [989] - ], - [[989, 989], "valid"], - [ - [990, 990], - "mapped", - [991] - ], - [[991, 991], "valid"], - [ - [992, 992], - "mapped", - [993] - ], - [[993, 993], "valid"], - [ - [994, 994], - "mapped", - [995] - ], - [[995, 995], "valid"], - [ - [996, 996], - "mapped", - [997] - ], - [[997, 997], "valid"], - [ - [998, 998], - "mapped", - [999] - ], - [[999, 999], "valid"], - [ - [1e3, 1e3], - "mapped", - [1001] - ], - [[1001, 1001], "valid"], - [ - [1002, 1002], - "mapped", - [1003] - ], - [[1003, 1003], "valid"], - [ - [1004, 1004], - "mapped", - [1005] - ], - [[1005, 1005], "valid"], - [ - [1006, 1006], - "mapped", - [1007] - ], - [[1007, 1007], "valid"], - [ - [1008, 1008], - "mapped", - [954] - ], - [ - [1009, 1009], - "mapped", - [961] - ], - [ - [1010, 1010], - "mapped", - [963] - ], - [[1011, 1011], "valid"], - [ - [1012, 1012], - "mapped", - [952] - ], - [ - [1013, 1013], - "mapped", - [949] - ], - [ - [1014, 1014], - "valid", - [], - "NV8" - ], - [ - [1015, 1015], - "mapped", - [1016] - ], - [[1016, 1016], "valid"], - [ - [1017, 1017], - "mapped", - [963] - ], - [ - [1018, 1018], - "mapped", - [1019] - ], - [[1019, 1019], "valid"], - [[1020, 1020], "valid"], - [ - [1021, 1021], - "mapped", - [891] - ], - [ - [1022, 1022], - "mapped", - [892] - ], - [ - [1023, 1023], - "mapped", - [893] - ], - [ - [1024, 1024], - "mapped", - [1104] - ], - [ - [1025, 1025], - "mapped", - [1105] - ], - [ - [1026, 1026], - "mapped", - [1106] - ], - [ - [1027, 1027], - "mapped", - [1107] - ], - [ - [1028, 1028], - "mapped", - [1108] - ], - [ - [1029, 1029], - "mapped", - [1109] - ], - [ - [1030, 1030], - "mapped", - [1110] - ], - [ - [1031, 1031], - "mapped", - [1111] - ], - [ - [1032, 1032], - "mapped", - [1112] - ], - [ - [1033, 1033], - "mapped", - [1113] - ], - [ - [1034, 1034], - "mapped", - [1114] - ], - [ - [1035, 1035], - "mapped", - [1115] - ], - [ - [1036, 1036], - "mapped", - [1116] - ], - [ - [1037, 1037], - "mapped", - [1117] - ], - [ - [1038, 1038], - "mapped", - [1118] - ], - [ - [1039, 1039], - "mapped", - [1119] - ], - [ - [1040, 1040], - "mapped", - [1072] - ], - [ - [1041, 1041], - "mapped", - [1073] - ], - [ - [1042, 1042], - "mapped", - [1074] - ], - [ - [1043, 1043], - "mapped", - [1075] - ], - [ - [1044, 1044], - "mapped", - [1076] - ], - [ - [1045, 1045], - "mapped", - [1077] - ], - [ - [1046, 1046], - "mapped", - [1078] - ], - [ - [1047, 1047], - "mapped", - [1079] - ], - [ - [1048, 1048], - "mapped", - [1080] - ], - [ - [1049, 1049], - "mapped", - [1081] - ], - [ - [1050, 1050], - "mapped", - [1082] - ], - [ - [1051, 1051], - "mapped", - [1083] - ], - [ - [1052, 1052], - "mapped", - [1084] - ], - [ - [1053, 1053], - "mapped", - [1085] - ], - [ - [1054, 1054], - "mapped", - [1086] - ], - [ - [1055, 1055], - "mapped", - [1087] - ], - [ - [1056, 1056], - "mapped", - [1088] - ], - [ - [1057, 1057], - "mapped", - [1089] - ], - [ - [1058, 1058], - "mapped", - [1090] - ], - [ - [1059, 1059], - "mapped", - [1091] - ], - [ - [1060, 1060], - "mapped", - [1092] - ], - [ - [1061, 1061], - "mapped", - [1093] - ], - [ - [1062, 1062], - "mapped", - [1094] - ], - [ - [1063, 1063], - "mapped", - [1095] - ], - [ - [1064, 1064], - "mapped", - [1096] - ], - [ - [1065, 1065], - "mapped", - [1097] - ], - [ - [1066, 1066], - "mapped", - [1098] - ], - [ - [1067, 1067], - "mapped", - [1099] - ], - [ - [1068, 1068], - "mapped", - [1100] - ], - [ - [1069, 1069], - "mapped", - [1101] - ], - [ - [1070, 1070], - "mapped", - [1102] - ], - [ - [1071, 1071], - "mapped", - [1103] - ], - [[1072, 1103], "valid"], - [[1104, 1104], "valid"], - [[1105, 1116], "valid"], - [[1117, 1117], "valid"], - [[1118, 1119], "valid"], - [ - [1120, 1120], - "mapped", - [1121] - ], - [[1121, 1121], "valid"], - [ - [1122, 1122], - "mapped", - [1123] - ], - [[1123, 1123], "valid"], - [ - [1124, 1124], - "mapped", - [1125] - ], - [[1125, 1125], "valid"], - [ - [1126, 1126], - "mapped", - [1127] - ], - [[1127, 1127], "valid"], - [ - [1128, 1128], - "mapped", - [1129] - ], - [[1129, 1129], "valid"], - [ - [1130, 1130], - "mapped", - [1131] - ], - [[1131, 1131], "valid"], - [ - [1132, 1132], - "mapped", - [1133] - ], - [[1133, 1133], "valid"], - [ - [1134, 1134], - "mapped", - [1135] - ], - [[1135, 1135], "valid"], - [ - [1136, 1136], - "mapped", - [1137] - ], - [[1137, 1137], "valid"], - [ - [1138, 1138], - "mapped", - [1139] - ], - [[1139, 1139], "valid"], - [ - [1140, 1140], - "mapped", - [1141] - ], - [[1141, 1141], "valid"], - [ - [1142, 1142], - "mapped", - [1143] - ], - [[1143, 1143], "valid"], - [ - [1144, 1144], - "mapped", - [1145] - ], - [[1145, 1145], "valid"], - [ - [1146, 1146], - "mapped", - [1147] - ], - [[1147, 1147], "valid"], - [ - [1148, 1148], - "mapped", - [1149] - ], - [[1149, 1149], "valid"], - [ - [1150, 1150], - "mapped", - [1151] - ], - [[1151, 1151], "valid"], - [ - [1152, 1152], - "mapped", - [1153] - ], - [[1153, 1153], "valid"], - [ - [1154, 1154], - "valid", - [], - "NV8" - ], - [[1155, 1158], "valid"], - [[1159, 1159], "valid"], - [ - [1160, 1161], - "valid", - [], - "NV8" - ], - [ - [1162, 1162], - "mapped", - [1163] - ], - [[1163, 1163], "valid"], - [ - [1164, 1164], - "mapped", - [1165] - ], - [[1165, 1165], "valid"], - [ - [1166, 1166], - "mapped", - [1167] - ], - [[1167, 1167], "valid"], - [ - [1168, 1168], - "mapped", - [1169] - ], - [[1169, 1169], "valid"], - [ - [1170, 1170], - "mapped", - [1171] - ], - [[1171, 1171], "valid"], - [ - [1172, 1172], - "mapped", - [1173] - ], - [[1173, 1173], "valid"], - [ - [1174, 1174], - "mapped", - [1175] - ], - [[1175, 1175], "valid"], - [ - [1176, 1176], - "mapped", - [1177] - ], - [[1177, 1177], "valid"], - [ - [1178, 1178], - "mapped", - [1179] - ], - [[1179, 1179], "valid"], - [ - [1180, 1180], - "mapped", - [1181] - ], - [[1181, 1181], "valid"], - [ - [1182, 1182], - "mapped", - [1183] - ], - [[1183, 1183], "valid"], - [ - [1184, 1184], - "mapped", - [1185] - ], - [[1185, 1185], "valid"], - [ - [1186, 1186], - "mapped", - [1187] - ], - [[1187, 1187], "valid"], - [ - [1188, 1188], - "mapped", - [1189] - ], - [[1189, 1189], "valid"], - [ - [1190, 1190], - "mapped", - [1191] - ], - [[1191, 1191], "valid"], - [ - [1192, 1192], - "mapped", - [1193] - ], - [[1193, 1193], "valid"], - [ - [1194, 1194], - "mapped", - [1195] - ], - [[1195, 1195], "valid"], - [ - [1196, 1196], - "mapped", - [1197] - ], - [[1197, 1197], "valid"], - [ - [1198, 1198], - "mapped", - [1199] - ], - [[1199, 1199], "valid"], - [ - [1200, 1200], - "mapped", - [1201] - ], - [[1201, 1201], "valid"], - [ - [1202, 1202], - "mapped", - [1203] - ], - [[1203, 1203], "valid"], - [ - [1204, 1204], - "mapped", - [1205] - ], - [[1205, 1205], "valid"], - [ - [1206, 1206], - "mapped", - [1207] - ], - [[1207, 1207], "valid"], - [ - [1208, 1208], - "mapped", - [1209] - ], - [[1209, 1209], "valid"], - [ - [1210, 1210], - "mapped", - [1211] - ], - [[1211, 1211], "valid"], - [ - [1212, 1212], - "mapped", - [1213] - ], - [[1213, 1213], "valid"], - [ - [1214, 1214], - "mapped", - [1215] - ], - [[1215, 1215], "valid"], - [[1216, 1216], "disallowed"], - [ - [1217, 1217], - "mapped", - [1218] - ], - [[1218, 1218], "valid"], - [ - [1219, 1219], - "mapped", - [1220] - ], - [[1220, 1220], "valid"], - [ - [1221, 1221], - "mapped", - [1222] - ], - [[1222, 1222], "valid"], - [ - [1223, 1223], - "mapped", - [1224] - ], - [[1224, 1224], "valid"], - [ - [1225, 1225], - "mapped", - [1226] - ], - [[1226, 1226], "valid"], - [ - [1227, 1227], - "mapped", - [1228] - ], - [[1228, 1228], "valid"], - [ - [1229, 1229], - "mapped", - [1230] - ], - [[1230, 1230], "valid"], - [[1231, 1231], "valid"], - [ - [1232, 1232], - "mapped", - [1233] - ], - [[1233, 1233], "valid"], - [ - [1234, 1234], - "mapped", - [1235] - ], - [[1235, 1235], "valid"], - [ - [1236, 1236], - "mapped", - [1237] - ], - [[1237, 1237], "valid"], - [ - [1238, 1238], - "mapped", - [1239] - ], - [[1239, 1239], "valid"], - [ - [1240, 1240], - "mapped", - [1241] - ], - [[1241, 1241], "valid"], - [ - [1242, 1242], - "mapped", - [1243] - ], - [[1243, 1243], "valid"], - [ - [1244, 1244], - "mapped", - [1245] - ], - [[1245, 1245], "valid"], - [ - [1246, 1246], - "mapped", - [1247] - ], - [[1247, 1247], "valid"], - [ - [1248, 1248], - "mapped", - [1249] - ], - [[1249, 1249], "valid"], - [ - [1250, 1250], - "mapped", - [1251] - ], - [[1251, 1251], "valid"], - [ - [1252, 1252], - "mapped", - [1253] - ], - [[1253, 1253], "valid"], - [ - [1254, 1254], - "mapped", - [1255] - ], - [[1255, 1255], "valid"], - [ - [1256, 1256], - "mapped", - [1257] - ], - [[1257, 1257], "valid"], - [ - [1258, 1258], - "mapped", - [1259] - ], - [[1259, 1259], "valid"], - [ - [1260, 1260], - "mapped", - [1261] - ], - [[1261, 1261], "valid"], - [ - [1262, 1262], - "mapped", - [1263] - ], - [[1263, 1263], "valid"], - [ - [1264, 1264], - "mapped", - [1265] - ], - [[1265, 1265], "valid"], - [ - [1266, 1266], - "mapped", - [1267] - ], - [[1267, 1267], "valid"], - [ - [1268, 1268], - "mapped", - [1269] - ], - [[1269, 1269], "valid"], - [ - [1270, 1270], - "mapped", - [1271] - ], - [[1271, 1271], "valid"], - [ - [1272, 1272], - "mapped", - [1273] - ], - [[1273, 1273], "valid"], - [ - [1274, 1274], - "mapped", - [1275] - ], - [[1275, 1275], "valid"], - [ - [1276, 1276], - "mapped", - [1277] - ], - [[1277, 1277], "valid"], - [ - [1278, 1278], - "mapped", - [1279] - ], - [[1279, 1279], "valid"], - [ - [1280, 1280], - "mapped", - [1281] - ], - [[1281, 1281], "valid"], - [ - [1282, 1282], - "mapped", - [1283] - ], - [[1283, 1283], "valid"], - [ - [1284, 1284], - "mapped", - [1285] - ], - [[1285, 1285], "valid"], - [ - [1286, 1286], - "mapped", - [1287] - ], - [[1287, 1287], "valid"], - [ - [1288, 1288], - "mapped", - [1289] - ], - [[1289, 1289], "valid"], - [ - [1290, 1290], - "mapped", - [1291] - ], - [[1291, 1291], "valid"], - [ - [1292, 1292], - "mapped", - [1293] - ], - [[1293, 1293], "valid"], - [ - [1294, 1294], - "mapped", - [1295] - ], - [[1295, 1295], "valid"], - [ - [1296, 1296], - "mapped", - [1297] - ], - [[1297, 1297], "valid"], - [ - [1298, 1298], - "mapped", - [1299] - ], - [[1299, 1299], "valid"], - [ - [1300, 1300], - "mapped", - [1301] - ], - [[1301, 1301], "valid"], - [ - [1302, 1302], - "mapped", - [1303] - ], - [[1303, 1303], "valid"], - [ - [1304, 1304], - "mapped", - [1305] - ], - [[1305, 1305], "valid"], - [ - [1306, 1306], - "mapped", - [1307] - ], - [[1307, 1307], "valid"], - [ - [1308, 1308], - "mapped", - [1309] - ], - [[1309, 1309], "valid"], - [ - [1310, 1310], - "mapped", - [1311] - ], - [[1311, 1311], "valid"], - [ - [1312, 1312], - "mapped", - [1313] - ], - [[1313, 1313], "valid"], - [ - [1314, 1314], - "mapped", - [1315] - ], - [[1315, 1315], "valid"], - [ - [1316, 1316], - "mapped", - [1317] - ], - [[1317, 1317], "valid"], - [ - [1318, 1318], - "mapped", - [1319] - ], - [[1319, 1319], "valid"], - [ - [1320, 1320], - "mapped", - [1321] - ], - [[1321, 1321], "valid"], - [ - [1322, 1322], - "mapped", - [1323] - ], - [[1323, 1323], "valid"], - [ - [1324, 1324], - "mapped", - [1325] - ], - [[1325, 1325], "valid"], - [ - [1326, 1326], - "mapped", - [1327] - ], - [[1327, 1327], "valid"], - [[1328, 1328], "disallowed"], - [ - [1329, 1329], - "mapped", - [1377] - ], - [ - [1330, 1330], - "mapped", - [1378] - ], - [ - [1331, 1331], - "mapped", - [1379] - ], - [ - [1332, 1332], - "mapped", - [1380] - ], - [ - [1333, 1333], - "mapped", - [1381] - ], - [ - [1334, 1334], - "mapped", - [1382] - ], - [ - [1335, 1335], - "mapped", - [1383] - ], - [ - [1336, 1336], - "mapped", - [1384] - ], - [ - [1337, 1337], - "mapped", - [1385] - ], - [ - [1338, 1338], - "mapped", - [1386] - ], - [ - [1339, 1339], - "mapped", - [1387] - ], - [ - [1340, 1340], - "mapped", - [1388] - ], - [ - [1341, 1341], - "mapped", - [1389] - ], - [ - [1342, 1342], - "mapped", - [1390] - ], - [ - [1343, 1343], - "mapped", - [1391] - ], - [ - [1344, 1344], - "mapped", - [1392] - ], - [ - [1345, 1345], - "mapped", - [1393] - ], - [ - [1346, 1346], - "mapped", - [1394] - ], - [ - [1347, 1347], - "mapped", - [1395] - ], - [ - [1348, 1348], - "mapped", - [1396] - ], - [ - [1349, 1349], - "mapped", - [1397] - ], - [ - [1350, 1350], - "mapped", - [1398] - ], - [ - [1351, 1351], - "mapped", - [1399] - ], - [ - [1352, 1352], - "mapped", - [1400] - ], - [ - [1353, 1353], - "mapped", - [1401] - ], - [ - [1354, 1354], - "mapped", - [1402] - ], - [ - [1355, 1355], - "mapped", - [1403] - ], - [ - [1356, 1356], - "mapped", - [1404] - ], - [ - [1357, 1357], - "mapped", - [1405] - ], - [ - [1358, 1358], - "mapped", - [1406] - ], - [ - [1359, 1359], - "mapped", - [1407] - ], - [ - [1360, 1360], - "mapped", - [1408] - ], - [ - [1361, 1361], - "mapped", - [1409] - ], - [ - [1362, 1362], - "mapped", - [1410] - ], - [ - [1363, 1363], - "mapped", - [1411] - ], - [ - [1364, 1364], - "mapped", - [1412] - ], - [ - [1365, 1365], - "mapped", - [1413] - ], - [ - [1366, 1366], - "mapped", - [1414] - ], - [[1367, 1368], "disallowed"], - [[1369, 1369], "valid"], - [ - [1370, 1375], - "valid", - [], - "NV8" - ], - [[1376, 1376], "disallowed"], - [[1377, 1414], "valid"], - [ - [1415, 1415], - "mapped", - [1381, 1410] - ], - [[1416, 1416], "disallowed"], - [ - [1417, 1417], - "valid", - [], - "NV8" - ], - [ - [1418, 1418], - "valid", - [], - "NV8" - ], - [[1419, 1420], "disallowed"], - [ - [1421, 1422], - "valid", - [], - "NV8" - ], - [ - [1423, 1423], - "valid", - [], - "NV8" - ], - [[1424, 1424], "disallowed"], - [[1425, 1441], "valid"], - [[1442, 1442], "valid"], - [[1443, 1455], "valid"], - [[1456, 1465], "valid"], - [[1466, 1466], "valid"], - [[1467, 1469], "valid"], - [ - [1470, 1470], - "valid", - [], - "NV8" - ], - [[1471, 1471], "valid"], - [ - [1472, 1472], - "valid", - [], - "NV8" - ], - [[1473, 1474], "valid"], - [ - [1475, 1475], - "valid", - [], - "NV8" - ], - [[1476, 1476], "valid"], - [[1477, 1477], "valid"], - [ - [1478, 1478], - "valid", - [], - "NV8" - ], - [[1479, 1479], "valid"], - [[1480, 1487], "disallowed"], - [[1488, 1514], "valid"], - [[1515, 1519], "disallowed"], - [[1520, 1524], "valid"], - [[1525, 1535], "disallowed"], - [[1536, 1539], "disallowed"], - [[1540, 1540], "disallowed"], - [[1541, 1541], "disallowed"], - [ - [1542, 1546], - "valid", - [], - "NV8" - ], - [ - [1547, 1547], - "valid", - [], - "NV8" - ], - [ - [1548, 1548], - "valid", - [], - "NV8" - ], - [ - [1549, 1551], - "valid", - [], - "NV8" - ], - [[1552, 1557], "valid"], - [[1558, 1562], "valid"], - [ - [1563, 1563], - "valid", - [], - "NV8" - ], - [[1564, 1564], "disallowed"], - [[1565, 1565], "disallowed"], - [ - [1566, 1566], - "valid", - [], - "NV8" - ], - [ - [1567, 1567], - "valid", - [], - "NV8" - ], - [[1568, 1568], "valid"], - [[1569, 1594], "valid"], - [[1595, 1599], "valid"], - [ - [1600, 1600], - "valid", - [], - "NV8" - ], - [[1601, 1618], "valid"], - [[1619, 1621], "valid"], - [[1622, 1624], "valid"], - [[1625, 1630], "valid"], - [[1631, 1631], "valid"], - [[1632, 1641], "valid"], - [ - [1642, 1645], - "valid", - [], - "NV8" - ], - [[1646, 1647], "valid"], - [[1648, 1652], "valid"], - [ - [1653, 1653], - "mapped", - [1575, 1652] - ], - [ - [1654, 1654], - "mapped", - [1608, 1652] - ], - [ - [1655, 1655], - "mapped", - [1735, 1652] - ], - [ - [1656, 1656], - "mapped", - [1610, 1652] - ], - [[1657, 1719], "valid"], - [[1720, 1721], "valid"], - [[1722, 1726], "valid"], - [[1727, 1727], "valid"], - [[1728, 1742], "valid"], - [[1743, 1743], "valid"], - [[1744, 1747], "valid"], - [ - [1748, 1748], - "valid", - [], - "NV8" - ], - [[1749, 1756], "valid"], - [[1757, 1757], "disallowed"], - [ - [1758, 1758], - "valid", - [], - "NV8" - ], - [[1759, 1768], "valid"], - [ - [1769, 1769], - "valid", - [], - "NV8" - ], - [[1770, 1773], "valid"], - [[1774, 1775], "valid"], - [[1776, 1785], "valid"], - [[1786, 1790], "valid"], - [[1791, 1791], "valid"], - [ - [1792, 1805], - "valid", - [], - "NV8" - ], - [[1806, 1806], "disallowed"], - [[1807, 1807], "disallowed"], - [[1808, 1836], "valid"], - [[1837, 1839], "valid"], - [[1840, 1866], "valid"], - [[1867, 1868], "disallowed"], - [[1869, 1871], "valid"], - [[1872, 1901], "valid"], - [[1902, 1919], "valid"], - [[1920, 1968], "valid"], - [[1969, 1969], "valid"], - [[1970, 1983], "disallowed"], - [[1984, 2037], "valid"], - [ - [2038, 2042], - "valid", - [], - "NV8" - ], - [[2043, 2047], "disallowed"], - [[2048, 2093], "valid"], - [[2094, 2095], "disallowed"], - [ - [2096, 2110], - "valid", - [], - "NV8" - ], - [[2111, 2111], "disallowed"], - [[2112, 2139], "valid"], - [[2140, 2141], "disallowed"], - [ - [2142, 2142], - "valid", - [], - "NV8" - ], - [[2143, 2207], "disallowed"], - [[2208, 2208], "valid"], - [[2209, 2209], "valid"], - [[2210, 2220], "valid"], - [[2221, 2226], "valid"], - [[2227, 2228], "valid"], - [[2229, 2274], "disallowed"], - [[2275, 2275], "valid"], - [[2276, 2302], "valid"], - [[2303, 2303], "valid"], - [[2304, 2304], "valid"], - [[2305, 2307], "valid"], - [[2308, 2308], "valid"], - [[2309, 2361], "valid"], - [[2362, 2363], "valid"], - [[2364, 2381], "valid"], - [[2382, 2382], "valid"], - [[2383, 2383], "valid"], - [[2384, 2388], "valid"], - [[2389, 2389], "valid"], - [[2390, 2391], "valid"], - [ - [2392, 2392], - "mapped", - [2325, 2364] - ], - [ - [2393, 2393], - "mapped", - [2326, 2364] - ], - [ - [2394, 2394], - "mapped", - [2327, 2364] - ], - [ - [2395, 2395], - "mapped", - [2332, 2364] - ], - [ - [2396, 2396], - "mapped", - [2337, 2364] - ], - [ - [2397, 2397], - "mapped", - [2338, 2364] - ], - [ - [2398, 2398], - "mapped", - [2347, 2364] - ], - [ - [2399, 2399], - "mapped", - [2351, 2364] - ], - [[2400, 2403], "valid"], - [ - [2404, 2405], - "valid", - [], - "NV8" - ], - [[2406, 2415], "valid"], - [ - [2416, 2416], - "valid", - [], - "NV8" - ], - [[2417, 2418], "valid"], - [[2419, 2423], "valid"], - [[2424, 2424], "valid"], - [[2425, 2426], "valid"], - [[2427, 2428], "valid"], - [[2429, 2429], "valid"], - [[2430, 2431], "valid"], - [[2432, 2432], "valid"], - [[2433, 2435], "valid"], - [[2436, 2436], "disallowed"], - [[2437, 2444], "valid"], - [[2445, 2446], "disallowed"], - [[2447, 2448], "valid"], - [[2449, 2450], "disallowed"], - [[2451, 2472], "valid"], - [[2473, 2473], "disallowed"], - [[2474, 2480], "valid"], - [[2481, 2481], "disallowed"], - [[2482, 2482], "valid"], - [[2483, 2485], "disallowed"], - [[2486, 2489], "valid"], - [[2490, 2491], "disallowed"], - [[2492, 2492], "valid"], - [[2493, 2493], "valid"], - [[2494, 2500], "valid"], - [[2501, 2502], "disallowed"], - [[2503, 2504], "valid"], - [[2505, 2506], "disallowed"], - [[2507, 2509], "valid"], - [[2510, 2510], "valid"], - [[2511, 2518], "disallowed"], - [[2519, 2519], "valid"], - [[2520, 2523], "disallowed"], - [ - [2524, 2524], - "mapped", - [2465, 2492] - ], - [ - [2525, 2525], - "mapped", - [2466, 2492] - ], - [[2526, 2526], "disallowed"], - [ - [2527, 2527], - "mapped", - [2479, 2492] - ], - [[2528, 2531], "valid"], - [[2532, 2533], "disallowed"], - [[2534, 2545], "valid"], - [ - [2546, 2554], - "valid", - [], - "NV8" - ], - [ - [2555, 2555], - "valid", - [], - "NV8" - ], - [[2556, 2560], "disallowed"], - [[2561, 2561], "valid"], - [[2562, 2562], "valid"], - [[2563, 2563], "valid"], - [[2564, 2564], "disallowed"], - [[2565, 2570], "valid"], - [[2571, 2574], "disallowed"], - [[2575, 2576], "valid"], - [[2577, 2578], "disallowed"], - [[2579, 2600], "valid"], - [[2601, 2601], "disallowed"], - [[2602, 2608], "valid"], - [[2609, 2609], "disallowed"], - [[2610, 2610], "valid"], - [ - [2611, 2611], - "mapped", - [2610, 2620] - ], - [[2612, 2612], "disallowed"], - [[2613, 2613], "valid"], - [ - [2614, 2614], - "mapped", - [2616, 2620] - ], - [[2615, 2615], "disallowed"], - [[2616, 2617], "valid"], - [[2618, 2619], "disallowed"], - [[2620, 2620], "valid"], - [[2621, 2621], "disallowed"], - [[2622, 2626], "valid"], - [[2627, 2630], "disallowed"], - [[2631, 2632], "valid"], - [[2633, 2634], "disallowed"], - [[2635, 2637], "valid"], - [[2638, 2640], "disallowed"], - [[2641, 2641], "valid"], - [[2642, 2648], "disallowed"], - [ - [2649, 2649], - "mapped", - [2582, 2620] - ], - [ - [2650, 2650], - "mapped", - [2583, 2620] - ], - [ - [2651, 2651], - "mapped", - [2588, 2620] - ], - [[2652, 2652], "valid"], - [[2653, 2653], "disallowed"], - [ - [2654, 2654], - "mapped", - [2603, 2620] - ], - [[2655, 2661], "disallowed"], - [[2662, 2676], "valid"], - [[2677, 2677], "valid"], - [[2678, 2688], "disallowed"], - [[2689, 2691], "valid"], - [[2692, 2692], "disallowed"], - [[2693, 2699], "valid"], - [[2700, 2700], "valid"], - [[2701, 2701], "valid"], - [[2702, 2702], "disallowed"], - [[2703, 2705], "valid"], - [[2706, 2706], "disallowed"], - [[2707, 2728], "valid"], - [[2729, 2729], "disallowed"], - [[2730, 2736], "valid"], - [[2737, 2737], "disallowed"], - [[2738, 2739], "valid"], - [[2740, 2740], "disallowed"], - [[2741, 2745], "valid"], - [[2746, 2747], "disallowed"], - [[2748, 2757], "valid"], - [[2758, 2758], "disallowed"], - [[2759, 2761], "valid"], - [[2762, 2762], "disallowed"], - [[2763, 2765], "valid"], - [[2766, 2767], "disallowed"], - [[2768, 2768], "valid"], - [[2769, 2783], "disallowed"], - [[2784, 2784], "valid"], - [[2785, 2787], "valid"], - [[2788, 2789], "disallowed"], - [[2790, 2799], "valid"], - [ - [2800, 2800], - "valid", - [], - "NV8" - ], - [ - [2801, 2801], - "valid", - [], - "NV8" - ], - [[2802, 2808], "disallowed"], - [[2809, 2809], "valid"], - [[2810, 2816], "disallowed"], - [[2817, 2819], "valid"], - [[2820, 2820], "disallowed"], - [[2821, 2828], "valid"], - [[2829, 2830], "disallowed"], - [[2831, 2832], "valid"], - [[2833, 2834], "disallowed"], - [[2835, 2856], "valid"], - [[2857, 2857], "disallowed"], - [[2858, 2864], "valid"], - [[2865, 2865], "disallowed"], - [[2866, 2867], "valid"], - [[2868, 2868], "disallowed"], - [[2869, 2869], "valid"], - [[2870, 2873], "valid"], - [[2874, 2875], "disallowed"], - [[2876, 2883], "valid"], - [[2884, 2884], "valid"], - [[2885, 2886], "disallowed"], - [[2887, 2888], "valid"], - [[2889, 2890], "disallowed"], - [[2891, 2893], "valid"], - [[2894, 2901], "disallowed"], - [[2902, 2903], "valid"], - [[2904, 2907], "disallowed"], - [ - [2908, 2908], - "mapped", - [2849, 2876] - ], - [ - [2909, 2909], - "mapped", - [2850, 2876] - ], - [[2910, 2910], "disallowed"], - [[2911, 2913], "valid"], - [[2914, 2915], "valid"], - [[2916, 2917], "disallowed"], - [[2918, 2927], "valid"], - [ - [2928, 2928], - "valid", - [], - "NV8" - ], - [[2929, 2929], "valid"], - [ - [2930, 2935], - "valid", - [], - "NV8" - ], - [[2936, 2945], "disallowed"], - [[2946, 2947], "valid"], - [[2948, 2948], "disallowed"], - [[2949, 2954], "valid"], - [[2955, 2957], "disallowed"], - [[2958, 2960], "valid"], - [[2961, 2961], "disallowed"], - [[2962, 2965], "valid"], - [[2966, 2968], "disallowed"], - [[2969, 2970], "valid"], - [[2971, 2971], "disallowed"], - [[2972, 2972], "valid"], - [[2973, 2973], "disallowed"], - [[2974, 2975], "valid"], - [[2976, 2978], "disallowed"], - [[2979, 2980], "valid"], - [[2981, 2983], "disallowed"], - [[2984, 2986], "valid"], - [[2987, 2989], "disallowed"], - [[2990, 2997], "valid"], - [[2998, 2998], "valid"], - [[2999, 3001], "valid"], - [[3002, 3005], "disallowed"], - [[3006, 3010], "valid"], - [[3011, 3013], "disallowed"], - [[3014, 3016], "valid"], - [[3017, 3017], "disallowed"], - [[3018, 3021], "valid"], - [[3022, 3023], "disallowed"], - [[3024, 3024], "valid"], - [[3025, 3030], "disallowed"], - [[3031, 3031], "valid"], - [[3032, 3045], "disallowed"], - [[3046, 3046], "valid"], - [[3047, 3055], "valid"], - [ - [3056, 3058], - "valid", - [], - "NV8" - ], - [ - [3059, 3066], - "valid", - [], - "NV8" - ], - [[3067, 3071], "disallowed"], - [[3072, 3072], "valid"], - [[3073, 3075], "valid"], - [[3076, 3076], "disallowed"], - [[3077, 3084], "valid"], - [[3085, 3085], "disallowed"], - [[3086, 3088], "valid"], - [[3089, 3089], "disallowed"], - [[3090, 3112], "valid"], - [[3113, 3113], "disallowed"], - [[3114, 3123], "valid"], - [[3124, 3124], "valid"], - [[3125, 3129], "valid"], - [[3130, 3132], "disallowed"], - [[3133, 3133], "valid"], - [[3134, 3140], "valid"], - [[3141, 3141], "disallowed"], - [[3142, 3144], "valid"], - [[3145, 3145], "disallowed"], - [[3146, 3149], "valid"], - [[3150, 3156], "disallowed"], - [[3157, 3158], "valid"], - [[3159, 3159], "disallowed"], - [[3160, 3161], "valid"], - [[3162, 3162], "valid"], - [[3163, 3167], "disallowed"], - [[3168, 3169], "valid"], - [[3170, 3171], "valid"], - [[3172, 3173], "disallowed"], - [[3174, 3183], "valid"], - [[3184, 3191], "disallowed"], - [ - [3192, 3199], - "valid", - [], - "NV8" - ], - [[3200, 3200], "disallowed"], - [[3201, 3201], "valid"], - [[3202, 3203], "valid"], - [[3204, 3204], "disallowed"], - [[3205, 3212], "valid"], - [[3213, 3213], "disallowed"], - [[3214, 3216], "valid"], - [[3217, 3217], "disallowed"], - [[3218, 3240], "valid"], - [[3241, 3241], "disallowed"], - [[3242, 3251], "valid"], - [[3252, 3252], "disallowed"], - [[3253, 3257], "valid"], - [[3258, 3259], "disallowed"], - [[3260, 3261], "valid"], - [[3262, 3268], "valid"], - [[3269, 3269], "disallowed"], - [[3270, 3272], "valid"], - [[3273, 3273], "disallowed"], - [[3274, 3277], "valid"], - [[3278, 3284], "disallowed"], - [[3285, 3286], "valid"], - [[3287, 3293], "disallowed"], - [[3294, 3294], "valid"], - [[3295, 3295], "disallowed"], - [[3296, 3297], "valid"], - [[3298, 3299], "valid"], - [[3300, 3301], "disallowed"], - [[3302, 3311], "valid"], - [[3312, 3312], "disallowed"], - [[3313, 3314], "valid"], - [[3315, 3328], "disallowed"], - [[3329, 3329], "valid"], - [[3330, 3331], "valid"], - [[3332, 3332], "disallowed"], - [[3333, 3340], "valid"], - [[3341, 3341], "disallowed"], - [[3342, 3344], "valid"], - [[3345, 3345], "disallowed"], - [[3346, 3368], "valid"], - [[3369, 3369], "valid"], - [[3370, 3385], "valid"], - [[3386, 3386], "valid"], - [[3387, 3388], "disallowed"], - [[3389, 3389], "valid"], - [[3390, 3395], "valid"], - [[3396, 3396], "valid"], - [[3397, 3397], "disallowed"], - [[3398, 3400], "valid"], - [[3401, 3401], "disallowed"], - [[3402, 3405], "valid"], - [[3406, 3406], "valid"], - [[3407, 3414], "disallowed"], - [[3415, 3415], "valid"], - [[3416, 3422], "disallowed"], - [[3423, 3423], "valid"], - [[3424, 3425], "valid"], - [[3426, 3427], "valid"], - [[3428, 3429], "disallowed"], - [[3430, 3439], "valid"], - [ - [3440, 3445], - "valid", - [], - "NV8" - ], - [[3446, 3448], "disallowed"], - [ - [3449, 3449], - "valid", - [], - "NV8" - ], - [[3450, 3455], "valid"], - [[3456, 3457], "disallowed"], - [[3458, 3459], "valid"], - [[3460, 3460], "disallowed"], - [[3461, 3478], "valid"], - [[3479, 3481], "disallowed"], - [[3482, 3505], "valid"], - [[3506, 3506], "disallowed"], - [[3507, 3515], "valid"], - [[3516, 3516], "disallowed"], - [[3517, 3517], "valid"], - [[3518, 3519], "disallowed"], - [[3520, 3526], "valid"], - [[3527, 3529], "disallowed"], - [[3530, 3530], "valid"], - [[3531, 3534], "disallowed"], - [[3535, 3540], "valid"], - [[3541, 3541], "disallowed"], - [[3542, 3542], "valid"], - [[3543, 3543], "disallowed"], - [[3544, 3551], "valid"], - [[3552, 3557], "disallowed"], - [[3558, 3567], "valid"], - [[3568, 3569], "disallowed"], - [[3570, 3571], "valid"], - [ - [3572, 3572], - "valid", - [], - "NV8" - ], - [[3573, 3584], "disallowed"], - [[3585, 3634], "valid"], - [ - [3635, 3635], - "mapped", - [3661, 3634] - ], - [[3636, 3642], "valid"], - [[3643, 3646], "disallowed"], - [ - [3647, 3647], - "valid", - [], - "NV8" - ], - [[3648, 3662], "valid"], - [ - [3663, 3663], - "valid", - [], - "NV8" - ], - [[3664, 3673], "valid"], - [ - [3674, 3675], - "valid", - [], - "NV8" - ], - [[3676, 3712], "disallowed"], - [[3713, 3714], "valid"], - [[3715, 3715], "disallowed"], - [[3716, 3716], "valid"], - [[3717, 3718], "disallowed"], - [[3719, 3720], "valid"], - [[3721, 3721], "disallowed"], - [[3722, 3722], "valid"], - [[3723, 3724], "disallowed"], - [[3725, 3725], "valid"], - [[3726, 3731], "disallowed"], - [[3732, 3735], "valid"], - [[3736, 3736], "disallowed"], - [[3737, 3743], "valid"], - [[3744, 3744], "disallowed"], - [[3745, 3747], "valid"], - [[3748, 3748], "disallowed"], - [[3749, 3749], "valid"], - [[3750, 3750], "disallowed"], - [[3751, 3751], "valid"], - [[3752, 3753], "disallowed"], - [[3754, 3755], "valid"], - [[3756, 3756], "disallowed"], - [[3757, 3762], "valid"], - [ - [3763, 3763], - "mapped", - [3789, 3762] - ], - [[3764, 3769], "valid"], - [[3770, 3770], "disallowed"], - [[3771, 3773], "valid"], - [[3774, 3775], "disallowed"], - [[3776, 3780], "valid"], - [[3781, 3781], "disallowed"], - [[3782, 3782], "valid"], - [[3783, 3783], "disallowed"], - [[3784, 3789], "valid"], - [[3790, 3791], "disallowed"], - [[3792, 3801], "valid"], - [[3802, 3803], "disallowed"], - [ - [3804, 3804], - "mapped", - [3755, 3737] - ], - [ - [3805, 3805], - "mapped", - [3755, 3745] - ], - [[3806, 3807], "valid"], - [[3808, 3839], "disallowed"], - [[3840, 3840], "valid"], - [ - [3841, 3850], - "valid", - [], - "NV8" - ], - [[3851, 3851], "valid"], - [ - [3852, 3852], - "mapped", - [3851] - ], - [ - [3853, 3863], - "valid", - [], - "NV8" - ], - [[3864, 3865], "valid"], - [ - [3866, 3871], - "valid", - [], - "NV8" - ], - [[3872, 3881], "valid"], - [ - [3882, 3892], - "valid", - [], - "NV8" - ], - [[3893, 3893], "valid"], - [ - [3894, 3894], - "valid", - [], - "NV8" - ], - [[3895, 3895], "valid"], - [ - [3896, 3896], - "valid", - [], - "NV8" - ], - [[3897, 3897], "valid"], - [ - [3898, 3901], - "valid", - [], - "NV8" - ], - [[3902, 3906], "valid"], - [ - [3907, 3907], - "mapped", - [3906, 4023] - ], - [[3908, 3911], "valid"], - [[3912, 3912], "disallowed"], - [[3913, 3916], "valid"], - [ - [3917, 3917], - "mapped", - [3916, 4023] - ], - [[3918, 3921], "valid"], - [ - [3922, 3922], - "mapped", - [3921, 4023] - ], - [[3923, 3926], "valid"], - [ - [3927, 3927], - "mapped", - [3926, 4023] - ], - [[3928, 3931], "valid"], - [ - [3932, 3932], - "mapped", - [3931, 4023] - ], - [[3933, 3944], "valid"], - [ - [3945, 3945], - "mapped", - [3904, 4021] - ], - [[3946, 3946], "valid"], - [[3947, 3948], "valid"], - [[3949, 3952], "disallowed"], - [[3953, 3954], "valid"], - [ - [3955, 3955], - "mapped", - [3953, 3954] - ], - [[3956, 3956], "valid"], - [ - [3957, 3957], - "mapped", - [3953, 3956] - ], - [ - [3958, 3958], - "mapped", - [4018, 3968] - ], - [ - [3959, 3959], - "mapped", - [ - 4018, - 3953, - 3968 - ] - ], - [ - [3960, 3960], - "mapped", - [4019, 3968] - ], - [ - [3961, 3961], - "mapped", - [ - 4019, - 3953, - 3968 - ] - ], - [[3962, 3968], "valid"], - [ - [3969, 3969], - "mapped", - [3953, 3968] - ], - [[3970, 3972], "valid"], - [ - [3973, 3973], - "valid", - [], - "NV8" - ], - [[3974, 3979], "valid"], - [[3980, 3983], "valid"], - [[3984, 3986], "valid"], - [ - [3987, 3987], - "mapped", - [3986, 4023] - ], - [[3988, 3989], "valid"], - [[3990, 3990], "valid"], - [[3991, 3991], "valid"], - [[3992, 3992], "disallowed"], - [[3993, 3996], "valid"], - [ - [3997, 3997], - "mapped", - [3996, 4023] - ], - [[3998, 4001], "valid"], - [ - [4002, 4002], - "mapped", - [4001, 4023] - ], - [[4003, 4006], "valid"], - [ - [4007, 4007], - "mapped", - [4006, 4023] - ], - [[4008, 4011], "valid"], - [ - [4012, 4012], - "mapped", - [4011, 4023] - ], - [[4013, 4013], "valid"], - [[4014, 4016], "valid"], - [[4017, 4023], "valid"], - [[4024, 4024], "valid"], - [ - [4025, 4025], - "mapped", - [3984, 4021] - ], - [[4026, 4028], "valid"], - [[4029, 4029], "disallowed"], - [ - [4030, 4037], - "valid", - [], - "NV8" - ], - [[4038, 4038], "valid"], - [ - [4039, 4044], - "valid", - [], - "NV8" - ], - [[4045, 4045], "disallowed"], - [ - [4046, 4046], - "valid", - [], - "NV8" - ], - [ - [4047, 4047], - "valid", - [], - "NV8" - ], - [ - [4048, 4049], - "valid", - [], - "NV8" - ], - [ - [4050, 4052], - "valid", - [], - "NV8" - ], - [ - [4053, 4056], - "valid", - [], - "NV8" - ], - [ - [4057, 4058], - "valid", - [], - "NV8" - ], - [[4059, 4095], "disallowed"], - [[4096, 4129], "valid"], - [[4130, 4130], "valid"], - [[4131, 4135], "valid"], - [[4136, 4136], "valid"], - [[4137, 4138], "valid"], - [[4139, 4139], "valid"], - [[4140, 4146], "valid"], - [[4147, 4149], "valid"], - [[4150, 4153], "valid"], - [[4154, 4159], "valid"], - [[4160, 4169], "valid"], - [ - [4170, 4175], - "valid", - [], - "NV8" - ], - [[4176, 4185], "valid"], - [[4186, 4249], "valid"], - [[4250, 4253], "valid"], - [ - [4254, 4255], - "valid", - [], - "NV8" - ], - [[4256, 4293], "disallowed"], - [[4294, 4294], "disallowed"], - [ - [4295, 4295], - "mapped", - [11559] - ], - [[4296, 4300], "disallowed"], - [ - [4301, 4301], - "mapped", - [11565] - ], - [[4302, 4303], "disallowed"], - [[4304, 4342], "valid"], - [[4343, 4344], "valid"], - [[4345, 4346], "valid"], - [ - [4347, 4347], - "valid", - [], - "NV8" - ], - [ - [4348, 4348], - "mapped", - [4316] - ], - [[4349, 4351], "valid"], - [ - [4352, 4441], - "valid", - [], - "NV8" - ], - [ - [4442, 4446], - "valid", - [], - "NV8" - ], - [[4447, 4448], "disallowed"], - [ - [4449, 4514], - "valid", - [], - "NV8" - ], - [ - [4515, 4519], - "valid", - [], - "NV8" - ], - [ - [4520, 4601], - "valid", - [], - "NV8" - ], - [ - [4602, 4607], - "valid", - [], - "NV8" - ], - [[4608, 4614], "valid"], - [[4615, 4615], "valid"], - [[4616, 4678], "valid"], - [[4679, 4679], "valid"], - [[4680, 4680], "valid"], - [[4681, 4681], "disallowed"], - [[4682, 4685], "valid"], - [[4686, 4687], "disallowed"], - [[4688, 4694], "valid"], - [[4695, 4695], "disallowed"], - [[4696, 4696], "valid"], - [[4697, 4697], "disallowed"], - [[4698, 4701], "valid"], - [[4702, 4703], "disallowed"], - [[4704, 4742], "valid"], - [[4743, 4743], "valid"], - [[4744, 4744], "valid"], - [[4745, 4745], "disallowed"], - [[4746, 4749], "valid"], - [[4750, 4751], "disallowed"], - [[4752, 4782], "valid"], - [[4783, 4783], "valid"], - [[4784, 4784], "valid"], - [[4785, 4785], "disallowed"], - [[4786, 4789], "valid"], - [[4790, 4791], "disallowed"], - [[4792, 4798], "valid"], - [[4799, 4799], "disallowed"], - [[4800, 4800], "valid"], - [[4801, 4801], "disallowed"], - [[4802, 4805], "valid"], - [[4806, 4807], "disallowed"], - [[4808, 4814], "valid"], - [[4815, 4815], "valid"], - [[4816, 4822], "valid"], - [[4823, 4823], "disallowed"], - [[4824, 4846], "valid"], - [[4847, 4847], "valid"], - [[4848, 4878], "valid"], - [[4879, 4879], "valid"], - [[4880, 4880], "valid"], - [[4881, 4881], "disallowed"], - [[4882, 4885], "valid"], - [[4886, 4887], "disallowed"], - [[4888, 4894], "valid"], - [[4895, 4895], "valid"], - [[4896, 4934], "valid"], - [[4935, 4935], "valid"], - [[4936, 4954], "valid"], - [[4955, 4956], "disallowed"], - [[4957, 4958], "valid"], - [[4959, 4959], "valid"], - [ - [4960, 4960], - "valid", - [], - "NV8" - ], - [ - [4961, 4988], - "valid", - [], - "NV8" - ], - [[4989, 4991], "disallowed"], - [[4992, 5007], "valid"], - [ - [5008, 5017], - "valid", - [], - "NV8" - ], - [[5018, 5023], "disallowed"], - [[5024, 5108], "valid"], - [[5109, 5109], "valid"], - [[5110, 5111], "disallowed"], - [ - [5112, 5112], - "mapped", - [5104] - ], - [ - [5113, 5113], - "mapped", - [5105] - ], - [ - [5114, 5114], - "mapped", - [5106] - ], - [ - [5115, 5115], - "mapped", - [5107] - ], - [ - [5116, 5116], - "mapped", - [5108] - ], - [ - [5117, 5117], - "mapped", - [5109] - ], - [[5118, 5119], "disallowed"], - [ - [5120, 5120], - "valid", - [], - "NV8" - ], - [[5121, 5740], "valid"], - [ - [5741, 5742], - "valid", - [], - "NV8" - ], - [[5743, 5750], "valid"], - [[5751, 5759], "valid"], - [[5760, 5760], "disallowed"], - [[5761, 5786], "valid"], - [ - [5787, 5788], - "valid", - [], - "NV8" - ], - [[5789, 5791], "disallowed"], - [[5792, 5866], "valid"], - [ - [5867, 5872], - "valid", - [], - "NV8" - ], - [[5873, 5880], "valid"], - [[5881, 5887], "disallowed"], - [[5888, 5900], "valid"], - [[5901, 5901], "disallowed"], - [[5902, 5908], "valid"], - [[5909, 5919], "disallowed"], - [[5920, 5940], "valid"], - [ - [5941, 5942], - "valid", - [], - "NV8" - ], - [[5943, 5951], "disallowed"], - [[5952, 5971], "valid"], - [[5972, 5983], "disallowed"], - [[5984, 5996], "valid"], - [[5997, 5997], "disallowed"], - [[5998, 6e3], "valid"], - [[6001, 6001], "disallowed"], - [[6002, 6003], "valid"], - [[6004, 6015], "disallowed"], - [[6016, 6067], "valid"], - [[6068, 6069], "disallowed"], - [[6070, 6099], "valid"], - [ - [6100, 6102], - "valid", - [], - "NV8" - ], - [[6103, 6103], "valid"], - [ - [6104, 6107], - "valid", - [], - "NV8" - ], - [[6108, 6108], "valid"], - [[6109, 6109], "valid"], - [[6110, 6111], "disallowed"], - [[6112, 6121], "valid"], - [[6122, 6127], "disallowed"], - [ - [6128, 6137], - "valid", - [], - "NV8" - ], - [[6138, 6143], "disallowed"], - [ - [6144, 6149], - "valid", - [], - "NV8" - ], - [[6150, 6150], "disallowed"], - [ - [6151, 6154], - "valid", - [], - "NV8" - ], - [[6155, 6157], "ignored"], - [[6158, 6158], "disallowed"], - [[6159, 6159], "disallowed"], - [[6160, 6169], "valid"], - [[6170, 6175], "disallowed"], - [[6176, 6263], "valid"], - [[6264, 6271], "disallowed"], - [[6272, 6313], "valid"], - [[6314, 6314], "valid"], - [[6315, 6319], "disallowed"], - [[6320, 6389], "valid"], - [[6390, 6399], "disallowed"], - [[6400, 6428], "valid"], - [[6429, 6430], "valid"], - [[6431, 6431], "disallowed"], - [[6432, 6443], "valid"], - [[6444, 6447], "disallowed"], - [[6448, 6459], "valid"], - [[6460, 6463], "disallowed"], - [ - [6464, 6464], - "valid", - [], - "NV8" - ], - [[6465, 6467], "disallowed"], - [ - [6468, 6469], - "valid", - [], - "NV8" - ], - [[6470, 6509], "valid"], - [[6510, 6511], "disallowed"], - [[6512, 6516], "valid"], - [[6517, 6527], "disallowed"], - [[6528, 6569], "valid"], - [[6570, 6571], "valid"], - [[6572, 6575], "disallowed"], - [[6576, 6601], "valid"], - [[6602, 6607], "disallowed"], - [[6608, 6617], "valid"], - [ - [6618, 6618], - "valid", - [], - "XV8" - ], - [[6619, 6621], "disallowed"], - [ - [6622, 6623], - "valid", - [], - "NV8" - ], - [ - [6624, 6655], - "valid", - [], - "NV8" - ], - [[6656, 6683], "valid"], - [[6684, 6685], "disallowed"], - [ - [6686, 6687], - "valid", - [], - "NV8" - ], - [[6688, 6750], "valid"], - [[6751, 6751], "disallowed"], - [[6752, 6780], "valid"], - [[6781, 6782], "disallowed"], - [[6783, 6793], "valid"], - [[6794, 6799], "disallowed"], - [[6800, 6809], "valid"], - [[6810, 6815], "disallowed"], - [ - [6816, 6822], - "valid", - [], - "NV8" - ], - [[6823, 6823], "valid"], - [ - [6824, 6829], - "valid", - [], - "NV8" - ], - [[6830, 6831], "disallowed"], - [[6832, 6845], "valid"], - [ - [6846, 6846], - "valid", - [], - "NV8" - ], - [[6847, 6911], "disallowed"], - [[6912, 6987], "valid"], - [[6988, 6991], "disallowed"], - [[6992, 7001], "valid"], - [ - [7002, 7018], - "valid", - [], - "NV8" - ], - [[7019, 7027], "valid"], - [ - [7028, 7036], - "valid", - [], - "NV8" - ], - [[7037, 7039], "disallowed"], - [[7040, 7082], "valid"], - [[7083, 7085], "valid"], - [[7086, 7097], "valid"], - [[7098, 7103], "valid"], - [[7104, 7155], "valid"], - [[7156, 7163], "disallowed"], - [ - [7164, 7167], - "valid", - [], - "NV8" - ], - [[7168, 7223], "valid"], - [[7224, 7226], "disallowed"], - [ - [7227, 7231], - "valid", - [], - "NV8" - ], - [[7232, 7241], "valid"], - [[7242, 7244], "disallowed"], - [[7245, 7293], "valid"], - [ - [7294, 7295], - "valid", - [], - "NV8" - ], - [[7296, 7359], "disallowed"], - [ - [7360, 7367], - "valid", - [], - "NV8" - ], - [[7368, 7375], "disallowed"], - [[7376, 7378], "valid"], - [ - [7379, 7379], - "valid", - [], - "NV8" - ], - [[7380, 7410], "valid"], - [[7411, 7414], "valid"], - [[7415, 7415], "disallowed"], - [[7416, 7417], "valid"], - [[7418, 7423], "disallowed"], - [[7424, 7467], "valid"], - [ - [7468, 7468], - "mapped", - [97] - ], - [ - [7469, 7469], - "mapped", - [230] - ], - [ - [7470, 7470], - "mapped", - [98] - ], - [[7471, 7471], "valid"], - [ - [7472, 7472], - "mapped", - [100] - ], - [ - [7473, 7473], - "mapped", - [101] - ], - [ - [7474, 7474], - "mapped", - [477] - ], - [ - [7475, 7475], - "mapped", - [103] - ], - [ - [7476, 7476], - "mapped", - [104] - ], - [ - [7477, 7477], - "mapped", - [105] - ], - [ - [7478, 7478], - "mapped", - [106] - ], - [ - [7479, 7479], - "mapped", - [107] - ], - [ - [7480, 7480], - "mapped", - [108] - ], - [ - [7481, 7481], - "mapped", - [109] - ], - [ - [7482, 7482], - "mapped", - [110] - ], - [[7483, 7483], "valid"], - [ - [7484, 7484], - "mapped", - [111] - ], - [ - [7485, 7485], - "mapped", - [547] - ], - [ - [7486, 7486], - "mapped", - [112] - ], - [ - [7487, 7487], - "mapped", - [114] - ], - [ - [7488, 7488], - "mapped", - [116] - ], - [ - [7489, 7489], - "mapped", - [117] - ], - [ - [7490, 7490], - "mapped", - [119] - ], - [ - [7491, 7491], - "mapped", - [97] - ], - [ - [7492, 7492], - "mapped", - [592] - ], - [ - [7493, 7493], - "mapped", - [593] - ], - [ - [7494, 7494], - "mapped", - [7426] - ], - [ - [7495, 7495], - "mapped", - [98] - ], - [ - [7496, 7496], - "mapped", - [100] - ], - [ - [7497, 7497], - "mapped", - [101] - ], - [ - [7498, 7498], - "mapped", - [601] - ], - [ - [7499, 7499], - "mapped", - [603] - ], - [ - [7500, 7500], - "mapped", - [604] - ], - [ - [7501, 7501], - "mapped", - [103] - ], - [[7502, 7502], "valid"], - [ - [7503, 7503], - "mapped", - [107] - ], - [ - [7504, 7504], - "mapped", - [109] - ], - [ - [7505, 7505], - "mapped", - [331] - ], - [ - [7506, 7506], - "mapped", - [111] - ], - [ - [7507, 7507], - "mapped", - [596] - ], - [ - [7508, 7508], - "mapped", - [7446] - ], - [ - [7509, 7509], - "mapped", - [7447] - ], - [ - [7510, 7510], - "mapped", - [112] - ], - [ - [7511, 7511], - "mapped", - [116] - ], - [ - [7512, 7512], - "mapped", - [117] - ], - [ - [7513, 7513], - "mapped", - [7453] - ], - [ - [7514, 7514], - "mapped", - [623] - ], - [ - [7515, 7515], - "mapped", - [118] - ], - [ - [7516, 7516], - "mapped", - [7461] - ], - [ - [7517, 7517], - "mapped", - [946] - ], - [ - [7518, 7518], - "mapped", - [947] - ], - [ - [7519, 7519], - "mapped", - [948] - ], - [ - [7520, 7520], - "mapped", - [966] - ], - [ - [7521, 7521], - "mapped", - [967] - ], - [ - [7522, 7522], - "mapped", - [105] - ], - [ - [7523, 7523], - "mapped", - [114] - ], - [ - [7524, 7524], - "mapped", - [117] - ], - [ - [7525, 7525], - "mapped", - [118] - ], - [ - [7526, 7526], - "mapped", - [946] - ], - [ - [7527, 7527], - "mapped", - [947] - ], - [ - [7528, 7528], - "mapped", - [961] - ], - [ - [7529, 7529], - "mapped", - [966] - ], - [ - [7530, 7530], - "mapped", - [967] - ], - [[7531, 7531], "valid"], - [[7532, 7543], "valid"], - [ - [7544, 7544], - "mapped", - [1085] - ], - [[7545, 7578], "valid"], - [ - [7579, 7579], - "mapped", - [594] - ], - [ - [7580, 7580], - "mapped", - [99] - ], - [ - [7581, 7581], - "mapped", - [597] - ], - [ - [7582, 7582], - "mapped", - [240] - ], - [ - [7583, 7583], - "mapped", - [604] - ], - [ - [7584, 7584], - "mapped", - [102] - ], - [ - [7585, 7585], - "mapped", - [607] - ], - [ - [7586, 7586], - "mapped", - [609] - ], - [ - [7587, 7587], - "mapped", - [613] - ], - [ - [7588, 7588], - "mapped", - [616] - ], - [ - [7589, 7589], - "mapped", - [617] - ], - [ - [7590, 7590], - "mapped", - [618] - ], - [ - [7591, 7591], - "mapped", - [7547] - ], - [ - [7592, 7592], - "mapped", - [669] - ], - [ - [7593, 7593], - "mapped", - [621] - ], - [ - [7594, 7594], - "mapped", - [7557] - ], - [ - [7595, 7595], - "mapped", - [671] - ], - [ - [7596, 7596], - "mapped", - [625] - ], - [ - [7597, 7597], - "mapped", - [624] - ], - [ - [7598, 7598], - "mapped", - [626] - ], - [ - [7599, 7599], - "mapped", - [627] - ], - [ - [7600, 7600], - "mapped", - [628] - ], - [ - [7601, 7601], - "mapped", - [629] - ], - [ - [7602, 7602], - "mapped", - [632] - ], - [ - [7603, 7603], - "mapped", - [642] - ], - [ - [7604, 7604], - "mapped", - [643] - ], - [ - [7605, 7605], - "mapped", - [427] - ], - [ - [7606, 7606], - "mapped", - [649] - ], - [ - [7607, 7607], - "mapped", - [650] - ], - [ - [7608, 7608], - "mapped", - [7452] - ], - [ - [7609, 7609], - "mapped", - [651] - ], - [ - [7610, 7610], - "mapped", - [652] - ], - [ - [7611, 7611], - "mapped", - [122] - ], - [ - [7612, 7612], - "mapped", - [656] - ], - [ - [7613, 7613], - "mapped", - [657] - ], - [ - [7614, 7614], - "mapped", - [658] - ], - [ - [7615, 7615], - "mapped", - [952] - ], - [[7616, 7619], "valid"], - [[7620, 7626], "valid"], - [[7627, 7654], "valid"], - [[7655, 7669], "valid"], - [[7670, 7675], "disallowed"], - [[7676, 7676], "valid"], - [[7677, 7677], "valid"], - [[7678, 7679], "valid"], - [ - [7680, 7680], - "mapped", - [7681] - ], - [[7681, 7681], "valid"], - [ - [7682, 7682], - "mapped", - [7683] - ], - [[7683, 7683], "valid"], - [ - [7684, 7684], - "mapped", - [7685] - ], - [[7685, 7685], "valid"], - [ - [7686, 7686], - "mapped", - [7687] - ], - [[7687, 7687], "valid"], - [ - [7688, 7688], - "mapped", - [7689] - ], - [[7689, 7689], "valid"], - [ - [7690, 7690], - "mapped", - [7691] - ], - [[7691, 7691], "valid"], - [ - [7692, 7692], - "mapped", - [7693] - ], - [[7693, 7693], "valid"], - [ - [7694, 7694], - "mapped", - [7695] - ], - [[7695, 7695], "valid"], - [ - [7696, 7696], - "mapped", - [7697] - ], - [[7697, 7697], "valid"], - [ - [7698, 7698], - "mapped", - [7699] - ], - [[7699, 7699], "valid"], - [ - [7700, 7700], - "mapped", - [7701] - ], - [[7701, 7701], "valid"], - [ - [7702, 7702], - "mapped", - [7703] - ], - [[7703, 7703], "valid"], - [ - [7704, 7704], - "mapped", - [7705] - ], - [[7705, 7705], "valid"], - [ - [7706, 7706], - "mapped", - [7707] - ], - [[7707, 7707], "valid"], - [ - [7708, 7708], - "mapped", - [7709] - ], - [[7709, 7709], "valid"], - [ - [7710, 7710], - "mapped", - [7711] - ], - [[7711, 7711], "valid"], - [ - [7712, 7712], - "mapped", - [7713] - ], - [[7713, 7713], "valid"], - [ - [7714, 7714], - "mapped", - [7715] - ], - [[7715, 7715], "valid"], - [ - [7716, 7716], - "mapped", - [7717] - ], - [[7717, 7717], "valid"], - [ - [7718, 7718], - "mapped", - [7719] - ], - [[7719, 7719], "valid"], - [ - [7720, 7720], - "mapped", - [7721] - ], - [[7721, 7721], "valid"], - [ - [7722, 7722], - "mapped", - [7723] - ], - [[7723, 7723], "valid"], - [ - [7724, 7724], - "mapped", - [7725] - ], - [[7725, 7725], "valid"], - [ - [7726, 7726], - "mapped", - [7727] - ], - [[7727, 7727], "valid"], - [ - [7728, 7728], - "mapped", - [7729] - ], - [[7729, 7729], "valid"], - [ - [7730, 7730], - "mapped", - [7731] - ], - [[7731, 7731], "valid"], - [ - [7732, 7732], - "mapped", - [7733] - ], - [[7733, 7733], "valid"], - [ - [7734, 7734], - "mapped", - [7735] - ], - [[7735, 7735], "valid"], - [ - [7736, 7736], - "mapped", - [7737] - ], - [[7737, 7737], "valid"], - [ - [7738, 7738], - "mapped", - [7739] - ], - [[7739, 7739], "valid"], - [ - [7740, 7740], - "mapped", - [7741] - ], - [[7741, 7741], "valid"], - [ - [7742, 7742], - "mapped", - [7743] - ], - [[7743, 7743], "valid"], - [ - [7744, 7744], - "mapped", - [7745] - ], - [[7745, 7745], "valid"], - [ - [7746, 7746], - "mapped", - [7747] - ], - [[7747, 7747], "valid"], - [ - [7748, 7748], - "mapped", - [7749] - ], - [[7749, 7749], "valid"], - [ - [7750, 7750], - "mapped", - [7751] - ], - [[7751, 7751], "valid"], - [ - [7752, 7752], - "mapped", - [7753] - ], - [[7753, 7753], "valid"], - [ - [7754, 7754], - "mapped", - [7755] - ], - [[7755, 7755], "valid"], - [ - [7756, 7756], - "mapped", - [7757] - ], - [[7757, 7757], "valid"], - [ - [7758, 7758], - "mapped", - [7759] - ], - [[7759, 7759], "valid"], - [ - [7760, 7760], - "mapped", - [7761] - ], - [[7761, 7761], "valid"], - [ - [7762, 7762], - "mapped", - [7763] - ], - [[7763, 7763], "valid"], - [ - [7764, 7764], - "mapped", - [7765] - ], - [[7765, 7765], "valid"], - [ - [7766, 7766], - "mapped", - [7767] - ], - [[7767, 7767], "valid"], - [ - [7768, 7768], - "mapped", - [7769] - ], - [[7769, 7769], "valid"], - [ - [7770, 7770], - "mapped", - [7771] - ], - [[7771, 7771], "valid"], - [ - [7772, 7772], - "mapped", - [7773] - ], - [[7773, 7773], "valid"], - [ - [7774, 7774], - "mapped", - [7775] - ], - [[7775, 7775], "valid"], - [ - [7776, 7776], - "mapped", - [7777] - ], - [[7777, 7777], "valid"], - [ - [7778, 7778], - "mapped", - [7779] - ], - [[7779, 7779], "valid"], - [ - [7780, 7780], - "mapped", - [7781] - ], - [[7781, 7781], "valid"], - [ - [7782, 7782], - "mapped", - [7783] - ], - [[7783, 7783], "valid"], - [ - [7784, 7784], - "mapped", - [7785] - ], - [[7785, 7785], "valid"], - [ - [7786, 7786], - "mapped", - [7787] - ], - [[7787, 7787], "valid"], - [ - [7788, 7788], - "mapped", - [7789] - ], - [[7789, 7789], "valid"], - [ - [7790, 7790], - "mapped", - [7791] - ], - [[7791, 7791], "valid"], - [ - [7792, 7792], - "mapped", - [7793] - ], - [[7793, 7793], "valid"], - [ - [7794, 7794], - "mapped", - [7795] - ], - [[7795, 7795], "valid"], - [ - [7796, 7796], - "mapped", - [7797] - ], - [[7797, 7797], "valid"], - [ - [7798, 7798], - "mapped", - [7799] - ], - [[7799, 7799], "valid"], - [ - [7800, 7800], - "mapped", - [7801] - ], - [[7801, 7801], "valid"], - [ - [7802, 7802], - "mapped", - [7803] - ], - [[7803, 7803], "valid"], - [ - [7804, 7804], - "mapped", - [7805] - ], - [[7805, 7805], "valid"], - [ - [7806, 7806], - "mapped", - [7807] - ], - [[7807, 7807], "valid"], - [ - [7808, 7808], - "mapped", - [7809] - ], - [[7809, 7809], "valid"], - [ - [7810, 7810], - "mapped", - [7811] - ], - [[7811, 7811], "valid"], - [ - [7812, 7812], - "mapped", - [7813] - ], - [[7813, 7813], "valid"], - [ - [7814, 7814], - "mapped", - [7815] - ], - [[7815, 7815], "valid"], - [ - [7816, 7816], - "mapped", - [7817] - ], - [[7817, 7817], "valid"], - [ - [7818, 7818], - "mapped", - [7819] - ], - [[7819, 7819], "valid"], - [ - [7820, 7820], - "mapped", - [7821] - ], - [[7821, 7821], "valid"], - [ - [7822, 7822], - "mapped", - [7823] - ], - [[7823, 7823], "valid"], - [ - [7824, 7824], - "mapped", - [7825] - ], - [[7825, 7825], "valid"], - [ - [7826, 7826], - "mapped", - [7827] - ], - [[7827, 7827], "valid"], - [ - [7828, 7828], - "mapped", - [7829] - ], - [[7829, 7833], "valid"], - [ - [7834, 7834], - "mapped", - [97, 702] - ], - [ - [7835, 7835], - "mapped", - [7777] - ], - [[7836, 7837], "valid"], - [ - [7838, 7838], - "mapped", - [115, 115] - ], - [[7839, 7839], "valid"], - [ - [7840, 7840], - "mapped", - [7841] - ], - [[7841, 7841], "valid"], - [ - [7842, 7842], - "mapped", - [7843] - ], - [[7843, 7843], "valid"], - [ - [7844, 7844], - "mapped", - [7845] - ], - [[7845, 7845], "valid"], - [ - [7846, 7846], - "mapped", - [7847] - ], - [[7847, 7847], "valid"], - [ - [7848, 7848], - "mapped", - [7849] - ], - [[7849, 7849], "valid"], - [ - [7850, 7850], - "mapped", - [7851] - ], - [[7851, 7851], "valid"], - [ - [7852, 7852], - "mapped", - [7853] - ], - [[7853, 7853], "valid"], - [ - [7854, 7854], - "mapped", - [7855] - ], - [[7855, 7855], "valid"], - [ - [7856, 7856], - "mapped", - [7857] - ], - [[7857, 7857], "valid"], - [ - [7858, 7858], - "mapped", - [7859] - ], - [[7859, 7859], "valid"], - [ - [7860, 7860], - "mapped", - [7861] - ], - [[7861, 7861], "valid"], - [ - [7862, 7862], - "mapped", - [7863] - ], - [[7863, 7863], "valid"], - [ - [7864, 7864], - "mapped", - [7865] - ], - [[7865, 7865], "valid"], - [ - [7866, 7866], - "mapped", - [7867] - ], - [[7867, 7867], "valid"], - [ - [7868, 7868], - "mapped", - [7869] - ], - [[7869, 7869], "valid"], - [ - [7870, 7870], - "mapped", - [7871] - ], - [[7871, 7871], "valid"], - [ - [7872, 7872], - "mapped", - [7873] - ], - [[7873, 7873], "valid"], - [ - [7874, 7874], - "mapped", - [7875] - ], - [[7875, 7875], "valid"], - [ - [7876, 7876], - "mapped", - [7877] - ], - [[7877, 7877], "valid"], - [ - [7878, 7878], - "mapped", - [7879] - ], - [[7879, 7879], "valid"], - [ - [7880, 7880], - "mapped", - [7881] - ], - [[7881, 7881], "valid"], - [ - [7882, 7882], - "mapped", - [7883] - ], - [[7883, 7883], "valid"], - [ - [7884, 7884], - "mapped", - [7885] - ], - [[7885, 7885], "valid"], - [ - [7886, 7886], - "mapped", - [7887] - ], - [[7887, 7887], "valid"], - [ - [7888, 7888], - "mapped", - [7889] - ], - [[7889, 7889], "valid"], - [ - [7890, 7890], - "mapped", - [7891] - ], - [[7891, 7891], "valid"], - [ - [7892, 7892], - "mapped", - [7893] - ], - [[7893, 7893], "valid"], - [ - [7894, 7894], - "mapped", - [7895] - ], - [[7895, 7895], "valid"], - [ - [7896, 7896], - "mapped", - [7897] - ], - [[7897, 7897], "valid"], - [ - [7898, 7898], - "mapped", - [7899] - ], - [[7899, 7899], "valid"], - [ - [7900, 7900], - "mapped", - [7901] - ], - [[7901, 7901], "valid"], - [ - [7902, 7902], - "mapped", - [7903] - ], - [[7903, 7903], "valid"], - [ - [7904, 7904], - "mapped", - [7905] - ], - [[7905, 7905], "valid"], - [ - [7906, 7906], - "mapped", - [7907] - ], - [[7907, 7907], "valid"], - [ - [7908, 7908], - "mapped", - [7909] - ], - [[7909, 7909], "valid"], - [ - [7910, 7910], - "mapped", - [7911] - ], - [[7911, 7911], "valid"], - [ - [7912, 7912], - "mapped", - [7913] - ], - [[7913, 7913], "valid"], - [ - [7914, 7914], - "mapped", - [7915] - ], - [[7915, 7915], "valid"], - [ - [7916, 7916], - "mapped", - [7917] - ], - [[7917, 7917], "valid"], - [ - [7918, 7918], - "mapped", - [7919] - ], - [[7919, 7919], "valid"], - [ - [7920, 7920], - "mapped", - [7921] - ], - [[7921, 7921], "valid"], - [ - [7922, 7922], - "mapped", - [7923] - ], - [[7923, 7923], "valid"], - [ - [7924, 7924], - "mapped", - [7925] - ], - [[7925, 7925], "valid"], - [ - [7926, 7926], - "mapped", - [7927] - ], - [[7927, 7927], "valid"], - [ - [7928, 7928], - "mapped", - [7929] - ], - [[7929, 7929], "valid"], - [ - [7930, 7930], - "mapped", - [7931] - ], - [[7931, 7931], "valid"], - [ - [7932, 7932], - "mapped", - [7933] - ], - [[7933, 7933], "valid"], - [ - [7934, 7934], - "mapped", - [7935] - ], - [[7935, 7935], "valid"], - [[7936, 7943], "valid"], - [ - [7944, 7944], - "mapped", - [7936] - ], - [ - [7945, 7945], - "mapped", - [7937] - ], - [ - [7946, 7946], - "mapped", - [7938] - ], - [ - [7947, 7947], - "mapped", - [7939] - ], - [ - [7948, 7948], - "mapped", - [7940] - ], - [ - [7949, 7949], - "mapped", - [7941] - ], - [ - [7950, 7950], - "mapped", - [7942] - ], - [ - [7951, 7951], - "mapped", - [7943] - ], - [[7952, 7957], "valid"], - [[7958, 7959], "disallowed"], - [ - [7960, 7960], - "mapped", - [7952] - ], - [ - [7961, 7961], - "mapped", - [7953] - ], - [ - [7962, 7962], - "mapped", - [7954] - ], - [ - [7963, 7963], - "mapped", - [7955] - ], - [ - [7964, 7964], - "mapped", - [7956] - ], - [ - [7965, 7965], - "mapped", - [7957] - ], - [[7966, 7967], "disallowed"], - [[7968, 7975], "valid"], - [ - [7976, 7976], - "mapped", - [7968] - ], - [ - [7977, 7977], - "mapped", - [7969] - ], - [ - [7978, 7978], - "mapped", - [7970] - ], - [ - [7979, 7979], - "mapped", - [7971] - ], - [ - [7980, 7980], - "mapped", - [7972] - ], - [ - [7981, 7981], - "mapped", - [7973] - ], - [ - [7982, 7982], - "mapped", - [7974] - ], - [ - [7983, 7983], - "mapped", - [7975] - ], - [[7984, 7991], "valid"], - [ - [7992, 7992], - "mapped", - [7984] - ], - [ - [7993, 7993], - "mapped", - [7985] - ], - [ - [7994, 7994], - "mapped", - [7986] - ], - [ - [7995, 7995], - "mapped", - [7987] - ], - [ - [7996, 7996], - "mapped", - [7988] - ], - [ - [7997, 7997], - "mapped", - [7989] - ], - [ - [7998, 7998], - "mapped", - [7990] - ], - [ - [7999, 7999], - "mapped", - [7991] - ], - [[8e3, 8005], "valid"], - [[8006, 8007], "disallowed"], - [ - [8008, 8008], - "mapped", - [8e3] - ], - [ - [8009, 8009], - "mapped", - [8001] - ], - [ - [8010, 8010], - "mapped", - [8002] - ], - [ - [8011, 8011], - "mapped", - [8003] - ], - [ - [8012, 8012], - "mapped", - [8004] - ], - [ - [8013, 8013], - "mapped", - [8005] - ], - [[8014, 8015], "disallowed"], - [[8016, 8023], "valid"], - [[8024, 8024], "disallowed"], - [ - [8025, 8025], - "mapped", - [8017] - ], - [[8026, 8026], "disallowed"], - [ - [8027, 8027], - "mapped", - [8019] - ], - [[8028, 8028], "disallowed"], - [ - [8029, 8029], - "mapped", - [8021] - ], - [[8030, 8030], "disallowed"], - [ - [8031, 8031], - "mapped", - [8023] - ], - [[8032, 8039], "valid"], - [ - [8040, 8040], - "mapped", - [8032] - ], - [ - [8041, 8041], - "mapped", - [8033] - ], - [ - [8042, 8042], - "mapped", - [8034] - ], - [ - [8043, 8043], - "mapped", - [8035] - ], - [ - [8044, 8044], - "mapped", - [8036] - ], - [ - [8045, 8045], - "mapped", - [8037] - ], - [ - [8046, 8046], - "mapped", - [8038] - ], - [ - [8047, 8047], - "mapped", - [8039] - ], - [[8048, 8048], "valid"], - [ - [8049, 8049], - "mapped", - [940] - ], - [[8050, 8050], "valid"], - [ - [8051, 8051], - "mapped", - [941] - ], - [[8052, 8052], "valid"], - [ - [8053, 8053], - "mapped", - [942] - ], - [[8054, 8054], "valid"], - [ - [8055, 8055], - "mapped", - [943] - ], - [[8056, 8056], "valid"], - [ - [8057, 8057], - "mapped", - [972] - ], - [[8058, 8058], "valid"], - [ - [8059, 8059], - "mapped", - [973] - ], - [[8060, 8060], "valid"], - [ - [8061, 8061], - "mapped", - [974] - ], - [[8062, 8063], "disallowed"], - [ - [8064, 8064], - "mapped", - [7936, 953] - ], - [ - [8065, 8065], - "mapped", - [7937, 953] - ], - [ - [8066, 8066], - "mapped", - [7938, 953] - ], - [ - [8067, 8067], - "mapped", - [7939, 953] - ], - [ - [8068, 8068], - "mapped", - [7940, 953] - ], - [ - [8069, 8069], - "mapped", - [7941, 953] - ], - [ - [8070, 8070], - "mapped", - [7942, 953] - ], - [ - [8071, 8071], - "mapped", - [7943, 953] - ], - [ - [8072, 8072], - "mapped", - [7936, 953] - ], - [ - [8073, 8073], - "mapped", - [7937, 953] - ], - [ - [8074, 8074], - "mapped", - [7938, 953] - ], - [ - [8075, 8075], - "mapped", - [7939, 953] - ], - [ - [8076, 8076], - "mapped", - [7940, 953] - ], - [ - [8077, 8077], - "mapped", - [7941, 953] - ], - [ - [8078, 8078], - "mapped", - [7942, 953] - ], - [ - [8079, 8079], - "mapped", - [7943, 953] - ], - [ - [8080, 8080], - "mapped", - [7968, 953] - ], - [ - [8081, 8081], - "mapped", - [7969, 953] - ], - [ - [8082, 8082], - "mapped", - [7970, 953] - ], - [ - [8083, 8083], - "mapped", - [7971, 953] - ], - [ - [8084, 8084], - "mapped", - [7972, 953] - ], - [ - [8085, 8085], - "mapped", - [7973, 953] - ], - [ - [8086, 8086], - "mapped", - [7974, 953] - ], - [ - [8087, 8087], - "mapped", - [7975, 953] - ], - [ - [8088, 8088], - "mapped", - [7968, 953] - ], - [ - [8089, 8089], - "mapped", - [7969, 953] - ], - [ - [8090, 8090], - "mapped", - [7970, 953] - ], - [ - [8091, 8091], - "mapped", - [7971, 953] - ], - [ - [8092, 8092], - "mapped", - [7972, 953] - ], - [ - [8093, 8093], - "mapped", - [7973, 953] - ], - [ - [8094, 8094], - "mapped", - [7974, 953] - ], - [ - [8095, 8095], - "mapped", - [7975, 953] - ], - [ - [8096, 8096], - "mapped", - [8032, 953] - ], - [ - [8097, 8097], - "mapped", - [8033, 953] - ], - [ - [8098, 8098], - "mapped", - [8034, 953] - ], - [ - [8099, 8099], - "mapped", - [8035, 953] - ], - [ - [8100, 8100], - "mapped", - [8036, 953] - ], - [ - [8101, 8101], - "mapped", - [8037, 953] - ], - [ - [8102, 8102], - "mapped", - [8038, 953] - ], - [ - [8103, 8103], - "mapped", - [8039, 953] - ], - [ - [8104, 8104], - "mapped", - [8032, 953] - ], - [ - [8105, 8105], - "mapped", - [8033, 953] - ], - [ - [8106, 8106], - "mapped", - [8034, 953] - ], - [ - [8107, 8107], - "mapped", - [8035, 953] - ], - [ - [8108, 8108], - "mapped", - [8036, 953] - ], - [ - [8109, 8109], - "mapped", - [8037, 953] - ], - [ - [8110, 8110], - "mapped", - [8038, 953] - ], - [ - [8111, 8111], - "mapped", - [8039, 953] - ], - [[8112, 8113], "valid"], - [ - [8114, 8114], - "mapped", - [8048, 953] - ], - [ - [8115, 8115], - "mapped", - [945, 953] - ], - [ - [8116, 8116], - "mapped", - [940, 953] - ], - [[8117, 8117], "disallowed"], - [[8118, 8118], "valid"], - [ - [8119, 8119], - "mapped", - [8118, 953] - ], - [ - [8120, 8120], - "mapped", - [8112] - ], - [ - [8121, 8121], - "mapped", - [8113] - ], - [ - [8122, 8122], - "mapped", - [8048] - ], - [ - [8123, 8123], - "mapped", - [940] - ], - [ - [8124, 8124], - "mapped", - [945, 953] - ], - [ - [8125, 8125], - "disallowed_STD3_mapped", - [32, 787] - ], - [ - [8126, 8126], - "mapped", - [953] - ], - [ - [8127, 8127], - "disallowed_STD3_mapped", - [32, 787] - ], - [ - [8128, 8128], - "disallowed_STD3_mapped", - [32, 834] - ], - [ - [8129, 8129], - "disallowed_STD3_mapped", - [ - 32, - 776, - 834 - ] - ], - [ - [8130, 8130], - "mapped", - [8052, 953] - ], - [ - [8131, 8131], - "mapped", - [951, 953] - ], - [ - [8132, 8132], - "mapped", - [942, 953] - ], - [[8133, 8133], "disallowed"], - [[8134, 8134], "valid"], - [ - [8135, 8135], - "mapped", - [8134, 953] - ], - [ - [8136, 8136], - "mapped", - [8050] - ], - [ - [8137, 8137], - "mapped", - [941] - ], - [ - [8138, 8138], - "mapped", - [8052] - ], - [ - [8139, 8139], - "mapped", - [942] - ], - [ - [8140, 8140], - "mapped", - [951, 953] - ], - [ - [8141, 8141], - "disallowed_STD3_mapped", - [ - 32, - 787, - 768 - ] - ], - [ - [8142, 8142], - "disallowed_STD3_mapped", - [ - 32, - 787, - 769 - ] - ], - [ - [8143, 8143], - "disallowed_STD3_mapped", - [ - 32, - 787, - 834 - ] - ], - [[8144, 8146], "valid"], - [ - [8147, 8147], - "mapped", - [912] - ], - [[8148, 8149], "disallowed"], - [[8150, 8151], "valid"], - [ - [8152, 8152], - "mapped", - [8144] - ], - [ - [8153, 8153], - "mapped", - [8145] - ], - [ - [8154, 8154], - "mapped", - [8054] - ], - [ - [8155, 8155], - "mapped", - [943] - ], - [[8156, 8156], "disallowed"], - [ - [8157, 8157], - "disallowed_STD3_mapped", - [ - 32, - 788, - 768 - ] - ], - [ - [8158, 8158], - "disallowed_STD3_mapped", - [ - 32, - 788, - 769 - ] - ], - [ - [8159, 8159], - "disallowed_STD3_mapped", - [ - 32, - 788, - 834 - ] - ], - [[8160, 8162], "valid"], - [ - [8163, 8163], - "mapped", - [944] - ], - [[8164, 8167], "valid"], - [ - [8168, 8168], - "mapped", - [8160] - ], - [ - [8169, 8169], - "mapped", - [8161] - ], - [ - [8170, 8170], - "mapped", - [8058] - ], - [ - [8171, 8171], - "mapped", - [973] - ], - [ - [8172, 8172], - "mapped", - [8165] - ], - [ - [8173, 8173], - "disallowed_STD3_mapped", - [ - 32, - 776, - 768 - ] - ], - [ - [8174, 8174], - "disallowed_STD3_mapped", - [ - 32, - 776, - 769 - ] - ], - [ - [8175, 8175], - "disallowed_STD3_mapped", - [96] - ], - [[8176, 8177], "disallowed"], - [ - [8178, 8178], - "mapped", - [8060, 953] - ], - [ - [8179, 8179], - "mapped", - [969, 953] - ], - [ - [8180, 8180], - "mapped", - [974, 953] - ], - [[8181, 8181], "disallowed"], - [[8182, 8182], "valid"], - [ - [8183, 8183], - "mapped", - [8182, 953] - ], - [ - [8184, 8184], - "mapped", - [8056] - ], - [ - [8185, 8185], - "mapped", - [972] - ], - [ - [8186, 8186], - "mapped", - [8060] - ], - [ - [8187, 8187], - "mapped", - [974] - ], - [ - [8188, 8188], - "mapped", - [969, 953] - ], - [ - [8189, 8189], - "disallowed_STD3_mapped", - [32, 769] - ], - [ - [8190, 8190], - "disallowed_STD3_mapped", - [32, 788] - ], - [[8191, 8191], "disallowed"], - [ - [8192, 8202], - "disallowed_STD3_mapped", - [32] - ], - [[8203, 8203], "ignored"], - [ - [8204, 8205], - "deviation", - [] - ], - [[8206, 8207], "disallowed"], - [ - [8208, 8208], - "valid", - [], - "NV8" - ], - [ - [8209, 8209], - "mapped", - [8208] - ], - [ - [8210, 8214], - "valid", - [], - "NV8" - ], - [ - [8215, 8215], - "disallowed_STD3_mapped", - [32, 819] - ], - [ - [8216, 8227], - "valid", - [], - "NV8" - ], - [[8228, 8230], "disallowed"], - [ - [8231, 8231], - "valid", - [], - "NV8" - ], - [[8232, 8238], "disallowed"], - [ - [8239, 8239], - "disallowed_STD3_mapped", - [32] - ], - [ - [8240, 8242], - "valid", - [], - "NV8" - ], - [ - [8243, 8243], - "mapped", - [8242, 8242] - ], - [ - [8244, 8244], - "mapped", - [ - 8242, - 8242, - 8242 - ] - ], - [ - [8245, 8245], - "valid", - [], - "NV8" - ], - [ - [8246, 8246], - "mapped", - [8245, 8245] - ], - [ - [8247, 8247], - "mapped", - [ - 8245, - 8245, - 8245 - ] - ], - [ - [8248, 8251], - "valid", - [], - "NV8" - ], - [ - [8252, 8252], - "disallowed_STD3_mapped", - [33, 33] - ], - [ - [8253, 8253], - "valid", - [], - "NV8" - ], - [ - [8254, 8254], - "disallowed_STD3_mapped", - [32, 773] - ], - [ - [8255, 8262], - "valid", - [], - "NV8" - ], - [ - [8263, 8263], - "disallowed_STD3_mapped", - [63, 63] - ], - [ - [8264, 8264], - "disallowed_STD3_mapped", - [63, 33] - ], - [ - [8265, 8265], - "disallowed_STD3_mapped", - [33, 63] - ], - [ - [8266, 8269], - "valid", - [], - "NV8" - ], - [ - [8270, 8274], - "valid", - [], - "NV8" - ], - [ - [8275, 8276], - "valid", - [], - "NV8" - ], - [ - [8277, 8278], - "valid", - [], - "NV8" - ], - [ - [8279, 8279], - "mapped", - [ - 8242, - 8242, - 8242, - 8242 - ] - ], - [ - [8280, 8286], - "valid", - [], - "NV8" - ], - [ - [8287, 8287], - "disallowed_STD3_mapped", - [32] - ], - [[8288, 8288], "ignored"], - [[8289, 8291], "disallowed"], - [[8292, 8292], "ignored"], - [[8293, 8293], "disallowed"], - [[8294, 8297], "disallowed"], - [[8298, 8303], "disallowed"], - [ - [8304, 8304], - "mapped", - [48] - ], - [ - [8305, 8305], - "mapped", - [105] - ], - [[8306, 8307], "disallowed"], - [ - [8308, 8308], - "mapped", - [52] - ], - [ - [8309, 8309], - "mapped", - [53] - ], - [ - [8310, 8310], - "mapped", - [54] - ], - [ - [8311, 8311], - "mapped", - [55] - ], - [ - [8312, 8312], - "mapped", - [56] - ], - [ - [8313, 8313], - "mapped", - [57] - ], - [ - [8314, 8314], - "disallowed_STD3_mapped", - [43] - ], - [ - [8315, 8315], - "mapped", - [8722] - ], - [ - [8316, 8316], - "disallowed_STD3_mapped", - [61] - ], - [ - [8317, 8317], - "disallowed_STD3_mapped", - [40] - ], - [ - [8318, 8318], - "disallowed_STD3_mapped", - [41] - ], - [ - [8319, 8319], - "mapped", - [110] - ], - [ - [8320, 8320], - "mapped", - [48] - ], - [ - [8321, 8321], - "mapped", - [49] - ], - [ - [8322, 8322], - "mapped", - [50] - ], - [ - [8323, 8323], - "mapped", - [51] - ], - [ - [8324, 8324], - "mapped", - [52] - ], - [ - [8325, 8325], - "mapped", - [53] - ], - [ - [8326, 8326], - "mapped", - [54] - ], - [ - [8327, 8327], - "mapped", - [55] - ], - [ - [8328, 8328], - "mapped", - [56] - ], - [ - [8329, 8329], - "mapped", - [57] - ], - [ - [8330, 8330], - "disallowed_STD3_mapped", - [43] - ], - [ - [8331, 8331], - "mapped", - [8722] - ], - [ - [8332, 8332], - "disallowed_STD3_mapped", - [61] - ], - [ - [8333, 8333], - "disallowed_STD3_mapped", - [40] - ], - [ - [8334, 8334], - "disallowed_STD3_mapped", - [41] - ], - [[8335, 8335], "disallowed"], - [ - [8336, 8336], - "mapped", - [97] - ], - [ - [8337, 8337], - "mapped", - [101] - ], - [ - [8338, 8338], - "mapped", - [111] - ], - [ - [8339, 8339], - "mapped", - [120] - ], - [ - [8340, 8340], - "mapped", - [601] - ], - [ - [8341, 8341], - "mapped", - [104] - ], - [ - [8342, 8342], - "mapped", - [107] - ], - [ - [8343, 8343], - "mapped", - [108] - ], - [ - [8344, 8344], - "mapped", - [109] - ], - [ - [8345, 8345], - "mapped", - [110] - ], - [ - [8346, 8346], - "mapped", - [112] - ], - [ - [8347, 8347], - "mapped", - [115] - ], - [ - [8348, 8348], - "mapped", - [116] - ], - [[8349, 8351], "disallowed"], - [ - [8352, 8359], - "valid", - [], - "NV8" - ], - [ - [8360, 8360], - "mapped", - [114, 115] - ], - [ - [8361, 8362], - "valid", - [], - "NV8" - ], - [ - [8363, 8363], - "valid", - [], - "NV8" - ], - [ - [8364, 8364], - "valid", - [], - "NV8" - ], - [ - [8365, 8367], - "valid", - [], - "NV8" - ], - [ - [8368, 8369], - "valid", - [], - "NV8" - ], - [ - [8370, 8373], - "valid", - [], - "NV8" - ], - [ - [8374, 8376], - "valid", - [], - "NV8" - ], - [ - [8377, 8377], - "valid", - [], - "NV8" - ], - [ - [8378, 8378], - "valid", - [], - "NV8" - ], - [ - [8379, 8381], - "valid", - [], - "NV8" - ], - [ - [8382, 8382], - "valid", - [], - "NV8" - ], - [[8383, 8399], "disallowed"], - [ - [8400, 8417], - "valid", - [], - "NV8" - ], - [ - [8418, 8419], - "valid", - [], - "NV8" - ], - [ - [8420, 8426], - "valid", - [], - "NV8" - ], - [ - [8427, 8427], - "valid", - [], - "NV8" - ], - [ - [8428, 8431], - "valid", - [], - "NV8" - ], - [ - [8432, 8432], - "valid", - [], - "NV8" - ], - [[8433, 8447], "disallowed"], - [ - [8448, 8448], - "disallowed_STD3_mapped", - [ - 97, - 47, - 99 - ] - ], - [ - [8449, 8449], - "disallowed_STD3_mapped", - [ - 97, - 47, - 115 - ] - ], - [ - [8450, 8450], - "mapped", - [99] - ], - [ - [8451, 8451], - "mapped", - [176, 99] - ], - [ - [8452, 8452], - "valid", - [], - "NV8" - ], - [ - [8453, 8453], - "disallowed_STD3_mapped", - [ - 99, - 47, - 111 - ] - ], - [ - [8454, 8454], - "disallowed_STD3_mapped", - [ - 99, - 47, - 117 - ] - ], - [ - [8455, 8455], - "mapped", - [603] - ], - [ - [8456, 8456], - "valid", - [], - "NV8" - ], - [ - [8457, 8457], - "mapped", - [176, 102] - ], - [ - [8458, 8458], - "mapped", - [103] - ], - [ - [8459, 8462], - "mapped", - [104] - ], - [ - [8463, 8463], - "mapped", - [295] - ], - [ - [8464, 8465], - "mapped", - [105] - ], - [ - [8466, 8467], - "mapped", - [108] - ], - [ - [8468, 8468], - "valid", - [], - "NV8" - ], - [ - [8469, 8469], - "mapped", - [110] - ], - [ - [8470, 8470], - "mapped", - [110, 111] - ], - [ - [8471, 8472], - "valid", - [], - "NV8" - ], - [ - [8473, 8473], - "mapped", - [112] - ], - [ - [8474, 8474], - "mapped", - [113] - ], - [ - [8475, 8477], - "mapped", - [114] - ], - [ - [8478, 8479], - "valid", - [], - "NV8" - ], - [ - [8480, 8480], - "mapped", - [115, 109] - ], - [ - [8481, 8481], - "mapped", - [ - 116, - 101, - 108 - ] - ], - [ - [8482, 8482], - "mapped", - [116, 109] - ], - [ - [8483, 8483], - "valid", - [], - "NV8" - ], - [ - [8484, 8484], - "mapped", - [122] - ], - [ - [8485, 8485], - "valid", - [], - "NV8" - ], - [ - [8486, 8486], - "mapped", - [969] - ], - [ - [8487, 8487], - "valid", - [], - "NV8" - ], - [ - [8488, 8488], - "mapped", - [122] - ], - [ - [8489, 8489], - "valid", - [], - "NV8" - ], - [ - [8490, 8490], - "mapped", - [107] - ], - [ - [8491, 8491], - "mapped", - [229] - ], - [ - [8492, 8492], - "mapped", - [98] - ], - [ - [8493, 8493], - "mapped", - [99] - ], - [ - [8494, 8494], - "valid", - [], - "NV8" - ], - [ - [8495, 8496], - "mapped", - [101] - ], - [ - [8497, 8497], - "mapped", - [102] - ], - [[8498, 8498], "disallowed"], - [ - [8499, 8499], - "mapped", - [109] - ], - [ - [8500, 8500], - "mapped", - [111] - ], - [ - [8501, 8501], - "mapped", - [1488] - ], - [ - [8502, 8502], - "mapped", - [1489] - ], - [ - [8503, 8503], - "mapped", - [1490] - ], - [ - [8504, 8504], - "mapped", - [1491] - ], - [ - [8505, 8505], - "mapped", - [105] - ], - [ - [8506, 8506], - "valid", - [], - "NV8" - ], - [ - [8507, 8507], - "mapped", - [ - 102, - 97, - 120 - ] - ], - [ - [8508, 8508], - "mapped", - [960] - ], - [ - [8509, 8510], - "mapped", - [947] - ], - [ - [8511, 8511], - "mapped", - [960] - ], - [ - [8512, 8512], - "mapped", - [8721] - ], - [ - [8513, 8516], - "valid", - [], - "NV8" - ], - [ - [8517, 8518], - "mapped", - [100] - ], - [ - [8519, 8519], - "mapped", - [101] - ], - [ - [8520, 8520], - "mapped", - [105] - ], - [ - [8521, 8521], - "mapped", - [106] - ], - [ - [8522, 8523], - "valid", - [], - "NV8" - ], - [ - [8524, 8524], - "valid", - [], - "NV8" - ], - [ - [8525, 8525], - "valid", - [], - "NV8" - ], - [[8526, 8526], "valid"], - [ - [8527, 8527], - "valid", - [], - "NV8" - ], - [ - [8528, 8528], - "mapped", - [ - 49, - 8260, - 55 - ] - ], - [ - [8529, 8529], - "mapped", - [ - 49, - 8260, - 57 - ] - ], - [ - [8530, 8530], - "mapped", - [ - 49, - 8260, - 49, - 48 - ] - ], - [ - [8531, 8531], - "mapped", - [ - 49, - 8260, - 51 - ] - ], - [ - [8532, 8532], - "mapped", - [ - 50, - 8260, - 51 - ] - ], - [ - [8533, 8533], - "mapped", - [ - 49, - 8260, - 53 - ] - ], - [ - [8534, 8534], - "mapped", - [ - 50, - 8260, - 53 - ] - ], - [ - [8535, 8535], - "mapped", - [ - 51, - 8260, - 53 - ] - ], - [ - [8536, 8536], - "mapped", - [ - 52, - 8260, - 53 - ] - ], - [ - [8537, 8537], - "mapped", - [ - 49, - 8260, - 54 - ] - ], - [ - [8538, 8538], - "mapped", - [ - 53, - 8260, - 54 - ] - ], - [ - [8539, 8539], - "mapped", - [ - 49, - 8260, - 56 - ] - ], - [ - [8540, 8540], - "mapped", - [ - 51, - 8260, - 56 - ] - ], - [ - [8541, 8541], - "mapped", - [ - 53, - 8260, - 56 - ] - ], - [ - [8542, 8542], - "mapped", - [ - 55, - 8260, - 56 - ] - ], - [ - [8543, 8543], - "mapped", - [49, 8260] - ], - [ - [8544, 8544], - "mapped", - [105] - ], - [ - [8545, 8545], - "mapped", - [105, 105] - ], - [ - [8546, 8546], - "mapped", - [ - 105, - 105, - 105 - ] - ], - [ - [8547, 8547], - "mapped", - [105, 118] - ], - [ - [8548, 8548], - "mapped", - [118] - ], - [ - [8549, 8549], - "mapped", - [118, 105] - ], - [ - [8550, 8550], - "mapped", - [ - 118, - 105, - 105 - ] - ], - [ - [8551, 8551], - "mapped", - [ - 118, - 105, - 105, - 105 - ] - ], - [ - [8552, 8552], - "mapped", - [105, 120] - ], - [ - [8553, 8553], - "mapped", - [120] - ], - [ - [8554, 8554], - "mapped", - [120, 105] - ], - [ - [8555, 8555], - "mapped", - [ - 120, - 105, - 105 - ] - ], - [ - [8556, 8556], - "mapped", - [108] - ], - [ - [8557, 8557], - "mapped", - [99] - ], - [ - [8558, 8558], - "mapped", - [100] - ], - [ - [8559, 8559], - "mapped", - [109] - ], - [ - [8560, 8560], - "mapped", - [105] - ], - [ - [8561, 8561], - "mapped", - [105, 105] - ], - [ - [8562, 8562], - "mapped", - [ - 105, - 105, - 105 - ] - ], - [ - [8563, 8563], - "mapped", - [105, 118] - ], - [ - [8564, 8564], - "mapped", - [118] - ], - [ - [8565, 8565], - "mapped", - [118, 105] - ], - [ - [8566, 8566], - "mapped", - [ - 118, - 105, - 105 - ] - ], - [ - [8567, 8567], - "mapped", - [ - 118, - 105, - 105, - 105 - ] - ], - [ - [8568, 8568], - "mapped", - [105, 120] - ], - [ - [8569, 8569], - "mapped", - [120] - ], - [ - [8570, 8570], - "mapped", - [120, 105] - ], - [ - [8571, 8571], - "mapped", - [ - 120, - 105, - 105 - ] - ], - [ - [8572, 8572], - "mapped", - [108] - ], - [ - [8573, 8573], - "mapped", - [99] - ], - [ - [8574, 8574], - "mapped", - [100] - ], - [ - [8575, 8575], - "mapped", - [109] - ], - [ - [8576, 8578], - "valid", - [], - "NV8" - ], - [[8579, 8579], "disallowed"], - [[8580, 8580], "valid"], - [ - [8581, 8584], - "valid", - [], - "NV8" - ], - [ - [8585, 8585], - "mapped", - [ - 48, - 8260, - 51 - ] - ], - [ - [8586, 8587], - "valid", - [], - "NV8" - ], - [[8588, 8591], "disallowed"], - [ - [8592, 8682], - "valid", - [], - "NV8" - ], - [ - [8683, 8691], - "valid", - [], - "NV8" - ], - [ - [8692, 8703], - "valid", - [], - "NV8" - ], - [ - [8704, 8747], - "valid", - [], - "NV8" - ], - [ - [8748, 8748], - "mapped", - [8747, 8747] - ], - [ - [8749, 8749], - "mapped", - [ - 8747, - 8747, - 8747 - ] - ], - [ - [8750, 8750], - "valid", - [], - "NV8" - ], - [ - [8751, 8751], - "mapped", - [8750, 8750] - ], - [ - [8752, 8752], - "mapped", - [ - 8750, - 8750, - 8750 - ] - ], - [ - [8753, 8799], - "valid", - [], - "NV8" - ], - [[8800, 8800], "disallowed_STD3_valid"], - [ - [8801, 8813], - "valid", - [], - "NV8" - ], - [[8814, 8815], "disallowed_STD3_valid"], - [ - [8816, 8945], - "valid", - [], - "NV8" - ], - [ - [8946, 8959], - "valid", - [], - "NV8" - ], - [ - [8960, 8960], - "valid", - [], - "NV8" - ], - [ - [8961, 8961], - "valid", - [], - "NV8" - ], - [ - [8962, 9e3], - "valid", - [], - "NV8" - ], - [ - [9001, 9001], - "mapped", - [12296] - ], - [ - [9002, 9002], - "mapped", - [12297] - ], - [ - [9003, 9082], - "valid", - [], - "NV8" - ], - [ - [9083, 9083], - "valid", - [], - "NV8" - ], - [ - [9084, 9084], - "valid", - [], - "NV8" - ], - [ - [9085, 9114], - "valid", - [], - "NV8" - ], - [ - [9115, 9166], - "valid", - [], - "NV8" - ], - [ - [9167, 9168], - "valid", - [], - "NV8" - ], - [ - [9169, 9179], - "valid", - [], - "NV8" - ], - [ - [9180, 9191], - "valid", - [], - "NV8" - ], - [ - [9192, 9192], - "valid", - [], - "NV8" - ], - [ - [9193, 9203], - "valid", - [], - "NV8" - ], - [ - [9204, 9210], - "valid", - [], - "NV8" - ], - [[9211, 9215], "disallowed"], - [ - [9216, 9252], - "valid", - [], - "NV8" - ], - [ - [9253, 9254], - "valid", - [], - "NV8" - ], - [[9255, 9279], "disallowed"], - [ - [9280, 9290], - "valid", - [], - "NV8" - ], - [[9291, 9311], "disallowed"], - [ - [9312, 9312], - "mapped", - [49] - ], - [ - [9313, 9313], - "mapped", - [50] - ], - [ - [9314, 9314], - "mapped", - [51] - ], - [ - [9315, 9315], - "mapped", - [52] - ], - [ - [9316, 9316], - "mapped", - [53] - ], - [ - [9317, 9317], - "mapped", - [54] - ], - [ - [9318, 9318], - "mapped", - [55] - ], - [ - [9319, 9319], - "mapped", - [56] - ], - [ - [9320, 9320], - "mapped", - [57] - ], - [ - [9321, 9321], - "mapped", - [49, 48] - ], - [ - [9322, 9322], - "mapped", - [49, 49] - ], - [ - [9323, 9323], - "mapped", - [49, 50] - ], - [ - [9324, 9324], - "mapped", - [49, 51] - ], - [ - [9325, 9325], - "mapped", - [49, 52] - ], - [ - [9326, 9326], - "mapped", - [49, 53] - ], - [ - [9327, 9327], - "mapped", - [49, 54] - ], - [ - [9328, 9328], - "mapped", - [49, 55] - ], - [ - [9329, 9329], - "mapped", - [49, 56] - ], - [ - [9330, 9330], - "mapped", - [49, 57] - ], - [ - [9331, 9331], - "mapped", - [50, 48] - ], - [ - [9332, 9332], - "disallowed_STD3_mapped", - [ - 40, - 49, - 41 - ] - ], - [ - [9333, 9333], - "disallowed_STD3_mapped", - [ - 40, - 50, - 41 - ] - ], - [ - [9334, 9334], - "disallowed_STD3_mapped", - [ - 40, - 51, - 41 - ] - ], - [ - [9335, 9335], - "disallowed_STD3_mapped", - [ - 40, - 52, - 41 - ] - ], - [ - [9336, 9336], - "disallowed_STD3_mapped", - [ - 40, - 53, - 41 - ] - ], - [ - [9337, 9337], - "disallowed_STD3_mapped", - [ - 40, - 54, - 41 - ] - ], - [ - [9338, 9338], - "disallowed_STD3_mapped", - [ - 40, - 55, - 41 - ] - ], - [ - [9339, 9339], - "disallowed_STD3_mapped", - [ - 40, - 56, - 41 - ] - ], - [ - [9340, 9340], - "disallowed_STD3_mapped", - [ - 40, - 57, - 41 - ] - ], - [ - [9341, 9341], - "disallowed_STD3_mapped", - [ - 40, - 49, - 48, - 41 - ] - ], - [ - [9342, 9342], - "disallowed_STD3_mapped", - [ - 40, - 49, - 49, - 41 - ] - ], - [ - [9343, 9343], - "disallowed_STD3_mapped", - [ - 40, - 49, - 50, - 41 - ] - ], - [ - [9344, 9344], - "disallowed_STD3_mapped", - [ - 40, - 49, - 51, - 41 - ] - ], - [ - [9345, 9345], - "disallowed_STD3_mapped", - [ - 40, - 49, - 52, - 41 - ] - ], - [ - [9346, 9346], - "disallowed_STD3_mapped", - [ - 40, - 49, - 53, - 41 - ] - ], - [ - [9347, 9347], - "disallowed_STD3_mapped", - [ - 40, - 49, - 54, - 41 - ] - ], - [ - [9348, 9348], - "disallowed_STD3_mapped", - [ - 40, - 49, - 55, - 41 - ] - ], - [ - [9349, 9349], - "disallowed_STD3_mapped", - [ - 40, - 49, - 56, - 41 - ] - ], - [ - [9350, 9350], - "disallowed_STD3_mapped", - [ - 40, - 49, - 57, - 41 - ] - ], - [ - [9351, 9351], - "disallowed_STD3_mapped", - [ - 40, - 50, - 48, - 41 - ] - ], - [[9352, 9371], "disallowed"], - [ - [9372, 9372], - "disallowed_STD3_mapped", - [ - 40, - 97, - 41 - ] - ], - [ - [9373, 9373], - "disallowed_STD3_mapped", - [ - 40, - 98, - 41 - ] - ], - [ - [9374, 9374], - "disallowed_STD3_mapped", - [ - 40, - 99, - 41 - ] - ], - [ - [9375, 9375], - "disallowed_STD3_mapped", - [ - 40, - 100, - 41 - ] - ], - [ - [9376, 9376], - "disallowed_STD3_mapped", - [ - 40, - 101, - 41 - ] - ], - [ - [9377, 9377], - "disallowed_STD3_mapped", - [ - 40, - 102, - 41 - ] - ], - [ - [9378, 9378], - "disallowed_STD3_mapped", - [ - 40, - 103, - 41 - ] - ], - [ - [9379, 9379], - "disallowed_STD3_mapped", - [ - 40, - 104, - 41 - ] - ], - [ - [9380, 9380], - "disallowed_STD3_mapped", - [ - 40, - 105, - 41 - ] - ], - [ - [9381, 9381], - "disallowed_STD3_mapped", - [ - 40, - 106, - 41 - ] - ], - [ - [9382, 9382], - "disallowed_STD3_mapped", - [ - 40, - 107, - 41 - ] - ], - [ - [9383, 9383], - "disallowed_STD3_mapped", - [ - 40, - 108, - 41 - ] - ], - [ - [9384, 9384], - "disallowed_STD3_mapped", - [ - 40, - 109, - 41 - ] - ], - [ - [9385, 9385], - "disallowed_STD3_mapped", - [ - 40, - 110, - 41 - ] - ], - [ - [9386, 9386], - "disallowed_STD3_mapped", - [ - 40, - 111, - 41 - ] - ], - [ - [9387, 9387], - "disallowed_STD3_mapped", - [ - 40, - 112, - 41 - ] - ], - [ - [9388, 9388], - "disallowed_STD3_mapped", - [ - 40, - 113, - 41 - ] - ], - [ - [9389, 9389], - "disallowed_STD3_mapped", - [ - 40, - 114, - 41 - ] - ], - [ - [9390, 9390], - "disallowed_STD3_mapped", - [ - 40, - 115, - 41 - ] - ], - [ - [9391, 9391], - "disallowed_STD3_mapped", - [ - 40, - 116, - 41 - ] - ], - [ - [9392, 9392], - "disallowed_STD3_mapped", - [ - 40, - 117, - 41 - ] - ], - [ - [9393, 9393], - "disallowed_STD3_mapped", - [ - 40, - 118, - 41 - ] - ], - [ - [9394, 9394], - "disallowed_STD3_mapped", - [ - 40, - 119, - 41 - ] - ], - [ - [9395, 9395], - "disallowed_STD3_mapped", - [ - 40, - 120, - 41 - ] - ], - [ - [9396, 9396], - "disallowed_STD3_mapped", - [ - 40, - 121, - 41 - ] - ], - [ - [9397, 9397], - "disallowed_STD3_mapped", - [ - 40, - 122, - 41 - ] - ], - [ - [9398, 9398], - "mapped", - [97] - ], - [ - [9399, 9399], - "mapped", - [98] - ], - [ - [9400, 9400], - "mapped", - [99] - ], - [ - [9401, 9401], - "mapped", - [100] - ], - [ - [9402, 9402], - "mapped", - [101] - ], - [ - [9403, 9403], - "mapped", - [102] - ], - [ - [9404, 9404], - "mapped", - [103] - ], - [ - [9405, 9405], - "mapped", - [104] - ], - [ - [9406, 9406], - "mapped", - [105] - ], - [ - [9407, 9407], - "mapped", - [106] - ], - [ - [9408, 9408], - "mapped", - [107] - ], - [ - [9409, 9409], - "mapped", - [108] - ], - [ - [9410, 9410], - "mapped", - [109] - ], - [ - [9411, 9411], - "mapped", - [110] - ], - [ - [9412, 9412], - "mapped", - [111] - ], - [ - [9413, 9413], - "mapped", - [112] - ], - [ - [9414, 9414], - "mapped", - [113] - ], - [ - [9415, 9415], - "mapped", - [114] - ], - [ - [9416, 9416], - "mapped", - [115] - ], - [ - [9417, 9417], - "mapped", - [116] - ], - [ - [9418, 9418], - "mapped", - [117] - ], - [ - [9419, 9419], - "mapped", - [118] - ], - [ - [9420, 9420], - "mapped", - [119] - ], - [ - [9421, 9421], - "mapped", - [120] - ], - [ - [9422, 9422], - "mapped", - [121] - ], - [ - [9423, 9423], - "mapped", - [122] - ], - [ - [9424, 9424], - "mapped", - [97] - ], - [ - [9425, 9425], - "mapped", - [98] - ], - [ - [9426, 9426], - "mapped", - [99] - ], - [ - [9427, 9427], - "mapped", - [100] - ], - [ - [9428, 9428], - "mapped", - [101] - ], - [ - [9429, 9429], - "mapped", - [102] - ], - [ - [9430, 9430], - "mapped", - [103] - ], - [ - [9431, 9431], - "mapped", - [104] - ], - [ - [9432, 9432], - "mapped", - [105] - ], - [ - [9433, 9433], - "mapped", - [106] - ], - [ - [9434, 9434], - "mapped", - [107] - ], - [ - [9435, 9435], - "mapped", - [108] - ], - [ - [9436, 9436], - "mapped", - [109] - ], - [ - [9437, 9437], - "mapped", - [110] - ], - [ - [9438, 9438], - "mapped", - [111] - ], - [ - [9439, 9439], - "mapped", - [112] - ], - [ - [9440, 9440], - "mapped", - [113] - ], - [ - [9441, 9441], - "mapped", - [114] - ], - [ - [9442, 9442], - "mapped", - [115] - ], - [ - [9443, 9443], - "mapped", - [116] - ], - [ - [9444, 9444], - "mapped", - [117] - ], - [ - [9445, 9445], - "mapped", - [118] - ], - [ - [9446, 9446], - "mapped", - [119] - ], - [ - [9447, 9447], - "mapped", - [120] - ], - [ - [9448, 9448], - "mapped", - [121] - ], - [ - [9449, 9449], - "mapped", - [122] - ], - [ - [9450, 9450], - "mapped", - [48] - ], - [ - [9451, 9470], - "valid", - [], - "NV8" - ], - [ - [9471, 9471], - "valid", - [], - "NV8" - ], - [ - [9472, 9621], - "valid", - [], - "NV8" - ], - [ - [9622, 9631], - "valid", - [], - "NV8" - ], - [ - [9632, 9711], - "valid", - [], - "NV8" - ], - [ - [9712, 9719], - "valid", - [], - "NV8" - ], - [ - [9720, 9727], - "valid", - [], - "NV8" - ], - [ - [9728, 9747], - "valid", - [], - "NV8" - ], - [ - [9748, 9749], - "valid", - [], - "NV8" - ], - [ - [9750, 9751], - "valid", - [], - "NV8" - ], - [ - [9752, 9752], - "valid", - [], - "NV8" - ], - [ - [9753, 9753], - "valid", - [], - "NV8" - ], - [ - [9754, 9839], - "valid", - [], - "NV8" - ], - [ - [9840, 9841], - "valid", - [], - "NV8" - ], - [ - [9842, 9853], - "valid", - [], - "NV8" - ], - [ - [9854, 9855], - "valid", - [], - "NV8" - ], - [ - [9856, 9865], - "valid", - [], - "NV8" - ], - [ - [9866, 9873], - "valid", - [], - "NV8" - ], - [ - [9874, 9884], - "valid", - [], - "NV8" - ], - [ - [9885, 9885], - "valid", - [], - "NV8" - ], - [ - [9886, 9887], - "valid", - [], - "NV8" - ], - [ - [9888, 9889], - "valid", - [], - "NV8" - ], - [ - [9890, 9905], - "valid", - [], - "NV8" - ], - [ - [9906, 9906], - "valid", - [], - "NV8" - ], - [ - [9907, 9916], - "valid", - [], - "NV8" - ], - [ - [9917, 9919], - "valid", - [], - "NV8" - ], - [ - [9920, 9923], - "valid", - [], - "NV8" - ], - [ - [9924, 9933], - "valid", - [], - "NV8" - ], - [ - [9934, 9934], - "valid", - [], - "NV8" - ], - [ - [9935, 9953], - "valid", - [], - "NV8" - ], - [ - [9954, 9954], - "valid", - [], - "NV8" - ], - [ - [9955, 9955], - "valid", - [], - "NV8" - ], - [ - [9956, 9959], - "valid", - [], - "NV8" - ], - [ - [9960, 9983], - "valid", - [], - "NV8" - ], - [ - [9984, 9984], - "valid", - [], - "NV8" - ], - [ - [9985, 9988], - "valid", - [], - "NV8" - ], - [ - [9989, 9989], - "valid", - [], - "NV8" - ], - [ - [9990, 9993], - "valid", - [], - "NV8" - ], - [ - [9994, 9995], - "valid", - [], - "NV8" - ], - [ - [9996, 10023], - "valid", - [], - "NV8" - ], - [ - [10024, 10024], - "valid", - [], - "NV8" - ], - [ - [10025, 10059], - "valid", - [], - "NV8" - ], - [ - [10060, 10060], - "valid", - [], - "NV8" - ], - [ - [10061, 10061], - "valid", - [], - "NV8" - ], - [ - [10062, 10062], - "valid", - [], - "NV8" - ], - [ - [10063, 10066], - "valid", - [], - "NV8" - ], - [ - [10067, 10069], - "valid", - [], - "NV8" - ], - [ - [10070, 10070], - "valid", - [], - "NV8" - ], - [ - [10071, 10071], - "valid", - [], - "NV8" - ], - [ - [10072, 10078], - "valid", - [], - "NV8" - ], - [ - [10079, 10080], - "valid", - [], - "NV8" - ], - [ - [10081, 10087], - "valid", - [], - "NV8" - ], - [ - [10088, 10101], - "valid", - [], - "NV8" - ], - [ - [10102, 10132], - "valid", - [], - "NV8" - ], - [ - [10133, 10135], - "valid", - [], - "NV8" - ], - [ - [10136, 10159], - "valid", - [], - "NV8" - ], - [ - [10160, 10160], - "valid", - [], - "NV8" - ], - [ - [10161, 10174], - "valid", - [], - "NV8" - ], - [ - [10175, 10175], - "valid", - [], - "NV8" - ], - [ - [10176, 10182], - "valid", - [], - "NV8" - ], - [ - [10183, 10186], - "valid", - [], - "NV8" - ], - [ - [10187, 10187], - "valid", - [], - "NV8" - ], - [ - [10188, 10188], - "valid", - [], - "NV8" - ], - [ - [10189, 10189], - "valid", - [], - "NV8" - ], - [ - [10190, 10191], - "valid", - [], - "NV8" - ], - [ - [10192, 10219], - "valid", - [], - "NV8" - ], - [ - [10220, 10223], - "valid", - [], - "NV8" - ], - [ - [10224, 10239], - "valid", - [], - "NV8" - ], - [ - [10240, 10495], - "valid", - [], - "NV8" - ], - [ - [10496, 10763], - "valid", - [], - "NV8" - ], - [ - [10764, 10764], - "mapped", - [ - 8747, - 8747, - 8747, - 8747 - ] - ], - [ - [10765, 10867], - "valid", - [], - "NV8" - ], - [ - [10868, 10868], - "disallowed_STD3_mapped", - [ - 58, - 58, - 61 - ] - ], - [ - [10869, 10869], - "disallowed_STD3_mapped", - [61, 61] - ], - [ - [10870, 10870], - "disallowed_STD3_mapped", - [ - 61, - 61, - 61 - ] - ], - [ - [10871, 10971], - "valid", - [], - "NV8" - ], - [ - [10972, 10972], - "mapped", - [10973, 824] - ], - [ - [10973, 11007], - "valid", - [], - "NV8" - ], - [ - [11008, 11021], - "valid", - [], - "NV8" - ], - [ - [11022, 11027], - "valid", - [], - "NV8" - ], - [ - [11028, 11034], - "valid", - [], - "NV8" - ], - [ - [11035, 11039], - "valid", - [], - "NV8" - ], - [ - [11040, 11043], - "valid", - [], - "NV8" - ], - [ - [11044, 11084], - "valid", - [], - "NV8" - ], - [ - [11085, 11087], - "valid", - [], - "NV8" - ], - [ - [11088, 11092], - "valid", - [], - "NV8" - ], - [ - [11093, 11097], - "valid", - [], - "NV8" - ], - [ - [11098, 11123], - "valid", - [], - "NV8" - ], - [[11124, 11125], "disallowed"], - [ - [11126, 11157], - "valid", - [], - "NV8" - ], - [[11158, 11159], "disallowed"], - [ - [11160, 11193], - "valid", - [], - "NV8" - ], - [[11194, 11196], "disallowed"], - [ - [11197, 11208], - "valid", - [], - "NV8" - ], - [[11209, 11209], "disallowed"], - [ - [11210, 11217], - "valid", - [], - "NV8" - ], - [[11218, 11243], "disallowed"], - [ - [11244, 11247], - "valid", - [], - "NV8" - ], - [[11248, 11263], "disallowed"], - [ - [11264, 11264], - "mapped", - [11312] - ], - [ - [11265, 11265], - "mapped", - [11313] - ], - [ - [11266, 11266], - "mapped", - [11314] - ], - [ - [11267, 11267], - "mapped", - [11315] - ], - [ - [11268, 11268], - "mapped", - [11316] - ], - [ - [11269, 11269], - "mapped", - [11317] - ], - [ - [11270, 11270], - "mapped", - [11318] - ], - [ - [11271, 11271], - "mapped", - [11319] - ], - [ - [11272, 11272], - "mapped", - [11320] - ], - [ - [11273, 11273], - "mapped", - [11321] - ], - [ - [11274, 11274], - "mapped", - [11322] - ], - [ - [11275, 11275], - "mapped", - [11323] - ], - [ - [11276, 11276], - "mapped", - [11324] - ], - [ - [11277, 11277], - "mapped", - [11325] - ], - [ - [11278, 11278], - "mapped", - [11326] - ], - [ - [11279, 11279], - "mapped", - [11327] - ], - [ - [11280, 11280], - "mapped", - [11328] - ], - [ - [11281, 11281], - "mapped", - [11329] - ], - [ - [11282, 11282], - "mapped", - [11330] - ], - [ - [11283, 11283], - "mapped", - [11331] - ], - [ - [11284, 11284], - "mapped", - [11332] - ], - [ - [11285, 11285], - "mapped", - [11333] - ], - [ - [11286, 11286], - "mapped", - [11334] - ], - [ - [11287, 11287], - "mapped", - [11335] - ], - [ - [11288, 11288], - "mapped", - [11336] - ], - [ - [11289, 11289], - "mapped", - [11337] - ], - [ - [11290, 11290], - "mapped", - [11338] - ], - [ - [11291, 11291], - "mapped", - [11339] - ], - [ - [11292, 11292], - "mapped", - [11340] - ], - [ - [11293, 11293], - "mapped", - [11341] - ], - [ - [11294, 11294], - "mapped", - [11342] - ], - [ - [11295, 11295], - "mapped", - [11343] - ], - [ - [11296, 11296], - "mapped", - [11344] - ], - [ - [11297, 11297], - "mapped", - [11345] - ], - [ - [11298, 11298], - "mapped", - [11346] - ], - [ - [11299, 11299], - "mapped", - [11347] - ], - [ - [11300, 11300], - "mapped", - [11348] - ], - [ - [11301, 11301], - "mapped", - [11349] - ], - [ - [11302, 11302], - "mapped", - [11350] - ], - [ - [11303, 11303], - "mapped", - [11351] - ], - [ - [11304, 11304], - "mapped", - [11352] - ], - [ - [11305, 11305], - "mapped", - [11353] - ], - [ - [11306, 11306], - "mapped", - [11354] - ], - [ - [11307, 11307], - "mapped", - [11355] - ], - [ - [11308, 11308], - "mapped", - [11356] - ], - [ - [11309, 11309], - "mapped", - [11357] - ], - [ - [11310, 11310], - "mapped", - [11358] - ], - [[11311, 11311], "disallowed"], - [[11312, 11358], "valid"], - [[11359, 11359], "disallowed"], - [ - [11360, 11360], - "mapped", - [11361] - ], - [[11361, 11361], "valid"], - [ - [11362, 11362], - "mapped", - [619] - ], - [ - [11363, 11363], - "mapped", - [7549] - ], - [ - [11364, 11364], - "mapped", - [637] - ], - [[11365, 11366], "valid"], - [ - [11367, 11367], - "mapped", - [11368] - ], - [[11368, 11368], "valid"], - [ - [11369, 11369], - "mapped", - [11370] - ], - [[11370, 11370], "valid"], - [ - [11371, 11371], - "mapped", - [11372] - ], - [[11372, 11372], "valid"], - [ - [11373, 11373], - "mapped", - [593] - ], - [ - [11374, 11374], - "mapped", - [625] - ], - [ - [11375, 11375], - "mapped", - [592] - ], - [ - [11376, 11376], - "mapped", - [594] - ], - [[11377, 11377], "valid"], - [ - [11378, 11378], - "mapped", - [11379] - ], - [[11379, 11379], "valid"], - [[11380, 11380], "valid"], - [ - [11381, 11381], - "mapped", - [11382] - ], - [[11382, 11383], "valid"], - [[11384, 11387], "valid"], - [ - [11388, 11388], - "mapped", - [106] - ], - [ - [11389, 11389], - "mapped", - [118] - ], - [ - [11390, 11390], - "mapped", - [575] - ], - [ - [11391, 11391], - "mapped", - [576] - ], - [ - [11392, 11392], - "mapped", - [11393] - ], - [[11393, 11393], "valid"], - [ - [11394, 11394], - "mapped", - [11395] - ], - [[11395, 11395], "valid"], - [ - [11396, 11396], - "mapped", - [11397] - ], - [[11397, 11397], "valid"], - [ - [11398, 11398], - "mapped", - [11399] - ], - [[11399, 11399], "valid"], - [ - [11400, 11400], - "mapped", - [11401] - ], - [[11401, 11401], "valid"], - [ - [11402, 11402], - "mapped", - [11403] - ], - [[11403, 11403], "valid"], - [ - [11404, 11404], - "mapped", - [11405] - ], - [[11405, 11405], "valid"], - [ - [11406, 11406], - "mapped", - [11407] - ], - [[11407, 11407], "valid"], - [ - [11408, 11408], - "mapped", - [11409] - ], - [[11409, 11409], "valid"], - [ - [11410, 11410], - "mapped", - [11411] - ], - [[11411, 11411], "valid"], - [ - [11412, 11412], - "mapped", - [11413] - ], - [[11413, 11413], "valid"], - [ - [11414, 11414], - "mapped", - [11415] - ], - [[11415, 11415], "valid"], - [ - [11416, 11416], - "mapped", - [11417] - ], - [[11417, 11417], "valid"], - [ - [11418, 11418], - "mapped", - [11419] - ], - [[11419, 11419], "valid"], - [ - [11420, 11420], - "mapped", - [11421] - ], - [[11421, 11421], "valid"], - [ - [11422, 11422], - "mapped", - [11423] - ], - [[11423, 11423], "valid"], - [ - [11424, 11424], - "mapped", - [11425] - ], - [[11425, 11425], "valid"], - [ - [11426, 11426], - "mapped", - [11427] - ], - [[11427, 11427], "valid"], - [ - [11428, 11428], - "mapped", - [11429] - ], - [[11429, 11429], "valid"], - [ - [11430, 11430], - "mapped", - [11431] - ], - [[11431, 11431], "valid"], - [ - [11432, 11432], - "mapped", - [11433] - ], - [[11433, 11433], "valid"], - [ - [11434, 11434], - "mapped", - [11435] - ], - [[11435, 11435], "valid"], - [ - [11436, 11436], - "mapped", - [11437] - ], - [[11437, 11437], "valid"], - [ - [11438, 11438], - "mapped", - [11439] - ], - [[11439, 11439], "valid"], - [ - [11440, 11440], - "mapped", - [11441] - ], - [[11441, 11441], "valid"], - [ - [11442, 11442], - "mapped", - [11443] - ], - [[11443, 11443], "valid"], - [ - [11444, 11444], - "mapped", - [11445] - ], - [[11445, 11445], "valid"], - [ - [11446, 11446], - "mapped", - [11447] - ], - [[11447, 11447], "valid"], - [ - [11448, 11448], - "mapped", - [11449] - ], - [[11449, 11449], "valid"], - [ - [11450, 11450], - "mapped", - [11451] - ], - [[11451, 11451], "valid"], - [ - [11452, 11452], - "mapped", - [11453] - ], - [[11453, 11453], "valid"], - [ - [11454, 11454], - "mapped", - [11455] - ], - [[11455, 11455], "valid"], - [ - [11456, 11456], - "mapped", - [11457] - ], - [[11457, 11457], "valid"], - [ - [11458, 11458], - "mapped", - [11459] - ], - [[11459, 11459], "valid"], - [ - [11460, 11460], - "mapped", - [11461] - ], - [[11461, 11461], "valid"], - [ - [11462, 11462], - "mapped", - [11463] - ], - [[11463, 11463], "valid"], - [ - [11464, 11464], - "mapped", - [11465] - ], - [[11465, 11465], "valid"], - [ - [11466, 11466], - "mapped", - [11467] - ], - [[11467, 11467], "valid"], - [ - [11468, 11468], - "mapped", - [11469] - ], - [[11469, 11469], "valid"], - [ - [11470, 11470], - "mapped", - [11471] - ], - [[11471, 11471], "valid"], - [ - [11472, 11472], - "mapped", - [11473] - ], - [[11473, 11473], "valid"], - [ - [11474, 11474], - "mapped", - [11475] - ], - [[11475, 11475], "valid"], - [ - [11476, 11476], - "mapped", - [11477] - ], - [[11477, 11477], "valid"], - [ - [11478, 11478], - "mapped", - [11479] - ], - [[11479, 11479], "valid"], - [ - [11480, 11480], - "mapped", - [11481] - ], - [[11481, 11481], "valid"], - [ - [11482, 11482], - "mapped", - [11483] - ], - [[11483, 11483], "valid"], - [ - [11484, 11484], - "mapped", - [11485] - ], - [[11485, 11485], "valid"], - [ - [11486, 11486], - "mapped", - [11487] - ], - [[11487, 11487], "valid"], - [ - [11488, 11488], - "mapped", - [11489] - ], - [[11489, 11489], "valid"], - [ - [11490, 11490], - "mapped", - [11491] - ], - [[11491, 11492], "valid"], - [ - [11493, 11498], - "valid", - [], - "NV8" - ], - [ - [11499, 11499], - "mapped", - [11500] - ], - [[11500, 11500], "valid"], - [ - [11501, 11501], - "mapped", - [11502] - ], - [[11502, 11505], "valid"], - [ - [11506, 11506], - "mapped", - [11507] - ], - [[11507, 11507], "valid"], - [[11508, 11512], "disallowed"], - [ - [11513, 11519], - "valid", - [], - "NV8" - ], - [[11520, 11557], "valid"], - [[11558, 11558], "disallowed"], - [[11559, 11559], "valid"], - [[11560, 11564], "disallowed"], - [[11565, 11565], "valid"], - [[11566, 11567], "disallowed"], - [[11568, 11621], "valid"], - [[11622, 11623], "valid"], - [[11624, 11630], "disallowed"], - [ - [11631, 11631], - "mapped", - [11617] - ], - [ - [11632, 11632], - "valid", - [], - "NV8" - ], - [[11633, 11646], "disallowed"], - [[11647, 11647], "valid"], - [[11648, 11670], "valid"], - [[11671, 11679], "disallowed"], - [[11680, 11686], "valid"], - [[11687, 11687], "disallowed"], - [[11688, 11694], "valid"], - [[11695, 11695], "disallowed"], - [[11696, 11702], "valid"], - [[11703, 11703], "disallowed"], - [[11704, 11710], "valid"], - [[11711, 11711], "disallowed"], - [[11712, 11718], "valid"], - [[11719, 11719], "disallowed"], - [[11720, 11726], "valid"], - [[11727, 11727], "disallowed"], - [[11728, 11734], "valid"], - [[11735, 11735], "disallowed"], - [[11736, 11742], "valid"], - [[11743, 11743], "disallowed"], - [[11744, 11775], "valid"], - [ - [11776, 11799], - "valid", - [], - "NV8" - ], - [ - [11800, 11803], - "valid", - [], - "NV8" - ], - [ - [11804, 11805], - "valid", - [], - "NV8" - ], - [ - [11806, 11822], - "valid", - [], - "NV8" - ], - [[11823, 11823], "valid"], - [ - [11824, 11824], - "valid", - [], - "NV8" - ], - [ - [11825, 11825], - "valid", - [], - "NV8" - ], - [ - [11826, 11835], - "valid", - [], - "NV8" - ], - [ - [11836, 11842], - "valid", - [], - "NV8" - ], - [[11843, 11903], "disallowed"], - [ - [11904, 11929], - "valid", - [], - "NV8" - ], - [[11930, 11930], "disallowed"], - [ - [11931, 11934], - "valid", - [], - "NV8" - ], - [ - [11935, 11935], - "mapped", - [27597] - ], - [ - [11936, 12018], - "valid", - [], - "NV8" - ], - [ - [12019, 12019], - "mapped", - [40863] - ], - [[12020, 12031], "disallowed"], - [ - [12032, 12032], - "mapped", - [19968] - ], - [ - [12033, 12033], - "mapped", - [20008] - ], - [ - [12034, 12034], - "mapped", - [20022] - ], - [ - [12035, 12035], - "mapped", - [20031] - ], - [ - [12036, 12036], - "mapped", - [20057] - ], - [ - [12037, 12037], - "mapped", - [20101] - ], - [ - [12038, 12038], - "mapped", - [20108] - ], - [ - [12039, 12039], - "mapped", - [20128] - ], - [ - [12040, 12040], - "mapped", - [20154] - ], - [ - [12041, 12041], - "mapped", - [20799] - ], - [ - [12042, 12042], - "mapped", - [20837] - ], - [ - [12043, 12043], - "mapped", - [20843] - ], - [ - [12044, 12044], - "mapped", - [20866] - ], - [ - [12045, 12045], - "mapped", - [20886] - ], - [ - [12046, 12046], - "mapped", - [20907] - ], - [ - [12047, 12047], - "mapped", - [20960] - ], - [ - [12048, 12048], - "mapped", - [20981] - ], - [ - [12049, 12049], - "mapped", - [20992] - ], - [ - [12050, 12050], - "mapped", - [21147] - ], - [ - [12051, 12051], - "mapped", - [21241] - ], - [ - [12052, 12052], - "mapped", - [21269] - ], - [ - [12053, 12053], - "mapped", - [21274] - ], - [ - [12054, 12054], - "mapped", - [21304] - ], - [ - [12055, 12055], - "mapped", - [21313] - ], - [ - [12056, 12056], - "mapped", - [21340] - ], - [ - [12057, 12057], - "mapped", - [21353] - ], - [ - [12058, 12058], - "mapped", - [21378] - ], - [ - [12059, 12059], - "mapped", - [21430] - ], - [ - [12060, 12060], - "mapped", - [21448] - ], - [ - [12061, 12061], - "mapped", - [21475] - ], - [ - [12062, 12062], - "mapped", - [22231] - ], - [ - [12063, 12063], - "mapped", - [22303] - ], - [ - [12064, 12064], - "mapped", - [22763] - ], - [ - [12065, 12065], - "mapped", - [22786] - ], - [ - [12066, 12066], - "mapped", - [22794] - ], - [ - [12067, 12067], - "mapped", - [22805] - ], - [ - [12068, 12068], - "mapped", - [22823] - ], - [ - [12069, 12069], - "mapped", - [22899] - ], - [ - [12070, 12070], - "mapped", - [23376] - ], - [ - [12071, 12071], - "mapped", - [23424] - ], - [ - [12072, 12072], - "mapped", - [23544] - ], - [ - [12073, 12073], - "mapped", - [23567] - ], - [ - [12074, 12074], - "mapped", - [23586] - ], - [ - [12075, 12075], - "mapped", - [23608] - ], - [ - [12076, 12076], - "mapped", - [23662] - ], - [ - [12077, 12077], - "mapped", - [23665] - ], - [ - [12078, 12078], - "mapped", - [24027] - ], - [ - [12079, 12079], - "mapped", - [24037] - ], - [ - [12080, 12080], - "mapped", - [24049] - ], - [ - [12081, 12081], - "mapped", - [24062] - ], - [ - [12082, 12082], - "mapped", - [24178] - ], - [ - [12083, 12083], - "mapped", - [24186] - ], - [ - [12084, 12084], - "mapped", - [24191] - ], - [ - [12085, 12085], - "mapped", - [24308] - ], - [ - [12086, 12086], - "mapped", - [24318] - ], - [ - [12087, 12087], - "mapped", - [24331] - ], - [ - [12088, 12088], - "mapped", - [24339] - ], - [ - [12089, 12089], - "mapped", - [24400] - ], - [ - [12090, 12090], - "mapped", - [24417] - ], - [ - [12091, 12091], - "mapped", - [24435] - ], - [ - [12092, 12092], - "mapped", - [24515] - ], - [ - [12093, 12093], - "mapped", - [25096] - ], - [ - [12094, 12094], - "mapped", - [25142] - ], - [ - [12095, 12095], - "mapped", - [25163] - ], - [ - [12096, 12096], - "mapped", - [25903] - ], - [ - [12097, 12097], - "mapped", - [25908] - ], - [ - [12098, 12098], - "mapped", - [25991] - ], - [ - [12099, 12099], - "mapped", - [26007] - ], - [ - [12100, 12100], - "mapped", - [26020] - ], - [ - [12101, 12101], - "mapped", - [26041] - ], - [ - [12102, 12102], - "mapped", - [26080] - ], - [ - [12103, 12103], - "mapped", - [26085] - ], - [ - [12104, 12104], - "mapped", - [26352] - ], - [ - [12105, 12105], - "mapped", - [26376] - ], - [ - [12106, 12106], - "mapped", - [26408] - ], - [ - [12107, 12107], - "mapped", - [27424] - ], - [ - [12108, 12108], - "mapped", - [27490] - ], - [ - [12109, 12109], - "mapped", - [27513] - ], - [ - [12110, 12110], - "mapped", - [27571] - ], - [ - [12111, 12111], - "mapped", - [27595] - ], - [ - [12112, 12112], - "mapped", - [27604] - ], - [ - [12113, 12113], - "mapped", - [27611] - ], - [ - [12114, 12114], - "mapped", - [27663] - ], - [ - [12115, 12115], - "mapped", - [27668] - ], - [ - [12116, 12116], - "mapped", - [27700] - ], - [ - [12117, 12117], - "mapped", - [28779] - ], - [ - [12118, 12118], - "mapped", - [29226] - ], - [ - [12119, 12119], - "mapped", - [29238] - ], - [ - [12120, 12120], - "mapped", - [29243] - ], - [ - [12121, 12121], - "mapped", - [29247] - ], - [ - [12122, 12122], - "mapped", - [29255] - ], - [ - [12123, 12123], - "mapped", - [29273] - ], - [ - [12124, 12124], - "mapped", - [29275] - ], - [ - [12125, 12125], - "mapped", - [29356] - ], - [ - [12126, 12126], - "mapped", - [29572] - ], - [ - [12127, 12127], - "mapped", - [29577] - ], - [ - [12128, 12128], - "mapped", - [29916] - ], - [ - [12129, 12129], - "mapped", - [29926] - ], - [ - [12130, 12130], - "mapped", - [29976] - ], - [ - [12131, 12131], - "mapped", - [29983] - ], - [ - [12132, 12132], - "mapped", - [29992] - ], - [ - [12133, 12133], - "mapped", - [3e4] - ], - [ - [12134, 12134], - "mapped", - [30091] - ], - [ - [12135, 12135], - "mapped", - [30098] - ], - [ - [12136, 12136], - "mapped", - [30326] - ], - [ - [12137, 12137], - "mapped", - [30333] - ], - [ - [12138, 12138], - "mapped", - [30382] - ], - [ - [12139, 12139], - "mapped", - [30399] - ], - [ - [12140, 12140], - "mapped", - [30446] - ], - [ - [12141, 12141], - "mapped", - [30683] - ], - [ - [12142, 12142], - "mapped", - [30690] - ], - [ - [12143, 12143], - "mapped", - [30707] - ], - [ - [12144, 12144], - "mapped", - [31034] - ], - [ - [12145, 12145], - "mapped", - [31160] - ], - [ - [12146, 12146], - "mapped", - [31166] - ], - [ - [12147, 12147], - "mapped", - [31348] - ], - [ - [12148, 12148], - "mapped", - [31435] - ], - [ - [12149, 12149], - "mapped", - [31481] - ], - [ - [12150, 12150], - "mapped", - [31859] - ], - [ - [12151, 12151], - "mapped", - [31992] - ], - [ - [12152, 12152], - "mapped", - [32566] - ], - [ - [12153, 12153], - "mapped", - [32593] - ], - [ - [12154, 12154], - "mapped", - [32650] - ], - [ - [12155, 12155], - "mapped", - [32701] - ], - [ - [12156, 12156], - "mapped", - [32769] - ], - [ - [12157, 12157], - "mapped", - [32780] - ], - [ - [12158, 12158], - "mapped", - [32786] - ], - [ - [12159, 12159], - "mapped", - [32819] - ], - [ - [12160, 12160], - "mapped", - [32895] - ], - [ - [12161, 12161], - "mapped", - [32905] - ], - [ - [12162, 12162], - "mapped", - [33251] - ], - [ - [12163, 12163], - "mapped", - [33258] - ], - [ - [12164, 12164], - "mapped", - [33267] - ], - [ - [12165, 12165], - "mapped", - [33276] - ], - [ - [12166, 12166], - "mapped", - [33292] - ], - [ - [12167, 12167], - "mapped", - [33307] - ], - [ - [12168, 12168], - "mapped", - [33311] - ], - [ - [12169, 12169], - "mapped", - [33390] - ], - [ - [12170, 12170], - "mapped", - [33394] - ], - [ - [12171, 12171], - "mapped", - [33400] - ], - [ - [12172, 12172], - "mapped", - [34381] - ], - [ - [12173, 12173], - "mapped", - [34411] - ], - [ - [12174, 12174], - "mapped", - [34880] - ], - [ - [12175, 12175], - "mapped", - [34892] - ], - [ - [12176, 12176], - "mapped", - [34915] - ], - [ - [12177, 12177], - "mapped", - [35198] - ], - [ - [12178, 12178], - "mapped", - [35211] - ], - [ - [12179, 12179], - "mapped", - [35282] - ], - [ - [12180, 12180], - "mapped", - [35328] - ], - [ - [12181, 12181], - "mapped", - [35895] - ], - [ - [12182, 12182], - "mapped", - [35910] - ], - [ - [12183, 12183], - "mapped", - [35925] - ], - [ - [12184, 12184], - "mapped", - [35960] - ], - [ - [12185, 12185], - "mapped", - [35997] - ], - [ - [12186, 12186], - "mapped", - [36196] - ], - [ - [12187, 12187], - "mapped", - [36208] - ], - [ - [12188, 12188], - "mapped", - [36275] - ], - [ - [12189, 12189], - "mapped", - [36523] - ], - [ - [12190, 12190], - "mapped", - [36554] - ], - [ - [12191, 12191], - "mapped", - [36763] - ], - [ - [12192, 12192], - "mapped", - [36784] - ], - [ - [12193, 12193], - "mapped", - [36789] - ], - [ - [12194, 12194], - "mapped", - [37009] - ], - [ - [12195, 12195], - "mapped", - [37193] - ], - [ - [12196, 12196], - "mapped", - [37318] - ], - [ - [12197, 12197], - "mapped", - [37324] - ], - [ - [12198, 12198], - "mapped", - [37329] - ], - [ - [12199, 12199], - "mapped", - [38263] - ], - [ - [12200, 12200], - "mapped", - [38272] - ], - [ - [12201, 12201], - "mapped", - [38428] - ], - [ - [12202, 12202], - "mapped", - [38582] - ], - [ - [12203, 12203], - "mapped", - [38585] - ], - [ - [12204, 12204], - "mapped", - [38632] - ], - [ - [12205, 12205], - "mapped", - [38737] - ], - [ - [12206, 12206], - "mapped", - [38750] - ], - [ - [12207, 12207], - "mapped", - [38754] - ], - [ - [12208, 12208], - "mapped", - [38761] - ], - [ - [12209, 12209], - "mapped", - [38859] - ], - [ - [12210, 12210], - "mapped", - [38893] - ], - [ - [12211, 12211], - "mapped", - [38899] - ], - [ - [12212, 12212], - "mapped", - [38913] - ], - [ - [12213, 12213], - "mapped", - [39080] - ], - [ - [12214, 12214], - "mapped", - [39131] - ], - [ - [12215, 12215], - "mapped", - [39135] - ], - [ - [12216, 12216], - "mapped", - [39318] - ], - [ - [12217, 12217], - "mapped", - [39321] - ], - [ - [12218, 12218], - "mapped", - [39340] - ], - [ - [12219, 12219], - "mapped", - [39592] - ], - [ - [12220, 12220], - "mapped", - [39640] - ], - [ - [12221, 12221], - "mapped", - [39647] - ], - [ - [12222, 12222], - "mapped", - [39717] - ], - [ - [12223, 12223], - "mapped", - [39727] - ], - [ - [12224, 12224], - "mapped", - [39730] - ], - [ - [12225, 12225], - "mapped", - [39740] - ], - [ - [12226, 12226], - "mapped", - [39770] - ], - [ - [12227, 12227], - "mapped", - [40165] - ], - [ - [12228, 12228], - "mapped", - [40565] - ], - [ - [12229, 12229], - "mapped", - [40575] - ], - [ - [12230, 12230], - "mapped", - [40613] - ], - [ - [12231, 12231], - "mapped", - [40635] - ], - [ - [12232, 12232], - "mapped", - [40643] - ], - [ - [12233, 12233], - "mapped", - [40653] - ], - [ - [12234, 12234], - "mapped", - [40657] - ], - [ - [12235, 12235], - "mapped", - [40697] - ], - [ - [12236, 12236], - "mapped", - [40701] - ], - [ - [12237, 12237], - "mapped", - [40718] - ], - [ - [12238, 12238], - "mapped", - [40723] - ], - [ - [12239, 12239], - "mapped", - [40736] - ], - [ - [12240, 12240], - "mapped", - [40763] - ], - [ - [12241, 12241], - "mapped", - [40778] - ], - [ - [12242, 12242], - "mapped", - [40786] - ], - [ - [12243, 12243], - "mapped", - [40845] - ], - [ - [12244, 12244], - "mapped", - [40860] - ], - [ - [12245, 12245], - "mapped", - [40864] - ], - [[12246, 12271], "disallowed"], - [[12272, 12283], "disallowed"], - [[12284, 12287], "disallowed"], - [ - [12288, 12288], - "disallowed_STD3_mapped", - [32] - ], - [ - [12289, 12289], - "valid", - [], - "NV8" - ], - [ - [12290, 12290], - "mapped", - [46] - ], - [ - [12291, 12292], - "valid", - [], - "NV8" - ], - [[12293, 12295], "valid"], - [ - [12296, 12329], - "valid", - [], - "NV8" - ], - [[12330, 12333], "valid"], - [ - [12334, 12341], - "valid", - [], - "NV8" - ], - [ - [12342, 12342], - "mapped", - [12306] - ], - [ - [12343, 12343], - "valid", - [], - "NV8" - ], - [ - [12344, 12344], - "mapped", - [21313] - ], - [ - [12345, 12345], - "mapped", - [21316] - ], - [ - [12346, 12346], - "mapped", - [21317] - ], - [ - [12347, 12347], - "valid", - [], - "NV8" - ], - [[12348, 12348], "valid"], - [ - [12349, 12349], - "valid", - [], - "NV8" - ], - [ - [12350, 12350], - "valid", - [], - "NV8" - ], - [ - [12351, 12351], - "valid", - [], - "NV8" - ], - [[12352, 12352], "disallowed"], - [[12353, 12436], "valid"], - [[12437, 12438], "valid"], - [[12439, 12440], "disallowed"], - [[12441, 12442], "valid"], - [ - [12443, 12443], - "disallowed_STD3_mapped", - [32, 12441] - ], - [ - [12444, 12444], - "disallowed_STD3_mapped", - [32, 12442] - ], - [[12445, 12446], "valid"], - [ - [12447, 12447], - "mapped", - [12424, 12426] - ], - [ - [12448, 12448], - "valid", - [], - "NV8" - ], - [[12449, 12542], "valid"], - [ - [12543, 12543], - "mapped", - [12467, 12488] - ], - [[12544, 12548], "disallowed"], - [[12549, 12588], "valid"], - [[12589, 12589], "valid"], - [[12590, 12592], "disallowed"], - [ - [12593, 12593], - "mapped", - [4352] - ], - [ - [12594, 12594], - "mapped", - [4353] - ], - [ - [12595, 12595], - "mapped", - [4522] - ], - [ - [12596, 12596], - "mapped", - [4354] - ], - [ - [12597, 12597], - "mapped", - [4524] - ], - [ - [12598, 12598], - "mapped", - [4525] - ], - [ - [12599, 12599], - "mapped", - [4355] - ], - [ - [12600, 12600], - "mapped", - [4356] - ], - [ - [12601, 12601], - "mapped", - [4357] - ], - [ - [12602, 12602], - "mapped", - [4528] - ], - [ - [12603, 12603], - "mapped", - [4529] - ], - [ - [12604, 12604], - "mapped", - [4530] - ], - [ - [12605, 12605], - "mapped", - [4531] - ], - [ - [12606, 12606], - "mapped", - [4532] - ], - [ - [12607, 12607], - "mapped", - [4533] - ], - [ - [12608, 12608], - "mapped", - [4378] - ], - [ - [12609, 12609], - "mapped", - [4358] - ], - [ - [12610, 12610], - "mapped", - [4359] - ], - [ - [12611, 12611], - "mapped", - [4360] - ], - [ - [12612, 12612], - "mapped", - [4385] - ], - [ - [12613, 12613], - "mapped", - [4361] - ], - [ - [12614, 12614], - "mapped", - [4362] - ], - [ - [12615, 12615], - "mapped", - [4363] - ], - [ - [12616, 12616], - "mapped", - [4364] - ], - [ - [12617, 12617], - "mapped", - [4365] - ], - [ - [12618, 12618], - "mapped", - [4366] - ], - [ - [12619, 12619], - "mapped", - [4367] - ], - [ - [12620, 12620], - "mapped", - [4368] - ], - [ - [12621, 12621], - "mapped", - [4369] - ], - [ - [12622, 12622], - "mapped", - [4370] - ], - [ - [12623, 12623], - "mapped", - [4449] - ], - [ - [12624, 12624], - "mapped", - [4450] - ], - [ - [12625, 12625], - "mapped", - [4451] - ], - [ - [12626, 12626], - "mapped", - [4452] - ], - [ - [12627, 12627], - "mapped", - [4453] - ], - [ - [12628, 12628], - "mapped", - [4454] - ], - [ - [12629, 12629], - "mapped", - [4455] - ], - [ - [12630, 12630], - "mapped", - [4456] - ], - [ - [12631, 12631], - "mapped", - [4457] - ], - [ - [12632, 12632], - "mapped", - [4458] - ], - [ - [12633, 12633], - "mapped", - [4459] - ], - [ - [12634, 12634], - "mapped", - [4460] - ], - [ - [12635, 12635], - "mapped", - [4461] - ], - [ - [12636, 12636], - "mapped", - [4462] - ], - [ - [12637, 12637], - "mapped", - [4463] - ], - [ - [12638, 12638], - "mapped", - [4464] - ], - [ - [12639, 12639], - "mapped", - [4465] - ], - [ - [12640, 12640], - "mapped", - [4466] - ], - [ - [12641, 12641], - "mapped", - [4467] - ], - [ - [12642, 12642], - "mapped", - [4468] - ], - [ - [12643, 12643], - "mapped", - [4469] - ], - [[12644, 12644], "disallowed"], - [ - [12645, 12645], - "mapped", - [4372] - ], - [ - [12646, 12646], - "mapped", - [4373] - ], - [ - [12647, 12647], - "mapped", - [4551] - ], - [ - [12648, 12648], - "mapped", - [4552] - ], - [ - [12649, 12649], - "mapped", - [4556] - ], - [ - [12650, 12650], - "mapped", - [4558] - ], - [ - [12651, 12651], - "mapped", - [4563] - ], - [ - [12652, 12652], - "mapped", - [4567] - ], - [ - [12653, 12653], - "mapped", - [4569] - ], - [ - [12654, 12654], - "mapped", - [4380] - ], - [ - [12655, 12655], - "mapped", - [4573] - ], - [ - [12656, 12656], - "mapped", - [4575] - ], - [ - [12657, 12657], - "mapped", - [4381] - ], - [ - [12658, 12658], - "mapped", - [4382] - ], - [ - [12659, 12659], - "mapped", - [4384] - ], - [ - [12660, 12660], - "mapped", - [4386] - ], - [ - [12661, 12661], - "mapped", - [4387] - ], - [ - [12662, 12662], - "mapped", - [4391] - ], - [ - [12663, 12663], - "mapped", - [4393] - ], - [ - [12664, 12664], - "mapped", - [4395] - ], - [ - [12665, 12665], - "mapped", - [4396] - ], - [ - [12666, 12666], - "mapped", - [4397] - ], - [ - [12667, 12667], - "mapped", - [4398] - ], - [ - [12668, 12668], - "mapped", - [4399] - ], - [ - [12669, 12669], - "mapped", - [4402] - ], - [ - [12670, 12670], - "mapped", - [4406] - ], - [ - [12671, 12671], - "mapped", - [4416] - ], - [ - [12672, 12672], - "mapped", - [4423] - ], - [ - [12673, 12673], - "mapped", - [4428] - ], - [ - [12674, 12674], - "mapped", - [4593] - ], - [ - [12675, 12675], - "mapped", - [4594] - ], - [ - [12676, 12676], - "mapped", - [4439] - ], - [ - [12677, 12677], - "mapped", - [4440] - ], - [ - [12678, 12678], - "mapped", - [4441] - ], - [ - [12679, 12679], - "mapped", - [4484] - ], - [ - [12680, 12680], - "mapped", - [4485] - ], - [ - [12681, 12681], - "mapped", - [4488] - ], - [ - [12682, 12682], - "mapped", - [4497] - ], - [ - [12683, 12683], - "mapped", - [4498] - ], - [ - [12684, 12684], - "mapped", - [4500] - ], - [ - [12685, 12685], - "mapped", - [4510] - ], - [ - [12686, 12686], - "mapped", - [4513] - ], - [[12687, 12687], "disallowed"], - [ - [12688, 12689], - "valid", - [], - "NV8" - ], - [ - [12690, 12690], - "mapped", - [19968] - ], - [ - [12691, 12691], - "mapped", - [20108] - ], - [ - [12692, 12692], - "mapped", - [19977] - ], - [ - [12693, 12693], - "mapped", - [22235] - ], - [ - [12694, 12694], - "mapped", - [19978] - ], - [ - [12695, 12695], - "mapped", - [20013] - ], - [ - [12696, 12696], - "mapped", - [19979] - ], - [ - [12697, 12697], - "mapped", - [30002] - ], - [ - [12698, 12698], - "mapped", - [20057] - ], - [ - [12699, 12699], - "mapped", - [19993] - ], - [ - [12700, 12700], - "mapped", - [19969] - ], - [ - [12701, 12701], - "mapped", - [22825] - ], - [ - [12702, 12702], - "mapped", - [22320] - ], - [ - [12703, 12703], - "mapped", - [20154] - ], - [[12704, 12727], "valid"], - [[12728, 12730], "valid"], - [[12731, 12735], "disallowed"], - [ - [12736, 12751], - "valid", - [], - "NV8" - ], - [ - [12752, 12771], - "valid", - [], - "NV8" - ], - [[12772, 12783], "disallowed"], - [[12784, 12799], "valid"], - [ - [12800, 12800], - "disallowed_STD3_mapped", - [ - 40, - 4352, - 41 - ] - ], - [ - [12801, 12801], - "disallowed_STD3_mapped", - [ - 40, - 4354, - 41 - ] - ], - [ - [12802, 12802], - "disallowed_STD3_mapped", - [ - 40, - 4355, - 41 - ] - ], - [ - [12803, 12803], - "disallowed_STD3_mapped", - [ - 40, - 4357, - 41 - ] - ], - [ - [12804, 12804], - "disallowed_STD3_mapped", - [ - 40, - 4358, - 41 - ] - ], - [ - [12805, 12805], - "disallowed_STD3_mapped", - [ - 40, - 4359, - 41 - ] - ], - [ - [12806, 12806], - "disallowed_STD3_mapped", - [ - 40, - 4361, - 41 - ] - ], - [ - [12807, 12807], - "disallowed_STD3_mapped", - [ - 40, - 4363, - 41 - ] - ], - [ - [12808, 12808], - "disallowed_STD3_mapped", - [ - 40, - 4364, - 41 - ] - ], - [ - [12809, 12809], - "disallowed_STD3_mapped", - [ - 40, - 4366, - 41 - ] - ], - [ - [12810, 12810], - "disallowed_STD3_mapped", - [ - 40, - 4367, - 41 - ] - ], - [ - [12811, 12811], - "disallowed_STD3_mapped", - [ - 40, - 4368, - 41 - ] - ], - [ - [12812, 12812], - "disallowed_STD3_mapped", - [ - 40, - 4369, - 41 - ] - ], - [ - [12813, 12813], - "disallowed_STD3_mapped", - [ - 40, - 4370, - 41 - ] - ], - [ - [12814, 12814], - "disallowed_STD3_mapped", - [ - 40, - 44032, - 41 - ] - ], - [ - [12815, 12815], - "disallowed_STD3_mapped", - [ - 40, - 45208, - 41 - ] - ], - [ - [12816, 12816], - "disallowed_STD3_mapped", - [ - 40, - 45796, - 41 - ] - ], - [ - [12817, 12817], - "disallowed_STD3_mapped", - [ - 40, - 46972, - 41 - ] - ], - [ - [12818, 12818], - "disallowed_STD3_mapped", - [ - 40, - 47560, - 41 - ] - ], - [ - [12819, 12819], - "disallowed_STD3_mapped", - [ - 40, - 48148, - 41 - ] - ], - [ - [12820, 12820], - "disallowed_STD3_mapped", - [ - 40, - 49324, - 41 - ] - ], - [ - [12821, 12821], - "disallowed_STD3_mapped", - [ - 40, - 50500, - 41 - ] - ], - [ - [12822, 12822], - "disallowed_STD3_mapped", - [ - 40, - 51088, - 41 - ] - ], - [ - [12823, 12823], - "disallowed_STD3_mapped", - [ - 40, - 52264, - 41 - ] - ], - [ - [12824, 12824], - "disallowed_STD3_mapped", - [ - 40, - 52852, - 41 - ] - ], - [ - [12825, 12825], - "disallowed_STD3_mapped", - [ - 40, - 53440, - 41 - ] - ], - [ - [12826, 12826], - "disallowed_STD3_mapped", - [ - 40, - 54028, - 41 - ] - ], - [ - [12827, 12827], - "disallowed_STD3_mapped", - [ - 40, - 54616, - 41 - ] - ], - [ - [12828, 12828], - "disallowed_STD3_mapped", - [ - 40, - 51452, - 41 - ] - ], - [ - [12829, 12829], - "disallowed_STD3_mapped", - [ - 40, - 50724, - 51204, - 41 - ] - ], - [ - [12830, 12830], - "disallowed_STD3_mapped", - [ - 40, - 50724, - 54980, - 41 - ] - ], - [[12831, 12831], "disallowed"], - [ - [12832, 12832], - "disallowed_STD3_mapped", - [ - 40, - 19968, - 41 - ] - ], - [ - [12833, 12833], - "disallowed_STD3_mapped", - [ - 40, - 20108, - 41 - ] - ], - [ - [12834, 12834], - "disallowed_STD3_mapped", - [ - 40, - 19977, - 41 - ] - ], - [ - [12835, 12835], - "disallowed_STD3_mapped", - [ - 40, - 22235, - 41 - ] - ], - [ - [12836, 12836], - "disallowed_STD3_mapped", - [ - 40, - 20116, - 41 - ] - ], - [ - [12837, 12837], - "disallowed_STD3_mapped", - [ - 40, - 20845, - 41 - ] - ], - [ - [12838, 12838], - "disallowed_STD3_mapped", - [ - 40, - 19971, - 41 - ] - ], - [ - [12839, 12839], - "disallowed_STD3_mapped", - [ - 40, - 20843, - 41 - ] - ], - [ - [12840, 12840], - "disallowed_STD3_mapped", - [ - 40, - 20061, - 41 - ] - ], - [ - [12841, 12841], - "disallowed_STD3_mapped", - [ - 40, - 21313, - 41 - ] - ], - [ - [12842, 12842], - "disallowed_STD3_mapped", - [ - 40, - 26376, - 41 - ] - ], - [ - [12843, 12843], - "disallowed_STD3_mapped", - [ - 40, - 28779, - 41 - ] - ], - [ - [12844, 12844], - "disallowed_STD3_mapped", - [ - 40, - 27700, - 41 - ] - ], - [ - [12845, 12845], - "disallowed_STD3_mapped", - [ - 40, - 26408, - 41 - ] - ], - [ - [12846, 12846], - "disallowed_STD3_mapped", - [ - 40, - 37329, - 41 - ] - ], - [ - [12847, 12847], - "disallowed_STD3_mapped", - [ - 40, - 22303, - 41 - ] - ], - [ - [12848, 12848], - "disallowed_STD3_mapped", - [ - 40, - 26085, - 41 - ] - ], - [ - [12849, 12849], - "disallowed_STD3_mapped", - [ - 40, - 26666, - 41 - ] - ], - [ - [12850, 12850], - "disallowed_STD3_mapped", - [ - 40, - 26377, - 41 - ] - ], - [ - [12851, 12851], - "disallowed_STD3_mapped", - [ - 40, - 31038, - 41 - ] - ], - [ - [12852, 12852], - "disallowed_STD3_mapped", - [ - 40, - 21517, - 41 - ] - ], - [ - [12853, 12853], - "disallowed_STD3_mapped", - [ - 40, - 29305, - 41 - ] - ], - [ - [12854, 12854], - "disallowed_STD3_mapped", - [ - 40, - 36001, - 41 - ] - ], - [ - [12855, 12855], - "disallowed_STD3_mapped", - [ - 40, - 31069, - 41 - ] - ], - [ - [12856, 12856], - "disallowed_STD3_mapped", - [ - 40, - 21172, - 41 - ] - ], - [ - [12857, 12857], - "disallowed_STD3_mapped", - [ - 40, - 20195, - 41 - ] - ], - [ - [12858, 12858], - "disallowed_STD3_mapped", - [ - 40, - 21628, - 41 - ] - ], - [ - [12859, 12859], - "disallowed_STD3_mapped", - [ - 40, - 23398, - 41 - ] - ], - [ - [12860, 12860], - "disallowed_STD3_mapped", - [ - 40, - 30435, - 41 - ] - ], - [ - [12861, 12861], - "disallowed_STD3_mapped", - [ - 40, - 20225, - 41 - ] - ], - [ - [12862, 12862], - "disallowed_STD3_mapped", - [ - 40, - 36039, - 41 - ] - ], - [ - [12863, 12863], - "disallowed_STD3_mapped", - [ - 40, - 21332, - 41 - ] - ], - [ - [12864, 12864], - "disallowed_STD3_mapped", - [ - 40, - 31085, - 41 - ] - ], - [ - [12865, 12865], - "disallowed_STD3_mapped", - [ - 40, - 20241, - 41 - ] - ], - [ - [12866, 12866], - "disallowed_STD3_mapped", - [ - 40, - 33258, - 41 - ] - ], - [ - [12867, 12867], - "disallowed_STD3_mapped", - [ - 40, - 33267, - 41 - ] - ], - [ - [12868, 12868], - "mapped", - [21839] - ], - [ - [12869, 12869], - "mapped", - [24188] - ], - [ - [12870, 12870], - "mapped", - [25991] - ], - [ - [12871, 12871], - "mapped", - [31631] - ], - [ - [12872, 12879], - "valid", - [], - "NV8" - ], - [ - [12880, 12880], - "mapped", - [ - 112, - 116, - 101 - ] - ], - [ - [12881, 12881], - "mapped", - [50, 49] - ], - [ - [12882, 12882], - "mapped", - [50, 50] - ], - [ - [12883, 12883], - "mapped", - [50, 51] - ], - [ - [12884, 12884], - "mapped", - [50, 52] - ], - [ - [12885, 12885], - "mapped", - [50, 53] - ], - [ - [12886, 12886], - "mapped", - [50, 54] - ], - [ - [12887, 12887], - "mapped", - [50, 55] - ], - [ - [12888, 12888], - "mapped", - [50, 56] - ], - [ - [12889, 12889], - "mapped", - [50, 57] - ], - [ - [12890, 12890], - "mapped", - [51, 48] - ], - [ - [12891, 12891], - "mapped", - [51, 49] - ], - [ - [12892, 12892], - "mapped", - [51, 50] - ], - [ - [12893, 12893], - "mapped", - [51, 51] - ], - [ - [12894, 12894], - "mapped", - [51, 52] - ], - [ - [12895, 12895], - "mapped", - [51, 53] - ], - [ - [12896, 12896], - "mapped", - [4352] - ], - [ - [12897, 12897], - "mapped", - [4354] - ], - [ - [12898, 12898], - "mapped", - [4355] - ], - [ - [12899, 12899], - "mapped", - [4357] - ], - [ - [12900, 12900], - "mapped", - [4358] - ], - [ - [12901, 12901], - "mapped", - [4359] - ], - [ - [12902, 12902], - "mapped", - [4361] - ], - [ - [12903, 12903], - "mapped", - [4363] - ], - [ - [12904, 12904], - "mapped", - [4364] - ], - [ - [12905, 12905], - "mapped", - [4366] - ], - [ - [12906, 12906], - "mapped", - [4367] - ], - [ - [12907, 12907], - "mapped", - [4368] - ], - [ - [12908, 12908], - "mapped", - [4369] - ], - [ - [12909, 12909], - "mapped", - [4370] - ], - [ - [12910, 12910], - "mapped", - [44032] - ], - [ - [12911, 12911], - "mapped", - [45208] - ], - [ - [12912, 12912], - "mapped", - [45796] - ], - [ - [12913, 12913], - "mapped", - [46972] - ], - [ - [12914, 12914], - "mapped", - [47560] - ], - [ - [12915, 12915], - "mapped", - [48148] - ], - [ - [12916, 12916], - "mapped", - [49324] - ], - [ - [12917, 12917], - "mapped", - [50500] - ], - [ - [12918, 12918], - "mapped", - [51088] - ], - [ - [12919, 12919], - "mapped", - [52264] - ], - [ - [12920, 12920], - "mapped", - [52852] - ], - [ - [12921, 12921], - "mapped", - [53440] - ], - [ - [12922, 12922], - "mapped", - [54028] - ], - [ - [12923, 12923], - "mapped", - [54616] - ], - [ - [12924, 12924], - "mapped", - [52280, 44256] - ], - [ - [12925, 12925], - "mapped", - [51452, 51032] - ], - [ - [12926, 12926], - "mapped", - [50864] - ], - [ - [12927, 12927], - "valid", - [], - "NV8" - ], - [ - [12928, 12928], - "mapped", - [19968] - ], - [ - [12929, 12929], - "mapped", - [20108] - ], - [ - [12930, 12930], - "mapped", - [19977] - ], - [ - [12931, 12931], - "mapped", - [22235] - ], - [ - [12932, 12932], - "mapped", - [20116] - ], - [ - [12933, 12933], - "mapped", - [20845] - ], - [ - [12934, 12934], - "mapped", - [19971] - ], - [ - [12935, 12935], - "mapped", - [20843] - ], - [ - [12936, 12936], - "mapped", - [20061] - ], - [ - [12937, 12937], - "mapped", - [21313] - ], - [ - [12938, 12938], - "mapped", - [26376] - ], - [ - [12939, 12939], - "mapped", - [28779] - ], - [ - [12940, 12940], - "mapped", - [27700] - ], - [ - [12941, 12941], - "mapped", - [26408] - ], - [ - [12942, 12942], - "mapped", - [37329] - ], - [ - [12943, 12943], - "mapped", - [22303] - ], - [ - [12944, 12944], - "mapped", - [26085] - ], - [ - [12945, 12945], - "mapped", - [26666] - ], - [ - [12946, 12946], - "mapped", - [26377] - ], - [ - [12947, 12947], - "mapped", - [31038] - ], - [ - [12948, 12948], - "mapped", - [21517] - ], - [ - [12949, 12949], - "mapped", - [29305] - ], - [ - [12950, 12950], - "mapped", - [36001] - ], - [ - [12951, 12951], - "mapped", - [31069] - ], - [ - [12952, 12952], - "mapped", - [21172] - ], - [ - [12953, 12953], - "mapped", - [31192] - ], - [ - [12954, 12954], - "mapped", - [30007] - ], - [ - [12955, 12955], - "mapped", - [22899] - ], - [ - [12956, 12956], - "mapped", - [36969] - ], - [ - [12957, 12957], - "mapped", - [20778] - ], - [ - [12958, 12958], - "mapped", - [21360] - ], - [ - [12959, 12959], - "mapped", - [27880] - ], - [ - [12960, 12960], - "mapped", - [38917] - ], - [ - [12961, 12961], - "mapped", - [20241] - ], - [ - [12962, 12962], - "mapped", - [20889] - ], - [ - [12963, 12963], - "mapped", - [27491] - ], - [ - [12964, 12964], - "mapped", - [19978] - ], - [ - [12965, 12965], - "mapped", - [20013] - ], - [ - [12966, 12966], - "mapped", - [19979] - ], - [ - [12967, 12967], - "mapped", - [24038] - ], - [ - [12968, 12968], - "mapped", - [21491] - ], - [ - [12969, 12969], - "mapped", - [21307] - ], - [ - [12970, 12970], - "mapped", - [23447] - ], - [ - [12971, 12971], - "mapped", - [23398] - ], - [ - [12972, 12972], - "mapped", - [30435] - ], - [ - [12973, 12973], - "mapped", - [20225] - ], - [ - [12974, 12974], - "mapped", - [36039] - ], - [ - [12975, 12975], - "mapped", - [21332] - ], - [ - [12976, 12976], - "mapped", - [22812] - ], - [ - [12977, 12977], - "mapped", - [51, 54] - ], - [ - [12978, 12978], - "mapped", - [51, 55] - ], - [ - [12979, 12979], - "mapped", - [51, 56] - ], - [ - [12980, 12980], - "mapped", - [51, 57] - ], - [ - [12981, 12981], - "mapped", - [52, 48] - ], - [ - [12982, 12982], - "mapped", - [52, 49] - ], - [ - [12983, 12983], - "mapped", - [52, 50] - ], - [ - [12984, 12984], - "mapped", - [52, 51] - ], - [ - [12985, 12985], - "mapped", - [52, 52] - ], - [ - [12986, 12986], - "mapped", - [52, 53] - ], - [ - [12987, 12987], - "mapped", - [52, 54] - ], - [ - [12988, 12988], - "mapped", - [52, 55] - ], - [ - [12989, 12989], - "mapped", - [52, 56] - ], - [ - [12990, 12990], - "mapped", - [52, 57] - ], - [ - [12991, 12991], - "mapped", - [53, 48] - ], - [ - [12992, 12992], - "mapped", - [49, 26376] - ], - [ - [12993, 12993], - "mapped", - [50, 26376] - ], - [ - [12994, 12994], - "mapped", - [51, 26376] - ], - [ - [12995, 12995], - "mapped", - [52, 26376] - ], - [ - [12996, 12996], - "mapped", - [53, 26376] - ], - [ - [12997, 12997], - "mapped", - [54, 26376] - ], - [ - [12998, 12998], - "mapped", - [55, 26376] - ], - [ - [12999, 12999], - "mapped", - [56, 26376] - ], - [ - [13e3, 13e3], - "mapped", - [57, 26376] - ], - [ - [13001, 13001], - "mapped", - [ - 49, - 48, - 26376 - ] - ], - [ - [13002, 13002], - "mapped", - [ - 49, - 49, - 26376 - ] - ], - [ - [13003, 13003], - "mapped", - [ - 49, - 50, - 26376 - ] - ], - [ - [13004, 13004], - "mapped", - [104, 103] - ], - [ - [13005, 13005], - "mapped", - [ - 101, - 114, - 103 - ] - ], - [ - [13006, 13006], - "mapped", - [101, 118] - ], - [ - [13007, 13007], - "mapped", - [ - 108, - 116, - 100 - ] - ], - [ - [13008, 13008], - "mapped", - [12450] - ], - [ - [13009, 13009], - "mapped", - [12452] - ], - [ - [13010, 13010], - "mapped", - [12454] - ], - [ - [13011, 13011], - "mapped", - [12456] - ], - [ - [13012, 13012], - "mapped", - [12458] - ], - [ - [13013, 13013], - "mapped", - [12459] - ], - [ - [13014, 13014], - "mapped", - [12461] - ], - [ - [13015, 13015], - "mapped", - [12463] - ], - [ - [13016, 13016], - "mapped", - [12465] - ], - [ - [13017, 13017], - "mapped", - [12467] - ], - [ - [13018, 13018], - "mapped", - [12469] - ], - [ - [13019, 13019], - "mapped", - [12471] - ], - [ - [13020, 13020], - "mapped", - [12473] - ], - [ - [13021, 13021], - "mapped", - [12475] - ], - [ - [13022, 13022], - "mapped", - [12477] - ], - [ - [13023, 13023], - "mapped", - [12479] - ], - [ - [13024, 13024], - "mapped", - [12481] - ], - [ - [13025, 13025], - "mapped", - [12484] - ], - [ - [13026, 13026], - "mapped", - [12486] - ], - [ - [13027, 13027], - "mapped", - [12488] - ], - [ - [13028, 13028], - "mapped", - [12490] - ], - [ - [13029, 13029], - "mapped", - [12491] - ], - [ - [13030, 13030], - "mapped", - [12492] - ], - [ - [13031, 13031], - "mapped", - [12493] - ], - [ - [13032, 13032], - "mapped", - [12494] - ], - [ - [13033, 13033], - "mapped", - [12495] - ], - [ - [13034, 13034], - "mapped", - [12498] - ], - [ - [13035, 13035], - "mapped", - [12501] - ], - [ - [13036, 13036], - "mapped", - [12504] - ], - [ - [13037, 13037], - "mapped", - [12507] - ], - [ - [13038, 13038], - "mapped", - [12510] - ], - [ - [13039, 13039], - "mapped", - [12511] - ], - [ - [13040, 13040], - "mapped", - [12512] - ], - [ - [13041, 13041], - "mapped", - [12513] - ], - [ - [13042, 13042], - "mapped", - [12514] - ], - [ - [13043, 13043], - "mapped", - [12516] - ], - [ - [13044, 13044], - "mapped", - [12518] - ], - [ - [13045, 13045], - "mapped", - [12520] - ], - [ - [13046, 13046], - "mapped", - [12521] - ], - [ - [13047, 13047], - "mapped", - [12522] - ], - [ - [13048, 13048], - "mapped", - [12523] - ], - [ - [13049, 13049], - "mapped", - [12524] - ], - [ - [13050, 13050], - "mapped", - [12525] - ], - [ - [13051, 13051], - "mapped", - [12527] - ], - [ - [13052, 13052], - "mapped", - [12528] - ], - [ - [13053, 13053], - "mapped", - [12529] - ], - [ - [13054, 13054], - "mapped", - [12530] - ], - [[13055, 13055], "disallowed"], - [ - [13056, 13056], - "mapped", - [ - 12450, - 12497, - 12540, - 12488 - ] - ], - [ - [13057, 13057], - "mapped", - [ - 12450, - 12523, - 12501, - 12449 - ] - ], - [ - [13058, 13058], - "mapped", - [ - 12450, - 12531, - 12506, - 12450 - ] - ], - [ - [13059, 13059], - "mapped", - [ - 12450, - 12540, - 12523 - ] - ], - [ - [13060, 13060], - "mapped", - [ - 12452, - 12491, - 12531, - 12464 - ] - ], - [ - [13061, 13061], - "mapped", - [ - 12452, - 12531, - 12481 - ] - ], - [ - [13062, 13062], - "mapped", - [ - 12454, - 12457, - 12531 - ] - ], - [ - [13063, 13063], - "mapped", - [ - 12456, - 12473, - 12463, - 12540, - 12489 - ] - ], - [ - [13064, 13064], - "mapped", - [ - 12456, - 12540, - 12459, - 12540 - ] - ], - [ - [13065, 13065], - "mapped", - [ - 12458, - 12531, - 12473 - ] - ], - [ - [13066, 13066], - "mapped", - [ - 12458, - 12540, - 12512 - ] - ], - [ - [13067, 13067], - "mapped", - [ - 12459, - 12452, - 12522 - ] - ], - [ - [13068, 13068], - "mapped", - [ - 12459, - 12521, - 12483, - 12488 - ] - ], - [ - [13069, 13069], - "mapped", - [ - 12459, - 12525, - 12522, - 12540 - ] - ], - [ - [13070, 13070], - "mapped", - [ - 12460, - 12525, - 12531 - ] - ], - [ - [13071, 13071], - "mapped", - [ - 12460, - 12531, - 12510 - ] - ], - [ - [13072, 13072], - "mapped", - [12462, 12460] - ], - [ - [13073, 13073], - "mapped", - [ - 12462, - 12491, - 12540 - ] - ], - [ - [13074, 13074], - "mapped", - [ - 12461, - 12517, - 12522, - 12540 - ] - ], - [ - [13075, 13075], - "mapped", - [ - 12462, - 12523, - 12480, - 12540 - ] - ], - [ - [13076, 13076], - "mapped", - [12461, 12525] - ], - [ - [13077, 13077], - "mapped", - [ - 12461, - 12525, - 12464, - 12521, - 12512 - ] - ], - [ - [13078, 13078], - "mapped", - [ - 12461, - 12525, - 12513, - 12540, - 12488, - 12523 - ] - ], - [ - [13079, 13079], - "mapped", - [ - 12461, - 12525, - 12527, - 12483, - 12488 - ] - ], - [ - [13080, 13080], - "mapped", - [ - 12464, - 12521, - 12512 - ] - ], - [ - [13081, 13081], - "mapped", - [ - 12464, - 12521, - 12512, - 12488, - 12531 - ] - ], - [ - [13082, 13082], - "mapped", - [ - 12463, - 12523, - 12476, - 12452, - 12525 - ] - ], - [ - [13083, 13083], - "mapped", - [ - 12463, - 12525, - 12540, - 12493 - ] - ], - [ - [13084, 13084], - "mapped", - [ - 12465, - 12540, - 12473 - ] - ], - [ - [13085, 13085], - "mapped", - [ - 12467, - 12523, - 12490 - ] - ], - [ - [13086, 13086], - "mapped", - [ - 12467, - 12540, - 12509 - ] - ], - [ - [13087, 13087], - "mapped", - [ - 12469, - 12452, - 12463, - 12523 - ] - ], - [ - [13088, 13088], - "mapped", - [ - 12469, - 12531, - 12481, - 12540, - 12512 - ] - ], - [ - [13089, 13089], - "mapped", - [ - 12471, - 12522, - 12531, - 12464 - ] - ], - [ - [13090, 13090], - "mapped", - [ - 12475, - 12531, - 12481 - ] - ], - [ - [13091, 13091], - "mapped", - [ - 12475, - 12531, - 12488 - ] - ], - [ - [13092, 13092], - "mapped", - [ - 12480, - 12540, - 12473 - ] - ], - [ - [13093, 13093], - "mapped", - [12487, 12471] - ], - [ - [13094, 13094], - "mapped", - [12489, 12523] - ], - [ - [13095, 13095], - "mapped", - [12488, 12531] - ], - [ - [13096, 13096], - "mapped", - [12490, 12494] - ], - [ - [13097, 13097], - "mapped", - [ - 12494, - 12483, - 12488 - ] - ], - [ - [13098, 13098], - "mapped", - [ - 12495, - 12452, - 12484 - ] - ], - [ - [13099, 13099], - "mapped", - [ - 12497, - 12540, - 12475, - 12531, - 12488 - ] - ], - [ - [13100, 13100], - "mapped", - [ - 12497, - 12540, - 12484 - ] - ], - [ - [13101, 13101], - "mapped", - [ - 12496, - 12540, - 12524, - 12523 - ] - ], - [ - [13102, 13102], - "mapped", - [ - 12500, - 12450, - 12473, - 12488, - 12523 - ] - ], - [ - [13103, 13103], - "mapped", - [ - 12500, - 12463, - 12523 - ] - ], - [ - [13104, 13104], - "mapped", - [12500, 12467] - ], - [ - [13105, 13105], - "mapped", - [12499, 12523] - ], - [ - [13106, 13106], - "mapped", - [ - 12501, - 12449, - 12521, - 12483, - 12489 - ] - ], - [ - [13107, 13107], - "mapped", - [ - 12501, - 12451, - 12540, - 12488 - ] - ], - [ - [13108, 13108], - "mapped", - [ - 12502, - 12483, - 12471, - 12455, - 12523 - ] - ], - [ - [13109, 13109], - "mapped", - [ - 12501, - 12521, - 12531 - ] - ], - [ - [13110, 13110], - "mapped", - [ - 12504, - 12463, - 12479, - 12540, - 12523 - ] - ], - [ - [13111, 13111], - "mapped", - [12506, 12477] - ], - [ - [13112, 13112], - "mapped", - [ - 12506, - 12491, - 12498 - ] - ], - [ - [13113, 13113], - "mapped", - [ - 12504, - 12523, - 12484 - ] - ], - [ - [13114, 13114], - "mapped", - [ - 12506, - 12531, - 12473 - ] - ], - [ - [13115, 13115], - "mapped", - [ - 12506, - 12540, - 12472 - ] - ], - [ - [13116, 13116], - "mapped", - [ - 12505, - 12540, - 12479 - ] - ], - [ - [13117, 13117], - "mapped", - [ - 12509, - 12452, - 12531, - 12488 - ] - ], - [ - [13118, 13118], - "mapped", - [ - 12508, - 12523, - 12488 - ] - ], - [ - [13119, 13119], - "mapped", - [12507, 12531] - ], - [ - [13120, 13120], - "mapped", - [ - 12509, - 12531, - 12489 - ] - ], - [ - [13121, 13121], - "mapped", - [ - 12507, - 12540, - 12523 - ] - ], - [ - [13122, 13122], - "mapped", - [ - 12507, - 12540, - 12531 - ] - ], - [ - [13123, 13123], - "mapped", - [ - 12510, - 12452, - 12463, - 12525 - ] - ], - [ - [13124, 13124], - "mapped", - [ - 12510, - 12452, - 12523 - ] - ], - [ - [13125, 13125], - "mapped", - [ - 12510, - 12483, - 12495 - ] - ], - [ - [13126, 13126], - "mapped", - [ - 12510, - 12523, - 12463 - ] - ], - [ - [13127, 13127], - "mapped", - [ - 12510, - 12531, - 12471, - 12519, - 12531 - ] - ], - [ - [13128, 13128], - "mapped", - [ - 12511, - 12463, - 12525, - 12531 - ] - ], - [ - [13129, 13129], - "mapped", - [12511, 12522] - ], - [ - [13130, 13130], - "mapped", - [ - 12511, - 12522, - 12496, - 12540, - 12523 - ] - ], - [ - [13131, 13131], - "mapped", - [12513, 12460] - ], - [ - [13132, 13132], - "mapped", - [ - 12513, - 12460, - 12488, - 12531 - ] - ], - [ - [13133, 13133], - "mapped", - [ - 12513, - 12540, - 12488, - 12523 - ] - ], - [ - [13134, 13134], - "mapped", - [ - 12516, - 12540, - 12489 - ] - ], - [ - [13135, 13135], - "mapped", - [ - 12516, - 12540, - 12523 - ] - ], - [ - [13136, 13136], - "mapped", - [ - 12518, - 12450, - 12531 - ] - ], - [ - [13137, 13137], - "mapped", - [ - 12522, - 12483, - 12488, - 12523 - ] - ], - [ - [13138, 13138], - "mapped", - [12522, 12521] - ], - [ - [13139, 13139], - "mapped", - [ - 12523, - 12500, - 12540 - ] - ], - [ - [13140, 13140], - "mapped", - [ - 12523, - 12540, - 12502, - 12523 - ] - ], - [ - [13141, 13141], - "mapped", - [12524, 12512] - ], - [ - [13142, 13142], - "mapped", - [ - 12524, - 12531, - 12488, - 12466, - 12531 - ] - ], - [ - [13143, 13143], - "mapped", - [ - 12527, - 12483, - 12488 - ] - ], - [ - [13144, 13144], - "mapped", - [48, 28857] - ], - [ - [13145, 13145], - "mapped", - [49, 28857] - ], - [ - [13146, 13146], - "mapped", - [50, 28857] - ], - [ - [13147, 13147], - "mapped", - [51, 28857] - ], - [ - [13148, 13148], - "mapped", - [52, 28857] - ], - [ - [13149, 13149], - "mapped", - [53, 28857] - ], - [ - [13150, 13150], - "mapped", - [54, 28857] - ], - [ - [13151, 13151], - "mapped", - [55, 28857] - ], - [ - [13152, 13152], - "mapped", - [56, 28857] - ], - [ - [13153, 13153], - "mapped", - [57, 28857] - ], - [ - [13154, 13154], - "mapped", - [ - 49, - 48, - 28857 - ] - ], - [ - [13155, 13155], - "mapped", - [ - 49, - 49, - 28857 - ] - ], - [ - [13156, 13156], - "mapped", - [ - 49, - 50, - 28857 - ] - ], - [ - [13157, 13157], - "mapped", - [ - 49, - 51, - 28857 - ] - ], - [ - [13158, 13158], - "mapped", - [ - 49, - 52, - 28857 - ] - ], - [ - [13159, 13159], - "mapped", - [ - 49, - 53, - 28857 - ] - ], - [ - [13160, 13160], - "mapped", - [ - 49, - 54, - 28857 - ] - ], - [ - [13161, 13161], - "mapped", - [ - 49, - 55, - 28857 - ] - ], - [ - [13162, 13162], - "mapped", - [ - 49, - 56, - 28857 - ] - ], - [ - [13163, 13163], - "mapped", - [ - 49, - 57, - 28857 - ] - ], - [ - [13164, 13164], - "mapped", - [ - 50, - 48, - 28857 - ] - ], - [ - [13165, 13165], - "mapped", - [ - 50, - 49, - 28857 - ] - ], - [ - [13166, 13166], - "mapped", - [ - 50, - 50, - 28857 - ] - ], - [ - [13167, 13167], - "mapped", - [ - 50, - 51, - 28857 - ] - ], - [ - [13168, 13168], - "mapped", - [ - 50, - 52, - 28857 - ] - ], - [ - [13169, 13169], - "mapped", - [ - 104, - 112, - 97 - ] - ], - [ - [13170, 13170], - "mapped", - [100, 97] - ], - [ - [13171, 13171], - "mapped", - [97, 117] - ], - [ - [13172, 13172], - "mapped", - [ - 98, - 97, - 114 - ] - ], - [ - [13173, 13173], - "mapped", - [111, 118] - ], - [ - [13174, 13174], - "mapped", - [112, 99] - ], - [ - [13175, 13175], - "mapped", - [100, 109] - ], - [ - [13176, 13176], - "mapped", - [ - 100, - 109, - 50 - ] - ], - [ - [13177, 13177], - "mapped", - [ - 100, - 109, - 51 - ] - ], - [ - [13178, 13178], - "mapped", - [105, 117] - ], - [ - [13179, 13179], - "mapped", - [24179, 25104] - ], - [ - [13180, 13180], - "mapped", - [26157, 21644] - ], - [ - [13181, 13181], - "mapped", - [22823, 27491] - ], - [ - [13182, 13182], - "mapped", - [26126, 27835] - ], - [ - [13183, 13183], - "mapped", - [ - 26666, - 24335, - 20250, - 31038 - ] - ], - [ - [13184, 13184], - "mapped", - [112, 97] - ], - [ - [13185, 13185], - "mapped", - [110, 97] - ], - [ - [13186, 13186], - "mapped", - [956, 97] - ], - [ - [13187, 13187], - "mapped", - [109, 97] - ], - [ - [13188, 13188], - "mapped", - [107, 97] - ], - [ - [13189, 13189], - "mapped", - [107, 98] - ], - [ - [13190, 13190], - "mapped", - [109, 98] - ], - [ - [13191, 13191], - "mapped", - [103, 98] - ], - [ - [13192, 13192], - "mapped", - [ - 99, - 97, - 108 - ] - ], - [ - [13193, 13193], - "mapped", - [ - 107, - 99, - 97, - 108 - ] - ], - [ - [13194, 13194], - "mapped", - [112, 102] - ], - [ - [13195, 13195], - "mapped", - [110, 102] - ], - [ - [13196, 13196], - "mapped", - [956, 102] - ], - [ - [13197, 13197], - "mapped", - [956, 103] - ], - [ - [13198, 13198], - "mapped", - [109, 103] - ], - [ - [13199, 13199], - "mapped", - [107, 103] - ], - [ - [13200, 13200], - "mapped", - [104, 122] - ], - [ - [13201, 13201], - "mapped", - [ - 107, - 104, - 122 - ] - ], - [ - [13202, 13202], - "mapped", - [ - 109, - 104, - 122 - ] - ], - [ - [13203, 13203], - "mapped", - [ - 103, - 104, - 122 - ] - ], - [ - [13204, 13204], - "mapped", - [ - 116, - 104, - 122 - ] - ], - [ - [13205, 13205], - "mapped", - [956, 108] - ], - [ - [13206, 13206], - "mapped", - [109, 108] - ], - [ - [13207, 13207], - "mapped", - [100, 108] - ], - [ - [13208, 13208], - "mapped", - [107, 108] - ], - [ - [13209, 13209], - "mapped", - [102, 109] - ], - [ - [13210, 13210], - "mapped", - [110, 109] - ], - [ - [13211, 13211], - "mapped", - [956, 109] - ], - [ - [13212, 13212], - "mapped", - [109, 109] - ], - [ - [13213, 13213], - "mapped", - [99, 109] - ], - [ - [13214, 13214], - "mapped", - [107, 109] - ], - [ - [13215, 13215], - "mapped", - [ - 109, - 109, - 50 - ] - ], - [ - [13216, 13216], - "mapped", - [ - 99, - 109, - 50 - ] - ], - [ - [13217, 13217], - "mapped", - [109, 50] - ], - [ - [13218, 13218], - "mapped", - [ - 107, - 109, - 50 - ] - ], - [ - [13219, 13219], - "mapped", - [ - 109, - 109, - 51 - ] - ], - [ - [13220, 13220], - "mapped", - [ - 99, - 109, - 51 - ] - ], - [ - [13221, 13221], - "mapped", - [109, 51] - ], - [ - [13222, 13222], - "mapped", - [ - 107, - 109, - 51 - ] - ], - [ - [13223, 13223], - "mapped", - [ - 109, - 8725, - 115 - ] - ], - [ - [13224, 13224], - "mapped", - [ - 109, - 8725, - 115, - 50 - ] - ], - [ - [13225, 13225], - "mapped", - [112, 97] - ], - [ - [13226, 13226], - "mapped", - [ - 107, - 112, - 97 - ] - ], - [ - [13227, 13227], - "mapped", - [ - 109, - 112, - 97 - ] - ], - [ - [13228, 13228], - "mapped", - [ - 103, - 112, - 97 - ] - ], - [ - [13229, 13229], - "mapped", - [ - 114, - 97, - 100 - ] - ], - [ - [13230, 13230], - "mapped", - [ - 114, - 97, - 100, - 8725, - 115 - ] - ], - [ - [13231, 13231], - "mapped", - [ - 114, - 97, - 100, - 8725, - 115, - 50 - ] - ], - [ - [13232, 13232], - "mapped", - [112, 115] - ], - [ - [13233, 13233], - "mapped", - [110, 115] - ], - [ - [13234, 13234], - "mapped", - [956, 115] - ], - [ - [13235, 13235], - "mapped", - [109, 115] - ], - [ - [13236, 13236], - "mapped", - [112, 118] - ], - [ - [13237, 13237], - "mapped", - [110, 118] - ], - [ - [13238, 13238], - "mapped", - [956, 118] - ], - [ - [13239, 13239], - "mapped", - [109, 118] - ], - [ - [13240, 13240], - "mapped", - [107, 118] - ], - [ - [13241, 13241], - "mapped", - [109, 118] - ], - [ - [13242, 13242], - "mapped", - [112, 119] - ], - [ - [13243, 13243], - "mapped", - [110, 119] - ], - [ - [13244, 13244], - "mapped", - [956, 119] - ], - [ - [13245, 13245], - "mapped", - [109, 119] - ], - [ - [13246, 13246], - "mapped", - [107, 119] - ], - [ - [13247, 13247], - "mapped", - [109, 119] - ], - [ - [13248, 13248], - "mapped", - [107, 969] - ], - [ - [13249, 13249], - "mapped", - [109, 969] - ], - [[13250, 13250], "disallowed"], - [ - [13251, 13251], - "mapped", - [98, 113] - ], - [ - [13252, 13252], - "mapped", - [99, 99] - ], - [ - [13253, 13253], - "mapped", - [99, 100] - ], - [ - [13254, 13254], - "mapped", - [ - 99, - 8725, - 107, - 103 - ] - ], - [[13255, 13255], "disallowed"], - [ - [13256, 13256], - "mapped", - [100, 98] - ], - [ - [13257, 13257], - "mapped", - [103, 121] - ], - [ - [13258, 13258], - "mapped", - [104, 97] - ], - [ - [13259, 13259], - "mapped", - [104, 112] - ], - [ - [13260, 13260], - "mapped", - [105, 110] - ], - [ - [13261, 13261], - "mapped", - [107, 107] - ], - [ - [13262, 13262], - "mapped", - [107, 109] - ], - [ - [13263, 13263], - "mapped", - [107, 116] - ], - [ - [13264, 13264], - "mapped", - [108, 109] - ], - [ - [13265, 13265], - "mapped", - [108, 110] - ], - [ - [13266, 13266], - "mapped", - [ - 108, - 111, - 103 - ] - ], - [ - [13267, 13267], - "mapped", - [108, 120] - ], - [ - [13268, 13268], - "mapped", - [109, 98] - ], - [ - [13269, 13269], - "mapped", - [ - 109, - 105, - 108 - ] - ], - [ - [13270, 13270], - "mapped", - [ - 109, - 111, - 108 - ] - ], - [ - [13271, 13271], - "mapped", - [112, 104] - ], - [[13272, 13272], "disallowed"], - [ - [13273, 13273], - "mapped", - [ - 112, - 112, - 109 - ] - ], - [ - [13274, 13274], - "mapped", - [112, 114] - ], - [ - [13275, 13275], - "mapped", - [115, 114] - ], - [ - [13276, 13276], - "mapped", - [115, 118] - ], - [ - [13277, 13277], - "mapped", - [119, 98] - ], - [ - [13278, 13278], - "mapped", - [ - 118, - 8725, - 109 - ] - ], - [ - [13279, 13279], - "mapped", - [ - 97, - 8725, - 109 - ] - ], - [ - [13280, 13280], - "mapped", - [49, 26085] - ], - [ - [13281, 13281], - "mapped", - [50, 26085] - ], - [ - [13282, 13282], - "mapped", - [51, 26085] - ], - [ - [13283, 13283], - "mapped", - [52, 26085] - ], - [ - [13284, 13284], - "mapped", - [53, 26085] - ], - [ - [13285, 13285], - "mapped", - [54, 26085] - ], - [ - [13286, 13286], - "mapped", - [55, 26085] - ], - [ - [13287, 13287], - "mapped", - [56, 26085] - ], - [ - [13288, 13288], - "mapped", - [57, 26085] - ], - [ - [13289, 13289], - "mapped", - [ - 49, - 48, - 26085 - ] - ], - [ - [13290, 13290], - "mapped", - [ - 49, - 49, - 26085 - ] - ], - [ - [13291, 13291], - "mapped", - [ - 49, - 50, - 26085 - ] - ], - [ - [13292, 13292], - "mapped", - [ - 49, - 51, - 26085 - ] - ], - [ - [13293, 13293], - "mapped", - [ - 49, - 52, - 26085 - ] - ], - [ - [13294, 13294], - "mapped", - [ - 49, - 53, - 26085 - ] - ], - [ - [13295, 13295], - "mapped", - [ - 49, - 54, - 26085 - ] - ], - [ - [13296, 13296], - "mapped", - [ - 49, - 55, - 26085 - ] - ], - [ - [13297, 13297], - "mapped", - [ - 49, - 56, - 26085 - ] - ], - [ - [13298, 13298], - "mapped", - [ - 49, - 57, - 26085 - ] - ], - [ - [13299, 13299], - "mapped", - [ - 50, - 48, - 26085 - ] - ], - [ - [13300, 13300], - "mapped", - [ - 50, - 49, - 26085 - ] - ], - [ - [13301, 13301], - "mapped", - [ - 50, - 50, - 26085 - ] - ], - [ - [13302, 13302], - "mapped", - [ - 50, - 51, - 26085 - ] - ], - [ - [13303, 13303], - "mapped", - [ - 50, - 52, - 26085 - ] - ], - [ - [13304, 13304], - "mapped", - [ - 50, - 53, - 26085 - ] - ], - [ - [13305, 13305], - "mapped", - [ - 50, - 54, - 26085 - ] - ], - [ - [13306, 13306], - "mapped", - [ - 50, - 55, - 26085 - ] - ], - [ - [13307, 13307], - "mapped", - [ - 50, - 56, - 26085 - ] - ], - [ - [13308, 13308], - "mapped", - [ - 50, - 57, - 26085 - ] - ], - [ - [13309, 13309], - "mapped", - [ - 51, - 48, - 26085 - ] - ], - [ - [13310, 13310], - "mapped", - [ - 51, - 49, - 26085 - ] - ], - [ - [13311, 13311], - "mapped", - [ - 103, - 97, - 108 - ] - ], - [[13312, 19893], "valid"], - [[19894, 19903], "disallowed"], - [ - [19904, 19967], - "valid", - [], - "NV8" - ], - [[19968, 40869], "valid"], - [[40870, 40891], "valid"], - [[40892, 40899], "valid"], - [[40900, 40907], "valid"], - [[40908, 40908], "valid"], - [[40909, 40917], "valid"], - [[40918, 40959], "disallowed"], - [[40960, 42124], "valid"], - [[42125, 42127], "disallowed"], - [ - [42128, 42145], - "valid", - [], - "NV8" - ], - [ - [42146, 42147], - "valid", - [], - "NV8" - ], - [ - [42148, 42163], - "valid", - [], - "NV8" - ], - [ - [42164, 42164], - "valid", - [], - "NV8" - ], - [ - [42165, 42176], - "valid", - [], - "NV8" - ], - [ - [42177, 42177], - "valid", - [], - "NV8" - ], - [ - [42178, 42180], - "valid", - [], - "NV8" - ], - [ - [42181, 42181], - "valid", - [], - "NV8" - ], - [ - [42182, 42182], - "valid", - [], - "NV8" - ], - [[42183, 42191], "disallowed"], - [[42192, 42237], "valid"], - [ - [42238, 42239], - "valid", - [], - "NV8" - ], - [[42240, 42508], "valid"], - [ - [42509, 42511], - "valid", - [], - "NV8" - ], - [[42512, 42539], "valid"], - [[42540, 42559], "disallowed"], - [ - [42560, 42560], - "mapped", - [42561] - ], - [[42561, 42561], "valid"], - [ - [42562, 42562], - "mapped", - [42563] - ], - [[42563, 42563], "valid"], - [ - [42564, 42564], - "mapped", - [42565] - ], - [[42565, 42565], "valid"], - [ - [42566, 42566], - "mapped", - [42567] - ], - [[42567, 42567], "valid"], - [ - [42568, 42568], - "mapped", - [42569] - ], - [[42569, 42569], "valid"], - [ - [42570, 42570], - "mapped", - [42571] - ], - [[42571, 42571], "valid"], - [ - [42572, 42572], - "mapped", - [42573] - ], - [[42573, 42573], "valid"], - [ - [42574, 42574], - "mapped", - [42575] - ], - [[42575, 42575], "valid"], - [ - [42576, 42576], - "mapped", - [42577] - ], - [[42577, 42577], "valid"], - [ - [42578, 42578], - "mapped", - [42579] - ], - [[42579, 42579], "valid"], - [ - [42580, 42580], - "mapped", - [42581] - ], - [[42581, 42581], "valid"], - [ - [42582, 42582], - "mapped", - [42583] - ], - [[42583, 42583], "valid"], - [ - [42584, 42584], - "mapped", - [42585] - ], - [[42585, 42585], "valid"], - [ - [42586, 42586], - "mapped", - [42587] - ], - [[42587, 42587], "valid"], - [ - [42588, 42588], - "mapped", - [42589] - ], - [[42589, 42589], "valid"], - [ - [42590, 42590], - "mapped", - [42591] - ], - [[42591, 42591], "valid"], - [ - [42592, 42592], - "mapped", - [42593] - ], - [[42593, 42593], "valid"], - [ - [42594, 42594], - "mapped", - [42595] - ], - [[42595, 42595], "valid"], - [ - [42596, 42596], - "mapped", - [42597] - ], - [[42597, 42597], "valid"], - [ - [42598, 42598], - "mapped", - [42599] - ], - [[42599, 42599], "valid"], - [ - [42600, 42600], - "mapped", - [42601] - ], - [[42601, 42601], "valid"], - [ - [42602, 42602], - "mapped", - [42603] - ], - [[42603, 42603], "valid"], - [ - [42604, 42604], - "mapped", - [42605] - ], - [[42605, 42607], "valid"], - [ - [42608, 42611], - "valid", - [], - "NV8" - ], - [[42612, 42619], "valid"], - [[42620, 42621], "valid"], - [ - [42622, 42622], - "valid", - [], - "NV8" - ], - [[42623, 42623], "valid"], - [ - [42624, 42624], - "mapped", - [42625] - ], - [[42625, 42625], "valid"], - [ - [42626, 42626], - "mapped", - [42627] - ], - [[42627, 42627], "valid"], - [ - [42628, 42628], - "mapped", - [42629] - ], - [[42629, 42629], "valid"], - [ - [42630, 42630], - "mapped", - [42631] - ], - [[42631, 42631], "valid"], - [ - [42632, 42632], - "mapped", - [42633] - ], - [[42633, 42633], "valid"], - [ - [42634, 42634], - "mapped", - [42635] - ], - [[42635, 42635], "valid"], - [ - [42636, 42636], - "mapped", - [42637] - ], - [[42637, 42637], "valid"], - [ - [42638, 42638], - "mapped", - [42639] - ], - [[42639, 42639], "valid"], - [ - [42640, 42640], - "mapped", - [42641] - ], - [[42641, 42641], "valid"], - [ - [42642, 42642], - "mapped", - [42643] - ], - [[42643, 42643], "valid"], - [ - [42644, 42644], - "mapped", - [42645] - ], - [[42645, 42645], "valid"], - [ - [42646, 42646], - "mapped", - [42647] - ], - [[42647, 42647], "valid"], - [ - [42648, 42648], - "mapped", - [42649] - ], - [[42649, 42649], "valid"], - [ - [42650, 42650], - "mapped", - [42651] - ], - [[42651, 42651], "valid"], - [ - [42652, 42652], - "mapped", - [1098] - ], - [ - [42653, 42653], - "mapped", - [1100] - ], - [[42654, 42654], "valid"], - [[42655, 42655], "valid"], - [[42656, 42725], "valid"], - [ - [42726, 42735], - "valid", - [], - "NV8" - ], - [[42736, 42737], "valid"], - [ - [42738, 42743], - "valid", - [], - "NV8" - ], - [[42744, 42751], "disallowed"], - [ - [42752, 42774], - "valid", - [], - "NV8" - ], - [[42775, 42778], "valid"], - [[42779, 42783], "valid"], - [ - [42784, 42785], - "valid", - [], - "NV8" - ], - [ - [42786, 42786], - "mapped", - [42787] - ], - [[42787, 42787], "valid"], - [ - [42788, 42788], - "mapped", - [42789] - ], - [[42789, 42789], "valid"], - [ - [42790, 42790], - "mapped", - [42791] - ], - [[42791, 42791], "valid"], - [ - [42792, 42792], - "mapped", - [42793] - ], - [[42793, 42793], "valid"], - [ - [42794, 42794], - "mapped", - [42795] - ], - [[42795, 42795], "valid"], - [ - [42796, 42796], - "mapped", - [42797] - ], - [[42797, 42797], "valid"], - [ - [42798, 42798], - "mapped", - [42799] - ], - [[42799, 42801], "valid"], - [ - [42802, 42802], - "mapped", - [42803] - ], - [[42803, 42803], "valid"], - [ - [42804, 42804], - "mapped", - [42805] - ], - [[42805, 42805], "valid"], - [ - [42806, 42806], - "mapped", - [42807] - ], - [[42807, 42807], "valid"], - [ - [42808, 42808], - "mapped", - [42809] - ], - [[42809, 42809], "valid"], - [ - [42810, 42810], - "mapped", - [42811] - ], - [[42811, 42811], "valid"], - [ - [42812, 42812], - "mapped", - [42813] - ], - [[42813, 42813], "valid"], - [ - [42814, 42814], - "mapped", - [42815] - ], - [[42815, 42815], "valid"], - [ - [42816, 42816], - "mapped", - [42817] - ], - [[42817, 42817], "valid"], - [ - [42818, 42818], - "mapped", - [42819] - ], - [[42819, 42819], "valid"], - [ - [42820, 42820], - "mapped", - [42821] - ], - [[42821, 42821], "valid"], - [ - [42822, 42822], - "mapped", - [42823] - ], - [[42823, 42823], "valid"], - [ - [42824, 42824], - "mapped", - [42825] - ], - [[42825, 42825], "valid"], - [ - [42826, 42826], - "mapped", - [42827] - ], - [[42827, 42827], "valid"], - [ - [42828, 42828], - "mapped", - [42829] - ], - [[42829, 42829], "valid"], - [ - [42830, 42830], - "mapped", - [42831] - ], - [[42831, 42831], "valid"], - [ - [42832, 42832], - "mapped", - [42833] - ], - [[42833, 42833], "valid"], - [ - [42834, 42834], - "mapped", - [42835] - ], - [[42835, 42835], "valid"], - [ - [42836, 42836], - "mapped", - [42837] - ], - [[42837, 42837], "valid"], - [ - [42838, 42838], - "mapped", - [42839] - ], - [[42839, 42839], "valid"], - [ - [42840, 42840], - "mapped", - [42841] - ], - [[42841, 42841], "valid"], - [ - [42842, 42842], - "mapped", - [42843] - ], - [[42843, 42843], "valid"], - [ - [42844, 42844], - "mapped", - [42845] - ], - [[42845, 42845], "valid"], - [ - [42846, 42846], - "mapped", - [42847] - ], - [[42847, 42847], "valid"], - [ - [42848, 42848], - "mapped", - [42849] - ], - [[42849, 42849], "valid"], - [ - [42850, 42850], - "mapped", - [42851] - ], - [[42851, 42851], "valid"], - [ - [42852, 42852], - "mapped", - [42853] - ], - [[42853, 42853], "valid"], - [ - [42854, 42854], - "mapped", - [42855] - ], - [[42855, 42855], "valid"], - [ - [42856, 42856], - "mapped", - [42857] - ], - [[42857, 42857], "valid"], - [ - [42858, 42858], - "mapped", - [42859] - ], - [[42859, 42859], "valid"], - [ - [42860, 42860], - "mapped", - [42861] - ], - [[42861, 42861], "valid"], - [ - [42862, 42862], - "mapped", - [42863] - ], - [[42863, 42863], "valid"], - [ - [42864, 42864], - "mapped", - [42863] - ], - [[42865, 42872], "valid"], - [ - [42873, 42873], - "mapped", - [42874] - ], - [[42874, 42874], "valid"], - [ - [42875, 42875], - "mapped", - [42876] - ], - [[42876, 42876], "valid"], - [ - [42877, 42877], - "mapped", - [7545] - ], - [ - [42878, 42878], - "mapped", - [42879] - ], - [[42879, 42879], "valid"], - [ - [42880, 42880], - "mapped", - [42881] - ], - [[42881, 42881], "valid"], - [ - [42882, 42882], - "mapped", - [42883] - ], - [[42883, 42883], "valid"], - [ - [42884, 42884], - "mapped", - [42885] - ], - [[42885, 42885], "valid"], - [ - [42886, 42886], - "mapped", - [42887] - ], - [[42887, 42888], "valid"], - [ - [42889, 42890], - "valid", - [], - "NV8" - ], - [ - [42891, 42891], - "mapped", - [42892] - ], - [[42892, 42892], "valid"], - [ - [42893, 42893], - "mapped", - [613] - ], - [[42894, 42894], "valid"], - [[42895, 42895], "valid"], - [ - [42896, 42896], - "mapped", - [42897] - ], - [[42897, 42897], "valid"], - [ - [42898, 42898], - "mapped", - [42899] - ], - [[42899, 42899], "valid"], - [[42900, 42901], "valid"], - [ - [42902, 42902], - "mapped", - [42903] - ], - [[42903, 42903], "valid"], - [ - [42904, 42904], - "mapped", - [42905] - ], - [[42905, 42905], "valid"], - [ - [42906, 42906], - "mapped", - [42907] - ], - [[42907, 42907], "valid"], - [ - [42908, 42908], - "mapped", - [42909] - ], - [[42909, 42909], "valid"], - [ - [42910, 42910], - "mapped", - [42911] - ], - [[42911, 42911], "valid"], - [ - [42912, 42912], - "mapped", - [42913] - ], - [[42913, 42913], "valid"], - [ - [42914, 42914], - "mapped", - [42915] - ], - [[42915, 42915], "valid"], - [ - [42916, 42916], - "mapped", - [42917] - ], - [[42917, 42917], "valid"], - [ - [42918, 42918], - "mapped", - [42919] - ], - [[42919, 42919], "valid"], - [ - [42920, 42920], - "mapped", - [42921] - ], - [[42921, 42921], "valid"], - [ - [42922, 42922], - "mapped", - [614] - ], - [ - [42923, 42923], - "mapped", - [604] - ], - [ - [42924, 42924], - "mapped", - [609] - ], - [ - [42925, 42925], - "mapped", - [620] - ], - [[42926, 42927], "disallowed"], - [ - [42928, 42928], - "mapped", - [670] - ], - [ - [42929, 42929], - "mapped", - [647] - ], - [ - [42930, 42930], - "mapped", - [669] - ], - [ - [42931, 42931], - "mapped", - [43859] - ], - [ - [42932, 42932], - "mapped", - [42933] - ], - [[42933, 42933], "valid"], - [ - [42934, 42934], - "mapped", - [42935] - ], - [[42935, 42935], "valid"], - [[42936, 42998], "disallowed"], - [[42999, 42999], "valid"], - [ - [43e3, 43e3], - "mapped", - [295] - ], - [ - [43001, 43001], - "mapped", - [339] - ], - [[43002, 43002], "valid"], - [[43003, 43007], "valid"], - [[43008, 43047], "valid"], - [ - [43048, 43051], - "valid", - [], - "NV8" - ], - [[43052, 43055], "disallowed"], - [ - [43056, 43065], - "valid", - [], - "NV8" - ], - [[43066, 43071], "disallowed"], - [[43072, 43123], "valid"], - [ - [43124, 43127], - "valid", - [], - "NV8" - ], - [[43128, 43135], "disallowed"], - [[43136, 43204], "valid"], - [[43205, 43213], "disallowed"], - [ - [43214, 43215], - "valid", - [], - "NV8" - ], - [[43216, 43225], "valid"], - [[43226, 43231], "disallowed"], - [[43232, 43255], "valid"], - [ - [43256, 43258], - "valid", - [], - "NV8" - ], - [[43259, 43259], "valid"], - [ - [43260, 43260], - "valid", - [], - "NV8" - ], - [[43261, 43261], "valid"], - [[43262, 43263], "disallowed"], - [[43264, 43309], "valid"], - [ - [43310, 43311], - "valid", - [], - "NV8" - ], - [[43312, 43347], "valid"], - [[43348, 43358], "disallowed"], - [ - [43359, 43359], - "valid", - [], - "NV8" - ], - [ - [43360, 43388], - "valid", - [], - "NV8" - ], - [[43389, 43391], "disallowed"], - [[43392, 43456], "valid"], - [ - [43457, 43469], - "valid", - [], - "NV8" - ], - [[43470, 43470], "disallowed"], - [[43471, 43481], "valid"], - [[43482, 43485], "disallowed"], - [ - [43486, 43487], - "valid", - [], - "NV8" - ], - [[43488, 43518], "valid"], - [[43519, 43519], "disallowed"], - [[43520, 43574], "valid"], - [[43575, 43583], "disallowed"], - [[43584, 43597], "valid"], - [[43598, 43599], "disallowed"], - [[43600, 43609], "valid"], - [[43610, 43611], "disallowed"], - [ - [43612, 43615], - "valid", - [], - "NV8" - ], - [[43616, 43638], "valid"], - [ - [43639, 43641], - "valid", - [], - "NV8" - ], - [[43642, 43643], "valid"], - [[43644, 43647], "valid"], - [[43648, 43714], "valid"], - [[43715, 43738], "disallowed"], - [[43739, 43741], "valid"], - [ - [43742, 43743], - "valid", - [], - "NV8" - ], - [[43744, 43759], "valid"], - [ - [43760, 43761], - "valid", - [], - "NV8" - ], - [[43762, 43766], "valid"], - [[43767, 43776], "disallowed"], - [[43777, 43782], "valid"], - [[43783, 43784], "disallowed"], - [[43785, 43790], "valid"], - [[43791, 43792], "disallowed"], - [[43793, 43798], "valid"], - [[43799, 43807], "disallowed"], - [[43808, 43814], "valid"], - [[43815, 43815], "disallowed"], - [[43816, 43822], "valid"], - [[43823, 43823], "disallowed"], - [[43824, 43866], "valid"], - [ - [43867, 43867], - "valid", - [], - "NV8" - ], - [ - [43868, 43868], - "mapped", - [42791] - ], - [ - [43869, 43869], - "mapped", - [43831] - ], - [ - [43870, 43870], - "mapped", - [619] - ], - [ - [43871, 43871], - "mapped", - [43858] - ], - [[43872, 43875], "valid"], - [[43876, 43877], "valid"], - [[43878, 43887], "disallowed"], - [ - [43888, 43888], - "mapped", - [5024] - ], - [ - [43889, 43889], - "mapped", - [5025] - ], - [ - [43890, 43890], - "mapped", - [5026] - ], - [ - [43891, 43891], - "mapped", - [5027] - ], - [ - [43892, 43892], - "mapped", - [5028] - ], - [ - [43893, 43893], - "mapped", - [5029] - ], - [ - [43894, 43894], - "mapped", - [5030] - ], - [ - [43895, 43895], - "mapped", - [5031] - ], - [ - [43896, 43896], - "mapped", - [5032] - ], - [ - [43897, 43897], - "mapped", - [5033] - ], - [ - [43898, 43898], - "mapped", - [5034] - ], - [ - [43899, 43899], - "mapped", - [5035] - ], - [ - [43900, 43900], - "mapped", - [5036] - ], - [ - [43901, 43901], - "mapped", - [5037] - ], - [ - [43902, 43902], - "mapped", - [5038] - ], - [ - [43903, 43903], - "mapped", - [5039] - ], - [ - [43904, 43904], - "mapped", - [5040] - ], - [ - [43905, 43905], - "mapped", - [5041] - ], - [ - [43906, 43906], - "mapped", - [5042] - ], - [ - [43907, 43907], - "mapped", - [5043] - ], - [ - [43908, 43908], - "mapped", - [5044] - ], - [ - [43909, 43909], - "mapped", - [5045] - ], - [ - [43910, 43910], - "mapped", - [5046] - ], - [ - [43911, 43911], - "mapped", - [5047] - ], - [ - [43912, 43912], - "mapped", - [5048] - ], - [ - [43913, 43913], - "mapped", - [5049] - ], - [ - [43914, 43914], - "mapped", - [5050] - ], - [ - [43915, 43915], - "mapped", - [5051] - ], - [ - [43916, 43916], - "mapped", - [5052] - ], - [ - [43917, 43917], - "mapped", - [5053] - ], - [ - [43918, 43918], - "mapped", - [5054] - ], - [ - [43919, 43919], - "mapped", - [5055] - ], - [ - [43920, 43920], - "mapped", - [5056] - ], - [ - [43921, 43921], - "mapped", - [5057] - ], - [ - [43922, 43922], - "mapped", - [5058] - ], - [ - [43923, 43923], - "mapped", - [5059] - ], - [ - [43924, 43924], - "mapped", - [5060] - ], - [ - [43925, 43925], - "mapped", - [5061] - ], - [ - [43926, 43926], - "mapped", - [5062] - ], - [ - [43927, 43927], - "mapped", - [5063] - ], - [ - [43928, 43928], - "mapped", - [5064] - ], - [ - [43929, 43929], - "mapped", - [5065] - ], - [ - [43930, 43930], - "mapped", - [5066] - ], - [ - [43931, 43931], - "mapped", - [5067] - ], - [ - [43932, 43932], - "mapped", - [5068] - ], - [ - [43933, 43933], - "mapped", - [5069] - ], - [ - [43934, 43934], - "mapped", - [5070] - ], - [ - [43935, 43935], - "mapped", - [5071] - ], - [ - [43936, 43936], - "mapped", - [5072] - ], - [ - [43937, 43937], - "mapped", - [5073] - ], - [ - [43938, 43938], - "mapped", - [5074] - ], - [ - [43939, 43939], - "mapped", - [5075] - ], - [ - [43940, 43940], - "mapped", - [5076] - ], - [ - [43941, 43941], - "mapped", - [5077] - ], - [ - [43942, 43942], - "mapped", - [5078] - ], - [ - [43943, 43943], - "mapped", - [5079] - ], - [ - [43944, 43944], - "mapped", - [5080] - ], - [ - [43945, 43945], - "mapped", - [5081] - ], - [ - [43946, 43946], - "mapped", - [5082] - ], - [ - [43947, 43947], - "mapped", - [5083] - ], - [ - [43948, 43948], - "mapped", - [5084] - ], - [ - [43949, 43949], - "mapped", - [5085] - ], - [ - [43950, 43950], - "mapped", - [5086] - ], - [ - [43951, 43951], - "mapped", - [5087] - ], - [ - [43952, 43952], - "mapped", - [5088] - ], - [ - [43953, 43953], - "mapped", - [5089] - ], - [ - [43954, 43954], - "mapped", - [5090] - ], - [ - [43955, 43955], - "mapped", - [5091] - ], - [ - [43956, 43956], - "mapped", - [5092] - ], - [ - [43957, 43957], - "mapped", - [5093] - ], - [ - [43958, 43958], - "mapped", - [5094] - ], - [ - [43959, 43959], - "mapped", - [5095] - ], - [ - [43960, 43960], - "mapped", - [5096] - ], - [ - [43961, 43961], - "mapped", - [5097] - ], - [ - [43962, 43962], - "mapped", - [5098] - ], - [ - [43963, 43963], - "mapped", - [5099] - ], - [ - [43964, 43964], - "mapped", - [5100] - ], - [ - [43965, 43965], - "mapped", - [5101] - ], - [ - [43966, 43966], - "mapped", - [5102] - ], - [ - [43967, 43967], - "mapped", - [5103] - ], - [[43968, 44010], "valid"], - [ - [44011, 44011], - "valid", - [], - "NV8" - ], - [[44012, 44013], "valid"], - [[44014, 44015], "disallowed"], - [[44016, 44025], "valid"], - [[44026, 44031], "disallowed"], - [[44032, 55203], "valid"], - [[55204, 55215], "disallowed"], - [ - [55216, 55238], - "valid", - [], - "NV8" - ], - [[55239, 55242], "disallowed"], - [ - [55243, 55291], - "valid", - [], - "NV8" - ], - [[55292, 55295], "disallowed"], - [[55296, 57343], "disallowed"], - [[57344, 63743], "disallowed"], - [ - [63744, 63744], - "mapped", - [35912] - ], - [ - [63745, 63745], - "mapped", - [26356] - ], - [ - [63746, 63746], - "mapped", - [36554] - ], - [ - [63747, 63747], - "mapped", - [36040] - ], - [ - [63748, 63748], - "mapped", - [28369] - ], - [ - [63749, 63749], - "mapped", - [20018] - ], - [ - [63750, 63750], - "mapped", - [21477] - ], - [ - [63751, 63752], - "mapped", - [40860] - ], - [ - [63753, 63753], - "mapped", - [22865] - ], - [ - [63754, 63754], - "mapped", - [37329] - ], - [ - [63755, 63755], - "mapped", - [21895] - ], - [ - [63756, 63756], - "mapped", - [22856] - ], - [ - [63757, 63757], - "mapped", - [25078] - ], - [ - [63758, 63758], - "mapped", - [30313] - ], - [ - [63759, 63759], - "mapped", - [32645] - ], - [ - [63760, 63760], - "mapped", - [34367] - ], - [ - [63761, 63761], - "mapped", - [34746] - ], - [ - [63762, 63762], - "mapped", - [35064] - ], - [ - [63763, 63763], - "mapped", - [37007] - ], - [ - [63764, 63764], - "mapped", - [27138] - ], - [ - [63765, 63765], - "mapped", - [27931] - ], - [ - [63766, 63766], - "mapped", - [28889] - ], - [ - [63767, 63767], - "mapped", - [29662] - ], - [ - [63768, 63768], - "mapped", - [33853] - ], - [ - [63769, 63769], - "mapped", - [37226] - ], - [ - [63770, 63770], - "mapped", - [39409] - ], - [ - [63771, 63771], - "mapped", - [20098] - ], - [ - [63772, 63772], - "mapped", - [21365] - ], - [ - [63773, 63773], - "mapped", - [27396] - ], - [ - [63774, 63774], - "mapped", - [29211] - ], - [ - [63775, 63775], - "mapped", - [34349] - ], - [ - [63776, 63776], - "mapped", - [40478] - ], - [ - [63777, 63777], - "mapped", - [23888] - ], - [ - [63778, 63778], - "mapped", - [28651] - ], - [ - [63779, 63779], - "mapped", - [34253] - ], - [ - [63780, 63780], - "mapped", - [35172] - ], - [ - [63781, 63781], - "mapped", - [25289] - ], - [ - [63782, 63782], - "mapped", - [33240] - ], - [ - [63783, 63783], - "mapped", - [34847] - ], - [ - [63784, 63784], - "mapped", - [24266] - ], - [ - [63785, 63785], - "mapped", - [26391] - ], - [ - [63786, 63786], - "mapped", - [28010] - ], - [ - [63787, 63787], - "mapped", - [29436] - ], - [ - [63788, 63788], - "mapped", - [37070] - ], - [ - [63789, 63789], - "mapped", - [20358] - ], - [ - [63790, 63790], - "mapped", - [20919] - ], - [ - [63791, 63791], - "mapped", - [21214] - ], - [ - [63792, 63792], - "mapped", - [25796] - ], - [ - [63793, 63793], - "mapped", - [27347] - ], - [ - [63794, 63794], - "mapped", - [29200] - ], - [ - [63795, 63795], - "mapped", - [30439] - ], - [ - [63796, 63796], - "mapped", - [32769] - ], - [ - [63797, 63797], - "mapped", - [34310] - ], - [ - [63798, 63798], - "mapped", - [34396] - ], - [ - [63799, 63799], - "mapped", - [36335] - ], - [ - [63800, 63800], - "mapped", - [38706] - ], - [ - [63801, 63801], - "mapped", - [39791] - ], - [ - [63802, 63802], - "mapped", - [40442] - ], - [ - [63803, 63803], - "mapped", - [30860] - ], - [ - [63804, 63804], - "mapped", - [31103] - ], - [ - [63805, 63805], - "mapped", - [32160] - ], - [ - [63806, 63806], - "mapped", - [33737] - ], - [ - [63807, 63807], - "mapped", - [37636] - ], - [ - [63808, 63808], - "mapped", - [40575] - ], - [ - [63809, 63809], - "mapped", - [35542] - ], - [ - [63810, 63810], - "mapped", - [22751] - ], - [ - [63811, 63811], - "mapped", - [24324] - ], - [ - [63812, 63812], - "mapped", - [31840] - ], - [ - [63813, 63813], - "mapped", - [32894] - ], - [ - [63814, 63814], - "mapped", - [29282] - ], - [ - [63815, 63815], - "mapped", - [30922] - ], - [ - [63816, 63816], - "mapped", - [36034] - ], - [ - [63817, 63817], - "mapped", - [38647] - ], - [ - [63818, 63818], - "mapped", - [22744] - ], - [ - [63819, 63819], - "mapped", - [23650] - ], - [ - [63820, 63820], - "mapped", - [27155] - ], - [ - [63821, 63821], - "mapped", - [28122] - ], - [ - [63822, 63822], - "mapped", - [28431] - ], - [ - [63823, 63823], - "mapped", - [32047] - ], - [ - [63824, 63824], - "mapped", - [32311] - ], - [ - [63825, 63825], - "mapped", - [38475] - ], - [ - [63826, 63826], - "mapped", - [21202] - ], - [ - [63827, 63827], - "mapped", - [32907] - ], - [ - [63828, 63828], - "mapped", - [20956] - ], - [ - [63829, 63829], - "mapped", - [20940] - ], - [ - [63830, 63830], - "mapped", - [31260] - ], - [ - [63831, 63831], - "mapped", - [32190] - ], - [ - [63832, 63832], - "mapped", - [33777] - ], - [ - [63833, 63833], - "mapped", - [38517] - ], - [ - [63834, 63834], - "mapped", - [35712] - ], - [ - [63835, 63835], - "mapped", - [25295] - ], - [ - [63836, 63836], - "mapped", - [27138] - ], - [ - [63837, 63837], - "mapped", - [35582] - ], - [ - [63838, 63838], - "mapped", - [20025] - ], - [ - [63839, 63839], - "mapped", - [23527] - ], - [ - [63840, 63840], - "mapped", - [24594] - ], - [ - [63841, 63841], - "mapped", - [29575] - ], - [ - [63842, 63842], - "mapped", - [30064] - ], - [ - [63843, 63843], - "mapped", - [21271] - ], - [ - [63844, 63844], - "mapped", - [30971] - ], - [ - [63845, 63845], - "mapped", - [20415] - ], - [ - [63846, 63846], - "mapped", - [24489] - ], - [ - [63847, 63847], - "mapped", - [19981] - ], - [ - [63848, 63848], - "mapped", - [27852] - ], - [ - [63849, 63849], - "mapped", - [25976] - ], - [ - [63850, 63850], - "mapped", - [32034] - ], - [ - [63851, 63851], - "mapped", - [21443] - ], - [ - [63852, 63852], - "mapped", - [22622] - ], - [ - [63853, 63853], - "mapped", - [30465] - ], - [ - [63854, 63854], - "mapped", - [33865] - ], - [ - [63855, 63855], - "mapped", - [35498] - ], - [ - [63856, 63856], - "mapped", - [27578] - ], - [ - [63857, 63857], - "mapped", - [36784] - ], - [ - [63858, 63858], - "mapped", - [27784] - ], - [ - [63859, 63859], - "mapped", - [25342] - ], - [ - [63860, 63860], - "mapped", - [33509] - ], - [ - [63861, 63861], - "mapped", - [25504] - ], - [ - [63862, 63862], - "mapped", - [30053] - ], - [ - [63863, 63863], - "mapped", - [20142] - ], - [ - [63864, 63864], - "mapped", - [20841] - ], - [ - [63865, 63865], - "mapped", - [20937] - ], - [ - [63866, 63866], - "mapped", - [26753] - ], - [ - [63867, 63867], - "mapped", - [31975] - ], - [ - [63868, 63868], - "mapped", - [33391] - ], - [ - [63869, 63869], - "mapped", - [35538] - ], - [ - [63870, 63870], - "mapped", - [37327] - ], - [ - [63871, 63871], - "mapped", - [21237] - ], - [ - [63872, 63872], - "mapped", - [21570] - ], - [ - [63873, 63873], - "mapped", - [22899] - ], - [ - [63874, 63874], - "mapped", - [24300] - ], - [ - [63875, 63875], - "mapped", - [26053] - ], - [ - [63876, 63876], - "mapped", - [28670] - ], - [ - [63877, 63877], - "mapped", - [31018] - ], - [ - [63878, 63878], - "mapped", - [38317] - ], - [ - [63879, 63879], - "mapped", - [39530] - ], - [ - [63880, 63880], - "mapped", - [40599] - ], - [ - [63881, 63881], - "mapped", - [40654] - ], - [ - [63882, 63882], - "mapped", - [21147] - ], - [ - [63883, 63883], - "mapped", - [26310] - ], - [ - [63884, 63884], - "mapped", - [27511] - ], - [ - [63885, 63885], - "mapped", - [36706] - ], - [ - [63886, 63886], - "mapped", - [24180] - ], - [ - [63887, 63887], - "mapped", - [24976] - ], - [ - [63888, 63888], - "mapped", - [25088] - ], - [ - [63889, 63889], - "mapped", - [25754] - ], - [ - [63890, 63890], - "mapped", - [28451] - ], - [ - [63891, 63891], - "mapped", - [29001] - ], - [ - [63892, 63892], - "mapped", - [29833] - ], - [ - [63893, 63893], - "mapped", - [31178] - ], - [ - [63894, 63894], - "mapped", - [32244] - ], - [ - [63895, 63895], - "mapped", - [32879] - ], - [ - [63896, 63896], - "mapped", - [36646] - ], - [ - [63897, 63897], - "mapped", - [34030] - ], - [ - [63898, 63898], - "mapped", - [36899] - ], - [ - [63899, 63899], - "mapped", - [37706] - ], - [ - [63900, 63900], - "mapped", - [21015] - ], - [ - [63901, 63901], - "mapped", - [21155] - ], - [ - [63902, 63902], - "mapped", - [21693] - ], - [ - [63903, 63903], - "mapped", - [28872] - ], - [ - [63904, 63904], - "mapped", - [35010] - ], - [ - [63905, 63905], - "mapped", - [35498] - ], - [ - [63906, 63906], - "mapped", - [24265] - ], - [ - [63907, 63907], - "mapped", - [24565] - ], - [ - [63908, 63908], - "mapped", - [25467] - ], - [ - [63909, 63909], - "mapped", - [27566] - ], - [ - [63910, 63910], - "mapped", - [31806] - ], - [ - [63911, 63911], - "mapped", - [29557] - ], - [ - [63912, 63912], - "mapped", - [20196] - ], - [ - [63913, 63913], - "mapped", - [22265] - ], - [ - [63914, 63914], - "mapped", - [23527] - ], - [ - [63915, 63915], - "mapped", - [23994] - ], - [ - [63916, 63916], - "mapped", - [24604] - ], - [ - [63917, 63917], - "mapped", - [29618] - ], - [ - [63918, 63918], - "mapped", - [29801] - ], - [ - [63919, 63919], - "mapped", - [32666] - ], - [ - [63920, 63920], - "mapped", - [32838] - ], - [ - [63921, 63921], - "mapped", - [37428] - ], - [ - [63922, 63922], - "mapped", - [38646] - ], - [ - [63923, 63923], - "mapped", - [38728] - ], - [ - [63924, 63924], - "mapped", - [38936] - ], - [ - [63925, 63925], - "mapped", - [20363] - ], - [ - [63926, 63926], - "mapped", - [31150] - ], - [ - [63927, 63927], - "mapped", - [37300] - ], - [ - [63928, 63928], - "mapped", - [38584] - ], - [ - [63929, 63929], - "mapped", - [24801] - ], - [ - [63930, 63930], - "mapped", - [20102] - ], - [ - [63931, 63931], - "mapped", - [20698] - ], - [ - [63932, 63932], - "mapped", - [23534] - ], - [ - [63933, 63933], - "mapped", - [23615] - ], - [ - [63934, 63934], - "mapped", - [26009] - ], - [ - [63935, 63935], - "mapped", - [27138] - ], - [ - [63936, 63936], - "mapped", - [29134] - ], - [ - [63937, 63937], - "mapped", - [30274] - ], - [ - [63938, 63938], - "mapped", - [34044] - ], - [ - [63939, 63939], - "mapped", - [36988] - ], - [ - [63940, 63940], - "mapped", - [40845] - ], - [ - [63941, 63941], - "mapped", - [26248] - ], - [ - [63942, 63942], - "mapped", - [38446] - ], - [ - [63943, 63943], - "mapped", - [21129] - ], - [ - [63944, 63944], - "mapped", - [26491] - ], - [ - [63945, 63945], - "mapped", - [26611] - ], - [ - [63946, 63946], - "mapped", - [27969] - ], - [ - [63947, 63947], - "mapped", - [28316] - ], - [ - [63948, 63948], - "mapped", - [29705] - ], - [ - [63949, 63949], - "mapped", - [30041] - ], - [ - [63950, 63950], - "mapped", - [30827] - ], - [ - [63951, 63951], - "mapped", - [32016] - ], - [ - [63952, 63952], - "mapped", - [39006] - ], - [ - [63953, 63953], - "mapped", - [20845] - ], - [ - [63954, 63954], - "mapped", - [25134] - ], - [ - [63955, 63955], - "mapped", - [38520] - ], - [ - [63956, 63956], - "mapped", - [20523] - ], - [ - [63957, 63957], - "mapped", - [23833] - ], - [ - [63958, 63958], - "mapped", - [28138] - ], - [ - [63959, 63959], - "mapped", - [36650] - ], - [ - [63960, 63960], - "mapped", - [24459] - ], - [ - [63961, 63961], - "mapped", - [24900] - ], - [ - [63962, 63962], - "mapped", - [26647] - ], - [ - [63963, 63963], - "mapped", - [29575] - ], - [ - [63964, 63964], - "mapped", - [38534] - ], - [ - [63965, 63965], - "mapped", - [21033] - ], - [ - [63966, 63966], - "mapped", - [21519] - ], - [ - [63967, 63967], - "mapped", - [23653] - ], - [ - [63968, 63968], - "mapped", - [26131] - ], - [ - [63969, 63969], - "mapped", - [26446] - ], - [ - [63970, 63970], - "mapped", - [26792] - ], - [ - [63971, 63971], - "mapped", - [27877] - ], - [ - [63972, 63972], - "mapped", - [29702] - ], - [ - [63973, 63973], - "mapped", - [30178] - ], - [ - [63974, 63974], - "mapped", - [32633] - ], - [ - [63975, 63975], - "mapped", - [35023] - ], - [ - [63976, 63976], - "mapped", - [35041] - ], - [ - [63977, 63977], - "mapped", - [37324] - ], - [ - [63978, 63978], - "mapped", - [38626] - ], - [ - [63979, 63979], - "mapped", - [21311] - ], - [ - [63980, 63980], - "mapped", - [28346] - ], - [ - [63981, 63981], - "mapped", - [21533] - ], - [ - [63982, 63982], - "mapped", - [29136] - ], - [ - [63983, 63983], - "mapped", - [29848] - ], - [ - [63984, 63984], - "mapped", - [34298] - ], - [ - [63985, 63985], - "mapped", - [38563] - ], - [ - [63986, 63986], - "mapped", - [40023] - ], - [ - [63987, 63987], - "mapped", - [40607] - ], - [ - [63988, 63988], - "mapped", - [26519] - ], - [ - [63989, 63989], - "mapped", - [28107] - ], - [ - [63990, 63990], - "mapped", - [33256] - ], - [ - [63991, 63991], - "mapped", - [31435] - ], - [ - [63992, 63992], - "mapped", - [31520] - ], - [ - [63993, 63993], - "mapped", - [31890] - ], - [ - [63994, 63994], - "mapped", - [29376] - ], - [ - [63995, 63995], - "mapped", - [28825] - ], - [ - [63996, 63996], - "mapped", - [35672] - ], - [ - [63997, 63997], - "mapped", - [20160] - ], - [ - [63998, 63998], - "mapped", - [33590] - ], - [ - [63999, 63999], - "mapped", - [21050] - ], - [ - [64e3, 64e3], - "mapped", - [20999] - ], - [ - [64001, 64001], - "mapped", - [24230] - ], - [ - [64002, 64002], - "mapped", - [25299] - ], - [ - [64003, 64003], - "mapped", - [31958] - ], - [ - [64004, 64004], - "mapped", - [23429] - ], - [ - [64005, 64005], - "mapped", - [27934] - ], - [ - [64006, 64006], - "mapped", - [26292] - ], - [ - [64007, 64007], - "mapped", - [36667] - ], - [ - [64008, 64008], - "mapped", - [34892] - ], - [ - [64009, 64009], - "mapped", - [38477] - ], - [ - [64010, 64010], - "mapped", - [35211] - ], - [ - [64011, 64011], - "mapped", - [24275] - ], - [ - [64012, 64012], - "mapped", - [20800] - ], - [ - [64013, 64013], - "mapped", - [21952] - ], - [[64014, 64015], "valid"], - [ - [64016, 64016], - "mapped", - [22618] - ], - [[64017, 64017], "valid"], - [ - [64018, 64018], - "mapped", - [26228] - ], - [[64019, 64020], "valid"], - [ - [64021, 64021], - "mapped", - [20958] - ], - [ - [64022, 64022], - "mapped", - [29482] - ], - [ - [64023, 64023], - "mapped", - [30410] - ], - [ - [64024, 64024], - "mapped", - [31036] - ], - [ - [64025, 64025], - "mapped", - [31070] - ], - [ - [64026, 64026], - "mapped", - [31077] - ], - [ - [64027, 64027], - "mapped", - [31119] - ], - [ - [64028, 64028], - "mapped", - [38742] - ], - [ - [64029, 64029], - "mapped", - [31934] - ], - [ - [64030, 64030], - "mapped", - [32701] - ], - [[64031, 64031], "valid"], - [ - [64032, 64032], - "mapped", - [34322] - ], - [[64033, 64033], "valid"], - [ - [64034, 64034], - "mapped", - [35576] - ], - [[64035, 64036], "valid"], - [ - [64037, 64037], - "mapped", - [36920] - ], - [ - [64038, 64038], - "mapped", - [37117] - ], - [[64039, 64041], "valid"], - [ - [64042, 64042], - "mapped", - [39151] - ], - [ - [64043, 64043], - "mapped", - [39164] - ], - [ - [64044, 64044], - "mapped", - [39208] - ], - [ - [64045, 64045], - "mapped", - [40372] - ], - [ - [64046, 64046], - "mapped", - [37086] - ], - [ - [64047, 64047], - "mapped", - [38583] - ], - [ - [64048, 64048], - "mapped", - [20398] - ], - [ - [64049, 64049], - "mapped", - [20711] - ], - [ - [64050, 64050], - "mapped", - [20813] - ], - [ - [64051, 64051], - "mapped", - [21193] - ], - [ - [64052, 64052], - "mapped", - [21220] - ], - [ - [64053, 64053], - "mapped", - [21329] - ], - [ - [64054, 64054], - "mapped", - [21917] - ], - [ - [64055, 64055], - "mapped", - [22022] - ], - [ - [64056, 64056], - "mapped", - [22120] - ], - [ - [64057, 64057], - "mapped", - [22592] - ], - [ - [64058, 64058], - "mapped", - [22696] - ], - [ - [64059, 64059], - "mapped", - [23652] - ], - [ - [64060, 64060], - "mapped", - [23662] - ], - [ - [64061, 64061], - "mapped", - [24724] - ], - [ - [64062, 64062], - "mapped", - [24936] - ], - [ - [64063, 64063], - "mapped", - [24974] - ], - [ - [64064, 64064], - "mapped", - [25074] - ], - [ - [64065, 64065], - "mapped", - [25935] - ], - [ - [64066, 64066], - "mapped", - [26082] - ], - [ - [64067, 64067], - "mapped", - [26257] - ], - [ - [64068, 64068], - "mapped", - [26757] - ], - [ - [64069, 64069], - "mapped", - [28023] - ], - [ - [64070, 64070], - "mapped", - [28186] - ], - [ - [64071, 64071], - "mapped", - [28450] - ], - [ - [64072, 64072], - "mapped", - [29038] - ], - [ - [64073, 64073], - "mapped", - [29227] - ], - [ - [64074, 64074], - "mapped", - [29730] - ], - [ - [64075, 64075], - "mapped", - [30865] - ], - [ - [64076, 64076], - "mapped", - [31038] - ], - [ - [64077, 64077], - "mapped", - [31049] - ], - [ - [64078, 64078], - "mapped", - [31048] - ], - [ - [64079, 64079], - "mapped", - [31056] - ], - [ - [64080, 64080], - "mapped", - [31062] - ], - [ - [64081, 64081], - "mapped", - [31069] - ], - [ - [64082, 64082], - "mapped", - [31117] - ], - [ - [64083, 64083], - "mapped", - [31118] - ], - [ - [64084, 64084], - "mapped", - [31296] - ], - [ - [64085, 64085], - "mapped", - [31361] - ], - [ - [64086, 64086], - "mapped", - [31680] - ], - [ - [64087, 64087], - "mapped", - [32244] - ], - [ - [64088, 64088], - "mapped", - [32265] - ], - [ - [64089, 64089], - "mapped", - [32321] - ], - [ - [64090, 64090], - "mapped", - [32626] - ], - [ - [64091, 64091], - "mapped", - [32773] - ], - [ - [64092, 64092], - "mapped", - [33261] - ], - [ - [64093, 64094], - "mapped", - [33401] - ], - [ - [64095, 64095], - "mapped", - [33879] - ], - [ - [64096, 64096], - "mapped", - [35088] - ], - [ - [64097, 64097], - "mapped", - [35222] - ], - [ - [64098, 64098], - "mapped", - [35585] - ], - [ - [64099, 64099], - "mapped", - [35641] - ], - [ - [64100, 64100], - "mapped", - [36051] - ], - [ - [64101, 64101], - "mapped", - [36104] - ], - [ - [64102, 64102], - "mapped", - [36790] - ], - [ - [64103, 64103], - "mapped", - [36920] - ], - [ - [64104, 64104], - "mapped", - [38627] - ], - [ - [64105, 64105], - "mapped", - [38911] - ], - [ - [64106, 64106], - "mapped", - [38971] - ], - [ - [64107, 64107], - "mapped", - [24693] - ], - [ - [64108, 64108], - "mapped", - [148206] - ], - [ - [64109, 64109], - "mapped", - [33304] - ], - [[64110, 64111], "disallowed"], - [ - [64112, 64112], - "mapped", - [20006] - ], - [ - [64113, 64113], - "mapped", - [20917] - ], - [ - [64114, 64114], - "mapped", - [20840] - ], - [ - [64115, 64115], - "mapped", - [20352] - ], - [ - [64116, 64116], - "mapped", - [20805] - ], - [ - [64117, 64117], - "mapped", - [20864] - ], - [ - [64118, 64118], - "mapped", - [21191] - ], - [ - [64119, 64119], - "mapped", - [21242] - ], - [ - [64120, 64120], - "mapped", - [21917] - ], - [ - [64121, 64121], - "mapped", - [21845] - ], - [ - [64122, 64122], - "mapped", - [21913] - ], - [ - [64123, 64123], - "mapped", - [21986] - ], - [ - [64124, 64124], - "mapped", - [22618] - ], - [ - [64125, 64125], - "mapped", - [22707] - ], - [ - [64126, 64126], - "mapped", - [22852] - ], - [ - [64127, 64127], - "mapped", - [22868] - ], - [ - [64128, 64128], - "mapped", - [23138] - ], - [ - [64129, 64129], - "mapped", - [23336] - ], - [ - [64130, 64130], - "mapped", - [24274] - ], - [ - [64131, 64131], - "mapped", - [24281] - ], - [ - [64132, 64132], - "mapped", - [24425] - ], - [ - [64133, 64133], - "mapped", - [24493] - ], - [ - [64134, 64134], - "mapped", - [24792] - ], - [ - [64135, 64135], - "mapped", - [24910] - ], - [ - [64136, 64136], - "mapped", - [24840] - ], - [ - [64137, 64137], - "mapped", - [24974] - ], - [ - [64138, 64138], - "mapped", - [24928] - ], - [ - [64139, 64139], - "mapped", - [25074] - ], - [ - [64140, 64140], - "mapped", - [25140] - ], - [ - [64141, 64141], - "mapped", - [25540] - ], - [ - [64142, 64142], - "mapped", - [25628] - ], - [ - [64143, 64143], - "mapped", - [25682] - ], - [ - [64144, 64144], - "mapped", - [25942] - ], - [ - [64145, 64145], - "mapped", - [26228] - ], - [ - [64146, 64146], - "mapped", - [26391] - ], - [ - [64147, 64147], - "mapped", - [26395] - ], - [ - [64148, 64148], - "mapped", - [26454] - ], - [ - [64149, 64149], - "mapped", - [27513] - ], - [ - [64150, 64150], - "mapped", - [27578] - ], - [ - [64151, 64151], - "mapped", - [27969] - ], - [ - [64152, 64152], - "mapped", - [28379] - ], - [ - [64153, 64153], - "mapped", - [28363] - ], - [ - [64154, 64154], - "mapped", - [28450] - ], - [ - [64155, 64155], - "mapped", - [28702] - ], - [ - [64156, 64156], - "mapped", - [29038] - ], - [ - [64157, 64157], - "mapped", - [30631] - ], - [ - [64158, 64158], - "mapped", - [29237] - ], - [ - [64159, 64159], - "mapped", - [29359] - ], - [ - [64160, 64160], - "mapped", - [29482] - ], - [ - [64161, 64161], - "mapped", - [29809] - ], - [ - [64162, 64162], - "mapped", - [29958] - ], - [ - [64163, 64163], - "mapped", - [30011] - ], - [ - [64164, 64164], - "mapped", - [30237] - ], - [ - [64165, 64165], - "mapped", - [30239] - ], - [ - [64166, 64166], - "mapped", - [30410] - ], - [ - [64167, 64167], - "mapped", - [30427] - ], - [ - [64168, 64168], - "mapped", - [30452] - ], - [ - [64169, 64169], - "mapped", - [30538] - ], - [ - [64170, 64170], - "mapped", - [30528] - ], - [ - [64171, 64171], - "mapped", - [30924] - ], - [ - [64172, 64172], - "mapped", - [31409] - ], - [ - [64173, 64173], - "mapped", - [31680] - ], - [ - [64174, 64174], - "mapped", - [31867] - ], - [ - [64175, 64175], - "mapped", - [32091] - ], - [ - [64176, 64176], - "mapped", - [32244] - ], - [ - [64177, 64177], - "mapped", - [32574] - ], - [ - [64178, 64178], - "mapped", - [32773] - ], - [ - [64179, 64179], - "mapped", - [33618] - ], - [ - [64180, 64180], - "mapped", - [33775] - ], - [ - [64181, 64181], - "mapped", - [34681] - ], - [ - [64182, 64182], - "mapped", - [35137] - ], - [ - [64183, 64183], - "mapped", - [35206] - ], - [ - [64184, 64184], - "mapped", - [35222] - ], - [ - [64185, 64185], - "mapped", - [35519] - ], - [ - [64186, 64186], - "mapped", - [35576] - ], - [ - [64187, 64187], - "mapped", - [35531] - ], - [ - [64188, 64188], - "mapped", - [35585] - ], - [ - [64189, 64189], - "mapped", - [35582] - ], - [ - [64190, 64190], - "mapped", - [35565] - ], - [ - [64191, 64191], - "mapped", - [35641] - ], - [ - [64192, 64192], - "mapped", - [35722] - ], - [ - [64193, 64193], - "mapped", - [36104] - ], - [ - [64194, 64194], - "mapped", - [36664] - ], - [ - [64195, 64195], - "mapped", - [36978] - ], - [ - [64196, 64196], - "mapped", - [37273] - ], - [ - [64197, 64197], - "mapped", - [37494] - ], - [ - [64198, 64198], - "mapped", - [38524] - ], - [ - [64199, 64199], - "mapped", - [38627] - ], - [ - [64200, 64200], - "mapped", - [38742] - ], - [ - [64201, 64201], - "mapped", - [38875] - ], - [ - [64202, 64202], - "mapped", - [38911] - ], - [ - [64203, 64203], - "mapped", - [38923] - ], - [ - [64204, 64204], - "mapped", - [38971] - ], - [ - [64205, 64205], - "mapped", - [39698] - ], - [ - [64206, 64206], - "mapped", - [40860] - ], - [ - [64207, 64207], - "mapped", - [141386] - ], - [ - [64208, 64208], - "mapped", - [141380] - ], - [ - [64209, 64209], - "mapped", - [144341] - ], - [ - [64210, 64210], - "mapped", - [15261] - ], - [ - [64211, 64211], - "mapped", - [16408] - ], - [ - [64212, 64212], - "mapped", - [16441] - ], - [ - [64213, 64213], - "mapped", - [152137] - ], - [ - [64214, 64214], - "mapped", - [154832] - ], - [ - [64215, 64215], - "mapped", - [163539] - ], - [ - [64216, 64216], - "mapped", - [40771] - ], - [ - [64217, 64217], - "mapped", - [40846] - ], - [[64218, 64255], "disallowed"], - [ - [64256, 64256], - "mapped", - [102, 102] - ], - [ - [64257, 64257], - "mapped", - [102, 105] - ], - [ - [64258, 64258], - "mapped", - [102, 108] - ], - [ - [64259, 64259], - "mapped", - [ - 102, - 102, - 105 - ] - ], - [ - [64260, 64260], - "mapped", - [ - 102, - 102, - 108 - ] - ], - [ - [64261, 64262], - "mapped", - [115, 116] - ], - [[64263, 64274], "disallowed"], - [ - [64275, 64275], - "mapped", - [1396, 1398] - ], - [ - [64276, 64276], - "mapped", - [1396, 1381] - ], - [ - [64277, 64277], - "mapped", - [1396, 1387] - ], - [ - [64278, 64278], - "mapped", - [1406, 1398] - ], - [ - [64279, 64279], - "mapped", - [1396, 1389] - ], - [[64280, 64284], "disallowed"], - [ - [64285, 64285], - "mapped", - [1497, 1460] - ], - [[64286, 64286], "valid"], - [ - [64287, 64287], - "mapped", - [1522, 1463] - ], - [ - [64288, 64288], - "mapped", - [1506] - ], - [ - [64289, 64289], - "mapped", - [1488] - ], - [ - [64290, 64290], - "mapped", - [1491] - ], - [ - [64291, 64291], - "mapped", - [1492] - ], - [ - [64292, 64292], - "mapped", - [1499] - ], - [ - [64293, 64293], - "mapped", - [1500] - ], - [ - [64294, 64294], - "mapped", - [1501] - ], - [ - [64295, 64295], - "mapped", - [1512] - ], - [ - [64296, 64296], - "mapped", - [1514] - ], - [ - [64297, 64297], - "disallowed_STD3_mapped", - [43] - ], - [ - [64298, 64298], - "mapped", - [1513, 1473] - ], - [ - [64299, 64299], - "mapped", - [1513, 1474] - ], - [ - [64300, 64300], - "mapped", - [ - 1513, - 1468, - 1473 - ] - ], - [ - [64301, 64301], - "mapped", - [ - 1513, - 1468, - 1474 - ] - ], - [ - [64302, 64302], - "mapped", - [1488, 1463] - ], - [ - [64303, 64303], - "mapped", - [1488, 1464] - ], - [ - [64304, 64304], - "mapped", - [1488, 1468] - ], - [ - [64305, 64305], - "mapped", - [1489, 1468] - ], - [ - [64306, 64306], - "mapped", - [1490, 1468] - ], - [ - [64307, 64307], - "mapped", - [1491, 1468] - ], - [ - [64308, 64308], - "mapped", - [1492, 1468] - ], - [ - [64309, 64309], - "mapped", - [1493, 1468] - ], - [ - [64310, 64310], - "mapped", - [1494, 1468] - ], - [[64311, 64311], "disallowed"], - [ - [64312, 64312], - "mapped", - [1496, 1468] - ], - [ - [64313, 64313], - "mapped", - [1497, 1468] - ], - [ - [64314, 64314], - "mapped", - [1498, 1468] - ], - [ - [64315, 64315], - "mapped", - [1499, 1468] - ], - [ - [64316, 64316], - "mapped", - [1500, 1468] - ], - [[64317, 64317], "disallowed"], - [ - [64318, 64318], - "mapped", - [1502, 1468] - ], - [[64319, 64319], "disallowed"], - [ - [64320, 64320], - "mapped", - [1504, 1468] - ], - [ - [64321, 64321], - "mapped", - [1505, 1468] - ], - [[64322, 64322], "disallowed"], - [ - [64323, 64323], - "mapped", - [1507, 1468] - ], - [ - [64324, 64324], - "mapped", - [1508, 1468] - ], - [[64325, 64325], "disallowed"], - [ - [64326, 64326], - "mapped", - [1510, 1468] - ], - [ - [64327, 64327], - "mapped", - [1511, 1468] - ], - [ - [64328, 64328], - "mapped", - [1512, 1468] - ], - [ - [64329, 64329], - "mapped", - [1513, 1468] - ], - [ - [64330, 64330], - "mapped", - [1514, 1468] - ], - [ - [64331, 64331], - "mapped", - [1493, 1465] - ], - [ - [64332, 64332], - "mapped", - [1489, 1471] - ], - [ - [64333, 64333], - "mapped", - [1499, 1471] - ], - [ - [64334, 64334], - "mapped", - [1508, 1471] - ], - [ - [64335, 64335], - "mapped", - [1488, 1500] - ], - [ - [64336, 64337], - "mapped", - [1649] - ], - [ - [64338, 64341], - "mapped", - [1659] - ], - [ - [64342, 64345], - "mapped", - [1662] - ], - [ - [64346, 64349], - "mapped", - [1664] - ], - [ - [64350, 64353], - "mapped", - [1658] - ], - [ - [64354, 64357], - "mapped", - [1663] - ], - [ - [64358, 64361], - "mapped", - [1657] - ], - [ - [64362, 64365], - "mapped", - [1700] - ], - [ - [64366, 64369], - "mapped", - [1702] - ], - [ - [64370, 64373], - "mapped", - [1668] - ], - [ - [64374, 64377], - "mapped", - [1667] - ], - [ - [64378, 64381], - "mapped", - [1670] - ], - [ - [64382, 64385], - "mapped", - [1671] - ], - [ - [64386, 64387], - "mapped", - [1677] - ], - [ - [64388, 64389], - "mapped", - [1676] - ], - [ - [64390, 64391], - "mapped", - [1678] - ], - [ - [64392, 64393], - "mapped", - [1672] - ], - [ - [64394, 64395], - "mapped", - [1688] - ], - [ - [64396, 64397], - "mapped", - [1681] - ], - [ - [64398, 64401], - "mapped", - [1705] - ], - [ - [64402, 64405], - "mapped", - [1711] - ], - [ - [64406, 64409], - "mapped", - [1715] - ], - [ - [64410, 64413], - "mapped", - [1713] - ], - [ - [64414, 64415], - "mapped", - [1722] - ], - [ - [64416, 64419], - "mapped", - [1723] - ], - [ - [64420, 64421], - "mapped", - [1728] - ], - [ - [64422, 64425], - "mapped", - [1729] - ], - [ - [64426, 64429], - "mapped", - [1726] - ], - [ - [64430, 64431], - "mapped", - [1746] - ], - [ - [64432, 64433], - "mapped", - [1747] - ], - [ - [64434, 64449], - "valid", - [], - "NV8" - ], - [[64450, 64466], "disallowed"], - [ - [64467, 64470], - "mapped", - [1709] - ], - [ - [64471, 64472], - "mapped", - [1735] - ], - [ - [64473, 64474], - "mapped", - [1734] - ], - [ - [64475, 64476], - "mapped", - [1736] - ], - [ - [64477, 64477], - "mapped", - [1735, 1652] - ], - [ - [64478, 64479], - "mapped", - [1739] - ], - [ - [64480, 64481], - "mapped", - [1733] - ], - [ - [64482, 64483], - "mapped", - [1737] - ], - [ - [64484, 64487], - "mapped", - [1744] - ], - [ - [64488, 64489], - "mapped", - [1609] - ], - [ - [64490, 64491], - "mapped", - [1574, 1575] - ], - [ - [64492, 64493], - "mapped", - [1574, 1749] - ], - [ - [64494, 64495], - "mapped", - [1574, 1608] - ], - [ - [64496, 64497], - "mapped", - [1574, 1735] - ], - [ - [64498, 64499], - "mapped", - [1574, 1734] - ], - [ - [64500, 64501], - "mapped", - [1574, 1736] - ], - [ - [64502, 64504], - "mapped", - [1574, 1744] - ], - [ - [64505, 64507], - "mapped", - [1574, 1609] - ], - [ - [64508, 64511], - "mapped", - [1740] - ], - [ - [64512, 64512], - "mapped", - [1574, 1580] - ], - [ - [64513, 64513], - "mapped", - [1574, 1581] - ], - [ - [64514, 64514], - "mapped", - [1574, 1605] - ], - [ - [64515, 64515], - "mapped", - [1574, 1609] - ], - [ - [64516, 64516], - "mapped", - [1574, 1610] - ], - [ - [64517, 64517], - "mapped", - [1576, 1580] - ], - [ - [64518, 64518], - "mapped", - [1576, 1581] - ], - [ - [64519, 64519], - "mapped", - [1576, 1582] - ], - [ - [64520, 64520], - "mapped", - [1576, 1605] - ], - [ - [64521, 64521], - "mapped", - [1576, 1609] - ], - [ - [64522, 64522], - "mapped", - [1576, 1610] - ], - [ - [64523, 64523], - "mapped", - [1578, 1580] - ], - [ - [64524, 64524], - "mapped", - [1578, 1581] - ], - [ - [64525, 64525], - "mapped", - [1578, 1582] - ], - [ - [64526, 64526], - "mapped", - [1578, 1605] - ], - [ - [64527, 64527], - "mapped", - [1578, 1609] - ], - [ - [64528, 64528], - "mapped", - [1578, 1610] - ], - [ - [64529, 64529], - "mapped", - [1579, 1580] - ], - [ - [64530, 64530], - "mapped", - [1579, 1605] - ], - [ - [64531, 64531], - "mapped", - [1579, 1609] - ], - [ - [64532, 64532], - "mapped", - [1579, 1610] - ], - [ - [64533, 64533], - "mapped", - [1580, 1581] - ], - [ - [64534, 64534], - "mapped", - [1580, 1605] - ], - [ - [64535, 64535], - "mapped", - [1581, 1580] - ], - [ - [64536, 64536], - "mapped", - [1581, 1605] - ], - [ - [64537, 64537], - "mapped", - [1582, 1580] - ], - [ - [64538, 64538], - "mapped", - [1582, 1581] - ], - [ - [64539, 64539], - "mapped", - [1582, 1605] - ], - [ - [64540, 64540], - "mapped", - [1587, 1580] - ], - [ - [64541, 64541], - "mapped", - [1587, 1581] - ], - [ - [64542, 64542], - "mapped", - [1587, 1582] - ], - [ - [64543, 64543], - "mapped", - [1587, 1605] - ], - [ - [64544, 64544], - "mapped", - [1589, 1581] - ], - [ - [64545, 64545], - "mapped", - [1589, 1605] - ], - [ - [64546, 64546], - "mapped", - [1590, 1580] - ], - [ - [64547, 64547], - "mapped", - [1590, 1581] - ], - [ - [64548, 64548], - "mapped", - [1590, 1582] - ], - [ - [64549, 64549], - "mapped", - [1590, 1605] - ], - [ - [64550, 64550], - "mapped", - [1591, 1581] - ], - [ - [64551, 64551], - "mapped", - [1591, 1605] - ], - [ - [64552, 64552], - "mapped", - [1592, 1605] - ], - [ - [64553, 64553], - "mapped", - [1593, 1580] - ], - [ - [64554, 64554], - "mapped", - [1593, 1605] - ], - [ - [64555, 64555], - "mapped", - [1594, 1580] - ], - [ - [64556, 64556], - "mapped", - [1594, 1605] - ], - [ - [64557, 64557], - "mapped", - [1601, 1580] - ], - [ - [64558, 64558], - "mapped", - [1601, 1581] - ], - [ - [64559, 64559], - "mapped", - [1601, 1582] - ], - [ - [64560, 64560], - "mapped", - [1601, 1605] - ], - [ - [64561, 64561], - "mapped", - [1601, 1609] - ], - [ - [64562, 64562], - "mapped", - [1601, 1610] - ], - [ - [64563, 64563], - "mapped", - [1602, 1581] - ], - [ - [64564, 64564], - "mapped", - [1602, 1605] - ], - [ - [64565, 64565], - "mapped", - [1602, 1609] - ], - [ - [64566, 64566], - "mapped", - [1602, 1610] - ], - [ - [64567, 64567], - "mapped", - [1603, 1575] - ], - [ - [64568, 64568], - "mapped", - [1603, 1580] - ], - [ - [64569, 64569], - "mapped", - [1603, 1581] - ], - [ - [64570, 64570], - "mapped", - [1603, 1582] - ], - [ - [64571, 64571], - "mapped", - [1603, 1604] - ], - [ - [64572, 64572], - "mapped", - [1603, 1605] - ], - [ - [64573, 64573], - "mapped", - [1603, 1609] - ], - [ - [64574, 64574], - "mapped", - [1603, 1610] - ], - [ - [64575, 64575], - "mapped", - [1604, 1580] - ], - [ - [64576, 64576], - "mapped", - [1604, 1581] - ], - [ - [64577, 64577], - "mapped", - [1604, 1582] - ], - [ - [64578, 64578], - "mapped", - [1604, 1605] - ], - [ - [64579, 64579], - "mapped", - [1604, 1609] - ], - [ - [64580, 64580], - "mapped", - [1604, 1610] - ], - [ - [64581, 64581], - "mapped", - [1605, 1580] - ], - [ - [64582, 64582], - "mapped", - [1605, 1581] - ], - [ - [64583, 64583], - "mapped", - [1605, 1582] - ], - [ - [64584, 64584], - "mapped", - [1605, 1605] - ], - [ - [64585, 64585], - "mapped", - [1605, 1609] - ], - [ - [64586, 64586], - "mapped", - [1605, 1610] - ], - [ - [64587, 64587], - "mapped", - [1606, 1580] - ], - [ - [64588, 64588], - "mapped", - [1606, 1581] - ], - [ - [64589, 64589], - "mapped", - [1606, 1582] - ], - [ - [64590, 64590], - "mapped", - [1606, 1605] - ], - [ - [64591, 64591], - "mapped", - [1606, 1609] - ], - [ - [64592, 64592], - "mapped", - [1606, 1610] - ], - [ - [64593, 64593], - "mapped", - [1607, 1580] - ], - [ - [64594, 64594], - "mapped", - [1607, 1605] - ], - [ - [64595, 64595], - "mapped", - [1607, 1609] - ], - [ - [64596, 64596], - "mapped", - [1607, 1610] - ], - [ - [64597, 64597], - "mapped", - [1610, 1580] - ], - [ - [64598, 64598], - "mapped", - [1610, 1581] - ], - [ - [64599, 64599], - "mapped", - [1610, 1582] - ], - [ - [64600, 64600], - "mapped", - [1610, 1605] - ], - [ - [64601, 64601], - "mapped", - [1610, 1609] - ], - [ - [64602, 64602], - "mapped", - [1610, 1610] - ], - [ - [64603, 64603], - "mapped", - [1584, 1648] - ], - [ - [64604, 64604], - "mapped", - [1585, 1648] - ], - [ - [64605, 64605], - "mapped", - [1609, 1648] - ], - [ - [64606, 64606], - "disallowed_STD3_mapped", - [ - 32, - 1612, - 1617 - ] - ], - [ - [64607, 64607], - "disallowed_STD3_mapped", - [ - 32, - 1613, - 1617 - ] - ], - [ - [64608, 64608], - "disallowed_STD3_mapped", - [ - 32, - 1614, - 1617 - ] - ], - [ - [64609, 64609], - "disallowed_STD3_mapped", - [ - 32, - 1615, - 1617 - ] - ], - [ - [64610, 64610], - "disallowed_STD3_mapped", - [ - 32, - 1616, - 1617 - ] - ], - [ - [64611, 64611], - "disallowed_STD3_mapped", - [ - 32, - 1617, - 1648 - ] - ], - [ - [64612, 64612], - "mapped", - [1574, 1585] - ], - [ - [64613, 64613], - "mapped", - [1574, 1586] - ], - [ - [64614, 64614], - "mapped", - [1574, 1605] - ], - [ - [64615, 64615], - "mapped", - [1574, 1606] - ], - [ - [64616, 64616], - "mapped", - [1574, 1609] - ], - [ - [64617, 64617], - "mapped", - [1574, 1610] - ], - [ - [64618, 64618], - "mapped", - [1576, 1585] - ], - [ - [64619, 64619], - "mapped", - [1576, 1586] - ], - [ - [64620, 64620], - "mapped", - [1576, 1605] - ], - [ - [64621, 64621], - "mapped", - [1576, 1606] - ], - [ - [64622, 64622], - "mapped", - [1576, 1609] - ], - [ - [64623, 64623], - "mapped", - [1576, 1610] - ], - [ - [64624, 64624], - "mapped", - [1578, 1585] - ], - [ - [64625, 64625], - "mapped", - [1578, 1586] - ], - [ - [64626, 64626], - "mapped", - [1578, 1605] - ], - [ - [64627, 64627], - "mapped", - [1578, 1606] - ], - [ - [64628, 64628], - "mapped", - [1578, 1609] - ], - [ - [64629, 64629], - "mapped", - [1578, 1610] - ], - [ - [64630, 64630], - "mapped", - [1579, 1585] - ], - [ - [64631, 64631], - "mapped", - [1579, 1586] - ], - [ - [64632, 64632], - "mapped", - [1579, 1605] - ], - [ - [64633, 64633], - "mapped", - [1579, 1606] - ], - [ - [64634, 64634], - "mapped", - [1579, 1609] - ], - [ - [64635, 64635], - "mapped", - [1579, 1610] - ], - [ - [64636, 64636], - "mapped", - [1601, 1609] - ], - [ - [64637, 64637], - "mapped", - [1601, 1610] - ], - [ - [64638, 64638], - "mapped", - [1602, 1609] - ], - [ - [64639, 64639], - "mapped", - [1602, 1610] - ], - [ - [64640, 64640], - "mapped", - [1603, 1575] - ], - [ - [64641, 64641], - "mapped", - [1603, 1604] - ], - [ - [64642, 64642], - "mapped", - [1603, 1605] - ], - [ - [64643, 64643], - "mapped", - [1603, 1609] - ], - [ - [64644, 64644], - "mapped", - [1603, 1610] - ], - [ - [64645, 64645], - "mapped", - [1604, 1605] - ], - [ - [64646, 64646], - "mapped", - [1604, 1609] - ], - [ - [64647, 64647], - "mapped", - [1604, 1610] - ], - [ - [64648, 64648], - "mapped", - [1605, 1575] - ], - [ - [64649, 64649], - "mapped", - [1605, 1605] - ], - [ - [64650, 64650], - "mapped", - [1606, 1585] - ], - [ - [64651, 64651], - "mapped", - [1606, 1586] - ], - [ - [64652, 64652], - "mapped", - [1606, 1605] - ], - [ - [64653, 64653], - "mapped", - [1606, 1606] - ], - [ - [64654, 64654], - "mapped", - [1606, 1609] - ], - [ - [64655, 64655], - "mapped", - [1606, 1610] - ], - [ - [64656, 64656], - "mapped", - [1609, 1648] - ], - [ - [64657, 64657], - "mapped", - [1610, 1585] - ], - [ - [64658, 64658], - "mapped", - [1610, 1586] - ], - [ - [64659, 64659], - "mapped", - [1610, 1605] - ], - [ - [64660, 64660], - "mapped", - [1610, 1606] - ], - [ - [64661, 64661], - "mapped", - [1610, 1609] - ], - [ - [64662, 64662], - "mapped", - [1610, 1610] - ], - [ - [64663, 64663], - "mapped", - [1574, 1580] - ], - [ - [64664, 64664], - "mapped", - [1574, 1581] - ], - [ - [64665, 64665], - "mapped", - [1574, 1582] - ], - [ - [64666, 64666], - "mapped", - [1574, 1605] - ], - [ - [64667, 64667], - "mapped", - [1574, 1607] - ], - [ - [64668, 64668], - "mapped", - [1576, 1580] - ], - [ - [64669, 64669], - "mapped", - [1576, 1581] - ], - [ - [64670, 64670], - "mapped", - [1576, 1582] - ], - [ - [64671, 64671], - "mapped", - [1576, 1605] - ], - [ - [64672, 64672], - "mapped", - [1576, 1607] - ], - [ - [64673, 64673], - "mapped", - [1578, 1580] - ], - [ - [64674, 64674], - "mapped", - [1578, 1581] - ], - [ - [64675, 64675], - "mapped", - [1578, 1582] - ], - [ - [64676, 64676], - "mapped", - [1578, 1605] - ], - [ - [64677, 64677], - "mapped", - [1578, 1607] - ], - [ - [64678, 64678], - "mapped", - [1579, 1605] - ], - [ - [64679, 64679], - "mapped", - [1580, 1581] - ], - [ - [64680, 64680], - "mapped", - [1580, 1605] - ], - [ - [64681, 64681], - "mapped", - [1581, 1580] - ], - [ - [64682, 64682], - "mapped", - [1581, 1605] - ], - [ - [64683, 64683], - "mapped", - [1582, 1580] - ], - [ - [64684, 64684], - "mapped", - [1582, 1605] - ], - [ - [64685, 64685], - "mapped", - [1587, 1580] - ], - [ - [64686, 64686], - "mapped", - [1587, 1581] - ], - [ - [64687, 64687], - "mapped", - [1587, 1582] - ], - [ - [64688, 64688], - "mapped", - [1587, 1605] - ], - [ - [64689, 64689], - "mapped", - [1589, 1581] - ], - [ - [64690, 64690], - "mapped", - [1589, 1582] - ], - [ - [64691, 64691], - "mapped", - [1589, 1605] - ], - [ - [64692, 64692], - "mapped", - [1590, 1580] - ], - [ - [64693, 64693], - "mapped", - [1590, 1581] - ], - [ - [64694, 64694], - "mapped", - [1590, 1582] - ], - [ - [64695, 64695], - "mapped", - [1590, 1605] - ], - [ - [64696, 64696], - "mapped", - [1591, 1581] - ], - [ - [64697, 64697], - "mapped", - [1592, 1605] - ], - [ - [64698, 64698], - "mapped", - [1593, 1580] - ], - [ - [64699, 64699], - "mapped", - [1593, 1605] - ], - [ - [64700, 64700], - "mapped", - [1594, 1580] - ], - [ - [64701, 64701], - "mapped", - [1594, 1605] - ], - [ - [64702, 64702], - "mapped", - [1601, 1580] - ], - [ - [64703, 64703], - "mapped", - [1601, 1581] - ], - [ - [64704, 64704], - "mapped", - [1601, 1582] - ], - [ - [64705, 64705], - "mapped", - [1601, 1605] - ], - [ - [64706, 64706], - "mapped", - [1602, 1581] - ], - [ - [64707, 64707], - "mapped", - [1602, 1605] - ], - [ - [64708, 64708], - "mapped", - [1603, 1580] - ], - [ - [64709, 64709], - "mapped", - [1603, 1581] - ], - [ - [64710, 64710], - "mapped", - [1603, 1582] - ], - [ - [64711, 64711], - "mapped", - [1603, 1604] - ], - [ - [64712, 64712], - "mapped", - [1603, 1605] - ], - [ - [64713, 64713], - "mapped", - [1604, 1580] - ], - [ - [64714, 64714], - "mapped", - [1604, 1581] - ], - [ - [64715, 64715], - "mapped", - [1604, 1582] - ], - [ - [64716, 64716], - "mapped", - [1604, 1605] - ], - [ - [64717, 64717], - "mapped", - [1604, 1607] - ], - [ - [64718, 64718], - "mapped", - [1605, 1580] - ], - [ - [64719, 64719], - "mapped", - [1605, 1581] - ], - [ - [64720, 64720], - "mapped", - [1605, 1582] - ], - [ - [64721, 64721], - "mapped", - [1605, 1605] - ], - [ - [64722, 64722], - "mapped", - [1606, 1580] - ], - [ - [64723, 64723], - "mapped", - [1606, 1581] - ], - [ - [64724, 64724], - "mapped", - [1606, 1582] - ], - [ - [64725, 64725], - "mapped", - [1606, 1605] - ], - [ - [64726, 64726], - "mapped", - [1606, 1607] - ], - [ - [64727, 64727], - "mapped", - [1607, 1580] - ], - [ - [64728, 64728], - "mapped", - [1607, 1605] - ], - [ - [64729, 64729], - "mapped", - [1607, 1648] - ], - [ - [64730, 64730], - "mapped", - [1610, 1580] - ], - [ - [64731, 64731], - "mapped", - [1610, 1581] - ], - [ - [64732, 64732], - "mapped", - [1610, 1582] - ], - [ - [64733, 64733], - "mapped", - [1610, 1605] - ], - [ - [64734, 64734], - "mapped", - [1610, 1607] - ], - [ - [64735, 64735], - "mapped", - [1574, 1605] - ], - [ - [64736, 64736], - "mapped", - [1574, 1607] - ], - [ - [64737, 64737], - "mapped", - [1576, 1605] - ], - [ - [64738, 64738], - "mapped", - [1576, 1607] - ], - [ - [64739, 64739], - "mapped", - [1578, 1605] - ], - [ - [64740, 64740], - "mapped", - [1578, 1607] - ], - [ - [64741, 64741], - "mapped", - [1579, 1605] - ], - [ - [64742, 64742], - "mapped", - [1579, 1607] - ], - [ - [64743, 64743], - "mapped", - [1587, 1605] - ], - [ - [64744, 64744], - "mapped", - [1587, 1607] - ], - [ - [64745, 64745], - "mapped", - [1588, 1605] - ], - [ - [64746, 64746], - "mapped", - [1588, 1607] - ], - [ - [64747, 64747], - "mapped", - [1603, 1604] - ], - [ - [64748, 64748], - "mapped", - [1603, 1605] - ], - [ - [64749, 64749], - "mapped", - [1604, 1605] - ], - [ - [64750, 64750], - "mapped", - [1606, 1605] - ], - [ - [64751, 64751], - "mapped", - [1606, 1607] - ], - [ - [64752, 64752], - "mapped", - [1610, 1605] - ], - [ - [64753, 64753], - "mapped", - [1610, 1607] - ], - [ - [64754, 64754], - "mapped", - [ - 1600, - 1614, - 1617 - ] - ], - [ - [64755, 64755], - "mapped", - [ - 1600, - 1615, - 1617 - ] - ], - [ - [64756, 64756], - "mapped", - [ - 1600, - 1616, - 1617 - ] - ], - [ - [64757, 64757], - "mapped", - [1591, 1609] - ], - [ - [64758, 64758], - "mapped", - [1591, 1610] - ], - [ - [64759, 64759], - "mapped", - [1593, 1609] - ], - [ - [64760, 64760], - "mapped", - [1593, 1610] - ], - [ - [64761, 64761], - "mapped", - [1594, 1609] - ], - [ - [64762, 64762], - "mapped", - [1594, 1610] - ], - [ - [64763, 64763], - "mapped", - [1587, 1609] - ], - [ - [64764, 64764], - "mapped", - [1587, 1610] - ], - [ - [64765, 64765], - "mapped", - [1588, 1609] - ], - [ - [64766, 64766], - "mapped", - [1588, 1610] - ], - [ - [64767, 64767], - "mapped", - [1581, 1609] - ], - [ - [64768, 64768], - "mapped", - [1581, 1610] - ], - [ - [64769, 64769], - "mapped", - [1580, 1609] - ], - [ - [64770, 64770], - "mapped", - [1580, 1610] - ], - [ - [64771, 64771], - "mapped", - [1582, 1609] - ], - [ - [64772, 64772], - "mapped", - [1582, 1610] - ], - [ - [64773, 64773], - "mapped", - [1589, 1609] - ], - [ - [64774, 64774], - "mapped", - [1589, 1610] - ], - [ - [64775, 64775], - "mapped", - [1590, 1609] - ], - [ - [64776, 64776], - "mapped", - [1590, 1610] - ], - [ - [64777, 64777], - "mapped", - [1588, 1580] - ], - [ - [64778, 64778], - "mapped", - [1588, 1581] - ], - [ - [64779, 64779], - "mapped", - [1588, 1582] - ], - [ - [64780, 64780], - "mapped", - [1588, 1605] - ], - [ - [64781, 64781], - "mapped", - [1588, 1585] - ], - [ - [64782, 64782], - "mapped", - [1587, 1585] - ], - [ - [64783, 64783], - "mapped", - [1589, 1585] - ], - [ - [64784, 64784], - "mapped", - [1590, 1585] - ], - [ - [64785, 64785], - "mapped", - [1591, 1609] - ], - [ - [64786, 64786], - "mapped", - [1591, 1610] - ], - [ - [64787, 64787], - "mapped", - [1593, 1609] - ], - [ - [64788, 64788], - "mapped", - [1593, 1610] - ], - [ - [64789, 64789], - "mapped", - [1594, 1609] - ], - [ - [64790, 64790], - "mapped", - [1594, 1610] - ], - [ - [64791, 64791], - "mapped", - [1587, 1609] - ], - [ - [64792, 64792], - "mapped", - [1587, 1610] - ], - [ - [64793, 64793], - "mapped", - [1588, 1609] - ], - [ - [64794, 64794], - "mapped", - [1588, 1610] - ], - [ - [64795, 64795], - "mapped", - [1581, 1609] - ], - [ - [64796, 64796], - "mapped", - [1581, 1610] - ], - [ - [64797, 64797], - "mapped", - [1580, 1609] - ], - [ - [64798, 64798], - "mapped", - [1580, 1610] - ], - [ - [64799, 64799], - "mapped", - [1582, 1609] - ], - [ - [64800, 64800], - "mapped", - [1582, 1610] - ], - [ - [64801, 64801], - "mapped", - [1589, 1609] - ], - [ - [64802, 64802], - "mapped", - [1589, 1610] - ], - [ - [64803, 64803], - "mapped", - [1590, 1609] - ], - [ - [64804, 64804], - "mapped", - [1590, 1610] - ], - [ - [64805, 64805], - "mapped", - [1588, 1580] - ], - [ - [64806, 64806], - "mapped", - [1588, 1581] - ], - [ - [64807, 64807], - "mapped", - [1588, 1582] - ], - [ - [64808, 64808], - "mapped", - [1588, 1605] - ], - [ - [64809, 64809], - "mapped", - [1588, 1585] - ], - [ - [64810, 64810], - "mapped", - [1587, 1585] - ], - [ - [64811, 64811], - "mapped", - [1589, 1585] - ], - [ - [64812, 64812], - "mapped", - [1590, 1585] - ], - [ - [64813, 64813], - "mapped", - [1588, 1580] - ], - [ - [64814, 64814], - "mapped", - [1588, 1581] - ], - [ - [64815, 64815], - "mapped", - [1588, 1582] - ], - [ - [64816, 64816], - "mapped", - [1588, 1605] - ], - [ - [64817, 64817], - "mapped", - [1587, 1607] - ], - [ - [64818, 64818], - "mapped", - [1588, 1607] - ], - [ - [64819, 64819], - "mapped", - [1591, 1605] - ], - [ - [64820, 64820], - "mapped", - [1587, 1580] - ], - [ - [64821, 64821], - "mapped", - [1587, 1581] - ], - [ - [64822, 64822], - "mapped", - [1587, 1582] - ], - [ - [64823, 64823], - "mapped", - [1588, 1580] - ], - [ - [64824, 64824], - "mapped", - [1588, 1581] - ], - [ - [64825, 64825], - "mapped", - [1588, 1582] - ], - [ - [64826, 64826], - "mapped", - [1591, 1605] - ], - [ - [64827, 64827], - "mapped", - [1592, 1605] - ], - [ - [64828, 64829], - "mapped", - [1575, 1611] - ], - [ - [64830, 64831], - "valid", - [], - "NV8" - ], - [[64832, 64847], "disallowed"], - [ - [64848, 64848], - "mapped", - [ - 1578, - 1580, - 1605 - ] - ], - [ - [64849, 64850], - "mapped", - [ - 1578, - 1581, - 1580 - ] - ], - [ - [64851, 64851], - "mapped", - [ - 1578, - 1581, - 1605 - ] - ], - [ - [64852, 64852], - "mapped", - [ - 1578, - 1582, - 1605 - ] - ], - [ - [64853, 64853], - "mapped", - [ - 1578, - 1605, - 1580 - ] - ], - [ - [64854, 64854], - "mapped", - [ - 1578, - 1605, - 1581 - ] - ], - [ - [64855, 64855], - "mapped", - [ - 1578, - 1605, - 1582 - ] - ], - [ - [64856, 64857], - "mapped", - [ - 1580, - 1605, - 1581 - ] - ], - [ - [64858, 64858], - "mapped", - [ - 1581, - 1605, - 1610 - ] - ], - [ - [64859, 64859], - "mapped", - [ - 1581, - 1605, - 1609 - ] - ], - [ - [64860, 64860], - "mapped", - [ - 1587, - 1581, - 1580 - ] - ], - [ - [64861, 64861], - "mapped", - [ - 1587, - 1580, - 1581 - ] - ], - [ - [64862, 64862], - "mapped", - [ - 1587, - 1580, - 1609 - ] - ], - [ - [64863, 64864], - "mapped", - [ - 1587, - 1605, - 1581 - ] - ], - [ - [64865, 64865], - "mapped", - [ - 1587, - 1605, - 1580 - ] - ], - [ - [64866, 64867], - "mapped", - [ - 1587, - 1605, - 1605 - ] - ], - [ - [64868, 64869], - "mapped", - [ - 1589, - 1581, - 1581 - ] - ], - [ - [64870, 64870], - "mapped", - [ - 1589, - 1605, - 1605 - ] - ], - [ - [64871, 64872], - "mapped", - [ - 1588, - 1581, - 1605 - ] - ], - [ - [64873, 64873], - "mapped", - [ - 1588, - 1580, - 1610 - ] - ], - [ - [64874, 64875], - "mapped", - [ - 1588, - 1605, - 1582 - ] - ], - [ - [64876, 64877], - "mapped", - [ - 1588, - 1605, - 1605 - ] - ], - [ - [64878, 64878], - "mapped", - [ - 1590, - 1581, - 1609 - ] - ], - [ - [64879, 64880], - "mapped", - [ - 1590, - 1582, - 1605 - ] - ], - [ - [64881, 64882], - "mapped", - [ - 1591, - 1605, - 1581 - ] - ], - [ - [64883, 64883], - "mapped", - [ - 1591, - 1605, - 1605 - ] - ], - [ - [64884, 64884], - "mapped", - [ - 1591, - 1605, - 1610 - ] - ], - [ - [64885, 64885], - "mapped", - [ - 1593, - 1580, - 1605 - ] - ], - [ - [64886, 64887], - "mapped", - [ - 1593, - 1605, - 1605 - ] - ], - [ - [64888, 64888], - "mapped", - [ - 1593, - 1605, - 1609 - ] - ], - [ - [64889, 64889], - "mapped", - [ - 1594, - 1605, - 1605 - ] - ], - [ - [64890, 64890], - "mapped", - [ - 1594, - 1605, - 1610 - ] - ], - [ - [64891, 64891], - "mapped", - [ - 1594, - 1605, - 1609 - ] - ], - [ - [64892, 64893], - "mapped", - [ - 1601, - 1582, - 1605 - ] - ], - [ - [64894, 64894], - "mapped", - [ - 1602, - 1605, - 1581 - ] - ], - [ - [64895, 64895], - "mapped", - [ - 1602, - 1605, - 1605 - ] - ], - [ - [64896, 64896], - "mapped", - [ - 1604, - 1581, - 1605 - ] - ], - [ - [64897, 64897], - "mapped", - [ - 1604, - 1581, - 1610 - ] - ], - [ - [64898, 64898], - "mapped", - [ - 1604, - 1581, - 1609 - ] - ], - [ - [64899, 64900], - "mapped", - [ - 1604, - 1580, - 1580 - ] - ], - [ - [64901, 64902], - "mapped", - [ - 1604, - 1582, - 1605 - ] - ], - [ - [64903, 64904], - "mapped", - [ - 1604, - 1605, - 1581 - ] - ], - [ - [64905, 64905], - "mapped", - [ - 1605, - 1581, - 1580 - ] - ], - [ - [64906, 64906], - "mapped", - [ - 1605, - 1581, - 1605 - ] - ], - [ - [64907, 64907], - "mapped", - [ - 1605, - 1581, - 1610 - ] - ], - [ - [64908, 64908], - "mapped", - [ - 1605, - 1580, - 1581 - ] - ], - [ - [64909, 64909], - "mapped", - [ - 1605, - 1580, - 1605 - ] - ], - [ - [64910, 64910], - "mapped", - [ - 1605, - 1582, - 1580 - ] - ], - [ - [64911, 64911], - "mapped", - [ - 1605, - 1582, - 1605 - ] - ], - [[64912, 64913], "disallowed"], - [ - [64914, 64914], - "mapped", - [ - 1605, - 1580, - 1582 - ] - ], - [ - [64915, 64915], - "mapped", - [ - 1607, - 1605, - 1580 - ] - ], - [ - [64916, 64916], - "mapped", - [ - 1607, - 1605, - 1605 - ] - ], - [ - [64917, 64917], - "mapped", - [ - 1606, - 1581, - 1605 - ] - ], - [ - [64918, 64918], - "mapped", - [ - 1606, - 1581, - 1609 - ] - ], - [ - [64919, 64920], - "mapped", - [ - 1606, - 1580, - 1605 - ] - ], - [ - [64921, 64921], - "mapped", - [ - 1606, - 1580, - 1609 - ] - ], - [ - [64922, 64922], - "mapped", - [ - 1606, - 1605, - 1610 - ] - ], - [ - [64923, 64923], - "mapped", - [ - 1606, - 1605, - 1609 - ] - ], - [ - [64924, 64925], - "mapped", - [ - 1610, - 1605, - 1605 - ] - ], - [ - [64926, 64926], - "mapped", - [ - 1576, - 1582, - 1610 - ] - ], - [ - [64927, 64927], - "mapped", - [ - 1578, - 1580, - 1610 - ] - ], - [ - [64928, 64928], - "mapped", - [ - 1578, - 1580, - 1609 - ] - ], - [ - [64929, 64929], - "mapped", - [ - 1578, - 1582, - 1610 - ] - ], - [ - [64930, 64930], - "mapped", - [ - 1578, - 1582, - 1609 - ] - ], - [ - [64931, 64931], - "mapped", - [ - 1578, - 1605, - 1610 - ] - ], - [ - [64932, 64932], - "mapped", - [ - 1578, - 1605, - 1609 - ] - ], - [ - [64933, 64933], - "mapped", - [ - 1580, - 1605, - 1610 - ] - ], - [ - [64934, 64934], - "mapped", - [ - 1580, - 1581, - 1609 - ] - ], - [ - [64935, 64935], - "mapped", - [ - 1580, - 1605, - 1609 - ] - ], - [ - [64936, 64936], - "mapped", - [ - 1587, - 1582, - 1609 - ] - ], - [ - [64937, 64937], - "mapped", - [ - 1589, - 1581, - 1610 - ] - ], - [ - [64938, 64938], - "mapped", - [ - 1588, - 1581, - 1610 - ] - ], - [ - [64939, 64939], - "mapped", - [ - 1590, - 1581, - 1610 - ] - ], - [ - [64940, 64940], - "mapped", - [ - 1604, - 1580, - 1610 - ] - ], - [ - [64941, 64941], - "mapped", - [ - 1604, - 1605, - 1610 - ] - ], - [ - [64942, 64942], - "mapped", - [ - 1610, - 1581, - 1610 - ] - ], - [ - [64943, 64943], - "mapped", - [ - 1610, - 1580, - 1610 - ] - ], - [ - [64944, 64944], - "mapped", - [ - 1610, - 1605, - 1610 - ] - ], - [ - [64945, 64945], - "mapped", - [ - 1605, - 1605, - 1610 - ] - ], - [ - [64946, 64946], - "mapped", - [ - 1602, - 1605, - 1610 - ] - ], - [ - [64947, 64947], - "mapped", - [ - 1606, - 1581, - 1610 - ] - ], - [ - [64948, 64948], - "mapped", - [ - 1602, - 1605, - 1581 - ] - ], - [ - [64949, 64949], - "mapped", - [ - 1604, - 1581, - 1605 - ] - ], - [ - [64950, 64950], - "mapped", - [ - 1593, - 1605, - 1610 - ] - ], - [ - [64951, 64951], - "mapped", - [ - 1603, - 1605, - 1610 - ] - ], - [ - [64952, 64952], - "mapped", - [ - 1606, - 1580, - 1581 - ] - ], - [ - [64953, 64953], - "mapped", - [ - 1605, - 1582, - 1610 - ] - ], - [ - [64954, 64954], - "mapped", - [ - 1604, - 1580, - 1605 - ] - ], - [ - [64955, 64955], - "mapped", - [ - 1603, - 1605, - 1605 - ] - ], - [ - [64956, 64956], - "mapped", - [ - 1604, - 1580, - 1605 - ] - ], - [ - [64957, 64957], - "mapped", - [ - 1606, - 1580, - 1581 - ] - ], - [ - [64958, 64958], - "mapped", - [ - 1580, - 1581, - 1610 - ] - ], - [ - [64959, 64959], - "mapped", - [ - 1581, - 1580, - 1610 - ] - ], - [ - [64960, 64960], - "mapped", - [ - 1605, - 1580, - 1610 - ] - ], - [ - [64961, 64961], - "mapped", - [ - 1601, - 1605, - 1610 - ] - ], - [ - [64962, 64962], - "mapped", - [ - 1576, - 1581, - 1610 - ] - ], - [ - [64963, 64963], - "mapped", - [ - 1603, - 1605, - 1605 - ] - ], - [ - [64964, 64964], - "mapped", - [ - 1593, - 1580, - 1605 - ] - ], - [ - [64965, 64965], - "mapped", - [ - 1589, - 1605, - 1605 - ] - ], - [ - [64966, 64966], - "mapped", - [ - 1587, - 1582, - 1610 - ] - ], - [ - [64967, 64967], - "mapped", - [ - 1606, - 1580, - 1610 - ] - ], - [[64968, 64975], "disallowed"], - [[64976, 65007], "disallowed"], - [ - [65008, 65008], - "mapped", - [ - 1589, - 1604, - 1746 - ] - ], - [ - [65009, 65009], - "mapped", - [ - 1602, - 1604, - 1746 - ] - ], - [ - [65010, 65010], - "mapped", - [ - 1575, - 1604, - 1604, - 1607 - ] - ], - [ - [65011, 65011], - "mapped", - [ - 1575, - 1603, - 1576, - 1585 - ] - ], - [ - [65012, 65012], - "mapped", - [ - 1605, - 1581, - 1605, - 1583 - ] - ], - [ - [65013, 65013], - "mapped", - [ - 1589, - 1604, - 1593, - 1605 - ] - ], - [ - [65014, 65014], - "mapped", - [ - 1585, - 1587, - 1608, - 1604 - ] - ], - [ - [65015, 65015], - "mapped", - [ - 1593, - 1604, - 1610, - 1607 - ] - ], - [ - [65016, 65016], - "mapped", - [ - 1608, - 1587, - 1604, - 1605 - ] - ], - [ - [65017, 65017], - "mapped", - [ - 1589, - 1604, - 1609 - ] - ], - [ - [65018, 65018], - "disallowed_STD3_mapped", - [ - 1589, - 1604, - 1609, - 32, - 1575, - 1604, - 1604, - 1607, - 32, - 1593, - 1604, - 1610, - 1607, - 32, - 1608, - 1587, - 1604, - 1605 - ] - ], - [ - [65019, 65019], - "disallowed_STD3_mapped", - [ - 1580, - 1604, - 32, - 1580, - 1604, - 1575, - 1604, - 1607 - ] - ], - [ - [65020, 65020], - "mapped", - [ - 1585, - 1740, - 1575, - 1604 - ] - ], - [ - [65021, 65021], - "valid", - [], - "NV8" - ], - [[65022, 65023], "disallowed"], - [[65024, 65039], "ignored"], - [ - [65040, 65040], - "disallowed_STD3_mapped", - [44] - ], - [ - [65041, 65041], - "mapped", - [12289] - ], - [[65042, 65042], "disallowed"], - [ - [65043, 65043], - "disallowed_STD3_mapped", - [58] - ], - [ - [65044, 65044], - "disallowed_STD3_mapped", - [59] - ], - [ - [65045, 65045], - "disallowed_STD3_mapped", - [33] - ], - [ - [65046, 65046], - "disallowed_STD3_mapped", - [63] - ], - [ - [65047, 65047], - "mapped", - [12310] - ], - [ - [65048, 65048], - "mapped", - [12311] - ], - [[65049, 65049], "disallowed"], - [[65050, 65055], "disallowed"], - [[65056, 65059], "valid"], - [[65060, 65062], "valid"], - [[65063, 65069], "valid"], - [[65070, 65071], "valid"], - [[65072, 65072], "disallowed"], - [ - [65073, 65073], - "mapped", - [8212] - ], - [ - [65074, 65074], - "mapped", - [8211] - ], - [ - [65075, 65076], - "disallowed_STD3_mapped", - [95] - ], - [ - [65077, 65077], - "disallowed_STD3_mapped", - [40] - ], - [ - [65078, 65078], - "disallowed_STD3_mapped", - [41] - ], - [ - [65079, 65079], - "disallowed_STD3_mapped", - [123] - ], - [ - [65080, 65080], - "disallowed_STD3_mapped", - [125] - ], - [ - [65081, 65081], - "mapped", - [12308] - ], - [ - [65082, 65082], - "mapped", - [12309] - ], - [ - [65083, 65083], - "mapped", - [12304] - ], - [ - [65084, 65084], - "mapped", - [12305] - ], - [ - [65085, 65085], - "mapped", - [12298] - ], - [ - [65086, 65086], - "mapped", - [12299] - ], - [ - [65087, 65087], - "mapped", - [12296] - ], - [ - [65088, 65088], - "mapped", - [12297] - ], - [ - [65089, 65089], - "mapped", - [12300] - ], - [ - [65090, 65090], - "mapped", - [12301] - ], - [ - [65091, 65091], - "mapped", - [12302] - ], - [ - [65092, 65092], - "mapped", - [12303] - ], - [ - [65093, 65094], - "valid", - [], - "NV8" - ], - [ - [65095, 65095], - "disallowed_STD3_mapped", - [91] - ], - [ - [65096, 65096], - "disallowed_STD3_mapped", - [93] - ], - [ - [65097, 65100], - "disallowed_STD3_mapped", - [32, 773] - ], - [ - [65101, 65103], - "disallowed_STD3_mapped", - [95] - ], - [ - [65104, 65104], - "disallowed_STD3_mapped", - [44] - ], - [ - [65105, 65105], - "mapped", - [12289] - ], - [[65106, 65106], "disallowed"], - [[65107, 65107], "disallowed"], - [ - [65108, 65108], - "disallowed_STD3_mapped", - [59] - ], - [ - [65109, 65109], - "disallowed_STD3_mapped", - [58] - ], - [ - [65110, 65110], - "disallowed_STD3_mapped", - [63] - ], - [ - [65111, 65111], - "disallowed_STD3_mapped", - [33] - ], - [ - [65112, 65112], - "mapped", - [8212] - ], - [ - [65113, 65113], - "disallowed_STD3_mapped", - [40] - ], - [ - [65114, 65114], - "disallowed_STD3_mapped", - [41] - ], - [ - [65115, 65115], - "disallowed_STD3_mapped", - [123] - ], - [ - [65116, 65116], - "disallowed_STD3_mapped", - [125] - ], - [ - [65117, 65117], - "mapped", - [12308] - ], - [ - [65118, 65118], - "mapped", - [12309] - ], - [ - [65119, 65119], - "disallowed_STD3_mapped", - [35] - ], - [ - [65120, 65120], - "disallowed_STD3_mapped", - [38] - ], - [ - [65121, 65121], - "disallowed_STD3_mapped", - [42] - ], - [ - [65122, 65122], - "disallowed_STD3_mapped", - [43] - ], - [ - [65123, 65123], - "mapped", - [45] - ], - [ - [65124, 65124], - "disallowed_STD3_mapped", - [60] - ], - [ - [65125, 65125], - "disallowed_STD3_mapped", - [62] - ], - [ - [65126, 65126], - "disallowed_STD3_mapped", - [61] - ], - [[65127, 65127], "disallowed"], - [ - [65128, 65128], - "disallowed_STD3_mapped", - [92] - ], - [ - [65129, 65129], - "disallowed_STD3_mapped", - [36] - ], - [ - [65130, 65130], - "disallowed_STD3_mapped", - [37] - ], - [ - [65131, 65131], - "disallowed_STD3_mapped", - [64] - ], - [[65132, 65135], "disallowed"], - [ - [65136, 65136], - "disallowed_STD3_mapped", - [32, 1611] - ], - [ - [65137, 65137], - "mapped", - [1600, 1611] - ], - [ - [65138, 65138], - "disallowed_STD3_mapped", - [32, 1612] - ], - [[65139, 65139], "valid"], - [ - [65140, 65140], - "disallowed_STD3_mapped", - [32, 1613] - ], - [[65141, 65141], "disallowed"], - [ - [65142, 65142], - "disallowed_STD3_mapped", - [32, 1614] - ], - [ - [65143, 65143], - "mapped", - [1600, 1614] - ], - [ - [65144, 65144], - "disallowed_STD3_mapped", - [32, 1615] - ], - [ - [65145, 65145], - "mapped", - [1600, 1615] - ], - [ - [65146, 65146], - "disallowed_STD3_mapped", - [32, 1616] - ], - [ - [65147, 65147], - "mapped", - [1600, 1616] - ], - [ - [65148, 65148], - "disallowed_STD3_mapped", - [32, 1617] - ], - [ - [65149, 65149], - "mapped", - [1600, 1617] - ], - [ - [65150, 65150], - "disallowed_STD3_mapped", - [32, 1618] - ], - [ - [65151, 65151], - "mapped", - [1600, 1618] - ], - [ - [65152, 65152], - "mapped", - [1569] - ], - [ - [65153, 65154], - "mapped", - [1570] - ], - [ - [65155, 65156], - "mapped", - [1571] - ], - [ - [65157, 65158], - "mapped", - [1572] - ], - [ - [65159, 65160], - "mapped", - [1573] - ], - [ - [65161, 65164], - "mapped", - [1574] - ], - [ - [65165, 65166], - "mapped", - [1575] - ], - [ - [65167, 65170], - "mapped", - [1576] - ], - [ - [65171, 65172], - "mapped", - [1577] - ], - [ - [65173, 65176], - "mapped", - [1578] - ], - [ - [65177, 65180], - "mapped", - [1579] - ], - [ - [65181, 65184], - "mapped", - [1580] - ], - [ - [65185, 65188], - "mapped", - [1581] - ], - [ - [65189, 65192], - "mapped", - [1582] - ], - [ - [65193, 65194], - "mapped", - [1583] - ], - [ - [65195, 65196], - "mapped", - [1584] - ], - [ - [65197, 65198], - "mapped", - [1585] - ], - [ - [65199, 65200], - "mapped", - [1586] - ], - [ - [65201, 65204], - "mapped", - [1587] - ], - [ - [65205, 65208], - "mapped", - [1588] - ], - [ - [65209, 65212], - "mapped", - [1589] - ], - [ - [65213, 65216], - "mapped", - [1590] - ], - [ - [65217, 65220], - "mapped", - [1591] - ], - [ - [65221, 65224], - "mapped", - [1592] - ], - [ - [65225, 65228], - "mapped", - [1593] - ], - [ - [65229, 65232], - "mapped", - [1594] - ], - [ - [65233, 65236], - "mapped", - [1601] - ], - [ - [65237, 65240], - "mapped", - [1602] - ], - [ - [65241, 65244], - "mapped", - [1603] - ], - [ - [65245, 65248], - "mapped", - [1604] - ], - [ - [65249, 65252], - "mapped", - [1605] - ], - [ - [65253, 65256], - "mapped", - [1606] - ], - [ - [65257, 65260], - "mapped", - [1607] - ], - [ - [65261, 65262], - "mapped", - [1608] - ], - [ - [65263, 65264], - "mapped", - [1609] - ], - [ - [65265, 65268], - "mapped", - [1610] - ], - [ - [65269, 65270], - "mapped", - [1604, 1570] - ], - [ - [65271, 65272], - "mapped", - [1604, 1571] - ], - [ - [65273, 65274], - "mapped", - [1604, 1573] - ], - [ - [65275, 65276], - "mapped", - [1604, 1575] - ], - [[65277, 65278], "disallowed"], - [[65279, 65279], "ignored"], - [[65280, 65280], "disallowed"], - [ - [65281, 65281], - "disallowed_STD3_mapped", - [33] - ], - [ - [65282, 65282], - "disallowed_STD3_mapped", - [34] - ], - [ - [65283, 65283], - "disallowed_STD3_mapped", - [35] - ], - [ - [65284, 65284], - "disallowed_STD3_mapped", - [36] - ], - [ - [65285, 65285], - "disallowed_STD3_mapped", - [37] - ], - [ - [65286, 65286], - "disallowed_STD3_mapped", - [38] - ], - [ - [65287, 65287], - "disallowed_STD3_mapped", - [39] - ], - [ - [65288, 65288], - "disallowed_STD3_mapped", - [40] - ], - [ - [65289, 65289], - "disallowed_STD3_mapped", - [41] - ], - [ - [65290, 65290], - "disallowed_STD3_mapped", - [42] - ], - [ - [65291, 65291], - "disallowed_STD3_mapped", - [43] - ], - [ - [65292, 65292], - "disallowed_STD3_mapped", - [44] - ], - [ - [65293, 65293], - "mapped", - [45] - ], - [ - [65294, 65294], - "mapped", - [46] - ], - [ - [65295, 65295], - "disallowed_STD3_mapped", - [47] - ], - [ - [65296, 65296], - "mapped", - [48] - ], - [ - [65297, 65297], - "mapped", - [49] - ], - [ - [65298, 65298], - "mapped", - [50] - ], - [ - [65299, 65299], - "mapped", - [51] - ], - [ - [65300, 65300], - "mapped", - [52] - ], - [ - [65301, 65301], - "mapped", - [53] - ], - [ - [65302, 65302], - "mapped", - [54] - ], - [ - [65303, 65303], - "mapped", - [55] - ], - [ - [65304, 65304], - "mapped", - [56] - ], - [ - [65305, 65305], - "mapped", - [57] - ], - [ - [65306, 65306], - "disallowed_STD3_mapped", - [58] - ], - [ - [65307, 65307], - "disallowed_STD3_mapped", - [59] - ], - [ - [65308, 65308], - "disallowed_STD3_mapped", - [60] - ], - [ - [65309, 65309], - "disallowed_STD3_mapped", - [61] - ], - [ - [65310, 65310], - "disallowed_STD3_mapped", - [62] - ], - [ - [65311, 65311], - "disallowed_STD3_mapped", - [63] - ], - [ - [65312, 65312], - "disallowed_STD3_mapped", - [64] - ], - [ - [65313, 65313], - "mapped", - [97] - ], - [ - [65314, 65314], - "mapped", - [98] - ], - [ - [65315, 65315], - "mapped", - [99] - ], - [ - [65316, 65316], - "mapped", - [100] - ], - [ - [65317, 65317], - "mapped", - [101] - ], - [ - [65318, 65318], - "mapped", - [102] - ], - [ - [65319, 65319], - "mapped", - [103] - ], - [ - [65320, 65320], - "mapped", - [104] - ], - [ - [65321, 65321], - "mapped", - [105] - ], - [ - [65322, 65322], - "mapped", - [106] - ], - [ - [65323, 65323], - "mapped", - [107] - ], - [ - [65324, 65324], - "mapped", - [108] - ], - [ - [65325, 65325], - "mapped", - [109] - ], - [ - [65326, 65326], - "mapped", - [110] - ], - [ - [65327, 65327], - "mapped", - [111] - ], - [ - [65328, 65328], - "mapped", - [112] - ], - [ - [65329, 65329], - "mapped", - [113] - ], - [ - [65330, 65330], - "mapped", - [114] - ], - [ - [65331, 65331], - "mapped", - [115] - ], - [ - [65332, 65332], - "mapped", - [116] - ], - [ - [65333, 65333], - "mapped", - [117] - ], - [ - [65334, 65334], - "mapped", - [118] - ], - [ - [65335, 65335], - "mapped", - [119] - ], - [ - [65336, 65336], - "mapped", - [120] - ], - [ - [65337, 65337], - "mapped", - [121] - ], - [ - [65338, 65338], - "mapped", - [122] - ], - [ - [65339, 65339], - "disallowed_STD3_mapped", - [91] - ], - [ - [65340, 65340], - "disallowed_STD3_mapped", - [92] - ], - [ - [65341, 65341], - "disallowed_STD3_mapped", - [93] - ], - [ - [65342, 65342], - "disallowed_STD3_mapped", - [94] - ], - [ - [65343, 65343], - "disallowed_STD3_mapped", - [95] - ], - [ - [65344, 65344], - "disallowed_STD3_mapped", - [96] - ], - [ - [65345, 65345], - "mapped", - [97] - ], - [ - [65346, 65346], - "mapped", - [98] - ], - [ - [65347, 65347], - "mapped", - [99] - ], - [ - [65348, 65348], - "mapped", - [100] - ], - [ - [65349, 65349], - "mapped", - [101] - ], - [ - [65350, 65350], - "mapped", - [102] - ], - [ - [65351, 65351], - "mapped", - [103] - ], - [ - [65352, 65352], - "mapped", - [104] - ], - [ - [65353, 65353], - "mapped", - [105] - ], - [ - [65354, 65354], - "mapped", - [106] - ], - [ - [65355, 65355], - "mapped", - [107] - ], - [ - [65356, 65356], - "mapped", - [108] - ], - [ - [65357, 65357], - "mapped", - [109] - ], - [ - [65358, 65358], - "mapped", - [110] - ], - [ - [65359, 65359], - "mapped", - [111] - ], - [ - [65360, 65360], - "mapped", - [112] - ], - [ - [65361, 65361], - "mapped", - [113] - ], - [ - [65362, 65362], - "mapped", - [114] - ], - [ - [65363, 65363], - "mapped", - [115] - ], - [ - [65364, 65364], - "mapped", - [116] - ], - [ - [65365, 65365], - "mapped", - [117] - ], - [ - [65366, 65366], - "mapped", - [118] - ], - [ - [65367, 65367], - "mapped", - [119] - ], - [ - [65368, 65368], - "mapped", - [120] - ], - [ - [65369, 65369], - "mapped", - [121] - ], - [ - [65370, 65370], - "mapped", - [122] - ], - [ - [65371, 65371], - "disallowed_STD3_mapped", - [123] - ], - [ - [65372, 65372], - "disallowed_STD3_mapped", - [124] - ], - [ - [65373, 65373], - "disallowed_STD3_mapped", - [125] - ], - [ - [65374, 65374], - "disallowed_STD3_mapped", - [126] - ], - [ - [65375, 65375], - "mapped", - [10629] - ], - [ - [65376, 65376], - "mapped", - [10630] - ], - [ - [65377, 65377], - "mapped", - [46] - ], - [ - [65378, 65378], - "mapped", - [12300] - ], - [ - [65379, 65379], - "mapped", - [12301] - ], - [ - [65380, 65380], - "mapped", - [12289] - ], - [ - [65381, 65381], - "mapped", - [12539] - ], - [ - [65382, 65382], - "mapped", - [12530] - ], - [ - [65383, 65383], - "mapped", - [12449] - ], - [ - [65384, 65384], - "mapped", - [12451] - ], - [ - [65385, 65385], - "mapped", - [12453] - ], - [ - [65386, 65386], - "mapped", - [12455] - ], - [ - [65387, 65387], - "mapped", - [12457] - ], - [ - [65388, 65388], - "mapped", - [12515] - ], - [ - [65389, 65389], - "mapped", - [12517] - ], - [ - [65390, 65390], - "mapped", - [12519] - ], - [ - [65391, 65391], - "mapped", - [12483] - ], - [ - [65392, 65392], - "mapped", - [12540] - ], - [ - [65393, 65393], - "mapped", - [12450] - ], - [ - [65394, 65394], - "mapped", - [12452] - ], - [ - [65395, 65395], - "mapped", - [12454] - ], - [ - [65396, 65396], - "mapped", - [12456] - ], - [ - [65397, 65397], - "mapped", - [12458] - ], - [ - [65398, 65398], - "mapped", - [12459] - ], - [ - [65399, 65399], - "mapped", - [12461] - ], - [ - [65400, 65400], - "mapped", - [12463] - ], - [ - [65401, 65401], - "mapped", - [12465] - ], - [ - [65402, 65402], - "mapped", - [12467] - ], - [ - [65403, 65403], - "mapped", - [12469] - ], - [ - [65404, 65404], - "mapped", - [12471] - ], - [ - [65405, 65405], - "mapped", - [12473] - ], - [ - [65406, 65406], - "mapped", - [12475] - ], - [ - [65407, 65407], - "mapped", - [12477] - ], - [ - [65408, 65408], - "mapped", - [12479] - ], - [ - [65409, 65409], - "mapped", - [12481] - ], - [ - [65410, 65410], - "mapped", - [12484] - ], - [ - [65411, 65411], - "mapped", - [12486] - ], - [ - [65412, 65412], - "mapped", - [12488] - ], - [ - [65413, 65413], - "mapped", - [12490] - ], - [ - [65414, 65414], - "mapped", - [12491] - ], - [ - [65415, 65415], - "mapped", - [12492] - ], - [ - [65416, 65416], - "mapped", - [12493] - ], - [ - [65417, 65417], - "mapped", - [12494] - ], - [ - [65418, 65418], - "mapped", - [12495] - ], - [ - [65419, 65419], - "mapped", - [12498] - ], - [ - [65420, 65420], - "mapped", - [12501] - ], - [ - [65421, 65421], - "mapped", - [12504] - ], - [ - [65422, 65422], - "mapped", - [12507] - ], - [ - [65423, 65423], - "mapped", - [12510] - ], - [ - [65424, 65424], - "mapped", - [12511] - ], - [ - [65425, 65425], - "mapped", - [12512] - ], - [ - [65426, 65426], - "mapped", - [12513] - ], - [ - [65427, 65427], - "mapped", - [12514] - ], - [ - [65428, 65428], - "mapped", - [12516] - ], - [ - [65429, 65429], - "mapped", - [12518] - ], - [ - [65430, 65430], - "mapped", - [12520] - ], - [ - [65431, 65431], - "mapped", - [12521] - ], - [ - [65432, 65432], - "mapped", - [12522] - ], - [ - [65433, 65433], - "mapped", - [12523] - ], - [ - [65434, 65434], - "mapped", - [12524] - ], - [ - [65435, 65435], - "mapped", - [12525] - ], - [ - [65436, 65436], - "mapped", - [12527] - ], - [ - [65437, 65437], - "mapped", - [12531] - ], - [ - [65438, 65438], - "mapped", - [12441] - ], - [ - [65439, 65439], - "mapped", - [12442] - ], - [[65440, 65440], "disallowed"], - [ - [65441, 65441], - "mapped", - [4352] - ], - [ - [65442, 65442], - "mapped", - [4353] - ], - [ - [65443, 65443], - "mapped", - [4522] - ], - [ - [65444, 65444], - "mapped", - [4354] - ], - [ - [65445, 65445], - "mapped", - [4524] - ], - [ - [65446, 65446], - "mapped", - [4525] - ], - [ - [65447, 65447], - "mapped", - [4355] - ], - [ - [65448, 65448], - "mapped", - [4356] - ], - [ - [65449, 65449], - "mapped", - [4357] - ], - [ - [65450, 65450], - "mapped", - [4528] - ], - [ - [65451, 65451], - "mapped", - [4529] - ], - [ - [65452, 65452], - "mapped", - [4530] - ], - [ - [65453, 65453], - "mapped", - [4531] - ], - [ - [65454, 65454], - "mapped", - [4532] - ], - [ - [65455, 65455], - "mapped", - [4533] - ], - [ - [65456, 65456], - "mapped", - [4378] - ], - [ - [65457, 65457], - "mapped", - [4358] - ], - [ - [65458, 65458], - "mapped", - [4359] - ], - [ - [65459, 65459], - "mapped", - [4360] - ], - [ - [65460, 65460], - "mapped", - [4385] - ], - [ - [65461, 65461], - "mapped", - [4361] - ], - [ - [65462, 65462], - "mapped", - [4362] - ], - [ - [65463, 65463], - "mapped", - [4363] - ], - [ - [65464, 65464], - "mapped", - [4364] - ], - [ - [65465, 65465], - "mapped", - [4365] - ], - [ - [65466, 65466], - "mapped", - [4366] - ], - [ - [65467, 65467], - "mapped", - [4367] - ], - [ - [65468, 65468], - "mapped", - [4368] - ], - [ - [65469, 65469], - "mapped", - [4369] - ], - [ - [65470, 65470], - "mapped", - [4370] - ], - [[65471, 65473], "disallowed"], - [ - [65474, 65474], - "mapped", - [4449] - ], - [ - [65475, 65475], - "mapped", - [4450] - ], - [ - [65476, 65476], - "mapped", - [4451] - ], - [ - [65477, 65477], - "mapped", - [4452] - ], - [ - [65478, 65478], - "mapped", - [4453] - ], - [ - [65479, 65479], - "mapped", - [4454] - ], - [[65480, 65481], "disallowed"], - [ - [65482, 65482], - "mapped", - [4455] - ], - [ - [65483, 65483], - "mapped", - [4456] - ], - [ - [65484, 65484], - "mapped", - [4457] - ], - [ - [65485, 65485], - "mapped", - [4458] - ], - [ - [65486, 65486], - "mapped", - [4459] - ], - [ - [65487, 65487], - "mapped", - [4460] - ], - [[65488, 65489], "disallowed"], - [ - [65490, 65490], - "mapped", - [4461] - ], - [ - [65491, 65491], - "mapped", - [4462] - ], - [ - [65492, 65492], - "mapped", - [4463] - ], - [ - [65493, 65493], - "mapped", - [4464] - ], - [ - [65494, 65494], - "mapped", - [4465] - ], - [ - [65495, 65495], - "mapped", - [4466] - ], - [[65496, 65497], "disallowed"], - [ - [65498, 65498], - "mapped", - [4467] - ], - [ - [65499, 65499], - "mapped", - [4468] - ], - [ - [65500, 65500], - "mapped", - [4469] - ], - [[65501, 65503], "disallowed"], - [ - [65504, 65504], - "mapped", - [162] - ], - [ - [65505, 65505], - "mapped", - [163] - ], - [ - [65506, 65506], - "mapped", - [172] - ], - [ - [65507, 65507], - "disallowed_STD3_mapped", - [32, 772] - ], - [ - [65508, 65508], - "mapped", - [166] - ], - [ - [65509, 65509], - "mapped", - [165] - ], - [ - [65510, 65510], - "mapped", - [8361] - ], - [[65511, 65511], "disallowed"], - [ - [65512, 65512], - "mapped", - [9474] - ], - [ - [65513, 65513], - "mapped", - [8592] - ], - [ - [65514, 65514], - "mapped", - [8593] - ], - [ - [65515, 65515], - "mapped", - [8594] - ], - [ - [65516, 65516], - "mapped", - [8595] - ], - [ - [65517, 65517], - "mapped", - [9632] - ], - [ - [65518, 65518], - "mapped", - [9675] - ], - [[65519, 65528], "disallowed"], - [[65529, 65531], "disallowed"], - [[65532, 65532], "disallowed"], - [[65533, 65533], "disallowed"], - [[65534, 65535], "disallowed"], - [[65536, 65547], "valid"], - [[65548, 65548], "disallowed"], - [[65549, 65574], "valid"], - [[65575, 65575], "disallowed"], - [[65576, 65594], "valid"], - [[65595, 65595], "disallowed"], - [[65596, 65597], "valid"], - [[65598, 65598], "disallowed"], - [[65599, 65613], "valid"], - [[65614, 65615], "disallowed"], - [[65616, 65629], "valid"], - [[65630, 65663], "disallowed"], - [[65664, 65786], "valid"], - [[65787, 65791], "disallowed"], - [ - [65792, 65794], - "valid", - [], - "NV8" - ], - [[65795, 65798], "disallowed"], - [ - [65799, 65843], - "valid", - [], - "NV8" - ], - [[65844, 65846], "disallowed"], - [ - [65847, 65855], - "valid", - [], - "NV8" - ], - [ - [65856, 65930], - "valid", - [], - "NV8" - ], - [ - [65931, 65932], - "valid", - [], - "NV8" - ], - [[65933, 65935], "disallowed"], - [ - [65936, 65947], - "valid", - [], - "NV8" - ], - [[65948, 65951], "disallowed"], - [ - [65952, 65952], - "valid", - [], - "NV8" - ], - [[65953, 65999], "disallowed"], - [ - [66e3, 66044], - "valid", - [], - "NV8" - ], - [[66045, 66045], "valid"], - [[66046, 66175], "disallowed"], - [[66176, 66204], "valid"], - [[66205, 66207], "disallowed"], - [[66208, 66256], "valid"], - [[66257, 66271], "disallowed"], - [[66272, 66272], "valid"], - [ - [66273, 66299], - "valid", - [], - "NV8" - ], - [[66300, 66303], "disallowed"], - [[66304, 66334], "valid"], - [[66335, 66335], "valid"], - [ - [66336, 66339], - "valid", - [], - "NV8" - ], - [[66340, 66351], "disallowed"], - [[66352, 66368], "valid"], - [ - [66369, 66369], - "valid", - [], - "NV8" - ], - [[66370, 66377], "valid"], - [ - [66378, 66378], - "valid", - [], - "NV8" - ], - [[66379, 66383], "disallowed"], - [[66384, 66426], "valid"], - [[66427, 66431], "disallowed"], - [[66432, 66461], "valid"], - [[66462, 66462], "disallowed"], - [ - [66463, 66463], - "valid", - [], - "NV8" - ], - [[66464, 66499], "valid"], - [[66500, 66503], "disallowed"], - [[66504, 66511], "valid"], - [ - [66512, 66517], - "valid", - [], - "NV8" - ], - [[66518, 66559], "disallowed"], - [ - [66560, 66560], - "mapped", - [66600] - ], - [ - [66561, 66561], - "mapped", - [66601] - ], - [ - [66562, 66562], - "mapped", - [66602] - ], - [ - [66563, 66563], - "mapped", - [66603] - ], - [ - [66564, 66564], - "mapped", - [66604] - ], - [ - [66565, 66565], - "mapped", - [66605] - ], - [ - [66566, 66566], - "mapped", - [66606] - ], - [ - [66567, 66567], - "mapped", - [66607] - ], - [ - [66568, 66568], - "mapped", - [66608] - ], - [ - [66569, 66569], - "mapped", - [66609] - ], - [ - [66570, 66570], - "mapped", - [66610] - ], - [ - [66571, 66571], - "mapped", - [66611] - ], - [ - [66572, 66572], - "mapped", - [66612] - ], - [ - [66573, 66573], - "mapped", - [66613] - ], - [ - [66574, 66574], - "mapped", - [66614] - ], - [ - [66575, 66575], - "mapped", - [66615] - ], - [ - [66576, 66576], - "mapped", - [66616] - ], - [ - [66577, 66577], - "mapped", - [66617] - ], - [ - [66578, 66578], - "mapped", - [66618] - ], - [ - [66579, 66579], - "mapped", - [66619] - ], - [ - [66580, 66580], - "mapped", - [66620] - ], - [ - [66581, 66581], - "mapped", - [66621] - ], - [ - [66582, 66582], - "mapped", - [66622] - ], - [ - [66583, 66583], - "mapped", - [66623] - ], - [ - [66584, 66584], - "mapped", - [66624] - ], - [ - [66585, 66585], - "mapped", - [66625] - ], - [ - [66586, 66586], - "mapped", - [66626] - ], - [ - [66587, 66587], - "mapped", - [66627] - ], - [ - [66588, 66588], - "mapped", - [66628] - ], - [ - [66589, 66589], - "mapped", - [66629] - ], - [ - [66590, 66590], - "mapped", - [66630] - ], - [ - [66591, 66591], - "mapped", - [66631] - ], - [ - [66592, 66592], - "mapped", - [66632] - ], - [ - [66593, 66593], - "mapped", - [66633] - ], - [ - [66594, 66594], - "mapped", - [66634] - ], - [ - [66595, 66595], - "mapped", - [66635] - ], - [ - [66596, 66596], - "mapped", - [66636] - ], - [ - [66597, 66597], - "mapped", - [66637] - ], - [ - [66598, 66598], - "mapped", - [66638] - ], - [ - [66599, 66599], - "mapped", - [66639] - ], - [[66600, 66637], "valid"], - [[66638, 66717], "valid"], - [[66718, 66719], "disallowed"], - [[66720, 66729], "valid"], - [[66730, 66815], "disallowed"], - [[66816, 66855], "valid"], - [[66856, 66863], "disallowed"], - [[66864, 66915], "valid"], - [[66916, 66926], "disallowed"], - [ - [66927, 66927], - "valid", - [], - "NV8" - ], - [[66928, 67071], "disallowed"], - [[67072, 67382], "valid"], - [[67383, 67391], "disallowed"], - [[67392, 67413], "valid"], - [[67414, 67423], "disallowed"], - [[67424, 67431], "valid"], - [[67432, 67583], "disallowed"], - [[67584, 67589], "valid"], - [[67590, 67591], "disallowed"], - [[67592, 67592], "valid"], - [[67593, 67593], "disallowed"], - [[67594, 67637], "valid"], - [[67638, 67638], "disallowed"], - [[67639, 67640], "valid"], - [[67641, 67643], "disallowed"], - [[67644, 67644], "valid"], - [[67645, 67646], "disallowed"], - [[67647, 67647], "valid"], - [[67648, 67669], "valid"], - [[67670, 67670], "disallowed"], - [ - [67671, 67679], - "valid", - [], - "NV8" - ], - [[67680, 67702], "valid"], - [ - [67703, 67711], - "valid", - [], - "NV8" - ], - [[67712, 67742], "valid"], - [[67743, 67750], "disallowed"], - [ - [67751, 67759], - "valid", - [], - "NV8" - ], - [[67760, 67807], "disallowed"], - [[67808, 67826], "valid"], - [[67827, 67827], "disallowed"], - [[67828, 67829], "valid"], - [[67830, 67834], "disallowed"], - [ - [67835, 67839], - "valid", - [], - "NV8" - ], - [[67840, 67861], "valid"], - [ - [67862, 67865], - "valid", - [], - "NV8" - ], - [ - [67866, 67867], - "valid", - [], - "NV8" - ], - [[67868, 67870], "disallowed"], - [ - [67871, 67871], - "valid", - [], - "NV8" - ], - [[67872, 67897], "valid"], - [[67898, 67902], "disallowed"], - [ - [67903, 67903], - "valid", - [], - "NV8" - ], - [[67904, 67967], "disallowed"], - [[67968, 68023], "valid"], - [[68024, 68027], "disallowed"], - [ - [68028, 68029], - "valid", - [], - "NV8" - ], - [[68030, 68031], "valid"], - [ - [68032, 68047], - "valid", - [], - "NV8" - ], - [[68048, 68049], "disallowed"], - [ - [68050, 68095], - "valid", - [], - "NV8" - ], - [[68096, 68099], "valid"], - [[68100, 68100], "disallowed"], - [[68101, 68102], "valid"], - [[68103, 68107], "disallowed"], - [[68108, 68115], "valid"], - [[68116, 68116], "disallowed"], - [[68117, 68119], "valid"], - [[68120, 68120], "disallowed"], - [[68121, 68147], "valid"], - [[68148, 68151], "disallowed"], - [[68152, 68154], "valid"], - [[68155, 68158], "disallowed"], - [[68159, 68159], "valid"], - [ - [68160, 68167], - "valid", - [], - "NV8" - ], - [[68168, 68175], "disallowed"], - [ - [68176, 68184], - "valid", - [], - "NV8" - ], - [[68185, 68191], "disallowed"], - [[68192, 68220], "valid"], - [ - [68221, 68223], - "valid", - [], - "NV8" - ], - [[68224, 68252], "valid"], - [ - [68253, 68255], - "valid", - [], - "NV8" - ], - [[68256, 68287], "disallowed"], - [[68288, 68295], "valid"], - [ - [68296, 68296], - "valid", - [], - "NV8" - ], - [[68297, 68326], "valid"], - [[68327, 68330], "disallowed"], - [ - [68331, 68342], - "valid", - [], - "NV8" - ], - [[68343, 68351], "disallowed"], - [[68352, 68405], "valid"], - [[68406, 68408], "disallowed"], - [ - [68409, 68415], - "valid", - [], - "NV8" - ], - [[68416, 68437], "valid"], - [[68438, 68439], "disallowed"], - [ - [68440, 68447], - "valid", - [], - "NV8" - ], - [[68448, 68466], "valid"], - [[68467, 68471], "disallowed"], - [ - [68472, 68479], - "valid", - [], - "NV8" - ], - [[68480, 68497], "valid"], - [[68498, 68504], "disallowed"], - [ - [68505, 68508], - "valid", - [], - "NV8" - ], - [[68509, 68520], "disallowed"], - [ - [68521, 68527], - "valid", - [], - "NV8" - ], - [[68528, 68607], "disallowed"], - [[68608, 68680], "valid"], - [[68681, 68735], "disallowed"], - [ - [68736, 68736], - "mapped", - [68800] - ], - [ - [68737, 68737], - "mapped", - [68801] - ], - [ - [68738, 68738], - "mapped", - [68802] - ], - [ - [68739, 68739], - "mapped", - [68803] - ], - [ - [68740, 68740], - "mapped", - [68804] - ], - [ - [68741, 68741], - "mapped", - [68805] - ], - [ - [68742, 68742], - "mapped", - [68806] - ], - [ - [68743, 68743], - "mapped", - [68807] - ], - [ - [68744, 68744], - "mapped", - [68808] - ], - [ - [68745, 68745], - "mapped", - [68809] - ], - [ - [68746, 68746], - "mapped", - [68810] - ], - [ - [68747, 68747], - "mapped", - [68811] - ], - [ - [68748, 68748], - "mapped", - [68812] - ], - [ - [68749, 68749], - "mapped", - [68813] - ], - [ - [68750, 68750], - "mapped", - [68814] - ], - [ - [68751, 68751], - "mapped", - [68815] - ], - [ - [68752, 68752], - "mapped", - [68816] - ], - [ - [68753, 68753], - "mapped", - [68817] - ], - [ - [68754, 68754], - "mapped", - [68818] - ], - [ - [68755, 68755], - "mapped", - [68819] - ], - [ - [68756, 68756], - "mapped", - [68820] - ], - [ - [68757, 68757], - "mapped", - [68821] - ], - [ - [68758, 68758], - "mapped", - [68822] - ], - [ - [68759, 68759], - "mapped", - [68823] - ], - [ - [68760, 68760], - "mapped", - [68824] - ], - [ - [68761, 68761], - "mapped", - [68825] - ], - [ - [68762, 68762], - "mapped", - [68826] - ], - [ - [68763, 68763], - "mapped", - [68827] - ], - [ - [68764, 68764], - "mapped", - [68828] - ], - [ - [68765, 68765], - "mapped", - [68829] - ], - [ - [68766, 68766], - "mapped", - [68830] - ], - [ - [68767, 68767], - "mapped", - [68831] - ], - [ - [68768, 68768], - "mapped", - [68832] - ], - [ - [68769, 68769], - "mapped", - [68833] - ], - [ - [68770, 68770], - "mapped", - [68834] - ], - [ - [68771, 68771], - "mapped", - [68835] - ], - [ - [68772, 68772], - "mapped", - [68836] - ], - [ - [68773, 68773], - "mapped", - [68837] - ], - [ - [68774, 68774], - "mapped", - [68838] - ], - [ - [68775, 68775], - "mapped", - [68839] - ], - [ - [68776, 68776], - "mapped", - [68840] - ], - [ - [68777, 68777], - "mapped", - [68841] - ], - [ - [68778, 68778], - "mapped", - [68842] - ], - [ - [68779, 68779], - "mapped", - [68843] - ], - [ - [68780, 68780], - "mapped", - [68844] - ], - [ - [68781, 68781], - "mapped", - [68845] - ], - [ - [68782, 68782], - "mapped", - [68846] - ], - [ - [68783, 68783], - "mapped", - [68847] - ], - [ - [68784, 68784], - "mapped", - [68848] - ], - [ - [68785, 68785], - "mapped", - [68849] - ], - [ - [68786, 68786], - "mapped", - [68850] - ], - [[68787, 68799], "disallowed"], - [[68800, 68850], "valid"], - [[68851, 68857], "disallowed"], - [ - [68858, 68863], - "valid", - [], - "NV8" - ], - [[68864, 69215], "disallowed"], - [ - [69216, 69246], - "valid", - [], - "NV8" - ], - [[69247, 69631], "disallowed"], - [[69632, 69702], "valid"], - [ - [69703, 69709], - "valid", - [], - "NV8" - ], - [[69710, 69713], "disallowed"], - [ - [69714, 69733], - "valid", - [], - "NV8" - ], - [[69734, 69743], "valid"], - [[69744, 69758], "disallowed"], - [[69759, 69759], "valid"], - [[69760, 69818], "valid"], - [ - [69819, 69820], - "valid", - [], - "NV8" - ], - [[69821, 69821], "disallowed"], - [ - [69822, 69825], - "valid", - [], - "NV8" - ], - [[69826, 69839], "disallowed"], - [[69840, 69864], "valid"], - [[69865, 69871], "disallowed"], - [[69872, 69881], "valid"], - [[69882, 69887], "disallowed"], - [[69888, 69940], "valid"], - [[69941, 69941], "disallowed"], - [[69942, 69951], "valid"], - [ - [69952, 69955], - "valid", - [], - "NV8" - ], - [[69956, 69967], "disallowed"], - [[69968, 70003], "valid"], - [ - [70004, 70005], - "valid", - [], - "NV8" - ], - [[70006, 70006], "valid"], - [[70007, 70015], "disallowed"], - [[70016, 70084], "valid"], - [ - [70085, 70088], - "valid", - [], - "NV8" - ], - [ - [70089, 70089], - "valid", - [], - "NV8" - ], - [[70090, 70092], "valid"], - [ - [70093, 70093], - "valid", - [], - "NV8" - ], - [[70094, 70095], "disallowed"], - [[70096, 70105], "valid"], - [[70106, 70106], "valid"], - [ - [70107, 70107], - "valid", - [], - "NV8" - ], - [[70108, 70108], "valid"], - [ - [70109, 70111], - "valid", - [], - "NV8" - ], - [[70112, 70112], "disallowed"], - [ - [70113, 70132], - "valid", - [], - "NV8" - ], - [[70133, 70143], "disallowed"], - [[70144, 70161], "valid"], - [[70162, 70162], "disallowed"], - [[70163, 70199], "valid"], - [ - [70200, 70205], - "valid", - [], - "NV8" - ], - [[70206, 70271], "disallowed"], - [[70272, 70278], "valid"], - [[70279, 70279], "disallowed"], - [[70280, 70280], "valid"], - [[70281, 70281], "disallowed"], - [[70282, 70285], "valid"], - [[70286, 70286], "disallowed"], - [[70287, 70301], "valid"], - [[70302, 70302], "disallowed"], - [[70303, 70312], "valid"], - [ - [70313, 70313], - "valid", - [], - "NV8" - ], - [[70314, 70319], "disallowed"], - [[70320, 70378], "valid"], - [[70379, 70383], "disallowed"], - [[70384, 70393], "valid"], - [[70394, 70399], "disallowed"], - [[70400, 70400], "valid"], - [[70401, 70403], "valid"], - [[70404, 70404], "disallowed"], - [[70405, 70412], "valid"], - [[70413, 70414], "disallowed"], - [[70415, 70416], "valid"], - [[70417, 70418], "disallowed"], - [[70419, 70440], "valid"], - [[70441, 70441], "disallowed"], - [[70442, 70448], "valid"], - [[70449, 70449], "disallowed"], - [[70450, 70451], "valid"], - [[70452, 70452], "disallowed"], - [[70453, 70457], "valid"], - [[70458, 70459], "disallowed"], - [[70460, 70468], "valid"], - [[70469, 70470], "disallowed"], - [[70471, 70472], "valid"], - [[70473, 70474], "disallowed"], - [[70475, 70477], "valid"], - [[70478, 70479], "disallowed"], - [[70480, 70480], "valid"], - [[70481, 70486], "disallowed"], - [[70487, 70487], "valid"], - [[70488, 70492], "disallowed"], - [[70493, 70499], "valid"], - [[70500, 70501], "disallowed"], - [[70502, 70508], "valid"], - [[70509, 70511], "disallowed"], - [[70512, 70516], "valid"], - [[70517, 70783], "disallowed"], - [[70784, 70853], "valid"], - [ - [70854, 70854], - "valid", - [], - "NV8" - ], - [[70855, 70855], "valid"], - [[70856, 70863], "disallowed"], - [[70864, 70873], "valid"], - [[70874, 71039], "disallowed"], - [[71040, 71093], "valid"], - [[71094, 71095], "disallowed"], - [[71096, 71104], "valid"], - [ - [71105, 71113], - "valid", - [], - "NV8" - ], - [ - [71114, 71127], - "valid", - [], - "NV8" - ], - [[71128, 71133], "valid"], - [[71134, 71167], "disallowed"], - [[71168, 71232], "valid"], - [ - [71233, 71235], - "valid", - [], - "NV8" - ], - [[71236, 71236], "valid"], - [[71237, 71247], "disallowed"], - [[71248, 71257], "valid"], - [[71258, 71295], "disallowed"], - [[71296, 71351], "valid"], - [[71352, 71359], "disallowed"], - [[71360, 71369], "valid"], - [[71370, 71423], "disallowed"], - [[71424, 71449], "valid"], - [[71450, 71452], "disallowed"], - [[71453, 71467], "valid"], - [[71468, 71471], "disallowed"], - [[71472, 71481], "valid"], - [ - [71482, 71487], - "valid", - [], - "NV8" - ], - [[71488, 71839], "disallowed"], - [ - [71840, 71840], - "mapped", - [71872] - ], - [ - [71841, 71841], - "mapped", - [71873] - ], - [ - [71842, 71842], - "mapped", - [71874] - ], - [ - [71843, 71843], - "mapped", - [71875] - ], - [ - [71844, 71844], - "mapped", - [71876] - ], - [ - [71845, 71845], - "mapped", - [71877] - ], - [ - [71846, 71846], - "mapped", - [71878] - ], - [ - [71847, 71847], - "mapped", - [71879] - ], - [ - [71848, 71848], - "mapped", - [71880] - ], - [ - [71849, 71849], - "mapped", - [71881] - ], - [ - [71850, 71850], - "mapped", - [71882] - ], - [ - [71851, 71851], - "mapped", - [71883] - ], - [ - [71852, 71852], - "mapped", - [71884] - ], - [ - [71853, 71853], - "mapped", - [71885] - ], - [ - [71854, 71854], - "mapped", - [71886] - ], - [ - [71855, 71855], - "mapped", - [71887] - ], - [ - [71856, 71856], - "mapped", - [71888] - ], - [ - [71857, 71857], - "mapped", - [71889] - ], - [ - [71858, 71858], - "mapped", - [71890] - ], - [ - [71859, 71859], - "mapped", - [71891] - ], - [ - [71860, 71860], - "mapped", - [71892] - ], - [ - [71861, 71861], - "mapped", - [71893] - ], - [ - [71862, 71862], - "mapped", - [71894] - ], - [ - [71863, 71863], - "mapped", - [71895] - ], - [ - [71864, 71864], - "mapped", - [71896] - ], - [ - [71865, 71865], - "mapped", - [71897] - ], - [ - [71866, 71866], - "mapped", - [71898] - ], - [ - [71867, 71867], - "mapped", - [71899] - ], - [ - [71868, 71868], - "mapped", - [71900] - ], - [ - [71869, 71869], - "mapped", - [71901] - ], - [ - [71870, 71870], - "mapped", - [71902] - ], - [ - [71871, 71871], - "mapped", - [71903] - ], - [[71872, 71913], "valid"], - [ - [71914, 71922], - "valid", - [], - "NV8" - ], - [[71923, 71934], "disallowed"], - [[71935, 71935], "valid"], - [[71936, 72383], "disallowed"], - [[72384, 72440], "valid"], - [[72441, 73727], "disallowed"], - [[73728, 74606], "valid"], - [[74607, 74648], "valid"], - [[74649, 74649], "valid"], - [[74650, 74751], "disallowed"], - [ - [74752, 74850], - "valid", - [], - "NV8" - ], - [ - [74851, 74862], - "valid", - [], - "NV8" - ], - [[74863, 74863], "disallowed"], - [ - [74864, 74867], - "valid", - [], - "NV8" - ], - [ - [74868, 74868], - "valid", - [], - "NV8" - ], - [[74869, 74879], "disallowed"], - [[74880, 75075], "valid"], - [[75076, 77823], "disallowed"], - [[77824, 78894], "valid"], - [[78895, 82943], "disallowed"], - [[82944, 83526], "valid"], - [[83527, 92159], "disallowed"], - [[92160, 92728], "valid"], - [[92729, 92735], "disallowed"], - [[92736, 92766], "valid"], - [[92767, 92767], "disallowed"], - [[92768, 92777], "valid"], - [[92778, 92781], "disallowed"], - [ - [92782, 92783], - "valid", - [], - "NV8" - ], - [[92784, 92879], "disallowed"], - [[92880, 92909], "valid"], - [[92910, 92911], "disallowed"], - [[92912, 92916], "valid"], - [ - [92917, 92917], - "valid", - [], - "NV8" - ], - [[92918, 92927], "disallowed"], - [[92928, 92982], "valid"], - [ - [92983, 92991], - "valid", - [], - "NV8" - ], - [[92992, 92995], "valid"], - [ - [92996, 92997], - "valid", - [], - "NV8" - ], - [[92998, 93007], "disallowed"], - [[93008, 93017], "valid"], - [[93018, 93018], "disallowed"], - [ - [93019, 93025], - "valid", - [], - "NV8" - ], - [[93026, 93026], "disallowed"], - [[93027, 93047], "valid"], - [[93048, 93052], "disallowed"], - [[93053, 93071], "valid"], - [[93072, 93951], "disallowed"], - [[93952, 94020], "valid"], - [[94021, 94031], "disallowed"], - [[94032, 94078], "valid"], - [[94079, 94094], "disallowed"], - [[94095, 94111], "valid"], - [[94112, 110591], "disallowed"], - [[110592, 110593], "valid"], - [[110594, 113663], "disallowed"], - [[113664, 113770], "valid"], - [[113771, 113775], "disallowed"], - [[113776, 113788], "valid"], - [[113789, 113791], "disallowed"], - [[113792, 113800], "valid"], - [[113801, 113807], "disallowed"], - [[113808, 113817], "valid"], - [[113818, 113819], "disallowed"], - [ - [113820, 113820], - "valid", - [], - "NV8" - ], - [[113821, 113822], "valid"], - [ - [113823, 113823], - "valid", - [], - "NV8" - ], - [[113824, 113827], "ignored"], - [[113828, 118783], "disallowed"], - [ - [118784, 119029], - "valid", - [], - "NV8" - ], - [[119030, 119039], "disallowed"], - [ - [119040, 119078], - "valid", - [], - "NV8" - ], - [[119079, 119080], "disallowed"], - [ - [119081, 119081], - "valid", - [], - "NV8" - ], - [ - [119082, 119133], - "valid", - [], - "NV8" - ], - [ - [119134, 119134], - "mapped", - [119127, 119141] - ], - [ - [119135, 119135], - "mapped", - [119128, 119141] - ], - [ - [119136, 119136], - "mapped", - [ - 119128, - 119141, - 119150 - ] - ], - [ - [119137, 119137], - "mapped", - [ - 119128, - 119141, - 119151 - ] - ], - [ - [119138, 119138], - "mapped", - [ - 119128, - 119141, - 119152 - ] - ], - [ - [119139, 119139], - "mapped", - [ - 119128, - 119141, - 119153 - ] - ], - [ - [119140, 119140], - "mapped", - [ - 119128, - 119141, - 119154 - ] - ], - [ - [119141, 119154], - "valid", - [], - "NV8" - ], - [[119155, 119162], "disallowed"], - [ - [119163, 119226], - "valid", - [], - "NV8" - ], - [ - [119227, 119227], - "mapped", - [119225, 119141] - ], - [ - [119228, 119228], - "mapped", - [119226, 119141] - ], - [ - [119229, 119229], - "mapped", - [ - 119225, - 119141, - 119150 - ] - ], - [ - [119230, 119230], - "mapped", - [ - 119226, - 119141, - 119150 - ] - ], - [ - [119231, 119231], - "mapped", - [ - 119225, - 119141, - 119151 - ] - ], - [ - [119232, 119232], - "mapped", - [ - 119226, - 119141, - 119151 - ] - ], - [ - [119233, 119261], - "valid", - [], - "NV8" - ], - [ - [119262, 119272], - "valid", - [], - "NV8" - ], - [[119273, 119295], "disallowed"], - [ - [119296, 119365], - "valid", - [], - "NV8" - ], - [[119366, 119551], "disallowed"], - [ - [119552, 119638], - "valid", - [], - "NV8" - ], - [[119639, 119647], "disallowed"], - [ - [119648, 119665], - "valid", - [], - "NV8" - ], - [[119666, 119807], "disallowed"], - [ - [119808, 119808], - "mapped", - [97] - ], - [ - [119809, 119809], - "mapped", - [98] - ], - [ - [119810, 119810], - "mapped", - [99] - ], - [ - [119811, 119811], - "mapped", - [100] - ], - [ - [119812, 119812], - "mapped", - [101] - ], - [ - [119813, 119813], - "mapped", - [102] - ], - [ - [119814, 119814], - "mapped", - [103] - ], - [ - [119815, 119815], - "mapped", - [104] - ], - [ - [119816, 119816], - "mapped", - [105] - ], - [ - [119817, 119817], - "mapped", - [106] - ], - [ - [119818, 119818], - "mapped", - [107] - ], - [ - [119819, 119819], - "mapped", - [108] - ], - [ - [119820, 119820], - "mapped", - [109] - ], - [ - [119821, 119821], - "mapped", - [110] - ], - [ - [119822, 119822], - "mapped", - [111] - ], - [ - [119823, 119823], - "mapped", - [112] - ], - [ - [119824, 119824], - "mapped", - [113] - ], - [ - [119825, 119825], - "mapped", - [114] - ], - [ - [119826, 119826], - "mapped", - [115] - ], - [ - [119827, 119827], - "mapped", - [116] - ], - [ - [119828, 119828], - "mapped", - [117] - ], - [ - [119829, 119829], - "mapped", - [118] - ], - [ - [119830, 119830], - "mapped", - [119] - ], - [ - [119831, 119831], - "mapped", - [120] - ], - [ - [119832, 119832], - "mapped", - [121] - ], - [ - [119833, 119833], - "mapped", - [122] - ], - [ - [119834, 119834], - "mapped", - [97] - ], - [ - [119835, 119835], - "mapped", - [98] - ], - [ - [119836, 119836], - "mapped", - [99] - ], - [ - [119837, 119837], - "mapped", - [100] - ], - [ - [119838, 119838], - "mapped", - [101] - ], - [ - [119839, 119839], - "mapped", - [102] - ], - [ - [119840, 119840], - "mapped", - [103] - ], - [ - [119841, 119841], - "mapped", - [104] - ], - [ - [119842, 119842], - "mapped", - [105] - ], - [ - [119843, 119843], - "mapped", - [106] - ], - [ - [119844, 119844], - "mapped", - [107] - ], - [ - [119845, 119845], - "mapped", - [108] - ], - [ - [119846, 119846], - "mapped", - [109] - ], - [ - [119847, 119847], - "mapped", - [110] - ], - [ - [119848, 119848], - "mapped", - [111] - ], - [ - [119849, 119849], - "mapped", - [112] - ], - [ - [119850, 119850], - "mapped", - [113] - ], - [ - [119851, 119851], - "mapped", - [114] - ], - [ - [119852, 119852], - "mapped", - [115] - ], - [ - [119853, 119853], - "mapped", - [116] - ], - [ - [119854, 119854], - "mapped", - [117] - ], - [ - [119855, 119855], - "mapped", - [118] - ], - [ - [119856, 119856], - "mapped", - [119] - ], - [ - [119857, 119857], - "mapped", - [120] - ], - [ - [119858, 119858], - "mapped", - [121] - ], - [ - [119859, 119859], - "mapped", - [122] - ], - [ - [119860, 119860], - "mapped", - [97] - ], - [ - [119861, 119861], - "mapped", - [98] - ], - [ - [119862, 119862], - "mapped", - [99] - ], - [ - [119863, 119863], - "mapped", - [100] - ], - [ - [119864, 119864], - "mapped", - [101] - ], - [ - [119865, 119865], - "mapped", - [102] - ], - [ - [119866, 119866], - "mapped", - [103] - ], - [ - [119867, 119867], - "mapped", - [104] - ], - [ - [119868, 119868], - "mapped", - [105] - ], - [ - [119869, 119869], - "mapped", - [106] - ], - [ - [119870, 119870], - "mapped", - [107] - ], - [ - [119871, 119871], - "mapped", - [108] - ], - [ - [119872, 119872], - "mapped", - [109] - ], - [ - [119873, 119873], - "mapped", - [110] - ], - [ - [119874, 119874], - "mapped", - [111] - ], - [ - [119875, 119875], - "mapped", - [112] - ], - [ - [119876, 119876], - "mapped", - [113] - ], - [ - [119877, 119877], - "mapped", - [114] - ], - [ - [119878, 119878], - "mapped", - [115] - ], - [ - [119879, 119879], - "mapped", - [116] - ], - [ - [119880, 119880], - "mapped", - [117] - ], - [ - [119881, 119881], - "mapped", - [118] - ], - [ - [119882, 119882], - "mapped", - [119] - ], - [ - [119883, 119883], - "mapped", - [120] - ], - [ - [119884, 119884], - "mapped", - [121] - ], - [ - [119885, 119885], - "mapped", - [122] - ], - [ - [119886, 119886], - "mapped", - [97] - ], - [ - [119887, 119887], - "mapped", - [98] - ], - [ - [119888, 119888], - "mapped", - [99] - ], - [ - [119889, 119889], - "mapped", - [100] - ], - [ - [119890, 119890], - "mapped", - [101] - ], - [ - [119891, 119891], - "mapped", - [102] - ], - [ - [119892, 119892], - "mapped", - [103] - ], - [[119893, 119893], "disallowed"], - [ - [119894, 119894], - "mapped", - [105] - ], - [ - [119895, 119895], - "mapped", - [106] - ], - [ - [119896, 119896], - "mapped", - [107] - ], - [ - [119897, 119897], - "mapped", - [108] - ], - [ - [119898, 119898], - "mapped", - [109] - ], - [ - [119899, 119899], - "mapped", - [110] - ], - [ - [119900, 119900], - "mapped", - [111] - ], - [ - [119901, 119901], - "mapped", - [112] - ], - [ - [119902, 119902], - "mapped", - [113] - ], - [ - [119903, 119903], - "mapped", - [114] - ], - [ - [119904, 119904], - "mapped", - [115] - ], - [ - [119905, 119905], - "mapped", - [116] - ], - [ - [119906, 119906], - "mapped", - [117] - ], - [ - [119907, 119907], - "mapped", - [118] - ], - [ - [119908, 119908], - "mapped", - [119] - ], - [ - [119909, 119909], - "mapped", - [120] - ], - [ - [119910, 119910], - "mapped", - [121] - ], - [ - [119911, 119911], - "mapped", - [122] - ], - [ - [119912, 119912], - "mapped", - [97] - ], - [ - [119913, 119913], - "mapped", - [98] - ], - [ - [119914, 119914], - "mapped", - [99] - ], - [ - [119915, 119915], - "mapped", - [100] - ], - [ - [119916, 119916], - "mapped", - [101] - ], - [ - [119917, 119917], - "mapped", - [102] - ], - [ - [119918, 119918], - "mapped", - [103] - ], - [ - [119919, 119919], - "mapped", - [104] - ], - [ - [119920, 119920], - "mapped", - [105] - ], - [ - [119921, 119921], - "mapped", - [106] - ], - [ - [119922, 119922], - "mapped", - [107] - ], - [ - [119923, 119923], - "mapped", - [108] - ], - [ - [119924, 119924], - "mapped", - [109] - ], - [ - [119925, 119925], - "mapped", - [110] - ], - [ - [119926, 119926], - "mapped", - [111] - ], - [ - [119927, 119927], - "mapped", - [112] - ], - [ - [119928, 119928], - "mapped", - [113] - ], - [ - [119929, 119929], - "mapped", - [114] - ], - [ - [119930, 119930], - "mapped", - [115] - ], - [ - [119931, 119931], - "mapped", - [116] - ], - [ - [119932, 119932], - "mapped", - [117] - ], - [ - [119933, 119933], - "mapped", - [118] - ], - [ - [119934, 119934], - "mapped", - [119] - ], - [ - [119935, 119935], - "mapped", - [120] - ], - [ - [119936, 119936], - "mapped", - [121] - ], - [ - [119937, 119937], - "mapped", - [122] - ], - [ - [119938, 119938], - "mapped", - [97] - ], - [ - [119939, 119939], - "mapped", - [98] - ], - [ - [119940, 119940], - "mapped", - [99] - ], - [ - [119941, 119941], - "mapped", - [100] - ], - [ - [119942, 119942], - "mapped", - [101] - ], - [ - [119943, 119943], - "mapped", - [102] - ], - [ - [119944, 119944], - "mapped", - [103] - ], - [ - [119945, 119945], - "mapped", - [104] - ], - [ - [119946, 119946], - "mapped", - [105] - ], - [ - [119947, 119947], - "mapped", - [106] - ], - [ - [119948, 119948], - "mapped", - [107] - ], - [ - [119949, 119949], - "mapped", - [108] - ], - [ - [119950, 119950], - "mapped", - [109] - ], - [ - [119951, 119951], - "mapped", - [110] - ], - [ - [119952, 119952], - "mapped", - [111] - ], - [ - [119953, 119953], - "mapped", - [112] - ], - [ - [119954, 119954], - "mapped", - [113] - ], - [ - [119955, 119955], - "mapped", - [114] - ], - [ - [119956, 119956], - "mapped", - [115] - ], - [ - [119957, 119957], - "mapped", - [116] - ], - [ - [119958, 119958], - "mapped", - [117] - ], - [ - [119959, 119959], - "mapped", - [118] - ], - [ - [119960, 119960], - "mapped", - [119] - ], - [ - [119961, 119961], - "mapped", - [120] - ], - [ - [119962, 119962], - "mapped", - [121] - ], - [ - [119963, 119963], - "mapped", - [122] - ], - [ - [119964, 119964], - "mapped", - [97] - ], - [[119965, 119965], "disallowed"], - [ - [119966, 119966], - "mapped", - [99] - ], - [ - [119967, 119967], - "mapped", - [100] - ], - [[119968, 119969], "disallowed"], - [ - [119970, 119970], - "mapped", - [103] - ], - [[119971, 119972], "disallowed"], - [ - [119973, 119973], - "mapped", - [106] - ], - [ - [119974, 119974], - "mapped", - [107] - ], - [[119975, 119976], "disallowed"], - [ - [119977, 119977], - "mapped", - [110] - ], - [ - [119978, 119978], - "mapped", - [111] - ], - [ - [119979, 119979], - "mapped", - [112] - ], - [ - [119980, 119980], - "mapped", - [113] - ], - [[119981, 119981], "disallowed"], - [ - [119982, 119982], - "mapped", - [115] - ], - [ - [119983, 119983], - "mapped", - [116] - ], - [ - [119984, 119984], - "mapped", - [117] - ], - [ - [119985, 119985], - "mapped", - [118] - ], - [ - [119986, 119986], - "mapped", - [119] - ], - [ - [119987, 119987], - "mapped", - [120] - ], - [ - [119988, 119988], - "mapped", - [121] - ], - [ - [119989, 119989], - "mapped", - [122] - ], - [ - [119990, 119990], - "mapped", - [97] - ], - [ - [119991, 119991], - "mapped", - [98] - ], - [ - [119992, 119992], - "mapped", - [99] - ], - [ - [119993, 119993], - "mapped", - [100] - ], - [[119994, 119994], "disallowed"], - [ - [119995, 119995], - "mapped", - [102] - ], - [[119996, 119996], "disallowed"], - [ - [119997, 119997], - "mapped", - [104] - ], - [ - [119998, 119998], - "mapped", - [105] - ], - [ - [119999, 119999], - "mapped", - [106] - ], - [ - [12e4, 12e4], - "mapped", - [107] - ], - [ - [120001, 120001], - "mapped", - [108] - ], - [ - [120002, 120002], - "mapped", - [109] - ], - [ - [120003, 120003], - "mapped", - [110] - ], - [[120004, 120004], "disallowed"], - [ - [120005, 120005], - "mapped", - [112] - ], - [ - [120006, 120006], - "mapped", - [113] - ], - [ - [120007, 120007], - "mapped", - [114] - ], - [ - [120008, 120008], - "mapped", - [115] - ], - [ - [120009, 120009], - "mapped", - [116] - ], - [ - [120010, 120010], - "mapped", - [117] - ], - [ - [120011, 120011], - "mapped", - [118] - ], - [ - [120012, 120012], - "mapped", - [119] - ], - [ - [120013, 120013], - "mapped", - [120] - ], - [ - [120014, 120014], - "mapped", - [121] - ], - [ - [120015, 120015], - "mapped", - [122] - ], - [ - [120016, 120016], - "mapped", - [97] - ], - [ - [120017, 120017], - "mapped", - [98] - ], - [ - [120018, 120018], - "mapped", - [99] - ], - [ - [120019, 120019], - "mapped", - [100] - ], - [ - [120020, 120020], - "mapped", - [101] - ], - [ - [120021, 120021], - "mapped", - [102] - ], - [ - [120022, 120022], - "mapped", - [103] - ], - [ - [120023, 120023], - "mapped", - [104] - ], - [ - [120024, 120024], - "mapped", - [105] - ], - [ - [120025, 120025], - "mapped", - [106] - ], - [ - [120026, 120026], - "mapped", - [107] - ], - [ - [120027, 120027], - "mapped", - [108] - ], - [ - [120028, 120028], - "mapped", - [109] - ], - [ - [120029, 120029], - "mapped", - [110] - ], - [ - [120030, 120030], - "mapped", - [111] - ], - [ - [120031, 120031], - "mapped", - [112] - ], - [ - [120032, 120032], - "mapped", - [113] - ], - [ - [120033, 120033], - "mapped", - [114] - ], - [ - [120034, 120034], - "mapped", - [115] - ], - [ - [120035, 120035], - "mapped", - [116] - ], - [ - [120036, 120036], - "mapped", - [117] - ], - [ - [120037, 120037], - "mapped", - [118] - ], - [ - [120038, 120038], - "mapped", - [119] - ], - [ - [120039, 120039], - "mapped", - [120] - ], - [ - [120040, 120040], - "mapped", - [121] - ], - [ - [120041, 120041], - "mapped", - [122] - ], - [ - [120042, 120042], - "mapped", - [97] - ], - [ - [120043, 120043], - "mapped", - [98] - ], - [ - [120044, 120044], - "mapped", - [99] - ], - [ - [120045, 120045], - "mapped", - [100] - ], - [ - [120046, 120046], - "mapped", - [101] - ], - [ - [120047, 120047], - "mapped", - [102] - ], - [ - [120048, 120048], - "mapped", - [103] - ], - [ - [120049, 120049], - "mapped", - [104] - ], - [ - [120050, 120050], - "mapped", - [105] - ], - [ - [120051, 120051], - "mapped", - [106] - ], - [ - [120052, 120052], - "mapped", - [107] - ], - [ - [120053, 120053], - "mapped", - [108] - ], - [ - [120054, 120054], - "mapped", - [109] - ], - [ - [120055, 120055], - "mapped", - [110] - ], - [ - [120056, 120056], - "mapped", - [111] - ], - [ - [120057, 120057], - "mapped", - [112] - ], - [ - [120058, 120058], - "mapped", - [113] - ], - [ - [120059, 120059], - "mapped", - [114] - ], - [ - [120060, 120060], - "mapped", - [115] - ], - [ - [120061, 120061], - "mapped", - [116] - ], - [ - [120062, 120062], - "mapped", - [117] - ], - [ - [120063, 120063], - "mapped", - [118] - ], - [ - [120064, 120064], - "mapped", - [119] - ], - [ - [120065, 120065], - "mapped", - [120] - ], - [ - [120066, 120066], - "mapped", - [121] - ], - [ - [120067, 120067], - "mapped", - [122] - ], - [ - [120068, 120068], - "mapped", - [97] - ], - [ - [120069, 120069], - "mapped", - [98] - ], - [[120070, 120070], "disallowed"], - [ - [120071, 120071], - "mapped", - [100] - ], - [ - [120072, 120072], - "mapped", - [101] - ], - [ - [120073, 120073], - "mapped", - [102] - ], - [ - [120074, 120074], - "mapped", - [103] - ], - [[120075, 120076], "disallowed"], - [ - [120077, 120077], - "mapped", - [106] - ], - [ - [120078, 120078], - "mapped", - [107] - ], - [ - [120079, 120079], - "mapped", - [108] - ], - [ - [120080, 120080], - "mapped", - [109] - ], - [ - [120081, 120081], - "mapped", - [110] - ], - [ - [120082, 120082], - "mapped", - [111] - ], - [ - [120083, 120083], - "mapped", - [112] - ], - [ - [120084, 120084], - "mapped", - [113] - ], - [[120085, 120085], "disallowed"], - [ - [120086, 120086], - "mapped", - [115] - ], - [ - [120087, 120087], - "mapped", - [116] - ], - [ - [120088, 120088], - "mapped", - [117] - ], - [ - [120089, 120089], - "mapped", - [118] - ], - [ - [120090, 120090], - "mapped", - [119] - ], - [ - [120091, 120091], - "mapped", - [120] - ], - [ - [120092, 120092], - "mapped", - [121] - ], - [[120093, 120093], "disallowed"], - [ - [120094, 120094], - "mapped", - [97] - ], - [ - [120095, 120095], - "mapped", - [98] - ], - [ - [120096, 120096], - "mapped", - [99] - ], - [ - [120097, 120097], - "mapped", - [100] - ], - [ - [120098, 120098], - "mapped", - [101] - ], - [ - [120099, 120099], - "mapped", - [102] - ], - [ - [120100, 120100], - "mapped", - [103] - ], - [ - [120101, 120101], - "mapped", - [104] - ], - [ - [120102, 120102], - "mapped", - [105] - ], - [ - [120103, 120103], - "mapped", - [106] - ], - [ - [120104, 120104], - "mapped", - [107] - ], - [ - [120105, 120105], - "mapped", - [108] - ], - [ - [120106, 120106], - "mapped", - [109] - ], - [ - [120107, 120107], - "mapped", - [110] - ], - [ - [120108, 120108], - "mapped", - [111] - ], - [ - [120109, 120109], - "mapped", - [112] - ], - [ - [120110, 120110], - "mapped", - [113] - ], - [ - [120111, 120111], - "mapped", - [114] - ], - [ - [120112, 120112], - "mapped", - [115] - ], - [ - [120113, 120113], - "mapped", - [116] - ], - [ - [120114, 120114], - "mapped", - [117] - ], - [ - [120115, 120115], - "mapped", - [118] - ], - [ - [120116, 120116], - "mapped", - [119] - ], - [ - [120117, 120117], - "mapped", - [120] - ], - [ - [120118, 120118], - "mapped", - [121] - ], - [ - [120119, 120119], - "mapped", - [122] - ], - [ - [120120, 120120], - "mapped", - [97] - ], - [ - [120121, 120121], - "mapped", - [98] - ], - [[120122, 120122], "disallowed"], - [ - [120123, 120123], - "mapped", - [100] - ], - [ - [120124, 120124], - "mapped", - [101] - ], - [ - [120125, 120125], - "mapped", - [102] - ], - [ - [120126, 120126], - "mapped", - [103] - ], - [[120127, 120127], "disallowed"], - [ - [120128, 120128], - "mapped", - [105] - ], - [ - [120129, 120129], - "mapped", - [106] - ], - [ - [120130, 120130], - "mapped", - [107] - ], - [ - [120131, 120131], - "mapped", - [108] - ], - [ - [120132, 120132], - "mapped", - [109] - ], - [[120133, 120133], "disallowed"], - [ - [120134, 120134], - "mapped", - [111] - ], - [[120135, 120137], "disallowed"], - [ - [120138, 120138], - "mapped", - [115] - ], - [ - [120139, 120139], - "mapped", - [116] - ], - [ - [120140, 120140], - "mapped", - [117] - ], - [ - [120141, 120141], - "mapped", - [118] - ], - [ - [120142, 120142], - "mapped", - [119] - ], - [ - [120143, 120143], - "mapped", - [120] - ], - [ - [120144, 120144], - "mapped", - [121] - ], - [[120145, 120145], "disallowed"], - [ - [120146, 120146], - "mapped", - [97] - ], - [ - [120147, 120147], - "mapped", - [98] - ], - [ - [120148, 120148], - "mapped", - [99] - ], - [ - [120149, 120149], - "mapped", - [100] - ], - [ - [120150, 120150], - "mapped", - [101] - ], - [ - [120151, 120151], - "mapped", - [102] - ], - [ - [120152, 120152], - "mapped", - [103] - ], - [ - [120153, 120153], - "mapped", - [104] - ], - [ - [120154, 120154], - "mapped", - [105] - ], - [ - [120155, 120155], - "mapped", - [106] - ], - [ - [120156, 120156], - "mapped", - [107] - ], - [ - [120157, 120157], - "mapped", - [108] - ], - [ - [120158, 120158], - "mapped", - [109] - ], - [ - [120159, 120159], - "mapped", - [110] - ], - [ - [120160, 120160], - "mapped", - [111] - ], - [ - [120161, 120161], - "mapped", - [112] - ], - [ - [120162, 120162], - "mapped", - [113] - ], - [ - [120163, 120163], - "mapped", - [114] - ], - [ - [120164, 120164], - "mapped", - [115] - ], - [ - [120165, 120165], - "mapped", - [116] - ], - [ - [120166, 120166], - "mapped", - [117] - ], - [ - [120167, 120167], - "mapped", - [118] - ], - [ - [120168, 120168], - "mapped", - [119] - ], - [ - [120169, 120169], - "mapped", - [120] - ], - [ - [120170, 120170], - "mapped", - [121] - ], - [ - [120171, 120171], - "mapped", - [122] - ], - [ - [120172, 120172], - "mapped", - [97] - ], - [ - [120173, 120173], - "mapped", - [98] - ], - [ - [120174, 120174], - "mapped", - [99] - ], - [ - [120175, 120175], - "mapped", - [100] - ], - [ - [120176, 120176], - "mapped", - [101] - ], - [ - [120177, 120177], - "mapped", - [102] - ], - [ - [120178, 120178], - "mapped", - [103] - ], - [ - [120179, 120179], - "mapped", - [104] - ], - [ - [120180, 120180], - "mapped", - [105] - ], - [ - [120181, 120181], - "mapped", - [106] - ], - [ - [120182, 120182], - "mapped", - [107] - ], - [ - [120183, 120183], - "mapped", - [108] - ], - [ - [120184, 120184], - "mapped", - [109] - ], - [ - [120185, 120185], - "mapped", - [110] - ], - [ - [120186, 120186], - "mapped", - [111] - ], - [ - [120187, 120187], - "mapped", - [112] - ], - [ - [120188, 120188], - "mapped", - [113] - ], - [ - [120189, 120189], - "mapped", - [114] - ], - [ - [120190, 120190], - "mapped", - [115] - ], - [ - [120191, 120191], - "mapped", - [116] - ], - [ - [120192, 120192], - "mapped", - [117] - ], - [ - [120193, 120193], - "mapped", - [118] - ], - [ - [120194, 120194], - "mapped", - [119] - ], - [ - [120195, 120195], - "mapped", - [120] - ], - [ - [120196, 120196], - "mapped", - [121] - ], - [ - [120197, 120197], - "mapped", - [122] - ], - [ - [120198, 120198], - "mapped", - [97] - ], - [ - [120199, 120199], - "mapped", - [98] - ], - [ - [120200, 120200], - "mapped", - [99] - ], - [ - [120201, 120201], - "mapped", - [100] - ], - [ - [120202, 120202], - "mapped", - [101] - ], - [ - [120203, 120203], - "mapped", - [102] - ], - [ - [120204, 120204], - "mapped", - [103] - ], - [ - [120205, 120205], - "mapped", - [104] - ], - [ - [120206, 120206], - "mapped", - [105] - ], - [ - [120207, 120207], - "mapped", - [106] - ], - [ - [120208, 120208], - "mapped", - [107] - ], - [ - [120209, 120209], - "mapped", - [108] - ], - [ - [120210, 120210], - "mapped", - [109] - ], - [ - [120211, 120211], - "mapped", - [110] - ], - [ - [120212, 120212], - "mapped", - [111] - ], - [ - [120213, 120213], - "mapped", - [112] - ], - [ - [120214, 120214], - "mapped", - [113] - ], - [ - [120215, 120215], - "mapped", - [114] - ], - [ - [120216, 120216], - "mapped", - [115] - ], - [ - [120217, 120217], - "mapped", - [116] - ], - [ - [120218, 120218], - "mapped", - [117] - ], - [ - [120219, 120219], - "mapped", - [118] - ], - [ - [120220, 120220], - "mapped", - [119] - ], - [ - [120221, 120221], - "mapped", - [120] - ], - [ - [120222, 120222], - "mapped", - [121] - ], - [ - [120223, 120223], - "mapped", - [122] - ], - [ - [120224, 120224], - "mapped", - [97] - ], - [ - [120225, 120225], - "mapped", - [98] - ], - [ - [120226, 120226], - "mapped", - [99] - ], - [ - [120227, 120227], - "mapped", - [100] - ], - [ - [120228, 120228], - "mapped", - [101] - ], - [ - [120229, 120229], - "mapped", - [102] - ], - [ - [120230, 120230], - "mapped", - [103] - ], - [ - [120231, 120231], - "mapped", - [104] - ], - [ - [120232, 120232], - "mapped", - [105] - ], - [ - [120233, 120233], - "mapped", - [106] - ], - [ - [120234, 120234], - "mapped", - [107] - ], - [ - [120235, 120235], - "mapped", - [108] - ], - [ - [120236, 120236], - "mapped", - [109] - ], - [ - [120237, 120237], - "mapped", - [110] - ], - [ - [120238, 120238], - "mapped", - [111] - ], - [ - [120239, 120239], - "mapped", - [112] - ], - [ - [120240, 120240], - "mapped", - [113] - ], - [ - [120241, 120241], - "mapped", - [114] - ], - [ - [120242, 120242], - "mapped", - [115] - ], - [ - [120243, 120243], - "mapped", - [116] - ], - [ - [120244, 120244], - "mapped", - [117] - ], - [ - [120245, 120245], - "mapped", - [118] - ], - [ - [120246, 120246], - "mapped", - [119] - ], - [ - [120247, 120247], - "mapped", - [120] - ], - [ - [120248, 120248], - "mapped", - [121] - ], - [ - [120249, 120249], - "mapped", - [122] - ], - [ - [120250, 120250], - "mapped", - [97] - ], - [ - [120251, 120251], - "mapped", - [98] - ], - [ - [120252, 120252], - "mapped", - [99] - ], - [ - [120253, 120253], - "mapped", - [100] - ], - [ - [120254, 120254], - "mapped", - [101] - ], - [ - [120255, 120255], - "mapped", - [102] - ], - [ - [120256, 120256], - "mapped", - [103] - ], - [ - [120257, 120257], - "mapped", - [104] - ], - [ - [120258, 120258], - "mapped", - [105] - ], - [ - [120259, 120259], - "mapped", - [106] - ], - [ - [120260, 120260], - "mapped", - [107] - ], - [ - [120261, 120261], - "mapped", - [108] - ], - [ - [120262, 120262], - "mapped", - [109] - ], - [ - [120263, 120263], - "mapped", - [110] - ], - [ - [120264, 120264], - "mapped", - [111] - ], - [ - [120265, 120265], - "mapped", - [112] - ], - [ - [120266, 120266], - "mapped", - [113] - ], - [ - [120267, 120267], - "mapped", - [114] - ], - [ - [120268, 120268], - "mapped", - [115] - ], - [ - [120269, 120269], - "mapped", - [116] - ], - [ - [120270, 120270], - "mapped", - [117] - ], - [ - [120271, 120271], - "mapped", - [118] - ], - [ - [120272, 120272], - "mapped", - [119] - ], - [ - [120273, 120273], - "mapped", - [120] - ], - [ - [120274, 120274], - "mapped", - [121] - ], - [ - [120275, 120275], - "mapped", - [122] - ], - [ - [120276, 120276], - "mapped", - [97] - ], - [ - [120277, 120277], - "mapped", - [98] - ], - [ - [120278, 120278], - "mapped", - [99] - ], - [ - [120279, 120279], - "mapped", - [100] - ], - [ - [120280, 120280], - "mapped", - [101] - ], - [ - [120281, 120281], - "mapped", - [102] - ], - [ - [120282, 120282], - "mapped", - [103] - ], - [ - [120283, 120283], - "mapped", - [104] - ], - [ - [120284, 120284], - "mapped", - [105] - ], - [ - [120285, 120285], - "mapped", - [106] - ], - [ - [120286, 120286], - "mapped", - [107] - ], - [ - [120287, 120287], - "mapped", - [108] - ], - [ - [120288, 120288], - "mapped", - [109] - ], - [ - [120289, 120289], - "mapped", - [110] - ], - [ - [120290, 120290], - "mapped", - [111] - ], - [ - [120291, 120291], - "mapped", - [112] - ], - [ - [120292, 120292], - "mapped", - [113] - ], - [ - [120293, 120293], - "mapped", - [114] - ], - [ - [120294, 120294], - "mapped", - [115] - ], - [ - [120295, 120295], - "mapped", - [116] - ], - [ - [120296, 120296], - "mapped", - [117] - ], - [ - [120297, 120297], - "mapped", - [118] - ], - [ - [120298, 120298], - "mapped", - [119] - ], - [ - [120299, 120299], - "mapped", - [120] - ], - [ - [120300, 120300], - "mapped", - [121] - ], - [ - [120301, 120301], - "mapped", - [122] - ], - [ - [120302, 120302], - "mapped", - [97] - ], - [ - [120303, 120303], - "mapped", - [98] - ], - [ - [120304, 120304], - "mapped", - [99] - ], - [ - [120305, 120305], - "mapped", - [100] - ], - [ - [120306, 120306], - "mapped", - [101] - ], - [ - [120307, 120307], - "mapped", - [102] - ], - [ - [120308, 120308], - "mapped", - [103] - ], - [ - [120309, 120309], - "mapped", - [104] - ], - [ - [120310, 120310], - "mapped", - [105] - ], - [ - [120311, 120311], - "mapped", - [106] - ], - [ - [120312, 120312], - "mapped", - [107] - ], - [ - [120313, 120313], - "mapped", - [108] - ], - [ - [120314, 120314], - "mapped", - [109] - ], - [ - [120315, 120315], - "mapped", - [110] - ], - [ - [120316, 120316], - "mapped", - [111] - ], - [ - [120317, 120317], - "mapped", - [112] - ], - [ - [120318, 120318], - "mapped", - [113] - ], - [ - [120319, 120319], - "mapped", - [114] - ], - [ - [120320, 120320], - "mapped", - [115] - ], - [ - [120321, 120321], - "mapped", - [116] - ], - [ - [120322, 120322], - "mapped", - [117] - ], - [ - [120323, 120323], - "mapped", - [118] - ], - [ - [120324, 120324], - "mapped", - [119] - ], - [ - [120325, 120325], - "mapped", - [120] - ], - [ - [120326, 120326], - "mapped", - [121] - ], - [ - [120327, 120327], - "mapped", - [122] - ], - [ - [120328, 120328], - "mapped", - [97] - ], - [ - [120329, 120329], - "mapped", - [98] - ], - [ - [120330, 120330], - "mapped", - [99] - ], - [ - [120331, 120331], - "mapped", - [100] - ], - [ - [120332, 120332], - "mapped", - [101] - ], - [ - [120333, 120333], - "mapped", - [102] - ], - [ - [120334, 120334], - "mapped", - [103] - ], - [ - [120335, 120335], - "mapped", - [104] - ], - [ - [120336, 120336], - "mapped", - [105] - ], - [ - [120337, 120337], - "mapped", - [106] - ], - [ - [120338, 120338], - "mapped", - [107] - ], - [ - [120339, 120339], - "mapped", - [108] - ], - [ - [120340, 120340], - "mapped", - [109] - ], - [ - [120341, 120341], - "mapped", - [110] - ], - [ - [120342, 120342], - "mapped", - [111] - ], - [ - [120343, 120343], - "mapped", - [112] - ], - [ - [120344, 120344], - "mapped", - [113] - ], - [ - [120345, 120345], - "mapped", - [114] - ], - [ - [120346, 120346], - "mapped", - [115] - ], - [ - [120347, 120347], - "mapped", - [116] - ], - [ - [120348, 120348], - "mapped", - [117] - ], - [ - [120349, 120349], - "mapped", - [118] - ], - [ - [120350, 120350], - "mapped", - [119] - ], - [ - [120351, 120351], - "mapped", - [120] - ], - [ - [120352, 120352], - "mapped", - [121] - ], - [ - [120353, 120353], - "mapped", - [122] - ], - [ - [120354, 120354], - "mapped", - [97] - ], - [ - [120355, 120355], - "mapped", - [98] - ], - [ - [120356, 120356], - "mapped", - [99] - ], - [ - [120357, 120357], - "mapped", - [100] - ], - [ - [120358, 120358], - "mapped", - [101] - ], - [ - [120359, 120359], - "mapped", - [102] - ], - [ - [120360, 120360], - "mapped", - [103] - ], - [ - [120361, 120361], - "mapped", - [104] - ], - [ - [120362, 120362], - "mapped", - [105] - ], - [ - [120363, 120363], - "mapped", - [106] - ], - [ - [120364, 120364], - "mapped", - [107] - ], - [ - [120365, 120365], - "mapped", - [108] - ], - [ - [120366, 120366], - "mapped", - [109] - ], - [ - [120367, 120367], - "mapped", - [110] - ], - [ - [120368, 120368], - "mapped", - [111] - ], - [ - [120369, 120369], - "mapped", - [112] - ], - [ - [120370, 120370], - "mapped", - [113] - ], - [ - [120371, 120371], - "mapped", - [114] - ], - [ - [120372, 120372], - "mapped", - [115] - ], - [ - [120373, 120373], - "mapped", - [116] - ], - [ - [120374, 120374], - "mapped", - [117] - ], - [ - [120375, 120375], - "mapped", - [118] - ], - [ - [120376, 120376], - "mapped", - [119] - ], - [ - [120377, 120377], - "mapped", - [120] - ], - [ - [120378, 120378], - "mapped", - [121] - ], - [ - [120379, 120379], - "mapped", - [122] - ], - [ - [120380, 120380], - "mapped", - [97] - ], - [ - [120381, 120381], - "mapped", - [98] - ], - [ - [120382, 120382], - "mapped", - [99] - ], - [ - [120383, 120383], - "mapped", - [100] - ], - [ - [120384, 120384], - "mapped", - [101] - ], - [ - [120385, 120385], - "mapped", - [102] - ], - [ - [120386, 120386], - "mapped", - [103] - ], - [ - [120387, 120387], - "mapped", - [104] - ], - [ - [120388, 120388], - "mapped", - [105] - ], - [ - [120389, 120389], - "mapped", - [106] - ], - [ - [120390, 120390], - "mapped", - [107] - ], - [ - [120391, 120391], - "mapped", - [108] - ], - [ - [120392, 120392], - "mapped", - [109] - ], - [ - [120393, 120393], - "mapped", - [110] - ], - [ - [120394, 120394], - "mapped", - [111] - ], - [ - [120395, 120395], - "mapped", - [112] - ], - [ - [120396, 120396], - "mapped", - [113] - ], - [ - [120397, 120397], - "mapped", - [114] - ], - [ - [120398, 120398], - "mapped", - [115] - ], - [ - [120399, 120399], - "mapped", - [116] - ], - [ - [120400, 120400], - "mapped", - [117] - ], - [ - [120401, 120401], - "mapped", - [118] - ], - [ - [120402, 120402], - "mapped", - [119] - ], - [ - [120403, 120403], - "mapped", - [120] - ], - [ - [120404, 120404], - "mapped", - [121] - ], - [ - [120405, 120405], - "mapped", - [122] - ], - [ - [120406, 120406], - "mapped", - [97] - ], - [ - [120407, 120407], - "mapped", - [98] - ], - [ - [120408, 120408], - "mapped", - [99] - ], - [ - [120409, 120409], - "mapped", - [100] - ], - [ - [120410, 120410], - "mapped", - [101] - ], - [ - [120411, 120411], - "mapped", - [102] - ], - [ - [120412, 120412], - "mapped", - [103] - ], - [ - [120413, 120413], - "mapped", - [104] - ], - [ - [120414, 120414], - "mapped", - [105] - ], - [ - [120415, 120415], - "mapped", - [106] - ], - [ - [120416, 120416], - "mapped", - [107] - ], - [ - [120417, 120417], - "mapped", - [108] - ], - [ - [120418, 120418], - "mapped", - [109] - ], - [ - [120419, 120419], - "mapped", - [110] - ], - [ - [120420, 120420], - "mapped", - [111] - ], - [ - [120421, 120421], - "mapped", - [112] - ], - [ - [120422, 120422], - "mapped", - [113] - ], - [ - [120423, 120423], - "mapped", - [114] - ], - [ - [120424, 120424], - "mapped", - [115] - ], - [ - [120425, 120425], - "mapped", - [116] - ], - [ - [120426, 120426], - "mapped", - [117] - ], - [ - [120427, 120427], - "mapped", - [118] - ], - [ - [120428, 120428], - "mapped", - [119] - ], - [ - [120429, 120429], - "mapped", - [120] - ], - [ - [120430, 120430], - "mapped", - [121] - ], - [ - [120431, 120431], - "mapped", - [122] - ], - [ - [120432, 120432], - "mapped", - [97] - ], - [ - [120433, 120433], - "mapped", - [98] - ], - [ - [120434, 120434], - "mapped", - [99] - ], - [ - [120435, 120435], - "mapped", - [100] - ], - [ - [120436, 120436], - "mapped", - [101] - ], - [ - [120437, 120437], - "mapped", - [102] - ], - [ - [120438, 120438], - "mapped", - [103] - ], - [ - [120439, 120439], - "mapped", - [104] - ], - [ - [120440, 120440], - "mapped", - [105] - ], - [ - [120441, 120441], - "mapped", - [106] - ], - [ - [120442, 120442], - "mapped", - [107] - ], - [ - [120443, 120443], - "mapped", - [108] - ], - [ - [120444, 120444], - "mapped", - [109] - ], - [ - [120445, 120445], - "mapped", - [110] - ], - [ - [120446, 120446], - "mapped", - [111] - ], - [ - [120447, 120447], - "mapped", - [112] - ], - [ - [120448, 120448], - "mapped", - [113] - ], - [ - [120449, 120449], - "mapped", - [114] - ], - [ - [120450, 120450], - "mapped", - [115] - ], - [ - [120451, 120451], - "mapped", - [116] - ], - [ - [120452, 120452], - "mapped", - [117] - ], - [ - [120453, 120453], - "mapped", - [118] - ], - [ - [120454, 120454], - "mapped", - [119] - ], - [ - [120455, 120455], - "mapped", - [120] - ], - [ - [120456, 120456], - "mapped", - [121] - ], - [ - [120457, 120457], - "mapped", - [122] - ], - [ - [120458, 120458], - "mapped", - [97] - ], - [ - [120459, 120459], - "mapped", - [98] - ], - [ - [120460, 120460], - "mapped", - [99] - ], - [ - [120461, 120461], - "mapped", - [100] - ], - [ - [120462, 120462], - "mapped", - [101] - ], - [ - [120463, 120463], - "mapped", - [102] - ], - [ - [120464, 120464], - "mapped", - [103] - ], - [ - [120465, 120465], - "mapped", - [104] - ], - [ - [120466, 120466], - "mapped", - [105] - ], - [ - [120467, 120467], - "mapped", - [106] - ], - [ - [120468, 120468], - "mapped", - [107] - ], - [ - [120469, 120469], - "mapped", - [108] - ], - [ - [120470, 120470], - "mapped", - [109] - ], - [ - [120471, 120471], - "mapped", - [110] - ], - [ - [120472, 120472], - "mapped", - [111] - ], - [ - [120473, 120473], - "mapped", - [112] - ], - [ - [120474, 120474], - "mapped", - [113] - ], - [ - [120475, 120475], - "mapped", - [114] - ], - [ - [120476, 120476], - "mapped", - [115] - ], - [ - [120477, 120477], - "mapped", - [116] - ], - [ - [120478, 120478], - "mapped", - [117] - ], - [ - [120479, 120479], - "mapped", - [118] - ], - [ - [120480, 120480], - "mapped", - [119] - ], - [ - [120481, 120481], - "mapped", - [120] - ], - [ - [120482, 120482], - "mapped", - [121] - ], - [ - [120483, 120483], - "mapped", - [122] - ], - [ - [120484, 120484], - "mapped", - [305] - ], - [ - [120485, 120485], - "mapped", - [567] - ], - [[120486, 120487], "disallowed"], - [ - [120488, 120488], - "mapped", - [945] - ], - [ - [120489, 120489], - "mapped", - [946] - ], - [ - [120490, 120490], - "mapped", - [947] - ], - [ - [120491, 120491], - "mapped", - [948] - ], - [ - [120492, 120492], - "mapped", - [949] - ], - [ - [120493, 120493], - "mapped", - [950] - ], - [ - [120494, 120494], - "mapped", - [951] - ], - [ - [120495, 120495], - "mapped", - [952] - ], - [ - [120496, 120496], - "mapped", - [953] - ], - [ - [120497, 120497], - "mapped", - [954] - ], - [ - [120498, 120498], - "mapped", - [955] - ], - [ - [120499, 120499], - "mapped", - [956] - ], - [ - [120500, 120500], - "mapped", - [957] - ], - [ - [120501, 120501], - "mapped", - [958] - ], - [ - [120502, 120502], - "mapped", - [959] - ], - [ - [120503, 120503], - "mapped", - [960] - ], - [ - [120504, 120504], - "mapped", - [961] - ], - [ - [120505, 120505], - "mapped", - [952] - ], - [ - [120506, 120506], - "mapped", - [963] - ], - [ - [120507, 120507], - "mapped", - [964] - ], - [ - [120508, 120508], - "mapped", - [965] - ], - [ - [120509, 120509], - "mapped", - [966] - ], - [ - [120510, 120510], - "mapped", - [967] - ], - [ - [120511, 120511], - "mapped", - [968] - ], - [ - [120512, 120512], - "mapped", - [969] - ], - [ - [120513, 120513], - "mapped", - [8711] - ], - [ - [120514, 120514], - "mapped", - [945] - ], - [ - [120515, 120515], - "mapped", - [946] - ], - [ - [120516, 120516], - "mapped", - [947] - ], - [ - [120517, 120517], - "mapped", - [948] - ], - [ - [120518, 120518], - "mapped", - [949] - ], - [ - [120519, 120519], - "mapped", - [950] - ], - [ - [120520, 120520], - "mapped", - [951] - ], - [ - [120521, 120521], - "mapped", - [952] - ], - [ - [120522, 120522], - "mapped", - [953] - ], - [ - [120523, 120523], - "mapped", - [954] - ], - [ - [120524, 120524], - "mapped", - [955] - ], - [ - [120525, 120525], - "mapped", - [956] - ], - [ - [120526, 120526], - "mapped", - [957] - ], - [ - [120527, 120527], - "mapped", - [958] - ], - [ - [120528, 120528], - "mapped", - [959] - ], - [ - [120529, 120529], - "mapped", - [960] - ], - [ - [120530, 120530], - "mapped", - [961] - ], - [ - [120531, 120532], - "mapped", - [963] - ], - [ - [120533, 120533], - "mapped", - [964] - ], - [ - [120534, 120534], - "mapped", - [965] - ], - [ - [120535, 120535], - "mapped", - [966] - ], - [ - [120536, 120536], - "mapped", - [967] - ], - [ - [120537, 120537], - "mapped", - [968] - ], - [ - [120538, 120538], - "mapped", - [969] - ], - [ - [120539, 120539], - "mapped", - [8706] - ], - [ - [120540, 120540], - "mapped", - [949] - ], - [ - [120541, 120541], - "mapped", - [952] - ], - [ - [120542, 120542], - "mapped", - [954] - ], - [ - [120543, 120543], - "mapped", - [966] - ], - [ - [120544, 120544], - "mapped", - [961] - ], - [ - [120545, 120545], - "mapped", - [960] - ], - [ - [120546, 120546], - "mapped", - [945] - ], - [ - [120547, 120547], - "mapped", - [946] - ], - [ - [120548, 120548], - "mapped", - [947] - ], - [ - [120549, 120549], - "mapped", - [948] - ], - [ - [120550, 120550], - "mapped", - [949] - ], - [ - [120551, 120551], - "mapped", - [950] - ], - [ - [120552, 120552], - "mapped", - [951] - ], - [ - [120553, 120553], - "mapped", - [952] - ], - [ - [120554, 120554], - "mapped", - [953] - ], - [ - [120555, 120555], - "mapped", - [954] - ], - [ - [120556, 120556], - "mapped", - [955] - ], - [ - [120557, 120557], - "mapped", - [956] - ], - [ - [120558, 120558], - "mapped", - [957] - ], - [ - [120559, 120559], - "mapped", - [958] - ], - [ - [120560, 120560], - "mapped", - [959] - ], - [ - [120561, 120561], - "mapped", - [960] - ], - [ - [120562, 120562], - "mapped", - [961] - ], - [ - [120563, 120563], - "mapped", - [952] - ], - [ - [120564, 120564], - "mapped", - [963] - ], - [ - [120565, 120565], - "mapped", - [964] - ], - [ - [120566, 120566], - "mapped", - [965] - ], - [ - [120567, 120567], - "mapped", - [966] - ], - [ - [120568, 120568], - "mapped", - [967] - ], - [ - [120569, 120569], - "mapped", - [968] - ], - [ - [120570, 120570], - "mapped", - [969] - ], - [ - [120571, 120571], - "mapped", - [8711] - ], - [ - [120572, 120572], - "mapped", - [945] - ], - [ - [120573, 120573], - "mapped", - [946] - ], - [ - [120574, 120574], - "mapped", - [947] - ], - [ - [120575, 120575], - "mapped", - [948] - ], - [ - [120576, 120576], - "mapped", - [949] - ], - [ - [120577, 120577], - "mapped", - [950] - ], - [ - [120578, 120578], - "mapped", - [951] - ], - [ - [120579, 120579], - "mapped", - [952] - ], - [ - [120580, 120580], - "mapped", - [953] - ], - [ - [120581, 120581], - "mapped", - [954] - ], - [ - [120582, 120582], - "mapped", - [955] - ], - [ - [120583, 120583], - "mapped", - [956] - ], - [ - [120584, 120584], - "mapped", - [957] - ], - [ - [120585, 120585], - "mapped", - [958] - ], - [ - [120586, 120586], - "mapped", - [959] - ], - [ - [120587, 120587], - "mapped", - [960] - ], - [ - [120588, 120588], - "mapped", - [961] - ], - [ - [120589, 120590], - "mapped", - [963] - ], - [ - [120591, 120591], - "mapped", - [964] - ], - [ - [120592, 120592], - "mapped", - [965] - ], - [ - [120593, 120593], - "mapped", - [966] - ], - [ - [120594, 120594], - "mapped", - [967] - ], - [ - [120595, 120595], - "mapped", - [968] - ], - [ - [120596, 120596], - "mapped", - [969] - ], - [ - [120597, 120597], - "mapped", - [8706] - ], - [ - [120598, 120598], - "mapped", - [949] - ], - [ - [120599, 120599], - "mapped", - [952] - ], - [ - [120600, 120600], - "mapped", - [954] - ], - [ - [120601, 120601], - "mapped", - [966] - ], - [ - [120602, 120602], - "mapped", - [961] - ], - [ - [120603, 120603], - "mapped", - [960] - ], - [ - [120604, 120604], - "mapped", - [945] - ], - [ - [120605, 120605], - "mapped", - [946] - ], - [ - [120606, 120606], - "mapped", - [947] - ], - [ - [120607, 120607], - "mapped", - [948] - ], - [ - [120608, 120608], - "mapped", - [949] - ], - [ - [120609, 120609], - "mapped", - [950] - ], - [ - [120610, 120610], - "mapped", - [951] - ], - [ - [120611, 120611], - "mapped", - [952] - ], - [ - [120612, 120612], - "mapped", - [953] - ], - [ - [120613, 120613], - "mapped", - [954] - ], - [ - [120614, 120614], - "mapped", - [955] - ], - [ - [120615, 120615], - "mapped", - [956] - ], - [ - [120616, 120616], - "mapped", - [957] - ], - [ - [120617, 120617], - "mapped", - [958] - ], - [ - [120618, 120618], - "mapped", - [959] - ], - [ - [120619, 120619], - "mapped", - [960] - ], - [ - [120620, 120620], - "mapped", - [961] - ], - [ - [120621, 120621], - "mapped", - [952] - ], - [ - [120622, 120622], - "mapped", - [963] - ], - [ - [120623, 120623], - "mapped", - [964] - ], - [ - [120624, 120624], - "mapped", - [965] - ], - [ - [120625, 120625], - "mapped", - [966] - ], - [ - [120626, 120626], - "mapped", - [967] - ], - [ - [120627, 120627], - "mapped", - [968] - ], - [ - [120628, 120628], - "mapped", - [969] - ], - [ - [120629, 120629], - "mapped", - [8711] - ], - [ - [120630, 120630], - "mapped", - [945] - ], - [ - [120631, 120631], - "mapped", - [946] - ], - [ - [120632, 120632], - "mapped", - [947] - ], - [ - [120633, 120633], - "mapped", - [948] - ], - [ - [120634, 120634], - "mapped", - [949] - ], - [ - [120635, 120635], - "mapped", - [950] - ], - [ - [120636, 120636], - "mapped", - [951] - ], - [ - [120637, 120637], - "mapped", - [952] - ], - [ - [120638, 120638], - "mapped", - [953] - ], - [ - [120639, 120639], - "mapped", - [954] - ], - [ - [120640, 120640], - "mapped", - [955] - ], - [ - [120641, 120641], - "mapped", - [956] - ], - [ - [120642, 120642], - "mapped", - [957] - ], - [ - [120643, 120643], - "mapped", - [958] - ], - [ - [120644, 120644], - "mapped", - [959] - ], - [ - [120645, 120645], - "mapped", - [960] - ], - [ - [120646, 120646], - "mapped", - [961] - ], - [ - [120647, 120648], - "mapped", - [963] - ], - [ - [120649, 120649], - "mapped", - [964] - ], - [ - [120650, 120650], - "mapped", - [965] - ], - [ - [120651, 120651], - "mapped", - [966] - ], - [ - [120652, 120652], - "mapped", - [967] - ], - [ - [120653, 120653], - "mapped", - [968] - ], - [ - [120654, 120654], - "mapped", - [969] - ], - [ - [120655, 120655], - "mapped", - [8706] - ], - [ - [120656, 120656], - "mapped", - [949] - ], - [ - [120657, 120657], - "mapped", - [952] - ], - [ - [120658, 120658], - "mapped", - [954] - ], - [ - [120659, 120659], - "mapped", - [966] - ], - [ - [120660, 120660], - "mapped", - [961] - ], - [ - [120661, 120661], - "mapped", - [960] - ], - [ - [120662, 120662], - "mapped", - [945] - ], - [ - [120663, 120663], - "mapped", - [946] - ], - [ - [120664, 120664], - "mapped", - [947] - ], - [ - [120665, 120665], - "mapped", - [948] - ], - [ - [120666, 120666], - "mapped", - [949] - ], - [ - [120667, 120667], - "mapped", - [950] - ], - [ - [120668, 120668], - "mapped", - [951] - ], - [ - [120669, 120669], - "mapped", - [952] - ], - [ - [120670, 120670], - "mapped", - [953] - ], - [ - [120671, 120671], - "mapped", - [954] - ], - [ - [120672, 120672], - "mapped", - [955] - ], - [ - [120673, 120673], - "mapped", - [956] - ], - [ - [120674, 120674], - "mapped", - [957] - ], - [ - [120675, 120675], - "mapped", - [958] - ], - [ - [120676, 120676], - "mapped", - [959] - ], - [ - [120677, 120677], - "mapped", - [960] - ], - [ - [120678, 120678], - "mapped", - [961] - ], - [ - [120679, 120679], - "mapped", - [952] - ], - [ - [120680, 120680], - "mapped", - [963] - ], - [ - [120681, 120681], - "mapped", - [964] - ], - [ - [120682, 120682], - "mapped", - [965] - ], - [ - [120683, 120683], - "mapped", - [966] - ], - [ - [120684, 120684], - "mapped", - [967] - ], - [ - [120685, 120685], - "mapped", - [968] - ], - [ - [120686, 120686], - "mapped", - [969] - ], - [ - [120687, 120687], - "mapped", - [8711] - ], - [ - [120688, 120688], - "mapped", - [945] - ], - [ - [120689, 120689], - "mapped", - [946] - ], - [ - [120690, 120690], - "mapped", - [947] - ], - [ - [120691, 120691], - "mapped", - [948] - ], - [ - [120692, 120692], - "mapped", - [949] - ], - [ - [120693, 120693], - "mapped", - [950] - ], - [ - [120694, 120694], - "mapped", - [951] - ], - [ - [120695, 120695], - "mapped", - [952] - ], - [ - [120696, 120696], - "mapped", - [953] - ], - [ - [120697, 120697], - "mapped", - [954] - ], - [ - [120698, 120698], - "mapped", - [955] - ], - [ - [120699, 120699], - "mapped", - [956] - ], - [ - [120700, 120700], - "mapped", - [957] - ], - [ - [120701, 120701], - "mapped", - [958] - ], - [ - [120702, 120702], - "mapped", - [959] - ], - [ - [120703, 120703], - "mapped", - [960] - ], - [ - [120704, 120704], - "mapped", - [961] - ], - [ - [120705, 120706], - "mapped", - [963] - ], - [ - [120707, 120707], - "mapped", - [964] - ], - [ - [120708, 120708], - "mapped", - [965] - ], - [ - [120709, 120709], - "mapped", - [966] - ], - [ - [120710, 120710], - "mapped", - [967] - ], - [ - [120711, 120711], - "mapped", - [968] - ], - [ - [120712, 120712], - "mapped", - [969] - ], - [ - [120713, 120713], - "mapped", - [8706] - ], - [ - [120714, 120714], - "mapped", - [949] - ], - [ - [120715, 120715], - "mapped", - [952] - ], - [ - [120716, 120716], - "mapped", - [954] - ], - [ - [120717, 120717], - "mapped", - [966] - ], - [ - [120718, 120718], - "mapped", - [961] - ], - [ - [120719, 120719], - "mapped", - [960] - ], - [ - [120720, 120720], - "mapped", - [945] - ], - [ - [120721, 120721], - "mapped", - [946] - ], - [ - [120722, 120722], - "mapped", - [947] - ], - [ - [120723, 120723], - "mapped", - [948] - ], - [ - [120724, 120724], - "mapped", - [949] - ], - [ - [120725, 120725], - "mapped", - [950] - ], - [ - [120726, 120726], - "mapped", - [951] - ], - [ - [120727, 120727], - "mapped", - [952] - ], - [ - [120728, 120728], - "mapped", - [953] - ], - [ - [120729, 120729], - "mapped", - [954] - ], - [ - [120730, 120730], - "mapped", - [955] - ], - [ - [120731, 120731], - "mapped", - [956] - ], - [ - [120732, 120732], - "mapped", - [957] - ], - [ - [120733, 120733], - "mapped", - [958] - ], - [ - [120734, 120734], - "mapped", - [959] - ], - [ - [120735, 120735], - "mapped", - [960] - ], - [ - [120736, 120736], - "mapped", - [961] - ], - [ - [120737, 120737], - "mapped", - [952] - ], - [ - [120738, 120738], - "mapped", - [963] - ], - [ - [120739, 120739], - "mapped", - [964] - ], - [ - [120740, 120740], - "mapped", - [965] - ], - [ - [120741, 120741], - "mapped", - [966] - ], - [ - [120742, 120742], - "mapped", - [967] - ], - [ - [120743, 120743], - "mapped", - [968] - ], - [ - [120744, 120744], - "mapped", - [969] - ], - [ - [120745, 120745], - "mapped", - [8711] - ], - [ - [120746, 120746], - "mapped", - [945] - ], - [ - [120747, 120747], - "mapped", - [946] - ], - [ - [120748, 120748], - "mapped", - [947] - ], - [ - [120749, 120749], - "mapped", - [948] - ], - [ - [120750, 120750], - "mapped", - [949] - ], - [ - [120751, 120751], - "mapped", - [950] - ], - [ - [120752, 120752], - "mapped", - [951] - ], - [ - [120753, 120753], - "mapped", - [952] - ], - [ - [120754, 120754], - "mapped", - [953] - ], - [ - [120755, 120755], - "mapped", - [954] - ], - [ - [120756, 120756], - "mapped", - [955] - ], - [ - [120757, 120757], - "mapped", - [956] - ], - [ - [120758, 120758], - "mapped", - [957] - ], - [ - [120759, 120759], - "mapped", - [958] - ], - [ - [120760, 120760], - "mapped", - [959] - ], - [ - [120761, 120761], - "mapped", - [960] - ], - [ - [120762, 120762], - "mapped", - [961] - ], - [ - [120763, 120764], - "mapped", - [963] - ], - [ - [120765, 120765], - "mapped", - [964] - ], - [ - [120766, 120766], - "mapped", - [965] - ], - [ - [120767, 120767], - "mapped", - [966] - ], - [ - [120768, 120768], - "mapped", - [967] - ], - [ - [120769, 120769], - "mapped", - [968] - ], - [ - [120770, 120770], - "mapped", - [969] - ], - [ - [120771, 120771], - "mapped", - [8706] - ], - [ - [120772, 120772], - "mapped", - [949] - ], - [ - [120773, 120773], - "mapped", - [952] - ], - [ - [120774, 120774], - "mapped", - [954] - ], - [ - [120775, 120775], - "mapped", - [966] - ], - [ - [120776, 120776], - "mapped", - [961] - ], - [ - [120777, 120777], - "mapped", - [960] - ], - [ - [120778, 120779], - "mapped", - [989] - ], - [[120780, 120781], "disallowed"], - [ - [120782, 120782], - "mapped", - [48] - ], - [ - [120783, 120783], - "mapped", - [49] - ], - [ - [120784, 120784], - "mapped", - [50] - ], - [ - [120785, 120785], - "mapped", - [51] - ], - [ - [120786, 120786], - "mapped", - [52] - ], - [ - [120787, 120787], - "mapped", - [53] - ], - [ - [120788, 120788], - "mapped", - [54] - ], - [ - [120789, 120789], - "mapped", - [55] - ], - [ - [120790, 120790], - "mapped", - [56] - ], - [ - [120791, 120791], - "mapped", - [57] - ], - [ - [120792, 120792], - "mapped", - [48] - ], - [ - [120793, 120793], - "mapped", - [49] - ], - [ - [120794, 120794], - "mapped", - [50] - ], - [ - [120795, 120795], - "mapped", - [51] - ], - [ - [120796, 120796], - "mapped", - [52] - ], - [ - [120797, 120797], - "mapped", - [53] - ], - [ - [120798, 120798], - "mapped", - [54] - ], - [ - [120799, 120799], - "mapped", - [55] - ], - [ - [120800, 120800], - "mapped", - [56] - ], - [ - [120801, 120801], - "mapped", - [57] - ], - [ - [120802, 120802], - "mapped", - [48] - ], - [ - [120803, 120803], - "mapped", - [49] - ], - [ - [120804, 120804], - "mapped", - [50] - ], - [ - [120805, 120805], - "mapped", - [51] - ], - [ - [120806, 120806], - "mapped", - [52] - ], - [ - [120807, 120807], - "mapped", - [53] - ], - [ - [120808, 120808], - "mapped", - [54] - ], - [ - [120809, 120809], - "mapped", - [55] - ], - [ - [120810, 120810], - "mapped", - [56] - ], - [ - [120811, 120811], - "mapped", - [57] - ], - [ - [120812, 120812], - "mapped", - [48] - ], - [ - [120813, 120813], - "mapped", - [49] - ], - [ - [120814, 120814], - "mapped", - [50] - ], - [ - [120815, 120815], - "mapped", - [51] - ], - [ - [120816, 120816], - "mapped", - [52] - ], - [ - [120817, 120817], - "mapped", - [53] - ], - [ - [120818, 120818], - "mapped", - [54] - ], - [ - [120819, 120819], - "mapped", - [55] - ], - [ - [120820, 120820], - "mapped", - [56] - ], - [ - [120821, 120821], - "mapped", - [57] - ], - [ - [120822, 120822], - "mapped", - [48] - ], - [ - [120823, 120823], - "mapped", - [49] - ], - [ - [120824, 120824], - "mapped", - [50] - ], - [ - [120825, 120825], - "mapped", - [51] - ], - [ - [120826, 120826], - "mapped", - [52] - ], - [ - [120827, 120827], - "mapped", - [53] - ], - [ - [120828, 120828], - "mapped", - [54] - ], - [ - [120829, 120829], - "mapped", - [55] - ], - [ - [120830, 120830], - "mapped", - [56] - ], - [ - [120831, 120831], - "mapped", - [57] - ], - [ - [120832, 121343], - "valid", - [], - "NV8" - ], - [[121344, 121398], "valid"], - [ - [121399, 121402], - "valid", - [], - "NV8" - ], - [[121403, 121452], "valid"], - [ - [121453, 121460], - "valid", - [], - "NV8" - ], - [[121461, 121461], "valid"], - [ - [121462, 121475], - "valid", - [], - "NV8" - ], - [[121476, 121476], "valid"], - [ - [121477, 121483], - "valid", - [], - "NV8" - ], - [[121484, 121498], "disallowed"], - [[121499, 121503], "valid"], - [[121504, 121504], "disallowed"], - [[121505, 121519], "valid"], - [[121520, 124927], "disallowed"], - [[124928, 125124], "valid"], - [[125125, 125126], "disallowed"], - [ - [125127, 125135], - "valid", - [], - "NV8" - ], - [[125136, 125142], "valid"], - [[125143, 126463], "disallowed"], - [ - [126464, 126464], - "mapped", - [1575] - ], - [ - [126465, 126465], - "mapped", - [1576] - ], - [ - [126466, 126466], - "mapped", - [1580] - ], - [ - [126467, 126467], - "mapped", - [1583] - ], - [[126468, 126468], "disallowed"], - [ - [126469, 126469], - "mapped", - [1608] - ], - [ - [126470, 126470], - "mapped", - [1586] - ], - [ - [126471, 126471], - "mapped", - [1581] - ], - [ - [126472, 126472], - "mapped", - [1591] - ], - [ - [126473, 126473], - "mapped", - [1610] - ], - [ - [126474, 126474], - "mapped", - [1603] - ], - [ - [126475, 126475], - "mapped", - [1604] - ], - [ - [126476, 126476], - "mapped", - [1605] - ], - [ - [126477, 126477], - "mapped", - [1606] - ], - [ - [126478, 126478], - "mapped", - [1587] - ], - [ - [126479, 126479], - "mapped", - [1593] - ], - [ - [126480, 126480], - "mapped", - [1601] - ], - [ - [126481, 126481], - "mapped", - [1589] - ], - [ - [126482, 126482], - "mapped", - [1602] - ], - [ - [126483, 126483], - "mapped", - [1585] - ], - [ - [126484, 126484], - "mapped", - [1588] - ], - [ - [126485, 126485], - "mapped", - [1578] - ], - [ - [126486, 126486], - "mapped", - [1579] - ], - [ - [126487, 126487], - "mapped", - [1582] - ], - [ - [126488, 126488], - "mapped", - [1584] - ], - [ - [126489, 126489], - "mapped", - [1590] - ], - [ - [126490, 126490], - "mapped", - [1592] - ], - [ - [126491, 126491], - "mapped", - [1594] - ], - [ - [126492, 126492], - "mapped", - [1646] - ], - [ - [126493, 126493], - "mapped", - [1722] - ], - [ - [126494, 126494], - "mapped", - [1697] - ], - [ - [126495, 126495], - "mapped", - [1647] - ], - [[126496, 126496], "disallowed"], - [ - [126497, 126497], - "mapped", - [1576] - ], - [ - [126498, 126498], - "mapped", - [1580] - ], - [[126499, 126499], "disallowed"], - [ - [126500, 126500], - "mapped", - [1607] - ], - [[126501, 126502], "disallowed"], - [ - [126503, 126503], - "mapped", - [1581] - ], - [[126504, 126504], "disallowed"], - [ - [126505, 126505], - "mapped", - [1610] - ], - [ - [126506, 126506], - "mapped", - [1603] - ], - [ - [126507, 126507], - "mapped", - [1604] - ], - [ - [126508, 126508], - "mapped", - [1605] - ], - [ - [126509, 126509], - "mapped", - [1606] - ], - [ - [126510, 126510], - "mapped", - [1587] - ], - [ - [126511, 126511], - "mapped", - [1593] - ], - [ - [126512, 126512], - "mapped", - [1601] - ], - [ - [126513, 126513], - "mapped", - [1589] - ], - [ - [126514, 126514], - "mapped", - [1602] - ], - [[126515, 126515], "disallowed"], - [ - [126516, 126516], - "mapped", - [1588] - ], - [ - [126517, 126517], - "mapped", - [1578] - ], - [ - [126518, 126518], - "mapped", - [1579] - ], - [ - [126519, 126519], - "mapped", - [1582] - ], - [[126520, 126520], "disallowed"], - [ - [126521, 126521], - "mapped", - [1590] - ], - [[126522, 126522], "disallowed"], - [ - [126523, 126523], - "mapped", - [1594] - ], - [[126524, 126529], "disallowed"], - [ - [126530, 126530], - "mapped", - [1580] - ], - [[126531, 126534], "disallowed"], - [ - [126535, 126535], - "mapped", - [1581] - ], - [[126536, 126536], "disallowed"], - [ - [126537, 126537], - "mapped", - [1610] - ], - [[126538, 126538], "disallowed"], - [ - [126539, 126539], - "mapped", - [1604] - ], - [[126540, 126540], "disallowed"], - [ - [126541, 126541], - "mapped", - [1606] - ], - [ - [126542, 126542], - "mapped", - [1587] - ], - [ - [126543, 126543], - "mapped", - [1593] - ], - [[126544, 126544], "disallowed"], - [ - [126545, 126545], - "mapped", - [1589] - ], - [ - [126546, 126546], - "mapped", - [1602] - ], - [[126547, 126547], "disallowed"], - [ - [126548, 126548], - "mapped", - [1588] - ], - [[126549, 126550], "disallowed"], - [ - [126551, 126551], - "mapped", - [1582] - ], - [[126552, 126552], "disallowed"], - [ - [126553, 126553], - "mapped", - [1590] - ], - [[126554, 126554], "disallowed"], - [ - [126555, 126555], - "mapped", - [1594] - ], - [[126556, 126556], "disallowed"], - [ - [126557, 126557], - "mapped", - [1722] - ], - [[126558, 126558], "disallowed"], - [ - [126559, 126559], - "mapped", - [1647] - ], - [[126560, 126560], "disallowed"], - [ - [126561, 126561], - "mapped", - [1576] - ], - [ - [126562, 126562], - "mapped", - [1580] - ], - [[126563, 126563], "disallowed"], - [ - [126564, 126564], - "mapped", - [1607] - ], - [[126565, 126566], "disallowed"], - [ - [126567, 126567], - "mapped", - [1581] - ], - [ - [126568, 126568], - "mapped", - [1591] - ], - [ - [126569, 126569], - "mapped", - [1610] - ], - [ - [126570, 126570], - "mapped", - [1603] - ], - [[126571, 126571], "disallowed"], - [ - [126572, 126572], - "mapped", - [1605] - ], - [ - [126573, 126573], - "mapped", - [1606] - ], - [ - [126574, 126574], - "mapped", - [1587] - ], - [ - [126575, 126575], - "mapped", - [1593] - ], - [ - [126576, 126576], - "mapped", - [1601] - ], - [ - [126577, 126577], - "mapped", - [1589] - ], - [ - [126578, 126578], - "mapped", - [1602] - ], - [[126579, 126579], "disallowed"], - [ - [126580, 126580], - "mapped", - [1588] - ], - [ - [126581, 126581], - "mapped", - [1578] - ], - [ - [126582, 126582], - "mapped", - [1579] - ], - [ - [126583, 126583], - "mapped", - [1582] - ], - [[126584, 126584], "disallowed"], - [ - [126585, 126585], - "mapped", - [1590] - ], - [ - [126586, 126586], - "mapped", - [1592] - ], - [ - [126587, 126587], - "mapped", - [1594] - ], - [ - [126588, 126588], - "mapped", - [1646] - ], - [[126589, 126589], "disallowed"], - [ - [126590, 126590], - "mapped", - [1697] - ], - [[126591, 126591], "disallowed"], - [ - [126592, 126592], - "mapped", - [1575] - ], - [ - [126593, 126593], - "mapped", - [1576] - ], - [ - [126594, 126594], - "mapped", - [1580] - ], - [ - [126595, 126595], - "mapped", - [1583] - ], - [ - [126596, 126596], - "mapped", - [1607] - ], - [ - [126597, 126597], - "mapped", - [1608] - ], - [ - [126598, 126598], - "mapped", - [1586] - ], - [ - [126599, 126599], - "mapped", - [1581] - ], - [ - [126600, 126600], - "mapped", - [1591] - ], - [ - [126601, 126601], - "mapped", - [1610] - ], - [[126602, 126602], "disallowed"], - [ - [126603, 126603], - "mapped", - [1604] - ], - [ - [126604, 126604], - "mapped", - [1605] - ], - [ - [126605, 126605], - "mapped", - [1606] - ], - [ - [126606, 126606], - "mapped", - [1587] - ], - [ - [126607, 126607], - "mapped", - [1593] - ], - [ - [126608, 126608], - "mapped", - [1601] - ], - [ - [126609, 126609], - "mapped", - [1589] - ], - [ - [126610, 126610], - "mapped", - [1602] - ], - [ - [126611, 126611], - "mapped", - [1585] - ], - [ - [126612, 126612], - "mapped", - [1588] - ], - [ - [126613, 126613], - "mapped", - [1578] - ], - [ - [126614, 126614], - "mapped", - [1579] - ], - [ - [126615, 126615], - "mapped", - [1582] - ], - [ - [126616, 126616], - "mapped", - [1584] - ], - [ - [126617, 126617], - "mapped", - [1590] - ], - [ - [126618, 126618], - "mapped", - [1592] - ], - [ - [126619, 126619], - "mapped", - [1594] - ], - [[126620, 126624], "disallowed"], - [ - [126625, 126625], - "mapped", - [1576] - ], - [ - [126626, 126626], - "mapped", - [1580] - ], - [ - [126627, 126627], - "mapped", - [1583] - ], - [[126628, 126628], "disallowed"], - [ - [126629, 126629], - "mapped", - [1608] - ], - [ - [126630, 126630], - "mapped", - [1586] - ], - [ - [126631, 126631], - "mapped", - [1581] - ], - [ - [126632, 126632], - "mapped", - [1591] - ], - [ - [126633, 126633], - "mapped", - [1610] - ], - [[126634, 126634], "disallowed"], - [ - [126635, 126635], - "mapped", - [1604] - ], - [ - [126636, 126636], - "mapped", - [1605] - ], - [ - [126637, 126637], - "mapped", - [1606] - ], - [ - [126638, 126638], - "mapped", - [1587] - ], - [ - [126639, 126639], - "mapped", - [1593] - ], - [ - [126640, 126640], - "mapped", - [1601] - ], - [ - [126641, 126641], - "mapped", - [1589] - ], - [ - [126642, 126642], - "mapped", - [1602] - ], - [ - [126643, 126643], - "mapped", - [1585] - ], - [ - [126644, 126644], - "mapped", - [1588] - ], - [ - [126645, 126645], - "mapped", - [1578] - ], - [ - [126646, 126646], - "mapped", - [1579] - ], - [ - [126647, 126647], - "mapped", - [1582] - ], - [ - [126648, 126648], - "mapped", - [1584] - ], - [ - [126649, 126649], - "mapped", - [1590] - ], - [ - [126650, 126650], - "mapped", - [1592] - ], - [ - [126651, 126651], - "mapped", - [1594] - ], - [[126652, 126703], "disallowed"], - [ - [126704, 126705], - "valid", - [], - "NV8" - ], - [[126706, 126975], "disallowed"], - [ - [126976, 127019], - "valid", - [], - "NV8" - ], - [[127020, 127023], "disallowed"], - [ - [127024, 127123], - "valid", - [], - "NV8" - ], - [[127124, 127135], "disallowed"], - [ - [127136, 127150], - "valid", - [], - "NV8" - ], - [[127151, 127152], "disallowed"], - [ - [127153, 127166], - "valid", - [], - "NV8" - ], - [ - [127167, 127167], - "valid", - [], - "NV8" - ], - [[127168, 127168], "disallowed"], - [ - [127169, 127183], - "valid", - [], - "NV8" - ], - [[127184, 127184], "disallowed"], - [ - [127185, 127199], - "valid", - [], - "NV8" - ], - [ - [127200, 127221], - "valid", - [], - "NV8" - ], - [[127222, 127231], "disallowed"], - [[127232, 127232], "disallowed"], - [ - [127233, 127233], - "disallowed_STD3_mapped", - [48, 44] - ], - [ - [127234, 127234], - "disallowed_STD3_mapped", - [49, 44] - ], - [ - [127235, 127235], - "disallowed_STD3_mapped", - [50, 44] - ], - [ - [127236, 127236], - "disallowed_STD3_mapped", - [51, 44] - ], - [ - [127237, 127237], - "disallowed_STD3_mapped", - [52, 44] - ], - [ - [127238, 127238], - "disallowed_STD3_mapped", - [53, 44] - ], - [ - [127239, 127239], - "disallowed_STD3_mapped", - [54, 44] - ], - [ - [127240, 127240], - "disallowed_STD3_mapped", - [55, 44] - ], - [ - [127241, 127241], - "disallowed_STD3_mapped", - [56, 44] - ], - [ - [127242, 127242], - "disallowed_STD3_mapped", - [57, 44] - ], - [ - [127243, 127244], - "valid", - [], - "NV8" - ], - [[127245, 127247], "disallowed"], - [ - [127248, 127248], - "disallowed_STD3_mapped", - [ - 40, - 97, - 41 - ] - ], - [ - [127249, 127249], - "disallowed_STD3_mapped", - [ - 40, - 98, - 41 - ] - ], - [ - [127250, 127250], - "disallowed_STD3_mapped", - [ - 40, - 99, - 41 - ] - ], - [ - [127251, 127251], - "disallowed_STD3_mapped", - [ - 40, - 100, - 41 - ] - ], - [ - [127252, 127252], - "disallowed_STD3_mapped", - [ - 40, - 101, - 41 - ] - ], - [ - [127253, 127253], - "disallowed_STD3_mapped", - [ - 40, - 102, - 41 - ] - ], - [ - [127254, 127254], - "disallowed_STD3_mapped", - [ - 40, - 103, - 41 - ] - ], - [ - [127255, 127255], - "disallowed_STD3_mapped", - [ - 40, - 104, - 41 - ] - ], - [ - [127256, 127256], - "disallowed_STD3_mapped", - [ - 40, - 105, - 41 - ] - ], - [ - [127257, 127257], - "disallowed_STD3_mapped", - [ - 40, - 106, - 41 - ] - ], - [ - [127258, 127258], - "disallowed_STD3_mapped", - [ - 40, - 107, - 41 - ] - ], - [ - [127259, 127259], - "disallowed_STD3_mapped", - [ - 40, - 108, - 41 - ] - ], - [ - [127260, 127260], - "disallowed_STD3_mapped", - [ - 40, - 109, - 41 - ] - ], - [ - [127261, 127261], - "disallowed_STD3_mapped", - [ - 40, - 110, - 41 - ] - ], - [ - [127262, 127262], - "disallowed_STD3_mapped", - [ - 40, - 111, - 41 - ] - ], - [ - [127263, 127263], - "disallowed_STD3_mapped", - [ - 40, - 112, - 41 - ] - ], - [ - [127264, 127264], - "disallowed_STD3_mapped", - [ - 40, - 113, - 41 - ] - ], - [ - [127265, 127265], - "disallowed_STD3_mapped", - [ - 40, - 114, - 41 - ] - ], - [ - [127266, 127266], - "disallowed_STD3_mapped", - [ - 40, - 115, - 41 - ] - ], - [ - [127267, 127267], - "disallowed_STD3_mapped", - [ - 40, - 116, - 41 - ] - ], - [ - [127268, 127268], - "disallowed_STD3_mapped", - [ - 40, - 117, - 41 - ] - ], - [ - [127269, 127269], - "disallowed_STD3_mapped", - [ - 40, - 118, - 41 - ] - ], - [ - [127270, 127270], - "disallowed_STD3_mapped", - [ - 40, - 119, - 41 - ] - ], - [ - [127271, 127271], - "disallowed_STD3_mapped", - [ - 40, - 120, - 41 - ] - ], - [ - [127272, 127272], - "disallowed_STD3_mapped", - [ - 40, - 121, - 41 - ] - ], - [ - [127273, 127273], - "disallowed_STD3_mapped", - [ - 40, - 122, - 41 - ] - ], - [ - [127274, 127274], - "mapped", - [ - 12308, - 115, - 12309 - ] - ], - [ - [127275, 127275], - "mapped", - [99] - ], - [ - [127276, 127276], - "mapped", - [114] - ], - [ - [127277, 127277], - "mapped", - [99, 100] - ], - [ - [127278, 127278], - "mapped", - [119, 122] - ], - [[127279, 127279], "disallowed"], - [ - [127280, 127280], - "mapped", - [97] - ], - [ - [127281, 127281], - "mapped", - [98] - ], - [ - [127282, 127282], - "mapped", - [99] - ], - [ - [127283, 127283], - "mapped", - [100] - ], - [ - [127284, 127284], - "mapped", - [101] - ], - [ - [127285, 127285], - "mapped", - [102] - ], - [ - [127286, 127286], - "mapped", - [103] - ], - [ - [127287, 127287], - "mapped", - [104] - ], - [ - [127288, 127288], - "mapped", - [105] - ], - [ - [127289, 127289], - "mapped", - [106] - ], - [ - [127290, 127290], - "mapped", - [107] - ], - [ - [127291, 127291], - "mapped", - [108] - ], - [ - [127292, 127292], - "mapped", - [109] - ], - [ - [127293, 127293], - "mapped", - [110] - ], - [ - [127294, 127294], - "mapped", - [111] - ], - [ - [127295, 127295], - "mapped", - [112] - ], - [ - [127296, 127296], - "mapped", - [113] - ], - [ - [127297, 127297], - "mapped", - [114] - ], - [ - [127298, 127298], - "mapped", - [115] - ], - [ - [127299, 127299], - "mapped", - [116] - ], - [ - [127300, 127300], - "mapped", - [117] - ], - [ - [127301, 127301], - "mapped", - [118] - ], - [ - [127302, 127302], - "mapped", - [119] - ], - [ - [127303, 127303], - "mapped", - [120] - ], - [ - [127304, 127304], - "mapped", - [121] - ], - [ - [127305, 127305], - "mapped", - [122] - ], - [ - [127306, 127306], - "mapped", - [104, 118] - ], - [ - [127307, 127307], - "mapped", - [109, 118] - ], - [ - [127308, 127308], - "mapped", - [115, 100] - ], - [ - [127309, 127309], - "mapped", - [115, 115] - ], - [ - [127310, 127310], - "mapped", - [ - 112, - 112, - 118 - ] - ], - [ - [127311, 127311], - "mapped", - [119, 99] - ], - [ - [127312, 127318], - "valid", - [], - "NV8" - ], - [ - [127319, 127319], - "valid", - [], - "NV8" - ], - [ - [127320, 127326], - "valid", - [], - "NV8" - ], - [ - [127327, 127327], - "valid", - [], - "NV8" - ], - [ - [127328, 127337], - "valid", - [], - "NV8" - ], - [ - [127338, 127338], - "mapped", - [109, 99] - ], - [ - [127339, 127339], - "mapped", - [109, 100] - ], - [[127340, 127343], "disallowed"], - [ - [127344, 127352], - "valid", - [], - "NV8" - ], - [ - [127353, 127353], - "valid", - [], - "NV8" - ], - [ - [127354, 127354], - "valid", - [], - "NV8" - ], - [ - [127355, 127356], - "valid", - [], - "NV8" - ], - [ - [127357, 127358], - "valid", - [], - "NV8" - ], - [ - [127359, 127359], - "valid", - [], - "NV8" - ], - [ - [127360, 127369], - "valid", - [], - "NV8" - ], - [ - [127370, 127373], - "valid", - [], - "NV8" - ], - [ - [127374, 127375], - "valid", - [], - "NV8" - ], - [ - [127376, 127376], - "mapped", - [100, 106] - ], - [ - [127377, 127386], - "valid", - [], - "NV8" - ], - [[127387, 127461], "disallowed"], - [ - [127462, 127487], - "valid", - [], - "NV8" - ], - [ - [127488, 127488], - "mapped", - [12411, 12363] - ], - [ - [127489, 127489], - "mapped", - [12467, 12467] - ], - [ - [127490, 127490], - "mapped", - [12469] - ], - [[127491, 127503], "disallowed"], - [ - [127504, 127504], - "mapped", - [25163] - ], - [ - [127505, 127505], - "mapped", - [23383] - ], - [ - [127506, 127506], - "mapped", - [21452] - ], - [ - [127507, 127507], - "mapped", - [12487] - ], - [ - [127508, 127508], - "mapped", - [20108] - ], - [ - [127509, 127509], - "mapped", - [22810] - ], - [ - [127510, 127510], - "mapped", - [35299] - ], - [ - [127511, 127511], - "mapped", - [22825] - ], - [ - [127512, 127512], - "mapped", - [20132] - ], - [ - [127513, 127513], - "mapped", - [26144] - ], - [ - [127514, 127514], - "mapped", - [28961] - ], - [ - [127515, 127515], - "mapped", - [26009] - ], - [ - [127516, 127516], - "mapped", - [21069] - ], - [ - [127517, 127517], - "mapped", - [24460] - ], - [ - [127518, 127518], - "mapped", - [20877] - ], - [ - [127519, 127519], - "mapped", - [26032] - ], - [ - [127520, 127520], - "mapped", - [21021] - ], - [ - [127521, 127521], - "mapped", - [32066] - ], - [ - [127522, 127522], - "mapped", - [29983] - ], - [ - [127523, 127523], - "mapped", - [36009] - ], - [ - [127524, 127524], - "mapped", - [22768] - ], - [ - [127525, 127525], - "mapped", - [21561] - ], - [ - [127526, 127526], - "mapped", - [28436] - ], - [ - [127527, 127527], - "mapped", - [25237] - ], - [ - [127528, 127528], - "mapped", - [25429] - ], - [ - [127529, 127529], - "mapped", - [19968] - ], - [ - [127530, 127530], - "mapped", - [19977] - ], - [ - [127531, 127531], - "mapped", - [36938] - ], - [ - [127532, 127532], - "mapped", - [24038] - ], - [ - [127533, 127533], - "mapped", - [20013] - ], - [ - [127534, 127534], - "mapped", - [21491] - ], - [ - [127535, 127535], - "mapped", - [25351] - ], - [ - [127536, 127536], - "mapped", - [36208] - ], - [ - [127537, 127537], - "mapped", - [25171] - ], - [ - [127538, 127538], - "mapped", - [31105] - ], - [ - [127539, 127539], - "mapped", - [31354] - ], - [ - [127540, 127540], - "mapped", - [21512] - ], - [ - [127541, 127541], - "mapped", - [28288] - ], - [ - [127542, 127542], - "mapped", - [26377] - ], - [ - [127543, 127543], - "mapped", - [26376] - ], - [ - [127544, 127544], - "mapped", - [30003] - ], - [ - [127545, 127545], - "mapped", - [21106] - ], - [ - [127546, 127546], - "mapped", - [21942] - ], - [[127547, 127551], "disallowed"], - [ - [127552, 127552], - "mapped", - [ - 12308, - 26412, - 12309 - ] - ], - [ - [127553, 127553], - "mapped", - [ - 12308, - 19977, - 12309 - ] - ], - [ - [127554, 127554], - "mapped", - [ - 12308, - 20108, - 12309 - ] - ], - [ - [127555, 127555], - "mapped", - [ - 12308, - 23433, - 12309 - ] - ], - [ - [127556, 127556], - "mapped", - [ - 12308, - 28857, - 12309 - ] - ], - [ - [127557, 127557], - "mapped", - [ - 12308, - 25171, - 12309 - ] - ], - [ - [127558, 127558], - "mapped", - [ - 12308, - 30423, - 12309 - ] - ], - [ - [127559, 127559], - "mapped", - [ - 12308, - 21213, - 12309 - ] - ], - [ - [127560, 127560], - "mapped", - [ - 12308, - 25943, - 12309 - ] - ], - [[127561, 127567], "disallowed"], - [ - [127568, 127568], - "mapped", - [24471] - ], - [ - [127569, 127569], - "mapped", - [21487] - ], - [[127570, 127743], "disallowed"], - [ - [127744, 127776], - "valid", - [], - "NV8" - ], - [ - [127777, 127788], - "valid", - [], - "NV8" - ], - [ - [127789, 127791], - "valid", - [], - "NV8" - ], - [ - [127792, 127797], - "valid", - [], - "NV8" - ], - [ - [127798, 127798], - "valid", - [], - "NV8" - ], - [ - [127799, 127868], - "valid", - [], - "NV8" - ], - [ - [127869, 127869], - "valid", - [], - "NV8" - ], - [ - [127870, 127871], - "valid", - [], - "NV8" - ], - [ - [127872, 127891], - "valid", - [], - "NV8" - ], - [ - [127892, 127903], - "valid", - [], - "NV8" - ], - [ - [127904, 127940], - "valid", - [], - "NV8" - ], - [ - [127941, 127941], - "valid", - [], - "NV8" - ], - [ - [127942, 127946], - "valid", - [], - "NV8" - ], - [ - [127947, 127950], - "valid", - [], - "NV8" - ], - [ - [127951, 127955], - "valid", - [], - "NV8" - ], - [ - [127956, 127967], - "valid", - [], - "NV8" - ], - [ - [127968, 127984], - "valid", - [], - "NV8" - ], - [ - [127985, 127991], - "valid", - [], - "NV8" - ], - [ - [127992, 127999], - "valid", - [], - "NV8" - ], - [ - [128e3, 128062], - "valid", - [], - "NV8" - ], - [ - [128063, 128063], - "valid", - [], - "NV8" - ], - [ - [128064, 128064], - "valid", - [], - "NV8" - ], - [ - [128065, 128065], - "valid", - [], - "NV8" - ], - [ - [128066, 128247], - "valid", - [], - "NV8" - ], - [ - [128248, 128248], - "valid", - [], - "NV8" - ], - [ - [128249, 128252], - "valid", - [], - "NV8" - ], - [ - [128253, 128254], - "valid", - [], - "NV8" - ], - [ - [128255, 128255], - "valid", - [], - "NV8" - ], - [ - [128256, 128317], - "valid", - [], - "NV8" - ], - [ - [128318, 128319], - "valid", - [], - "NV8" - ], - [ - [128320, 128323], - "valid", - [], - "NV8" - ], - [ - [128324, 128330], - "valid", - [], - "NV8" - ], - [ - [128331, 128335], - "valid", - [], - "NV8" - ], - [ - [128336, 128359], - "valid", - [], - "NV8" - ], - [ - [128360, 128377], - "valid", - [], - "NV8" - ], - [[128378, 128378], "disallowed"], - [ - [128379, 128419], - "valid", - [], - "NV8" - ], - [[128420, 128420], "disallowed"], - [ - [128421, 128506], - "valid", - [], - "NV8" - ], - [ - [128507, 128511], - "valid", - [], - "NV8" - ], - [ - [128512, 128512], - "valid", - [], - "NV8" - ], - [ - [128513, 128528], - "valid", - [], - "NV8" - ], - [ - [128529, 128529], - "valid", - [], - "NV8" - ], - [ - [128530, 128532], - "valid", - [], - "NV8" - ], - [ - [128533, 128533], - "valid", - [], - "NV8" - ], - [ - [128534, 128534], - "valid", - [], - "NV8" - ], - [ - [128535, 128535], - "valid", - [], - "NV8" - ], - [ - [128536, 128536], - "valid", - [], - "NV8" - ], - [ - [128537, 128537], - "valid", - [], - "NV8" - ], - [ - [128538, 128538], - "valid", - [], - "NV8" - ], - [ - [128539, 128539], - "valid", - [], - "NV8" - ], - [ - [128540, 128542], - "valid", - [], - "NV8" - ], - [ - [128543, 128543], - "valid", - [], - "NV8" - ], - [ - [128544, 128549], - "valid", - [], - "NV8" - ], - [ - [128550, 128551], - "valid", - [], - "NV8" - ], - [ - [128552, 128555], - "valid", - [], - "NV8" - ], - [ - [128556, 128556], - "valid", - [], - "NV8" - ], - [ - [128557, 128557], - "valid", - [], - "NV8" - ], - [ - [128558, 128559], - "valid", - [], - "NV8" - ], - [ - [128560, 128563], - "valid", - [], - "NV8" - ], - [ - [128564, 128564], - "valid", - [], - "NV8" - ], - [ - [128565, 128576], - "valid", - [], - "NV8" - ], - [ - [128577, 128578], - "valid", - [], - "NV8" - ], - [ - [128579, 128580], - "valid", - [], - "NV8" - ], - [ - [128581, 128591], - "valid", - [], - "NV8" - ], - [ - [128592, 128639], - "valid", - [], - "NV8" - ], - [ - [128640, 128709], - "valid", - [], - "NV8" - ], - [ - [128710, 128719], - "valid", - [], - "NV8" - ], - [ - [128720, 128720], - "valid", - [], - "NV8" - ], - [[128721, 128735], "disallowed"], - [ - [128736, 128748], - "valid", - [], - "NV8" - ], - [[128749, 128751], "disallowed"], - [ - [128752, 128755], - "valid", - [], - "NV8" - ], - [[128756, 128767], "disallowed"], - [ - [128768, 128883], - "valid", - [], - "NV8" - ], - [[128884, 128895], "disallowed"], - [ - [128896, 128980], - "valid", - [], - "NV8" - ], - [[128981, 129023], "disallowed"], - [ - [129024, 129035], - "valid", - [], - "NV8" - ], - [[129036, 129039], "disallowed"], - [ - [129040, 129095], - "valid", - [], - "NV8" - ], - [[129096, 129103], "disallowed"], - [ - [129104, 129113], - "valid", - [], - "NV8" - ], - [[129114, 129119], "disallowed"], - [ - [129120, 129159], - "valid", - [], - "NV8" - ], - [[129160, 129167], "disallowed"], - [ - [129168, 129197], - "valid", - [], - "NV8" - ], - [[129198, 129295], "disallowed"], - [ - [129296, 129304], - "valid", - [], - "NV8" - ], - [[129305, 129407], "disallowed"], - [ - [129408, 129412], - "valid", - [], - "NV8" - ], - [[129413, 129471], "disallowed"], - [ - [129472, 129472], - "valid", - [], - "NV8" - ], - [[129473, 131069], "disallowed"], - [[131070, 131071], "disallowed"], - [[131072, 173782], "valid"], - [[173783, 173823], "disallowed"], - [[173824, 177972], "valid"], - [[177973, 177983], "disallowed"], - [[177984, 178205], "valid"], - [[178206, 178207], "disallowed"], - [[178208, 183969], "valid"], - [[183970, 194559], "disallowed"], - [ - [194560, 194560], - "mapped", - [20029] - ], - [ - [194561, 194561], - "mapped", - [20024] - ], - [ - [194562, 194562], - "mapped", - [20033] - ], - [ - [194563, 194563], - "mapped", - [131362] - ], - [ - [194564, 194564], - "mapped", - [20320] - ], - [ - [194565, 194565], - "mapped", - [20398] - ], - [ - [194566, 194566], - "mapped", - [20411] - ], - [ - [194567, 194567], - "mapped", - [20482] - ], - [ - [194568, 194568], - "mapped", - [20602] - ], - [ - [194569, 194569], - "mapped", - [20633] - ], - [ - [194570, 194570], - "mapped", - [20711] - ], - [ - [194571, 194571], - "mapped", - [20687] - ], - [ - [194572, 194572], - "mapped", - [13470] - ], - [ - [194573, 194573], - "mapped", - [132666] - ], - [ - [194574, 194574], - "mapped", - [20813] - ], - [ - [194575, 194575], - "mapped", - [20820] - ], - [ - [194576, 194576], - "mapped", - [20836] - ], - [ - [194577, 194577], - "mapped", - [20855] - ], - [ - [194578, 194578], - "mapped", - [132380] - ], - [ - [194579, 194579], - "mapped", - [13497] - ], - [ - [194580, 194580], - "mapped", - [20839] - ], - [ - [194581, 194581], - "mapped", - [20877] - ], - [ - [194582, 194582], - "mapped", - [132427] - ], - [ - [194583, 194583], - "mapped", - [20887] - ], - [ - [194584, 194584], - "mapped", - [20900] - ], - [ - [194585, 194585], - "mapped", - [20172] - ], - [ - [194586, 194586], - "mapped", - [20908] - ], - [ - [194587, 194587], - "mapped", - [20917] - ], - [ - [194588, 194588], - "mapped", - [168415] - ], - [ - [194589, 194589], - "mapped", - [20981] - ], - [ - [194590, 194590], - "mapped", - [20995] - ], - [ - [194591, 194591], - "mapped", - [13535] - ], - [ - [194592, 194592], - "mapped", - [21051] - ], - [ - [194593, 194593], - "mapped", - [21062] - ], - [ - [194594, 194594], - "mapped", - [21106] - ], - [ - [194595, 194595], - "mapped", - [21111] - ], - [ - [194596, 194596], - "mapped", - [13589] - ], - [ - [194597, 194597], - "mapped", - [21191] - ], - [ - [194598, 194598], - "mapped", - [21193] - ], - [ - [194599, 194599], - "mapped", - [21220] - ], - [ - [194600, 194600], - "mapped", - [21242] - ], - [ - [194601, 194601], - "mapped", - [21253] - ], - [ - [194602, 194602], - "mapped", - [21254] - ], - [ - [194603, 194603], - "mapped", - [21271] - ], - [ - [194604, 194604], - "mapped", - [21321] - ], - [ - [194605, 194605], - "mapped", - [21329] - ], - [ - [194606, 194606], - "mapped", - [21338] - ], - [ - [194607, 194607], - "mapped", - [21363] - ], - [ - [194608, 194608], - "mapped", - [21373] - ], - [ - [194609, 194611], - "mapped", - [21375] - ], - [ - [194612, 194612], - "mapped", - [133676] - ], - [ - [194613, 194613], - "mapped", - [28784] - ], - [ - [194614, 194614], - "mapped", - [21450] - ], - [ - [194615, 194615], - "mapped", - [21471] - ], - [ - [194616, 194616], - "mapped", - [133987] - ], - [ - [194617, 194617], - "mapped", - [21483] - ], - [ - [194618, 194618], - "mapped", - [21489] - ], - [ - [194619, 194619], - "mapped", - [21510] - ], - [ - [194620, 194620], - "mapped", - [21662] - ], - [ - [194621, 194621], - "mapped", - [21560] - ], - [ - [194622, 194622], - "mapped", - [21576] - ], - [ - [194623, 194623], - "mapped", - [21608] - ], - [ - [194624, 194624], - "mapped", - [21666] - ], - [ - [194625, 194625], - "mapped", - [21750] - ], - [ - [194626, 194626], - "mapped", - [21776] - ], - [ - [194627, 194627], - "mapped", - [21843] - ], - [ - [194628, 194628], - "mapped", - [21859] - ], - [ - [194629, 194630], - "mapped", - [21892] - ], - [ - [194631, 194631], - "mapped", - [21913] - ], - [ - [194632, 194632], - "mapped", - [21931] - ], - [ - [194633, 194633], - "mapped", - [21939] - ], - [ - [194634, 194634], - "mapped", - [21954] - ], - [ - [194635, 194635], - "mapped", - [22294] - ], - [ - [194636, 194636], - "mapped", - [22022] - ], - [ - [194637, 194637], - "mapped", - [22295] - ], - [ - [194638, 194638], - "mapped", - [22097] - ], - [ - [194639, 194639], - "mapped", - [22132] - ], - [ - [194640, 194640], - "mapped", - [20999] - ], - [ - [194641, 194641], - "mapped", - [22766] - ], - [ - [194642, 194642], - "mapped", - [22478] - ], - [ - [194643, 194643], - "mapped", - [22516] - ], - [ - [194644, 194644], - "mapped", - [22541] - ], - [ - [194645, 194645], - "mapped", - [22411] - ], - [ - [194646, 194646], - "mapped", - [22578] - ], - [ - [194647, 194647], - "mapped", - [22577] - ], - [ - [194648, 194648], - "mapped", - [22700] - ], - [ - [194649, 194649], - "mapped", - [136420] - ], - [ - [194650, 194650], - "mapped", - [22770] - ], - [ - [194651, 194651], - "mapped", - [22775] - ], - [ - [194652, 194652], - "mapped", - [22790] - ], - [ - [194653, 194653], - "mapped", - [22810] - ], - [ - [194654, 194654], - "mapped", - [22818] - ], - [ - [194655, 194655], - "mapped", - [22882] - ], - [ - [194656, 194656], - "mapped", - [136872] - ], - [ - [194657, 194657], - "mapped", - [136938] - ], - [ - [194658, 194658], - "mapped", - [23020] - ], - [ - [194659, 194659], - "mapped", - [23067] - ], - [ - [194660, 194660], - "mapped", - [23079] - ], - [ - [194661, 194661], - "mapped", - [23e3] - ], - [ - [194662, 194662], - "mapped", - [23142] - ], - [ - [194663, 194663], - "mapped", - [14062] - ], - [[194664, 194664], "disallowed"], - [ - [194665, 194665], - "mapped", - [23304] - ], - [ - [194666, 194667], - "mapped", - [23358] - ], - [ - [194668, 194668], - "mapped", - [137672] - ], - [ - [194669, 194669], - "mapped", - [23491] - ], - [ - [194670, 194670], - "mapped", - [23512] - ], - [ - [194671, 194671], - "mapped", - [23527] - ], - [ - [194672, 194672], - "mapped", - [23539] - ], - [ - [194673, 194673], - "mapped", - [138008] - ], - [ - [194674, 194674], - "mapped", - [23551] - ], - [ - [194675, 194675], - "mapped", - [23558] - ], - [[194676, 194676], "disallowed"], - [ - [194677, 194677], - "mapped", - [23586] - ], - [ - [194678, 194678], - "mapped", - [14209] - ], - [ - [194679, 194679], - "mapped", - [23648] - ], - [ - [194680, 194680], - "mapped", - [23662] - ], - [ - [194681, 194681], - "mapped", - [23744] - ], - [ - [194682, 194682], - "mapped", - [23693] - ], - [ - [194683, 194683], - "mapped", - [138724] - ], - [ - [194684, 194684], - "mapped", - [23875] - ], - [ - [194685, 194685], - "mapped", - [138726] - ], - [ - [194686, 194686], - "mapped", - [23918] - ], - [ - [194687, 194687], - "mapped", - [23915] - ], - [ - [194688, 194688], - "mapped", - [23932] - ], - [ - [194689, 194689], - "mapped", - [24033] - ], - [ - [194690, 194690], - "mapped", - [24034] - ], - [ - [194691, 194691], - "mapped", - [14383] - ], - [ - [194692, 194692], - "mapped", - [24061] - ], - [ - [194693, 194693], - "mapped", - [24104] - ], - [ - [194694, 194694], - "mapped", - [24125] - ], - [ - [194695, 194695], - "mapped", - [24169] - ], - [ - [194696, 194696], - "mapped", - [14434] - ], - [ - [194697, 194697], - "mapped", - [139651] - ], - [ - [194698, 194698], - "mapped", - [14460] - ], - [ - [194699, 194699], - "mapped", - [24240] - ], - [ - [194700, 194700], - "mapped", - [24243] - ], - [ - [194701, 194701], - "mapped", - [24246] - ], - [ - [194702, 194702], - "mapped", - [24266] - ], - [ - [194703, 194703], - "mapped", - [172946] - ], - [ - [194704, 194704], - "mapped", - [24318] - ], - [ - [194705, 194706], - "mapped", - [140081] - ], - [ - [194707, 194707], - "mapped", - [33281] - ], - [ - [194708, 194709], - "mapped", - [24354] - ], - [ - [194710, 194710], - "mapped", - [14535] - ], - [ - [194711, 194711], - "mapped", - [144056] - ], - [ - [194712, 194712], - "mapped", - [156122] - ], - [ - [194713, 194713], - "mapped", - [24418] - ], - [ - [194714, 194714], - "mapped", - [24427] - ], - [ - [194715, 194715], - "mapped", - [14563] - ], - [ - [194716, 194716], - "mapped", - [24474] - ], - [ - [194717, 194717], - "mapped", - [24525] - ], - [ - [194718, 194718], - "mapped", - [24535] - ], - [ - [194719, 194719], - "mapped", - [24569] - ], - [ - [194720, 194720], - "mapped", - [24705] - ], - [ - [194721, 194721], - "mapped", - [14650] - ], - [ - [194722, 194722], - "mapped", - [14620] - ], - [ - [194723, 194723], - "mapped", - [24724] - ], - [ - [194724, 194724], - "mapped", - [141012] - ], - [ - [194725, 194725], - "mapped", - [24775] - ], - [ - [194726, 194726], - "mapped", - [24904] - ], - [ - [194727, 194727], - "mapped", - [24908] - ], - [ - [194728, 194728], - "mapped", - [24910] - ], - [ - [194729, 194729], - "mapped", - [24908] - ], - [ - [194730, 194730], - "mapped", - [24954] - ], - [ - [194731, 194731], - "mapped", - [24974] - ], - [ - [194732, 194732], - "mapped", - [25010] - ], - [ - [194733, 194733], - "mapped", - [24996] - ], - [ - [194734, 194734], - "mapped", - [25007] - ], - [ - [194735, 194735], - "mapped", - [25054] - ], - [ - [194736, 194736], - "mapped", - [25074] - ], - [ - [194737, 194737], - "mapped", - [25078] - ], - [ - [194738, 194738], - "mapped", - [25104] - ], - [ - [194739, 194739], - "mapped", - [25115] - ], - [ - [194740, 194740], - "mapped", - [25181] - ], - [ - [194741, 194741], - "mapped", - [25265] - ], - [ - [194742, 194742], - "mapped", - [25300] - ], - [ - [194743, 194743], - "mapped", - [25424] - ], - [ - [194744, 194744], - "mapped", - [142092] - ], - [ - [194745, 194745], - "mapped", - [25405] - ], - [ - [194746, 194746], - "mapped", - [25340] - ], - [ - [194747, 194747], - "mapped", - [25448] - ], - [ - [194748, 194748], - "mapped", - [25475] - ], - [ - [194749, 194749], - "mapped", - [25572] - ], - [ - [194750, 194750], - "mapped", - [142321] - ], - [ - [194751, 194751], - "mapped", - [25634] - ], - [ - [194752, 194752], - "mapped", - [25541] - ], - [ - [194753, 194753], - "mapped", - [25513] - ], - [ - [194754, 194754], - "mapped", - [14894] - ], - [ - [194755, 194755], - "mapped", - [25705] - ], - [ - [194756, 194756], - "mapped", - [25726] - ], - [ - [194757, 194757], - "mapped", - [25757] - ], - [ - [194758, 194758], - "mapped", - [25719] - ], - [ - [194759, 194759], - "mapped", - [14956] - ], - [ - [194760, 194760], - "mapped", - [25935] - ], - [ - [194761, 194761], - "mapped", - [25964] - ], - [ - [194762, 194762], - "mapped", - [143370] - ], - [ - [194763, 194763], - "mapped", - [26083] - ], - [ - [194764, 194764], - "mapped", - [26360] - ], - [ - [194765, 194765], - "mapped", - [26185] - ], - [ - [194766, 194766], - "mapped", - [15129] - ], - [ - [194767, 194767], - "mapped", - [26257] - ], - [ - [194768, 194768], - "mapped", - [15112] - ], - [ - [194769, 194769], - "mapped", - [15076] - ], - [ - [194770, 194770], - "mapped", - [20882] - ], - [ - [194771, 194771], - "mapped", - [20885] - ], - [ - [194772, 194772], - "mapped", - [26368] - ], - [ - [194773, 194773], - "mapped", - [26268] - ], - [ - [194774, 194774], - "mapped", - [32941] - ], - [ - [194775, 194775], - "mapped", - [17369] - ], - [ - [194776, 194776], - "mapped", - [26391] - ], - [ - [194777, 194777], - "mapped", - [26395] - ], - [ - [194778, 194778], - "mapped", - [26401] - ], - [ - [194779, 194779], - "mapped", - [26462] - ], - [ - [194780, 194780], - "mapped", - [26451] - ], - [ - [194781, 194781], - "mapped", - [144323] - ], - [ - [194782, 194782], - "mapped", - [15177] - ], - [ - [194783, 194783], - "mapped", - [26618] - ], - [ - [194784, 194784], - "mapped", - [26501] - ], - [ - [194785, 194785], - "mapped", - [26706] - ], - [ - [194786, 194786], - "mapped", - [26757] - ], - [ - [194787, 194787], - "mapped", - [144493] - ], - [ - [194788, 194788], - "mapped", - [26766] - ], - [ - [194789, 194789], - "mapped", - [26655] - ], - [ - [194790, 194790], - "mapped", - [26900] - ], - [ - [194791, 194791], - "mapped", - [15261] - ], - [ - [194792, 194792], - "mapped", - [26946] - ], - [ - [194793, 194793], - "mapped", - [27043] - ], - [ - [194794, 194794], - "mapped", - [27114] - ], - [ - [194795, 194795], - "mapped", - [27304] - ], - [ - [194796, 194796], - "mapped", - [145059] - ], - [ - [194797, 194797], - "mapped", - [27355] - ], - [ - [194798, 194798], - "mapped", - [15384] - ], - [ - [194799, 194799], - "mapped", - [27425] - ], - [ - [194800, 194800], - "mapped", - [145575] - ], - [ - [194801, 194801], - "mapped", - [27476] - ], - [ - [194802, 194802], - "mapped", - [15438] - ], - [ - [194803, 194803], - "mapped", - [27506] - ], - [ - [194804, 194804], - "mapped", - [27551] - ], - [ - [194805, 194805], - "mapped", - [27578] - ], - [ - [194806, 194806], - "mapped", - [27579] - ], - [ - [194807, 194807], - "mapped", - [146061] - ], - [ - [194808, 194808], - "mapped", - [138507] - ], - [ - [194809, 194809], - "mapped", - [146170] - ], - [ - [194810, 194810], - "mapped", - [27726] - ], - [ - [194811, 194811], - "mapped", - [146620] - ], - [ - [194812, 194812], - "mapped", - [27839] - ], - [ - [194813, 194813], - "mapped", - [27853] - ], - [ - [194814, 194814], - "mapped", - [27751] - ], - [ - [194815, 194815], - "mapped", - [27926] - ], - [ - [194816, 194816], - "mapped", - [27966] - ], - [ - [194817, 194817], - "mapped", - [28023] - ], - [ - [194818, 194818], - "mapped", - [27969] - ], - [ - [194819, 194819], - "mapped", - [28009] - ], - [ - [194820, 194820], - "mapped", - [28024] - ], - [ - [194821, 194821], - "mapped", - [28037] - ], - [ - [194822, 194822], - "mapped", - [146718] - ], - [ - [194823, 194823], - "mapped", - [27956] - ], - [ - [194824, 194824], - "mapped", - [28207] - ], - [ - [194825, 194825], - "mapped", - [28270] - ], - [ - [194826, 194826], - "mapped", - [15667] - ], - [ - [194827, 194827], - "mapped", - [28363] - ], - [ - [194828, 194828], - "mapped", - [28359] - ], - [ - [194829, 194829], - "mapped", - [147153] - ], - [ - [194830, 194830], - "mapped", - [28153] - ], - [ - [194831, 194831], - "mapped", - [28526] - ], - [ - [194832, 194832], - "mapped", - [147294] - ], - [ - [194833, 194833], - "mapped", - [147342] - ], - [ - [194834, 194834], - "mapped", - [28614] - ], - [ - [194835, 194835], - "mapped", - [28729] - ], - [ - [194836, 194836], - "mapped", - [28702] - ], - [ - [194837, 194837], - "mapped", - [28699] - ], - [ - [194838, 194838], - "mapped", - [15766] - ], - [ - [194839, 194839], - "mapped", - [28746] - ], - [ - [194840, 194840], - "mapped", - [28797] - ], - [ - [194841, 194841], - "mapped", - [28791] - ], - [ - [194842, 194842], - "mapped", - [28845] - ], - [ - [194843, 194843], - "mapped", - [132389] - ], - [ - [194844, 194844], - "mapped", - [28997] - ], - [ - [194845, 194845], - "mapped", - [148067] - ], - [ - [194846, 194846], - "mapped", - [29084] - ], - [[194847, 194847], "disallowed"], - [ - [194848, 194848], - "mapped", - [29224] - ], - [ - [194849, 194849], - "mapped", - [29237] - ], - [ - [194850, 194850], - "mapped", - [29264] - ], - [ - [194851, 194851], - "mapped", - [149e3] - ], - [ - [194852, 194852], - "mapped", - [29312] - ], - [ - [194853, 194853], - "mapped", - [29333] - ], - [ - [194854, 194854], - "mapped", - [149301] - ], - [ - [194855, 194855], - "mapped", - [149524] - ], - [ - [194856, 194856], - "mapped", - [29562] - ], - [ - [194857, 194857], - "mapped", - [29579] - ], - [ - [194858, 194858], - "mapped", - [16044] - ], - [ - [194859, 194859], - "mapped", - [29605] - ], - [ - [194860, 194861], - "mapped", - [16056] - ], - [ - [194862, 194862], - "mapped", - [29767] - ], - [ - [194863, 194863], - "mapped", - [29788] - ], - [ - [194864, 194864], - "mapped", - [29809] - ], - [ - [194865, 194865], - "mapped", - [29829] - ], - [ - [194866, 194866], - "mapped", - [29898] - ], - [ - [194867, 194867], - "mapped", - [16155] - ], - [ - [194868, 194868], - "mapped", - [29988] - ], - [ - [194869, 194869], - "mapped", - [150582] - ], - [ - [194870, 194870], - "mapped", - [30014] - ], - [ - [194871, 194871], - "mapped", - [150674] - ], - [ - [194872, 194872], - "mapped", - [30064] - ], - [ - [194873, 194873], - "mapped", - [139679] - ], - [ - [194874, 194874], - "mapped", - [30224] - ], - [ - [194875, 194875], - "mapped", - [151457] - ], - [ - [194876, 194876], - "mapped", - [151480] - ], - [ - [194877, 194877], - "mapped", - [151620] - ], - [ - [194878, 194878], - "mapped", - [16380] - ], - [ - [194879, 194879], - "mapped", - [16392] - ], - [ - [194880, 194880], - "mapped", - [30452] - ], - [ - [194881, 194881], - "mapped", - [151795] - ], - [ - [194882, 194882], - "mapped", - [151794] - ], - [ - [194883, 194883], - "mapped", - [151833] - ], - [ - [194884, 194884], - "mapped", - [151859] - ], - [ - [194885, 194885], - "mapped", - [30494] - ], - [ - [194886, 194887], - "mapped", - [30495] - ], - [ - [194888, 194888], - "mapped", - [30538] - ], - [ - [194889, 194889], - "mapped", - [16441] - ], - [ - [194890, 194890], - "mapped", - [30603] - ], - [ - [194891, 194891], - "mapped", - [16454] - ], - [ - [194892, 194892], - "mapped", - [16534] - ], - [ - [194893, 194893], - "mapped", - [152605] - ], - [ - [194894, 194894], - "mapped", - [30798] - ], - [ - [194895, 194895], - "mapped", - [30860] - ], - [ - [194896, 194896], - "mapped", - [30924] - ], - [ - [194897, 194897], - "mapped", - [16611] - ], - [ - [194898, 194898], - "mapped", - [153126] - ], - [ - [194899, 194899], - "mapped", - [31062] - ], - [ - [194900, 194900], - "mapped", - [153242] - ], - [ - [194901, 194901], - "mapped", - [153285] - ], - [ - [194902, 194902], - "mapped", - [31119] - ], - [ - [194903, 194903], - "mapped", - [31211] - ], - [ - [194904, 194904], - "mapped", - [16687] - ], - [ - [194905, 194905], - "mapped", - [31296] - ], - [ - [194906, 194906], - "mapped", - [31306] - ], - [ - [194907, 194907], - "mapped", - [31311] - ], - [ - [194908, 194908], - "mapped", - [153980] - ], - [ - [194909, 194910], - "mapped", - [154279] - ], - [[194911, 194911], "disallowed"], - [ - [194912, 194912], - "mapped", - [16898] - ], - [ - [194913, 194913], - "mapped", - [154539] - ], - [ - [194914, 194914], - "mapped", - [31686] - ], - [ - [194915, 194915], - "mapped", - [31689] - ], - [ - [194916, 194916], - "mapped", - [16935] - ], - [ - [194917, 194917], - "mapped", - [154752] - ], - [ - [194918, 194918], - "mapped", - [31954] - ], - [ - [194919, 194919], - "mapped", - [17056] - ], - [ - [194920, 194920], - "mapped", - [31976] - ], - [ - [194921, 194921], - "mapped", - [31971] - ], - [ - [194922, 194922], - "mapped", - [32e3] - ], - [ - [194923, 194923], - "mapped", - [155526] - ], - [ - [194924, 194924], - "mapped", - [32099] - ], - [ - [194925, 194925], - "mapped", - [17153] - ], - [ - [194926, 194926], - "mapped", - [32199] - ], - [ - [194927, 194927], - "mapped", - [32258] - ], - [ - [194928, 194928], - "mapped", - [32325] - ], - [ - [194929, 194929], - "mapped", - [17204] - ], - [ - [194930, 194930], - "mapped", - [156200] - ], - [ - [194931, 194931], - "mapped", - [156231] - ], - [ - [194932, 194932], - "mapped", - [17241] - ], - [ - [194933, 194933], - "mapped", - [156377] - ], - [ - [194934, 194934], - "mapped", - [32634] - ], - [ - [194935, 194935], - "mapped", - [156478] - ], - [ - [194936, 194936], - "mapped", - [32661] - ], - [ - [194937, 194937], - "mapped", - [32762] - ], - [ - [194938, 194938], - "mapped", - [32773] - ], - [ - [194939, 194939], - "mapped", - [156890] - ], - [ - [194940, 194940], - "mapped", - [156963] - ], - [ - [194941, 194941], - "mapped", - [32864] - ], - [ - [194942, 194942], - "mapped", - [157096] - ], - [ - [194943, 194943], - "mapped", - [32880] - ], - [ - [194944, 194944], - "mapped", - [144223] - ], - [ - [194945, 194945], - "mapped", - [17365] - ], - [ - [194946, 194946], - "mapped", - [32946] - ], - [ - [194947, 194947], - "mapped", - [33027] - ], - [ - [194948, 194948], - "mapped", - [17419] - ], - [ - [194949, 194949], - "mapped", - [33086] - ], - [ - [194950, 194950], - "mapped", - [23221] - ], - [ - [194951, 194951], - "mapped", - [157607] - ], - [ - [194952, 194952], - "mapped", - [157621] - ], - [ - [194953, 194953], - "mapped", - [144275] - ], - [ - [194954, 194954], - "mapped", - [144284] - ], - [ - [194955, 194955], - "mapped", - [33281] - ], - [ - [194956, 194956], - "mapped", - [33284] - ], - [ - [194957, 194957], - "mapped", - [36766] - ], - [ - [194958, 194958], - "mapped", - [17515] - ], - [ - [194959, 194959], - "mapped", - [33425] - ], - [ - [194960, 194960], - "mapped", - [33419] - ], - [ - [194961, 194961], - "mapped", - [33437] - ], - [ - [194962, 194962], - "mapped", - [21171] - ], - [ - [194963, 194963], - "mapped", - [33457] - ], - [ - [194964, 194964], - "mapped", - [33459] - ], - [ - [194965, 194965], - "mapped", - [33469] - ], - [ - [194966, 194966], - "mapped", - [33510] - ], - [ - [194967, 194967], - "mapped", - [158524] - ], - [ - [194968, 194968], - "mapped", - [33509] - ], - [ - [194969, 194969], - "mapped", - [33565] - ], - [ - [194970, 194970], - "mapped", - [33635] - ], - [ - [194971, 194971], - "mapped", - [33709] - ], - [ - [194972, 194972], - "mapped", - [33571] - ], - [ - [194973, 194973], - "mapped", - [33725] - ], - [ - [194974, 194974], - "mapped", - [33767] - ], - [ - [194975, 194975], - "mapped", - [33879] - ], - [ - [194976, 194976], - "mapped", - [33619] - ], - [ - [194977, 194977], - "mapped", - [33738] - ], - [ - [194978, 194978], - "mapped", - [33740] - ], - [ - [194979, 194979], - "mapped", - [33756] - ], - [ - [194980, 194980], - "mapped", - [158774] - ], - [ - [194981, 194981], - "mapped", - [159083] - ], - [ - [194982, 194982], - "mapped", - [158933] - ], - [ - [194983, 194983], - "mapped", - [17707] - ], - [ - [194984, 194984], - "mapped", - [34033] - ], - [ - [194985, 194985], - "mapped", - [34035] - ], - [ - [194986, 194986], - "mapped", - [34070] - ], - [ - [194987, 194987], - "mapped", - [160714] - ], - [ - [194988, 194988], - "mapped", - [34148] - ], - [ - [194989, 194989], - "mapped", - [159532] - ], - [ - [194990, 194990], - "mapped", - [17757] - ], - [ - [194991, 194991], - "mapped", - [17761] - ], - [ - [194992, 194992], - "mapped", - [159665] - ], - [ - [194993, 194993], - "mapped", - [159954] - ], - [ - [194994, 194994], - "mapped", - [17771] - ], - [ - [194995, 194995], - "mapped", - [34384] - ], - [ - [194996, 194996], - "mapped", - [34396] - ], - [ - [194997, 194997], - "mapped", - [34407] - ], - [ - [194998, 194998], - "mapped", - [34409] - ], - [ - [194999, 194999], - "mapped", - [34473] - ], - [ - [195e3, 195e3], - "mapped", - [34440] - ], - [ - [195001, 195001], - "mapped", - [34574] - ], - [ - [195002, 195002], - "mapped", - [34530] - ], - [ - [195003, 195003], - "mapped", - [34681] - ], - [ - [195004, 195004], - "mapped", - [34600] - ], - [ - [195005, 195005], - "mapped", - [34667] - ], - [ - [195006, 195006], - "mapped", - [34694] - ], - [[195007, 195007], "disallowed"], - [ - [195008, 195008], - "mapped", - [34785] - ], - [ - [195009, 195009], - "mapped", - [34817] - ], - [ - [195010, 195010], - "mapped", - [17913] - ], - [ - [195011, 195011], - "mapped", - [34912] - ], - [ - [195012, 195012], - "mapped", - [34915] - ], - [ - [195013, 195013], - "mapped", - [161383] - ], - [ - [195014, 195014], - "mapped", - [35031] - ], - [ - [195015, 195015], - "mapped", - [35038] - ], - [ - [195016, 195016], - "mapped", - [17973] - ], - [ - [195017, 195017], - "mapped", - [35066] - ], - [ - [195018, 195018], - "mapped", - [13499] - ], - [ - [195019, 195019], - "mapped", - [161966] - ], - [ - [195020, 195020], - "mapped", - [162150] - ], - [ - [195021, 195021], - "mapped", - [18110] - ], - [ - [195022, 195022], - "mapped", - [18119] - ], - [ - [195023, 195023], - "mapped", - [35488] - ], - [ - [195024, 195024], - "mapped", - [35565] - ], - [ - [195025, 195025], - "mapped", - [35722] - ], - [ - [195026, 195026], - "mapped", - [35925] - ], - [ - [195027, 195027], - "mapped", - [162984] - ], - [ - [195028, 195028], - "mapped", - [36011] - ], - [ - [195029, 195029], - "mapped", - [36033] - ], - [ - [195030, 195030], - "mapped", - [36123] - ], - [ - [195031, 195031], - "mapped", - [36215] - ], - [ - [195032, 195032], - "mapped", - [163631] - ], - [ - [195033, 195033], - "mapped", - [133124] - ], - [ - [195034, 195034], - "mapped", - [36299] - ], - [ - [195035, 195035], - "mapped", - [36284] - ], - [ - [195036, 195036], - "mapped", - [36336] - ], - [ - [195037, 195037], - "mapped", - [133342] - ], - [ - [195038, 195038], - "mapped", - [36564] - ], - [ - [195039, 195039], - "mapped", - [36664] - ], - [ - [195040, 195040], - "mapped", - [165330] - ], - [ - [195041, 195041], - "mapped", - [165357] - ], - [ - [195042, 195042], - "mapped", - [37012] - ], - [ - [195043, 195043], - "mapped", - [37105] - ], - [ - [195044, 195044], - "mapped", - [37137] - ], - [ - [195045, 195045], - "mapped", - [165678] - ], - [ - [195046, 195046], - "mapped", - [37147] - ], - [ - [195047, 195047], - "mapped", - [37432] - ], - [ - [195048, 195048], - "mapped", - [37591] - ], - [ - [195049, 195049], - "mapped", - [37592] - ], - [ - [195050, 195050], - "mapped", - [37500] - ], - [ - [195051, 195051], - "mapped", - [37881] - ], - [ - [195052, 195052], - "mapped", - [37909] - ], - [ - [195053, 195053], - "mapped", - [166906] - ], - [ - [195054, 195054], - "mapped", - [38283] - ], - [ - [195055, 195055], - "mapped", - [18837] - ], - [ - [195056, 195056], - "mapped", - [38327] - ], - [ - [195057, 195057], - "mapped", - [167287] - ], - [ - [195058, 195058], - "mapped", - [18918] - ], - [ - [195059, 195059], - "mapped", - [38595] - ], - [ - [195060, 195060], - "mapped", - [23986] - ], - [ - [195061, 195061], - "mapped", - [38691] - ], - [ - [195062, 195062], - "mapped", - [168261] - ], - [ - [195063, 195063], - "mapped", - [168474] - ], - [ - [195064, 195064], - "mapped", - [19054] - ], - [ - [195065, 195065], - "mapped", - [19062] - ], - [ - [195066, 195066], - "mapped", - [38880] - ], - [ - [195067, 195067], - "mapped", - [168970] - ], - [ - [195068, 195068], - "mapped", - [19122] - ], - [ - [195069, 195069], - "mapped", - [169110] - ], - [ - [195070, 195071], - "mapped", - [38923] - ], - [ - [195072, 195072], - "mapped", - [38953] - ], - [ - [195073, 195073], - "mapped", - [169398] - ], - [ - [195074, 195074], - "mapped", - [39138] - ], - [ - [195075, 195075], - "mapped", - [19251] - ], - [ - [195076, 195076], - "mapped", - [39209] - ], - [ - [195077, 195077], - "mapped", - [39335] - ], - [ - [195078, 195078], - "mapped", - [39362] - ], - [ - [195079, 195079], - "mapped", - [39422] - ], - [ - [195080, 195080], - "mapped", - [19406] - ], - [ - [195081, 195081], - "mapped", - [170800] - ], - [ - [195082, 195082], - "mapped", - [39698] - ], - [ - [195083, 195083], - "mapped", - [4e4] - ], - [ - [195084, 195084], - "mapped", - [40189] - ], - [ - [195085, 195085], - "mapped", - [19662] - ], - [ - [195086, 195086], - "mapped", - [19693] - ], - [ - [195087, 195087], - "mapped", - [40295] - ], - [ - [195088, 195088], - "mapped", - [172238] - ], - [ - [195089, 195089], - "mapped", - [19704] - ], - [ - [195090, 195090], - "mapped", - [172293] - ], - [ - [195091, 195091], - "mapped", - [172558] - ], - [ - [195092, 195092], - "mapped", - [172689] - ], - [ - [195093, 195093], - "mapped", - [40635] - ], - [ - [195094, 195094], - "mapped", - [19798] - ], - [ - [195095, 195095], - "mapped", - [40697] - ], - [ - [195096, 195096], - "mapped", - [40702] - ], - [ - [195097, 195097], - "mapped", - [40709] - ], - [ - [195098, 195098], - "mapped", - [40719] - ], - [ - [195099, 195099], - "mapped", - [40726] - ], - [ - [195100, 195100], - "mapped", - [40763] - ], - [ - [195101, 195101], - "mapped", - [173568] - ], - [[195102, 196605], "disallowed"], - [[196606, 196607], "disallowed"], - [[196608, 262141], "disallowed"], - [[262142, 262143], "disallowed"], - [[262144, 327677], "disallowed"], - [[327678, 327679], "disallowed"], - [[327680, 393213], "disallowed"], - [[393214, 393215], "disallowed"], - [[393216, 458749], "disallowed"], - [[458750, 458751], "disallowed"], - [[458752, 524285], "disallowed"], - [[524286, 524287], "disallowed"], - [[524288, 589821], "disallowed"], - [[589822, 589823], "disallowed"], - [[589824, 655357], "disallowed"], - [[655358, 655359], "disallowed"], - [[655360, 720893], "disallowed"], - [[720894, 720895], "disallowed"], - [[720896, 786429], "disallowed"], - [[786430, 786431], "disallowed"], - [[786432, 851965], "disallowed"], - [[851966, 851967], "disallowed"], - [[851968, 917501], "disallowed"], - [[917502, 917503], "disallowed"], - [[917504, 917504], "disallowed"], - [[917505, 917505], "disallowed"], - [[917506, 917535], "disallowed"], - [[917536, 917631], "disallowed"], - [[917632, 917759], "disallowed"], - [[917760, 917999], "ignored"], - [[918e3, 983037], "disallowed"], - [[983038, 983039], "disallowed"], - [[983040, 1048573], "disallowed"], - [[1048574, 1048575], "disallowed"], - [[1048576, 1114109], "disallowed"], - [[1114110, 1114111], "disallowed"] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js -var require_tr46 = __commonJS({ "node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js"(exports, module) { - var punycode$1 = __require("punycode"); - var mappingTable = require_mappingTable(); - var PROCESSING_OPTIONS = { - TRANSITIONAL: 0, - NONTRANSITIONAL: 1 - }; - function normalize(str$1) { - return str$1.split("\0").map(function(s$1) { - return s$1.normalize("NFC"); - }).join("\0"); - } - function findStatus(val) { - var start = 0; - var end = mappingTable.length - 1; - while (start <= end) { - var mid = Math.floor((start + end) / 2); - var target = mappingTable[mid]; - if (target[0][0] <= val && target[0][1] >= val) return target; - else if (target[0][0] > val) end = mid - 1; - else start = mid + 1; - } - return null; - } - var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - function countSymbols$1(string) { - return string.replace(regexAstralSymbols, "_").length; - } - function mapChars(domain_name, useSTD3, processing_option) { - var hasError = false; - var processed = ""; - var len$1 = countSymbols$1(domain_name); - for (var i$4 = 0; i$4 < len$1; ++i$4) { - var codePoint = domain_name.codePointAt(i$4); - var status = findStatus(codePoint); - switch (status[1]) { - case "disallowed": - hasError = true; - processed += String.fromCodePoint(codePoint); - break; - case "ignored": break; - case "mapped": - processed += String.fromCodePoint.apply(String, status[2]); - break; - case "deviation": - if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) processed += String.fromCodePoint.apply(String, status[2]); - else processed += String.fromCodePoint(codePoint); - break; - case "valid": - processed += String.fromCodePoint(codePoint); - break; - case "disallowed_STD3_mapped": - if (useSTD3) { - hasError = true; - processed += String.fromCodePoint(codePoint); - } else processed += String.fromCodePoint.apply(String, status[2]); - break; - case "disallowed_STD3_valid": - if (useSTD3) hasError = true; - processed += String.fromCodePoint(codePoint); - break; - } - } - return { - string: processed, - error: hasError - }; - } - var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/; - function validateLabel(label, processing_option) { - if (label.substr(0, 4) === "xn--") { - label = punycode$1.toUnicode(label); - processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL; - } - var error = false; - if (normalize(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) error = true; - var len$1 = countSymbols$1(label); - for (var i$4 = 0; i$4 < len$1; ++i$4) { - var status = findStatus(label.codePointAt(i$4)); - if (processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid" || processing === PROCESSING_OPTIONS.NONTRANSITIONAL && status[1] !== "valid" && status[1] !== "deviation") { - error = true; - break; - } - } - return { - label, - error - }; - } - function processing(domain_name, useSTD3, processing_option) { - var result = mapChars(domain_name, useSTD3, processing_option); - result.string = normalize(result.string); - var labels = result.string.split("."); - for (var i$4 = 0; i$4 < labels.length; ++i$4) try { - var validation = validateLabel(labels[i$4]); - labels[i$4] = validation.label; - result.error = result.error || validation.error; - } catch (e) { - result.error = true; - } - return { - string: labels.join("."), - error: result.error - }; - } - module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) { - var result = processing(domain_name, useSTD3, processing_option); - var labels = result.string.split("."); - labels = labels.map(function(l) { - try { - return punycode$1.toASCII(l); - } catch (e) { - result.error = true; - return l; - } - }); - if (verifyDnsLength) { - var total = labels.slice(0, labels.length - 1).join(".").length; - if (total.length > 253 || total.length === 0) result.error = true; - for (var i$4 = 0; i$4 < labels.length; ++i$4) if (labels.length > 63 || labels.length === 0) { - result.error = true; - break; - } - } - if (result.error) return null; - return labels.join("."); - }; - module.exports.toUnicode = function(domain_name, useSTD3) { - var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL); - return { - domain: result.string, - error: result.error - }; - }; - module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS; -} }); - -//#endregion -//#region node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js -var require_url_state_machine = __commonJS({ "node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js"(exports, module) { - const punycode = __require("punycode"); - const tr46 = require_tr46(); - const specialSchemes = { - ftp: 21, - file: null, - gopher: 70, - http: 80, - https: 443, - ws: 80, - wss: 443 - }; - const failure = Symbol("failure"); - function countSymbols(str$1) { - return punycode.ucs2.decode(str$1).length; - } - function at(input, idx) { - const c = input[idx]; - return isNaN(c) ? void 0 : String.fromCodePoint(c); - } - function isASCIIDigit(c) { - return c >= 48 && c <= 57; - } - function isASCIIAlpha(c) { - return c >= 65 && c <= 90 || c >= 97 && c <= 122; - } - function isASCIIAlphanumeric(c) { - return isASCIIAlpha(c) || isASCIIDigit(c); - } - function isASCIIHex(c) { - return isASCIIDigit(c) || c >= 65 && c <= 70 || c >= 97 && c <= 102; - } - function isSingleDot(buffer$1) { - return buffer$1 === "." || buffer$1.toLowerCase() === "%2e"; - } - function isDoubleDot(buffer$1) { - buffer$1 = buffer$1.toLowerCase(); - return buffer$1 === ".." || buffer$1 === "%2e." || buffer$1 === ".%2e" || buffer$1 === "%2e%2e"; - } - function isWindowsDriveLetterCodePoints(cp1, cp2) { - return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124); - } - function isWindowsDriveLetterString(string) { - return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|"); - } - function isNormalizedWindowsDriveLetterString(string) { - return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":"; - } - function containsForbiddenHostCodePoint(string) { - return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1; - } - function containsForbiddenHostCodePointExcludingPercent(string) { - return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1; - } - function isSpecialScheme(scheme) { - return specialSchemes[scheme] !== void 0; - } - function isSpecial(url) { - return isSpecialScheme(url.scheme); - } - function defaultPort(scheme) { - return specialSchemes[scheme]; - } - function percentEncode(c) { - let hex = c.toString(16).toUpperCase(); - if (hex.length === 1) hex = "0" + hex; - return "%" + hex; - } - function utf8PercentEncode(c) { - const buf = new Buffer(c); - let str$1 = ""; - for (let i$4 = 0; i$4 < buf.length; ++i$4) str$1 += percentEncode(buf[i$4]); - return str$1; - } - function utf8PercentDecode(str$1) { - const input = new Buffer(str$1); - const output = []; - for (let i$4 = 0; i$4 < input.length; ++i$4) if (input[i$4] !== 37) output.push(input[i$4]); - else if (input[i$4] === 37 && isASCIIHex(input[i$4 + 1]) && isASCIIHex(input[i$4 + 2])) { - output.push(parseInt(input.slice(i$4 + 1, i$4 + 3).toString(), 16)); - i$4 += 2; - } else output.push(input[i$4]); - return new Buffer(output).toString(); - } - function isC0ControlPercentEncode(c) { - return c <= 31 || c > 126; - } - const extraPathPercentEncodeSet = new Set([ - 32, - 34, - 35, - 60, - 62, - 63, - 96, - 123, - 125 - ]); - function isPathPercentEncode(c) { - return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c); - } - const extraUserinfoPercentEncodeSet = new Set([ - 47, - 58, - 59, - 61, - 64, - 91, - 92, - 93, - 94, - 124 - ]); - function isUserinfoPercentEncode(c) { - return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); - } - function percentEncodeChar(c, encodeSetPredicate) { - const cStr = String.fromCodePoint(c); - if (encodeSetPredicate(c)) return utf8PercentEncode(cStr); - return cStr; - } - function parseIPv4Number(input) { - let R = 10; - if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") { - input = input.substring(2); - R = 16; - } else if (input.length >= 2 && input.charAt(0) === "0") { - input = input.substring(1); - R = 8; - } - if (input === "") return 0; - const regex$1 = R === 10 ? /[^0-9]/ : R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/; - if (regex$1.test(input)) return failure; - return parseInt(input, R); - } - function parseIPv4(input) { - const parts = input.split("."); - if (parts[parts.length - 1] === "") { - if (parts.length > 1) parts.pop(); - } - if (parts.length > 4) return input; - const numbers = []; - for (const part of parts) { - if (part === "") return input; - const n = parseIPv4Number(part); - if (n === failure) return input; - numbers.push(n); - } - for (let i$4 = 0; i$4 < numbers.length - 1; ++i$4) if (numbers[i$4] > 255) return failure; - if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) return failure; - let ipv4 = numbers.pop(); - let counter = 0; - for (const n of numbers) { - ipv4 += n * Math.pow(256, 3 - counter); - ++counter; - } - return ipv4; - } - function serializeIPv4(address) { - let output = ""; - let n = address; - for (let i$4 = 1; i$4 <= 4; ++i$4) { - output = String(n % 256) + output; - if (i$4 !== 4) output = "." + output; - n = Math.floor(n / 256); - } - return output; - } - function parseIPv6(input) { - const address = [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ]; - let pieceIndex = 0; - let compress = null; - let pointer = 0; - input = punycode.ucs2.decode(input); - if (input[pointer] === 58) { - if (input[pointer + 1] !== 58) return failure; - pointer += 2; - ++pieceIndex; - compress = pieceIndex; - } - while (pointer < input.length) { - if (pieceIndex === 8) return failure; - if (input[pointer] === 58) { - if (compress !== null) return failure; - ++pointer; - ++pieceIndex; - compress = pieceIndex; - continue; - } - let value = 0; - let length = 0; - while (length < 4 && isASCIIHex(input[pointer])) { - value = value * 16 + parseInt(at(input, pointer), 16); - ++pointer; - ++length; - } - if (input[pointer] === 46) { - if (length === 0) return failure; - pointer -= length; - if (pieceIndex > 6) return failure; - let numbersSeen = 0; - while (input[pointer] !== void 0) { - let ipv4Piece = null; - if (numbersSeen > 0) if (input[pointer] === 46 && numbersSeen < 4) ++pointer; - else return failure; - if (!isASCIIDigit(input[pointer])) return failure; - while (isASCIIDigit(input[pointer])) { - const number = parseInt(at(input, pointer)); - if (ipv4Piece === null) ipv4Piece = number; - else if (ipv4Piece === 0) return failure; - else ipv4Piece = ipv4Piece * 10 + number; - if (ipv4Piece > 255) return failure; - ++pointer; - } - address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece; - ++numbersSeen; - if (numbersSeen === 2 || numbersSeen === 4) ++pieceIndex; - } - if (numbersSeen !== 4) return failure; - break; - } else if (input[pointer] === 58) { - ++pointer; - if (input[pointer] === void 0) return failure; - } else if (input[pointer] !== void 0) return failure; - address[pieceIndex] = value; - ++pieceIndex; - } - if (compress !== null) { - let swaps = pieceIndex - compress; - pieceIndex = 7; - while (pieceIndex !== 0 && swaps > 0) { - const temp = address[compress + swaps - 1]; - address[compress + swaps - 1] = address[pieceIndex]; - address[pieceIndex] = temp; - --pieceIndex; - --swaps; - } - } else if (compress === null && pieceIndex !== 8) return failure; - return address; - } - function serializeIPv6(address) { - let output = ""; - const seqResult = findLongestZeroSequence(address); - const compress = seqResult.idx; - let ignore0 = false; - for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) { - if (ignore0 && address[pieceIndex] === 0) continue; - else if (ignore0) ignore0 = false; - if (compress === pieceIndex) { - const separator = pieceIndex === 0 ? "::" : ":"; - output += separator; - ignore0 = true; - continue; - } - output += address[pieceIndex].toString(16); - if (pieceIndex !== 7) output += ":"; - } - return output; - } - function parseHost(input, isSpecialArg) { - if (input[0] === "[") { - if (input[input.length - 1] !== "]") return failure; - return parseIPv6(input.substring(1, input.length - 1)); - } - if (!isSpecialArg) return parseOpaqueHost(input); - const domain = utf8PercentDecode(input); - const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false); - if (asciiDomain === null) return failure; - if (containsForbiddenHostCodePoint(asciiDomain)) return failure; - const ipv4Host = parseIPv4(asciiDomain); - if (typeof ipv4Host === "number" || ipv4Host === failure) return ipv4Host; - return asciiDomain; - } - function parseOpaqueHost(input) { - if (containsForbiddenHostCodePointExcludingPercent(input)) return failure; - let output = ""; - const decoded = punycode.ucs2.decode(input); - for (let i$4 = 0; i$4 < decoded.length; ++i$4) output += percentEncodeChar(decoded[i$4], isC0ControlPercentEncode); - return output; - } - function findLongestZeroSequence(arr$1) { - let maxIdx = null; - let maxLen = 1; - let currStart = null; - let currLen = 0; - for (let i$4 = 0; i$4 < arr$1.length; ++i$4) if (arr$1[i$4] !== 0) { - if (currLen > maxLen) { - maxIdx = currStart; - maxLen = currLen; - } - currStart = null; - currLen = 0; - } else { - if (currStart === null) currStart = i$4; - ++currLen; - } - if (currLen > maxLen) { - maxIdx = currStart; - maxLen = currLen; - } - return { - idx: maxIdx, - len: maxLen - }; - } - function serializeHost(host) { - if (typeof host === "number") return serializeIPv4(host); - if (host instanceof Array) return "[" + serializeIPv6(host) + "]"; - return host; - } - function trimControlChars(url) { - return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, ""); - } - function trimTabAndNewline(url) { - return url.replace(/\u0009|\u000A|\u000D/g, ""); - } - function shortenPath(url) { - const path = url.path; - if (path.length === 0) return; - if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) return; - path.pop(); - } - function includesCredentials(url) { - return url.username !== "" || url.password !== ""; - } - function cannotHaveAUsernamePasswordPort(url) { - return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file"; - } - function isNormalizedWindowsDriveLetter(string) { - return /^[A-Za-z]:$/.test(string); - } - function URLStateMachine(input, base, encodingOverride, url, stateOverride) { - this.pointer = 0; - this.input = input; - this.base = base || null; - this.encodingOverride = encodingOverride || "utf-8"; - this.stateOverride = stateOverride; - this.url = url; - this.failure = false; - this.parseError = false; - if (!this.url) { - this.url = { - scheme: "", - username: "", - password: "", - host: null, - port: null, - path: [], - query: null, - fragment: null, - cannotBeABaseURL: false - }; - const res$1 = trimControlChars(this.input); - if (res$1 !== this.input) this.parseError = true; - this.input = res$1; - } - const res = trimTabAndNewline(this.input); - if (res !== this.input) this.parseError = true; - this.input = res; - this.state = stateOverride || "scheme start"; - this.buffer = ""; - this.atFlag = false; - this.arrFlag = false; - this.passwordTokenSeenFlag = false; - this.input = punycode.ucs2.decode(this.input); - for (; this.pointer <= this.input.length; ++this.pointer) { - const c = this.input[this.pointer]; - const cStr = isNaN(c) ? void 0 : String.fromCodePoint(c); - const ret = this["parse " + this.state](c, cStr); - if (!ret) break; - else if (ret === failure) { - this.failure = true; - break; - } - } - } - URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) { - if (isASCIIAlpha(c)) { - this.buffer += cStr.toLowerCase(); - this.state = "scheme"; - } else if (!this.stateOverride) { - this.state = "no scheme"; - --this.pointer; - } else { - this.parseError = true; - return failure; - } - return true; - }; - URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) { - if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) this.buffer += cStr.toLowerCase(); - else if (c === 58) { - if (this.stateOverride) { - if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) return false; - if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) return false; - if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") return false; - if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) return false; - } - this.url.scheme = this.buffer; - this.buffer = ""; - if (this.stateOverride) return false; - if (this.url.scheme === "file") { - if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) this.parseError = true; - this.state = "file"; - } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) this.state = "special relative or authority"; - else if (isSpecial(this.url)) this.state = "special authority slashes"; - else if (this.input[this.pointer + 1] === 47) { - this.state = "path or authority"; - ++this.pointer; - } else { - this.url.cannotBeABaseURL = true; - this.url.path.push(""); - this.state = "cannot-be-a-base-URL path"; - } - } else if (!this.stateOverride) { - this.buffer = ""; - this.state = "no scheme"; - this.pointer = -1; - } else { - this.parseError = true; - return failure; - } - return true; - }; - URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) { - if (this.base === null || this.base.cannotBeABaseURL && c !== 35) return failure; - else if (this.base.cannotBeABaseURL && c === 35) { - this.url.scheme = this.base.scheme; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.url.cannotBeABaseURL = true; - this.state = "fragment"; - } else if (this.base.scheme === "file") { - this.state = "file"; - --this.pointer; - } else { - this.state = "relative"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) { - if (c === 47 && this.input[this.pointer + 1] === 47) { - this.state = "special authority ignore slashes"; - ++this.pointer; - } else { - this.parseError = true; - this.state = "relative"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) { - if (c === 47) this.state = "authority"; - else { - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse relative"] = function parseRelative(c) { - this.url.scheme = this.base.scheme; - if (isNaN(c)) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - } else if (c === 47) this.state = "relative slash"; - else if (c === 63) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.state = "fragment"; - } else if (isSpecial(this.url) && c === 92) { - this.parseError = true; - this.state = "relative slash"; - } else { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(0, this.base.path.length - 1); - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) { - if (isSpecial(this.url) && (c === 47 || c === 92)) { - if (c === 92) this.parseError = true; - this.state = "special authority ignore slashes"; - } else if (c === 47) this.state = "authority"; - else { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) { - if (c === 47 && this.input[this.pointer + 1] === 47) { - this.state = "special authority ignore slashes"; - ++this.pointer; - } else { - this.parseError = true; - this.state = "special authority ignore slashes"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) { - if (c !== 47 && c !== 92) { - this.state = "authority"; - --this.pointer; - } else this.parseError = true; - return true; - }; - URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) { - if (c === 64) { - this.parseError = true; - if (this.atFlag) this.buffer = "%40" + this.buffer; - this.atFlag = true; - const len$1 = countSymbols(this.buffer); - for (let pointer = 0; pointer < len$1; ++pointer) { - const codePoint = this.buffer.codePointAt(pointer); - if (codePoint === 58 && !this.passwordTokenSeenFlag) { - this.passwordTokenSeenFlag = true; - continue; - } - const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode); - if (this.passwordTokenSeenFlag) this.url.password += encodedCodePoints; - else this.url.username += encodedCodePoints; - } - this.buffer = ""; - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) { - if (this.atFlag && this.buffer === "") { - this.parseError = true; - return failure; - } - this.pointer -= countSymbols(this.buffer) + 1; - this.buffer = ""; - this.state = "host"; - } else this.buffer += cStr; - return true; - }; - URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) { - if (this.stateOverride && this.url.scheme === "file") { - --this.pointer; - this.state = "file host"; - } else if (c === 58 && !this.arrFlag) { - if (this.buffer === "") { - this.parseError = true; - return failure; - } - const host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) return failure; - this.url.host = host; - this.buffer = ""; - this.state = "port"; - if (this.stateOverride === "hostname") return false; - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) { - --this.pointer; - if (isSpecial(this.url) && this.buffer === "") { - this.parseError = true; - return failure; - } else if (this.stateOverride && this.buffer === "" && (includesCredentials(this.url) || this.url.port !== null)) { - this.parseError = true; - return false; - } - const host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) return failure; - this.url.host = host; - this.buffer = ""; - this.state = "path start"; - if (this.stateOverride) return false; - } else { - if (c === 91) this.arrFlag = true; - else if (c === 93) this.arrFlag = false; - this.buffer += cStr; - } - return true; - }; - URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) { - if (isASCIIDigit(c)) this.buffer += cStr; - else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92 || this.stateOverride) { - if (this.buffer !== "") { - const port = parseInt(this.buffer); - if (port > Math.pow(2, 16) - 1) { - this.parseError = true; - return failure; - } - this.url.port = port === defaultPort(this.url.scheme) ? null : port; - this.buffer = ""; - } - if (this.stateOverride) return false; - this.state = "path start"; - --this.pointer; - } else { - this.parseError = true; - return failure; - } - return true; - }; - const fileOtherwiseCodePoints = new Set([ - 47, - 92, - 63, - 35 - ]); - URLStateMachine.prototype["parse file"] = function parseFile(c) { - this.url.scheme = "file"; - if (c === 47 || c === 92) { - if (c === 92) this.parseError = true; - this.state = "file slash"; - } else if (this.base !== null && this.base.scheme === "file") if (isNaN(c)) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - } else if (c === 63) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.state = "fragment"; - } else { - if (this.input.length - this.pointer - 1 === 0 || !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) || this.input.length - this.pointer - 1 >= 2 && !fileOtherwiseCodePoints.has(this.input[this.pointer + 2])) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - shortenPath(this.url); - } else this.parseError = true; - this.state = "path"; - --this.pointer; - } - else { - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) { - if (c === 47 || c === 92) { - if (c === 92) this.parseError = true; - this.state = "file host"; - } else { - if (this.base !== null && this.base.scheme === "file") if (isNormalizedWindowsDriveLetterString(this.base.path[0])) this.url.path.push(this.base.path[0]); - else this.url.host = this.base.host; - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) { - if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) { - --this.pointer; - if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) { - this.parseError = true; - this.state = "path"; - } else if (this.buffer === "") { - this.url.host = ""; - if (this.stateOverride) return false; - this.state = "path start"; - } else { - let host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) return failure; - if (host === "localhost") host = ""; - this.url.host = host; - if (this.stateOverride) return false; - this.buffer = ""; - this.state = "path start"; - } - } else this.buffer += cStr; - return true; - }; - URLStateMachine.prototype["parse path start"] = function parsePathStart(c) { - if (isSpecial(this.url)) { - if (c === 92) this.parseError = true; - this.state = "path"; - if (c !== 47 && c !== 92) --this.pointer; - } else if (!this.stateOverride && c === 63) { - this.url.query = ""; - this.state = "query"; - } else if (!this.stateOverride && c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } else if (c !== void 0) { - this.state = "path"; - if (c !== 47) --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse path"] = function parsePath(c) { - if (isNaN(c) || c === 47 || isSpecial(this.url) && c === 92 || !this.stateOverride && (c === 63 || c === 35)) { - if (isSpecial(this.url) && c === 92) this.parseError = true; - if (isDoubleDot(this.buffer)) { - shortenPath(this.url); - if (c !== 47 && !(isSpecial(this.url) && c === 92)) this.url.path.push(""); - } else if (isSingleDot(this.buffer) && c !== 47 && !(isSpecial(this.url) && c === 92)) this.url.path.push(""); - else if (!isSingleDot(this.buffer)) { - if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) { - if (this.url.host !== "" && this.url.host !== null) { - this.parseError = true; - this.url.host = ""; - } - this.buffer = this.buffer[0] + ":"; - } - this.url.path.push(this.buffer); - } - this.buffer = ""; - if (this.url.scheme === "file" && (c === void 0 || c === 63 || c === 35)) while (this.url.path.length > 1 && this.url.path[0] === "") { - this.parseError = true; - this.url.path.shift(); - } - if (c === 63) { - this.url.query = ""; - this.state = "query"; - } - if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } - } else { - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true; - this.buffer += percentEncodeChar(c, isPathPercentEncode); - } - return true; - }; - URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) { - if (c === 63) { - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } else { - if (!isNaN(c) && c !== 37) this.parseError = true; - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true; - if (!isNaN(c)) this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode); - } - return true; - }; - URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) { - if (isNaN(c) || !this.stateOverride && c === 35) { - if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") this.encodingOverride = "utf-8"; - const buffer$1 = new Buffer(this.buffer); - for (let i$4 = 0; i$4 < buffer$1.length; ++i$4) if (buffer$1[i$4] < 33 || buffer$1[i$4] > 126 || buffer$1[i$4] === 34 || buffer$1[i$4] === 35 || buffer$1[i$4] === 60 || buffer$1[i$4] === 62) this.url.query += percentEncode(buffer$1[i$4]); - else this.url.query += String.fromCodePoint(buffer$1[i$4]); - this.buffer = ""; - if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } - } else { - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true; - this.buffer += cStr; - } - return true; - }; - URLStateMachine.prototype["parse fragment"] = function parseFragment(c) { - if (isNaN(c)) {} else if (c === 0) this.parseError = true; - else { - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true; - this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode); - } - return true; - }; - function serializeURL(url, excludeFragment) { - let output = url.scheme + ":"; - if (url.host !== null) { - output += "//"; - if (url.username !== "" || url.password !== "") { - output += url.username; - if (url.password !== "") output += ":" + url.password; - output += "@"; - } - output += serializeHost(url.host); - if (url.port !== null) output += ":" + url.port; - } else if (url.host === null && url.scheme === "file") output += "//"; - if (url.cannotBeABaseURL) output += url.path[0]; - else for (const string of url.path) output += "/" + string; - if (url.query !== null) output += "?" + url.query; - if (!excludeFragment && url.fragment !== null) output += "#" + url.fragment; - return output; - } - function serializeOrigin(tuple) { - let result = tuple.scheme + "://"; - result += serializeHost(tuple.host); - if (tuple.port !== null) result += ":" + tuple.port; - return result; - } - module.exports.serializeURL = serializeURL; - module.exports.serializeURLOrigin = function(url) { - switch (url.scheme) { - case "blob": try { - return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0])); - } catch (e) { - return "null"; - } - case "ftp": - case "gopher": - case "http": - case "https": - case "ws": - case "wss": return serializeOrigin({ - scheme: url.scheme, - host: url.host, - port: url.port - }); - case "file": return "file://"; - default: return "null"; - } - }; - module.exports.basicURLParse = function(input, options) { - if (options === void 0) options = {}; - const usm$1 = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride); - if (usm$1.failure) return "failure"; - return usm$1.url; - }; - module.exports.setTheUsername = function(url, username) { - url.username = ""; - const decoded = punycode.ucs2.decode(username); - for (let i$4 = 0; i$4 < decoded.length; ++i$4) url.username += percentEncodeChar(decoded[i$4], isUserinfoPercentEncode); - }; - module.exports.setThePassword = function(url, password) { - url.password = ""; - const decoded = punycode.ucs2.decode(password); - for (let i$4 = 0; i$4 < decoded.length; ++i$4) url.password += percentEncodeChar(decoded[i$4], isUserinfoPercentEncode); - }; - module.exports.serializeHost = serializeHost; - module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort; - module.exports.serializeInteger = function(integer) { - return String(integer); - }; - module.exports.parseURL = function(input, options) { - if (options === void 0) options = {}; - return module.exports.basicURLParse(input, { - baseURL: options.baseURL, - encodingOverride: options.encodingOverride - }); - }; -} }); - -//#endregion -//#region node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js -var require_URL_impl = __commonJS({ "node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js"(exports) { - const usm = require_url_state_machine(); - exports.implementation = class URLImpl { - constructor(constructorArgs) { - const url = constructorArgs[0]; - const base = constructorArgs[1]; - let parsedBase = null; - if (base !== void 0) { - parsedBase = usm.basicURLParse(base); - if (parsedBase === "failure") throw new TypeError("Invalid base URL"); - } - const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase }); - if (parsedURL === "failure") throw new TypeError("Invalid URL"); - this._url = parsedURL; - } - get href() { - return usm.serializeURL(this._url); - } - set href(v) { - const parsedURL = usm.basicURLParse(v); - if (parsedURL === "failure") throw new TypeError("Invalid URL"); - this._url = parsedURL; - } - get origin() { - return usm.serializeURLOrigin(this._url); - } - get protocol() { - return this._url.scheme + ":"; - } - set protocol(v) { - usm.basicURLParse(v + ":", { - url: this._url, - stateOverride: "scheme start" - }); - } - get username() { - return this._url.username; - } - set username(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) return; - usm.setTheUsername(this._url, v); - } - get password() { - return this._url.password; - } - set password(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) return; - usm.setThePassword(this._url, v); - } - get host() { - const url = this._url; - if (url.host === null) return ""; - if (url.port === null) return usm.serializeHost(url.host); - return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port); - } - set host(v) { - if (this._url.cannotBeABaseURL) return; - usm.basicURLParse(v, { - url: this._url, - stateOverride: "host" - }); - } - get hostname() { - if (this._url.host === null) return ""; - return usm.serializeHost(this._url.host); - } - set hostname(v) { - if (this._url.cannotBeABaseURL) return; - usm.basicURLParse(v, { - url: this._url, - stateOverride: "hostname" - }); - } - get port() { - if (this._url.port === null) return ""; - return usm.serializeInteger(this._url.port); - } - set port(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) return; - if (v === "") this._url.port = null; - else usm.basicURLParse(v, { - url: this._url, - stateOverride: "port" - }); - } - get pathname() { - if (this._url.cannotBeABaseURL) return this._url.path[0]; - if (this._url.path.length === 0) return ""; - return "/" + this._url.path.join("/"); - } - set pathname(v) { - if (this._url.cannotBeABaseURL) return; - this._url.path = []; - usm.basicURLParse(v, { - url: this._url, - stateOverride: "path start" - }); - } - get search() { - if (this._url.query === null || this._url.query === "") return ""; - return "?" + this._url.query; - } - set search(v) { - const url = this._url; - if (v === "") { - url.query = null; - return; - } - const input = v[0] === "?" ? v.substring(1) : v; - url.query = ""; - usm.basicURLParse(input, { - url, - stateOverride: "query" - }); - } - get hash() { - if (this._url.fragment === null || this._url.fragment === "") return ""; - return "#" + this._url.fragment; - } - set hash(v) { - if (v === "") { - this._url.fragment = null; - return; - } - const input = v[0] === "#" ? v.substring(1) : v; - this._url.fragment = ""; - usm.basicURLParse(input, { - url: this._url, - stateOverride: "fragment" - }); - } - toJSON() { - return this.href; - } - }; -} }); - -//#endregion -//#region node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js -var require_URL = __commonJS({ "node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js"(exports, module) { - const conversions = require_lib$2(); - const utils = require_utils(); - const Impl = require_URL_impl(); - const impl = utils.implSymbol; - function URL$2(url) { - if (!this || this[impl] || !(this instanceof URL$2)) throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - if (arguments.length < 1) throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present."); - const args = []; - for (let i$4 = 0; i$4 < arguments.length && i$4 < 2; ++i$4) args[i$4] = arguments[i$4]; - args[0] = conversions["USVString"](args[0]); - if (args[1] !== void 0) args[1] = conversions["USVString"](args[1]); - module.exports.setup(this, args); - } - URL$2.prototype.toJSON = function toJSON() { - if (!this || !module.exports.is(this)) throw new TypeError("Illegal invocation"); - const args = []; - for (let i$4 = 0; i$4 < arguments.length && i$4 < 0; ++i$4) args[i$4] = arguments[i$4]; - return this[impl].toJSON.apply(this[impl], args); - }; - Object.defineProperty(URL$2.prototype, "href", { - get() { - return this[impl].href; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].href = V; - }, - enumerable: true, - configurable: true - }); - URL$2.prototype.toString = function() { - if (!this || !module.exports.is(this)) throw new TypeError("Illegal invocation"); - return this.href; - }; - Object.defineProperty(URL$2.prototype, "origin", { - get() { - return this[impl].origin; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "protocol", { - get() { - return this[impl].protocol; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].protocol = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "username", { - get() { - return this[impl].username; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].username = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "password", { - get() { - return this[impl].password; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].password = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "host", { - get() { - return this[impl].host; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].host = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "hostname", { - get() { - return this[impl].hostname; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].hostname = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "port", { - get() { - return this[impl].port; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].port = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "pathname", { - get() { - return this[impl].pathname; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].pathname = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "search", { - get() { - return this[impl].search; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].search = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL$2.prototype, "hash", { - get() { - return this[impl].hash; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].hash = V; - }, - enumerable: true, - configurable: true - }); - module.exports = { - is(obj) { - return !!obj && obj[impl] instanceof Impl.implementation; - }, - create(constructorArgs, privateData$1) { - let obj = Object.create(URL$2.prototype); - this.setup(obj, constructorArgs, privateData$1); - return obj; - }, - setup(obj, constructorArgs, privateData$1) { - if (!privateData$1) privateData$1 = {}; - privateData$1.wrapper = obj; - obj[impl] = new Impl.implementation(constructorArgs, privateData$1); - obj[impl][utils.wrapperSymbol] = obj; - }, - interface: URL$2, - expose: { - Window: { URL: URL$2 }, - Worker: { URL: URL$2 } - } - }; -} }); - -//#endregion -//#region node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js -var require_public_api = __commonJS({ "node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js"(exports) { - exports.URL = require_URL().interface; - exports.serializeURL = require_url_state_machine().serializeURL; - exports.serializeURLOrigin = require_url_state_machine().serializeURLOrigin; - exports.basicURLParse = require_url_state_machine().basicURLParse; - exports.setTheUsername = require_url_state_machine().setTheUsername; - exports.setThePassword = require_url_state_machine().setThePassword; - exports.serializeHost = require_url_state_machine().serializeHost; - exports.serializeInteger = require_url_state_machine().serializeInteger; - exports.parseURL = require_url_state_machine().parseURL; -} }); - -//#endregion -//#region node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.js -var require_safer = __commonJS({ "node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.js"(exports, module) { - var buffer = __require("buffer"); - var Buffer$9 = buffer.Buffer; - var safer = {}; - var key; - for (key in buffer) { - if (!buffer.hasOwnProperty(key)) continue; - if (key === "SlowBuffer" || key === "Buffer") continue; - safer[key] = buffer[key]; - } - var Safer = safer.Buffer = {}; - for (key in Buffer$9) { - if (!Buffer$9.hasOwnProperty(key)) continue; - if (key === "allocUnsafe" || key === "allocUnsafeSlow") continue; - Safer[key] = Buffer$9[key]; - } - safer.Buffer.prototype = Buffer$9.prototype; - if (!Safer.from || Safer.from === Uint8Array.from) Safer.from = function(value, encodingOrOffset, length) { - if (typeof value === "number") throw new TypeError("The \"value\" argument must not be of type number. Received type " + typeof value); - if (value && typeof value.length === "undefined") throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value); - return Buffer$9(value, encodingOrOffset, length); - }; - if (!Safer.alloc) Safer.alloc = function(size, fill, encoding) { - if (typeof size !== "number") throw new TypeError("The \"size\" argument must be of type number. Received type " + typeof size); - if (size < 0 || size >= 2 * (1 << 30)) throw new RangeError("The value \"" + size + "\" is invalid for option \"size\""); - var buf = Buffer$9(size); - if (!fill || fill.length === 0) buf.fill(0); - else if (typeof encoding === "string") buf.fill(fill, encoding); - else buf.fill(fill); - return buf; - }; - if (!safer.kStringMaxLength) try { - safer.kStringMaxLength = process.binding("buffer").kStringMaxLength; - } catch (e) {} - if (!safer.constants) { - safer.constants = { MAX_LENGTH: safer.kMaxLength }; - if (safer.kStringMaxLength) safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength; - } - module.exports = safer; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.js -var require_bom_handling = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.js"(exports) { - var BOMChar = ""; - exports.PrependBOM = PrependBOMWrapper; - function PrependBOMWrapper(encoder, options) { - this.encoder = encoder; - this.addBOM = true; - } - PrependBOMWrapper.prototype.write = function(str$1) { - if (this.addBOM) { - str$1 = BOMChar + str$1; - this.addBOM = false; - } - return this.encoder.write(str$1); - }; - PrependBOMWrapper.prototype.end = function() { - return this.encoder.end(); - }; - exports.StripBOM = StripBOMWrapper; - function StripBOMWrapper(decoder, options) { - this.decoder = decoder; - this.pass = false; - this.options = options || {}; - } - StripBOMWrapper.prototype.write = function(buf) { - var res = this.decoder.write(buf); - if (this.pass || !res) return res; - if (res[0] === BOMChar) { - res = res.slice(1); - if (typeof this.options.stripBOM === "function") this.options.stripBOM(); - } - this.pass = true; - return res; - }; - StripBOMWrapper.prototype.end = function() { - return this.decoder.end(); - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.js -var require_internal = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.js"(exports, module) { - var Buffer$8 = require_safer().Buffer; - module.exports = { - utf8: { - type: "_internal", - bomAware: true - }, - cesu8: { - type: "_internal", - bomAware: true - }, - unicode11utf8: "utf8", - ucs2: { - type: "_internal", - bomAware: true - }, - utf16le: "ucs2", - binary: { type: "_internal" }, - base64: { type: "_internal" }, - hex: { type: "_internal" }, - _internal: InternalCodec - }; - function InternalCodec(codecOptions, iconv$1) { - this.enc = codecOptions.encodingName; - this.bomAware = codecOptions.bomAware; - if (this.enc === "base64") this.encoder = InternalEncoderBase64; - else if (this.enc === "cesu8") { - this.enc = "utf8"; - this.encoder = InternalEncoderCesu8; - if (Buffer$8.from("eda0bdedb2a9", "hex").toString() !== "💩") { - this.decoder = InternalDecoderCesu8; - this.defaultCharUnicode = iconv$1.defaultCharUnicode; - } - } - } - InternalCodec.prototype.encoder = InternalEncoder; - InternalCodec.prototype.decoder = InternalDecoder; - var StringDecoder = __require("string_decoder").StringDecoder; - if (!StringDecoder.prototype.end) StringDecoder.prototype.end = function() {}; - function InternalDecoder(options, codec) { - this.decoder = new StringDecoder(codec.enc); - } - InternalDecoder.prototype.write = function(buf) { - if (!Buffer$8.isBuffer(buf)) buf = Buffer$8.from(buf); - return this.decoder.write(buf); - }; - InternalDecoder.prototype.end = function() { - return this.decoder.end(); - }; - function InternalEncoder(options, codec) { - this.enc = codec.enc; - } - InternalEncoder.prototype.write = function(str$1) { - return Buffer$8.from(str$1, this.enc); - }; - InternalEncoder.prototype.end = function() {}; - function InternalEncoderBase64(options, codec) { - this.prevStr = ""; - } - InternalEncoderBase64.prototype.write = function(str$1) { - str$1 = this.prevStr + str$1; - var completeQuads = str$1.length - str$1.length % 4; - this.prevStr = str$1.slice(completeQuads); - str$1 = str$1.slice(0, completeQuads); - return Buffer$8.from(str$1, "base64"); - }; - InternalEncoderBase64.prototype.end = function() { - return Buffer$8.from(this.prevStr, "base64"); - }; - function InternalEncoderCesu8(options, codec) {} - InternalEncoderCesu8.prototype.write = function(str$1) { - var buf = Buffer$8.alloc(str$1.length * 3), bufIdx = 0; - for (var i$4 = 0; i$4 < str$1.length; i$4++) { - var charCode = str$1.charCodeAt(i$4); - if (charCode < 128) buf[bufIdx++] = charCode; - else if (charCode < 2048) { - buf[bufIdx++] = 192 + (charCode >>> 6); - buf[bufIdx++] = 128 + (charCode & 63); - } else { - buf[bufIdx++] = 224 + (charCode >>> 12); - buf[bufIdx++] = 128 + (charCode >>> 6 & 63); - buf[bufIdx++] = 128 + (charCode & 63); - } - } - return buf.slice(0, bufIdx); - }; - InternalEncoderCesu8.prototype.end = function() {}; - function InternalDecoderCesu8(options, codec) { - this.acc = 0; - this.contBytes = 0; - this.accBytes = 0; - this.defaultCharUnicode = codec.defaultCharUnicode; - } - InternalDecoderCesu8.prototype.write = function(buf) { - var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, res = ""; - for (var i$4 = 0; i$4 < buf.length; i$4++) { - var curByte = buf[i$4]; - if ((curByte & 192) !== 128) { - if (contBytes > 0) { - res += this.defaultCharUnicode; - contBytes = 0; - } - if (curByte < 128) res += String.fromCharCode(curByte); - else if (curByte < 224) { - acc = curByte & 31; - contBytes = 1; - accBytes = 1; - } else if (curByte < 240) { - acc = curByte & 15; - contBytes = 2; - accBytes = 1; - } else res += this.defaultCharUnicode; - } else if (contBytes > 0) { - acc = acc << 6 | curByte & 63; - contBytes--; - accBytes++; - if (contBytes === 0) if (accBytes === 2 && acc < 128 && acc > 0) res += this.defaultCharUnicode; - else if (accBytes === 3 && acc < 2048) res += this.defaultCharUnicode; - else res += String.fromCharCode(acc); - } else res += this.defaultCharUnicode; - } - this.acc = acc; - this.contBytes = contBytes; - this.accBytes = accBytes; - return res; - }; - InternalDecoderCesu8.prototype.end = function() { - var res = 0; - if (this.contBytes > 0) res += this.defaultCharUnicode; - return res; - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.js -var require_utf32 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.js"(exports) { - var Buffer$7 = require_safer().Buffer; - exports._utf32 = Utf32Codec; - function Utf32Codec(codecOptions, iconv$1) { - this.iconv = iconv$1; - this.bomAware = true; - this.isLE = codecOptions.isLE; - } - exports.utf32le = { - type: "_utf32", - isLE: true - }; - exports.utf32be = { - type: "_utf32", - isLE: false - }; - exports.ucs4le = "utf32le"; - exports.ucs4be = "utf32be"; - Utf32Codec.prototype.encoder = Utf32Encoder; - Utf32Codec.prototype.decoder = Utf32Decoder; - function Utf32Encoder(options, codec) { - this.isLE = codec.isLE; - this.highSurrogate = 0; - } - Utf32Encoder.prototype.write = function(str$1) { - var src = Buffer$7.from(str$1, "ucs2"); - var dst = Buffer$7.alloc(src.length * 2); - var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE; - var offset = 0; - for (var i$4 = 0; i$4 < src.length; i$4 += 2) { - var code$1 = src.readUInt16LE(i$4); - var isHighSurrogate = 55296 <= code$1 && code$1 < 56320; - var isLowSurrogate = 56320 <= code$1 && code$1 < 57344; - if (this.highSurrogate) if (isHighSurrogate || !isLowSurrogate) { - write32.call(dst, this.highSurrogate, offset); - offset += 4; - } else { - var codepoint = (this.highSurrogate - 55296 << 10 | code$1 - 56320) + 65536; - write32.call(dst, codepoint, offset); - offset += 4; - this.highSurrogate = 0; - continue; - } - if (isHighSurrogate) this.highSurrogate = code$1; - else { - write32.call(dst, code$1, offset); - offset += 4; - this.highSurrogate = 0; - } - } - if (offset < dst.length) dst = dst.slice(0, offset); - return dst; - }; - Utf32Encoder.prototype.end = function() { - if (!this.highSurrogate) return; - var buf = Buffer$7.alloc(4); - if (this.isLE) buf.writeUInt32LE(this.highSurrogate, 0); - else buf.writeUInt32BE(this.highSurrogate, 0); - this.highSurrogate = 0; - return buf; - }; - function Utf32Decoder(options, codec) { - this.isLE = codec.isLE; - this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0); - this.overflow = []; - } - Utf32Decoder.prototype.write = function(src) { - if (src.length === 0) return ""; - var i$4 = 0; - var codepoint = 0; - var dst = Buffer$7.alloc(src.length + 4); - var offset = 0; - var isLE = this.isLE; - var overflow = this.overflow; - var badChar = this.badChar; - if (overflow.length > 0) { - for (; i$4 < src.length && overflow.length < 4; i$4++) overflow.push(src[i$4]); - if (overflow.length === 4) { - if (isLE) codepoint = overflow[i$4] | overflow[i$4 + 1] << 8 | overflow[i$4 + 2] << 16 | overflow[i$4 + 3] << 24; - else codepoint = overflow[i$4 + 3] | overflow[i$4 + 2] << 8 | overflow[i$4 + 1] << 16 | overflow[i$4] << 24; - overflow.length = 0; - offset = _writeCodepoint(dst, offset, codepoint, badChar); - } - } - for (; i$4 < src.length - 3; i$4 += 4) { - if (isLE) codepoint = src[i$4] | src[i$4 + 1] << 8 | src[i$4 + 2] << 16 | src[i$4 + 3] << 24; - else codepoint = src[i$4 + 3] | src[i$4 + 2] << 8 | src[i$4 + 1] << 16 | src[i$4] << 24; - offset = _writeCodepoint(dst, offset, codepoint, badChar); - } - for (; i$4 < src.length; i$4++) overflow.push(src[i$4]); - return dst.slice(0, offset).toString("ucs2"); - }; - function _writeCodepoint(dst, offset, codepoint, badChar) { - if (codepoint < 0 || codepoint > 1114111) codepoint = badChar; - if (codepoint >= 65536) { - codepoint -= 65536; - var high = 55296 | codepoint >> 10; - dst[offset++] = high & 255; - dst[offset++] = high >> 8; - var codepoint = 56320 | codepoint & 1023; - } - dst[offset++] = codepoint & 255; - dst[offset++] = codepoint >> 8; - return offset; - } - Utf32Decoder.prototype.end = function() { - this.overflow.length = 0; - }; - exports.utf32 = Utf32AutoCodec; - exports.ucs4 = "utf32"; - function Utf32AutoCodec(options, iconv$1) { - this.iconv = iconv$1; - } - Utf32AutoCodec.prototype.encoder = Utf32AutoEncoder; - Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder; - function Utf32AutoEncoder(options, codec) { - options = options || {}; - if (options.addBOM === void 0) options.addBOM = true; - this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options); - } - Utf32AutoEncoder.prototype.write = function(str$1) { - return this.encoder.write(str$1); - }; - Utf32AutoEncoder.prototype.end = function() { - return this.encoder.end(); - }; - function Utf32AutoDecoder(options, codec) { - this.decoder = null; - this.initialBufs = []; - this.initialBufsLen = 0; - this.options = options || {}; - this.iconv = codec.iconv; - } - Utf32AutoDecoder.prototype.write = function(buf) { - if (!this.decoder) { - this.initialBufs.push(buf); - this.initialBufsLen += buf.length; - if (this.initialBufsLen < 32) return ""; - var encoding = detectEncoding$1(this.initialBufs, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - var resStr = ""; - for (var i$4 = 0; i$4 < this.initialBufs.length; i$4++) resStr += this.decoder.write(this.initialBufs[i$4]); - this.initialBufs.length = this.initialBufsLen = 0; - return resStr; - } - return this.decoder.write(buf); - }; - Utf32AutoDecoder.prototype.end = function() { - if (!this.decoder) { - var encoding = detectEncoding$1(this.initialBufs, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - var resStr = ""; - for (var i$4 = 0; i$4 < this.initialBufs.length; i$4++) resStr += this.decoder.write(this.initialBufs[i$4]); - var trail = this.decoder.end(); - if (trail) resStr += trail; - this.initialBufs.length = this.initialBufsLen = 0; - return resStr; - } - return this.decoder.end(); - }; - function detectEncoding$1(bufs, defaultEncoding) { - var b = []; - var charsProcessed = 0; - var invalidLE = 0, invalidBE = 0; - var bmpCharsLE = 0, bmpCharsBE = 0; - outer_loop: for (var i$4 = 0; i$4 < bufs.length; i$4++) { - var buf = bufs[i$4]; - for (var j = 0; j < buf.length; j++) { - b.push(buf[j]); - if (b.length === 4) { - if (charsProcessed === 0) { - if (b[0] === 255 && b[1] === 254 && b[2] === 0 && b[3] === 0) return "utf-32le"; - if (b[0] === 0 && b[1] === 0 && b[2] === 254 && b[3] === 255) return "utf-32be"; - } - if (b[0] !== 0 || b[1] > 16) invalidBE++; - if (b[3] !== 0 || b[2] > 16) invalidLE++; - if (b[0] === 0 && b[1] === 0 && (b[2] !== 0 || b[3] !== 0)) bmpCharsBE++; - if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++; - b.length = 0; - charsProcessed++; - if (charsProcessed >= 100) break outer_loop; - } - } - } - if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return "utf-32be"; - if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return "utf-32le"; - return defaultEncoding || "utf-32le"; - } -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.js -var require_utf16 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.js"(exports) { - var Buffer$6 = require_safer().Buffer; - exports.utf16be = Utf16BECodec; - function Utf16BECodec() {} - Utf16BECodec.prototype.encoder = Utf16BEEncoder; - Utf16BECodec.prototype.decoder = Utf16BEDecoder; - Utf16BECodec.prototype.bomAware = true; - function Utf16BEEncoder() {} - Utf16BEEncoder.prototype.write = function(str$1) { - var buf = Buffer$6.from(str$1, "ucs2"); - for (var i$4 = 0; i$4 < buf.length; i$4 += 2) { - var tmp = buf[i$4]; - buf[i$4] = buf[i$4 + 1]; - buf[i$4 + 1] = tmp; - } - return buf; - }; - Utf16BEEncoder.prototype.end = function() {}; - function Utf16BEDecoder() { - this.overflowByte = -1; - } - Utf16BEDecoder.prototype.write = function(buf) { - if (buf.length == 0) return ""; - var buf2 = Buffer$6.alloc(buf.length + 1), i$4 = 0, j = 0; - if (this.overflowByte !== -1) { - buf2[0] = buf[0]; - buf2[1] = this.overflowByte; - i$4 = 1; - j = 2; - } - for (; i$4 < buf.length - 1; i$4 += 2, j += 2) { - buf2[j] = buf[i$4 + 1]; - buf2[j + 1] = buf[i$4]; - } - this.overflowByte = i$4 == buf.length - 1 ? buf[buf.length - 1] : -1; - return buf2.slice(0, j).toString("ucs2"); - }; - Utf16BEDecoder.prototype.end = function() { - this.overflowByte = -1; - }; - exports.utf16 = Utf16Codec; - function Utf16Codec(codecOptions, iconv$1) { - this.iconv = iconv$1; - } - Utf16Codec.prototype.encoder = Utf16Encoder; - Utf16Codec.prototype.decoder = Utf16Decoder; - function Utf16Encoder(options, codec) { - options = options || {}; - if (options.addBOM === void 0) options.addBOM = true; - this.encoder = codec.iconv.getEncoder("utf-16le", options); - } - Utf16Encoder.prototype.write = function(str$1) { - return this.encoder.write(str$1); - }; - Utf16Encoder.prototype.end = function() { - return this.encoder.end(); - }; - function Utf16Decoder(options, codec) { - this.decoder = null; - this.initialBufs = []; - this.initialBufsLen = 0; - this.options = options || {}; - this.iconv = codec.iconv; - } - Utf16Decoder.prototype.write = function(buf) { - if (!this.decoder) { - this.initialBufs.push(buf); - this.initialBufsLen += buf.length; - if (this.initialBufsLen < 16) return ""; - var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - var resStr = ""; - for (var i$4 = 0; i$4 < this.initialBufs.length; i$4++) resStr += this.decoder.write(this.initialBufs[i$4]); - this.initialBufs.length = this.initialBufsLen = 0; - return resStr; - } - return this.decoder.write(buf); - }; - Utf16Decoder.prototype.end = function() { - if (!this.decoder) { - var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - var resStr = ""; - for (var i$4 = 0; i$4 < this.initialBufs.length; i$4++) resStr += this.decoder.write(this.initialBufs[i$4]); - var trail = this.decoder.end(); - if (trail) resStr += trail; - this.initialBufs.length = this.initialBufsLen = 0; - return resStr; - } - return this.decoder.end(); - }; - function detectEncoding(bufs, defaultEncoding) { - var b = []; - var charsProcessed = 0; - var asciiCharsLE = 0, asciiCharsBE = 0; - outer_loop: for (var i$4 = 0; i$4 < bufs.length; i$4++) { - var buf = bufs[i$4]; - for (var j = 0; j < buf.length; j++) { - b.push(buf[j]); - if (b.length === 2) { - if (charsProcessed === 0) { - if (b[0] === 255 && b[1] === 254) return "utf-16le"; - if (b[0] === 254 && b[1] === 255) return "utf-16be"; - } - if (b[0] === 0 && b[1] !== 0) asciiCharsBE++; - if (b[0] !== 0 && b[1] === 0) asciiCharsLE++; - b.length = 0; - charsProcessed++; - if (charsProcessed >= 100) break outer_loop; - } - } - } - if (asciiCharsBE > asciiCharsLE) return "utf-16be"; - if (asciiCharsBE < asciiCharsLE) return "utf-16le"; - return defaultEncoding || "utf-16le"; - } -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.js -var require_utf7 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.js"(exports) { - var Buffer$5 = require_safer().Buffer; - exports.utf7 = Utf7Codec; - exports.unicode11utf7 = "utf7"; - function Utf7Codec(codecOptions, iconv$1) { - this.iconv = iconv$1; - } - Utf7Codec.prototype.encoder = Utf7Encoder; - Utf7Codec.prototype.decoder = Utf7Decoder; - Utf7Codec.prototype.bomAware = true; - var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g; - function Utf7Encoder(options, codec) { - this.iconv = codec.iconv; - } - Utf7Encoder.prototype.write = function(str$1) { - return Buffer$5.from(str$1.replace(nonDirectChars, function(chunk) { - return "+" + (chunk === "+" ? "" : this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) + "-"; - }.bind(this))); - }; - Utf7Encoder.prototype.end = function() {}; - function Utf7Decoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = ""; - } - var base64Regex = /[A-Za-z0-9\/+]/; - var base64Chars = []; - for (var i$2 = 0; i$2 < 256; i$2++) base64Chars[i$2] = base64Regex.test(String.fromCharCode(i$2)); - var plusChar = "+".charCodeAt(0), minusChar = "-".charCodeAt(0), andChar = "&".charCodeAt(0); - Utf7Decoder.prototype.write = function(buf) { - var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum; - for (var i$4 = 0; i$4 < buf.length; i$4++) if (!inBase64) { - if (buf[i$4] == plusChar) { - res += this.iconv.decode(buf.slice(lastI, i$4), "ascii"); - lastI = i$4 + 1; - inBase64 = true; - } - } else if (!base64Chars[buf[i$4]]) { - if (i$4 == lastI && buf[i$4] == minusChar) res += "+"; - else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i$4), "ascii"); - res += this.iconv.decode(Buffer$5.from(b64str, "base64"), "utf16-be"); - } - if (buf[i$4] != minusChar) i$4--; - lastI = i$4 + 1; - inBase64 = false; - base64Accum = ""; - } - if (!inBase64) res += this.iconv.decode(buf.slice(lastI), "ascii"); - else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii"); - var canBeDecoded = b64str.length - b64str.length % 8; - base64Accum = b64str.slice(canBeDecoded); - b64str = b64str.slice(0, canBeDecoded); - res += this.iconv.decode(Buffer$5.from(b64str, "base64"), "utf16-be"); - } - this.inBase64 = inBase64; - this.base64Accum = base64Accum; - return res; - }; - Utf7Decoder.prototype.end = function() { - var res = ""; - if (this.inBase64 && this.base64Accum.length > 0) res = this.iconv.decode(Buffer$5.from(this.base64Accum, "base64"), "utf16-be"); - this.inBase64 = false; - this.base64Accum = ""; - return res; - }; - exports.utf7imap = Utf7IMAPCodec; - function Utf7IMAPCodec(codecOptions, iconv$1) { - this.iconv = iconv$1; - } - Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder; - Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder; - Utf7IMAPCodec.prototype.bomAware = true; - function Utf7IMAPEncoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = Buffer$5.alloc(6); - this.base64AccumIdx = 0; - } - Utf7IMAPEncoder.prototype.write = function(str$1) { - var inBase64 = this.inBase64, base64Accum = this.base64Accum, base64AccumIdx = this.base64AccumIdx, buf = Buffer$5.alloc(str$1.length * 5 + 10), bufIdx = 0; - for (var i$4 = 0; i$4 < str$1.length; i$4++) { - var uChar = str$1.charCodeAt(i$4); - if (32 <= uChar && uChar <= 126) { - if (inBase64) { - if (base64AccumIdx > 0) { - bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx); - base64AccumIdx = 0; - } - buf[bufIdx++] = minusChar; - inBase64 = false; - } - if (!inBase64) { - buf[bufIdx++] = uChar; - if (uChar === andChar) buf[bufIdx++] = minusChar; - } - } else { - if (!inBase64) { - buf[bufIdx++] = andChar; - inBase64 = true; - } - if (inBase64) { - base64Accum[base64AccumIdx++] = uChar >> 8; - base64Accum[base64AccumIdx++] = uChar & 255; - if (base64AccumIdx == base64Accum.length) { - bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx); - base64AccumIdx = 0; - } - } - } - } - this.inBase64 = inBase64; - this.base64AccumIdx = base64AccumIdx; - return buf.slice(0, bufIdx); - }; - Utf7IMAPEncoder.prototype.end = function() { - var buf = Buffer$5.alloc(10), bufIdx = 0; - if (this.inBase64) { - if (this.base64AccumIdx > 0) { - bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx); - this.base64AccumIdx = 0; - } - buf[bufIdx++] = minusChar; - this.inBase64 = false; - } - return buf.slice(0, bufIdx); - }; - function Utf7IMAPDecoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = ""; - } - var base64IMAPChars = base64Chars.slice(); - base64IMAPChars[",".charCodeAt(0)] = true; - Utf7IMAPDecoder.prototype.write = function(buf) { - var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum; - for (var i$4 = 0; i$4 < buf.length; i$4++) if (!inBase64) { - if (buf[i$4] == andChar) { - res += this.iconv.decode(buf.slice(lastI, i$4), "ascii"); - lastI = i$4 + 1; - inBase64 = true; - } - } else if (!base64IMAPChars[buf[i$4]]) { - if (i$4 == lastI && buf[i$4] == minusChar) res += "&"; - else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i$4), "ascii").replace(/,/g, "/"); - res += this.iconv.decode(Buffer$5.from(b64str, "base64"), "utf16-be"); - } - if (buf[i$4] != minusChar) i$4--; - lastI = i$4 + 1; - inBase64 = false; - base64Accum = ""; - } - if (!inBase64) res += this.iconv.decode(buf.slice(lastI), "ascii"); - else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii").replace(/,/g, "/"); - var canBeDecoded = b64str.length - b64str.length % 8; - base64Accum = b64str.slice(canBeDecoded); - b64str = b64str.slice(0, canBeDecoded); - res += this.iconv.decode(Buffer$5.from(b64str, "base64"), "utf16-be"); - } - this.inBase64 = inBase64; - this.base64Accum = base64Accum; - return res; - }; - Utf7IMAPDecoder.prototype.end = function() { - var res = ""; - if (this.inBase64 && this.base64Accum.length > 0) res = this.iconv.decode(Buffer$5.from(this.base64Accum, "base64"), "utf16-be"); - this.inBase64 = false; - this.base64Accum = ""; - return res; - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.js -var require_sbcs_codec = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) { - var Buffer$4 = require_safer().Buffer; - exports._sbcs = SBCSCodec; - function SBCSCodec(codecOptions, iconv$1) { - if (!codecOptions) throw new Error("SBCS codec is called without the data."); - if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)"); - if (codecOptions.chars.length === 128) { - var asciiString = ""; - for (var i$4 = 0; i$4 < 128; i$4++) asciiString += String.fromCharCode(i$4); - codecOptions.chars = asciiString + codecOptions.chars; - } - this.decodeBuf = Buffer$4.from(codecOptions.chars, "ucs2"); - var encodeBuf = Buffer$4.alloc(65536, iconv$1.defaultCharSingleByte.charCodeAt(0)); - for (var i$4 = 0; i$4 < codecOptions.chars.length; i$4++) encodeBuf[codecOptions.chars.charCodeAt(i$4)] = i$4; - this.encodeBuf = encodeBuf; - } - SBCSCodec.prototype.encoder = SBCSEncoder; - SBCSCodec.prototype.decoder = SBCSDecoder; - function SBCSEncoder(options, codec) { - this.encodeBuf = codec.encodeBuf; - } - SBCSEncoder.prototype.write = function(str$1) { - var buf = Buffer$4.alloc(str$1.length); - for (var i$4 = 0; i$4 < str$1.length; i$4++) buf[i$4] = this.encodeBuf[str$1.charCodeAt(i$4)]; - return buf; - }; - SBCSEncoder.prototype.end = function() {}; - function SBCSDecoder(options, codec) { - this.decodeBuf = codec.decodeBuf; - } - SBCSDecoder.prototype.write = function(buf) { - var decodeBuf = this.decodeBuf; - var newBuf = Buffer$4.alloc(buf.length * 2); - var idx1 = 0, idx2 = 0; - for (var i$4 = 0; i$4 < buf.length; i$4++) { - idx1 = buf[i$4] * 2; - idx2 = i$4 * 2; - newBuf[idx2] = decodeBuf[idx1]; - newBuf[idx2 + 1] = decodeBuf[idx1 + 1]; - } - return newBuf.toString("ucs2"); - }; - SBCSDecoder.prototype.end = function() {}; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.js -var require_sbcs_data = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) { - module.exports = { - "10029": "maccenteuro", - "maccenteuro": { - "type": "_sbcs", - "chars": "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ" - }, - "808": "cp808", - "ibm808": "cp808", - "cp808": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■\xA0" - }, - "mik": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "cp720": { - "type": "_sbcs", - "chars": "€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0" - }, - "ascii8bit": "ascii", - "usascii": "ascii", - "ansix34": "ascii", - "ansix341968": "ascii", - "ansix341986": "ascii", - "csascii": "ascii", - "cp367": "ascii", - "ibm367": "ascii", - "isoir6": "ascii", - "iso646us": "ascii", - "iso646irv": "ascii", - "us": "ascii", - "latin1": "iso88591", - "latin2": "iso88592", - "latin3": "iso88593", - "latin4": "iso88594", - "latin5": "iso88599", - "latin6": "iso885910", - "latin7": "iso885913", - "latin8": "iso885914", - "latin9": "iso885915", - "latin10": "iso885916", - "csisolatin1": "iso88591", - "csisolatin2": "iso88592", - "csisolatin3": "iso88593", - "csisolatin4": "iso88594", - "csisolatincyrillic": "iso88595", - "csisolatinarabic": "iso88596", - "csisolatingreek": "iso88597", - "csisolatinhebrew": "iso88598", - "csisolatin5": "iso88599", - "csisolatin6": "iso885910", - "l1": "iso88591", - "l2": "iso88592", - "l3": "iso88593", - "l4": "iso88594", - "l5": "iso88599", - "l6": "iso885910", - "l7": "iso885913", - "l8": "iso885914", - "l9": "iso885915", - "l10": "iso885916", - "isoir14": "iso646jp", - "isoir57": "iso646cn", - "isoir100": "iso88591", - "isoir101": "iso88592", - "isoir109": "iso88593", - "isoir110": "iso88594", - "isoir144": "iso88595", - "isoir127": "iso88596", - "isoir126": "iso88597", - "isoir138": "iso88598", - "isoir148": "iso88599", - "isoir157": "iso885910", - "isoir166": "tis620", - "isoir179": "iso885913", - "isoir199": "iso885914", - "isoir203": "iso885915", - "isoir226": "iso885916", - "cp819": "iso88591", - "ibm819": "iso88591", - "cyrillic": "iso88595", - "arabic": "iso88596", - "arabic8": "iso88596", - "ecma114": "iso88596", - "asmo708": "iso88596", - "greek": "iso88597", - "greek8": "iso88597", - "ecma118": "iso88597", - "elot928": "iso88597", - "hebrew": "iso88598", - "hebrew8": "iso88598", - "turkish": "iso88599", - "turkish8": "iso88599", - "thai": "iso885911", - "thai8": "iso885911", - "celtic": "iso885914", - "celtic8": "iso885914", - "isoceltic": "iso885914", - "tis6200": "tis620", - "tis62025291": "tis620", - "tis62025330": "tis620", - "10000": "macroman", - "10006": "macgreek", - "10007": "maccyrillic", - "10079": "maciceland", - "10081": "macturkish", - "cspc8codepage437": "cp437", - "cspc775baltic": "cp775", - "cspc850multilingual": "cp850", - "cspcp852": "cp852", - "cspc862latinhebrew": "cp862", - "cpgr": "cp869", - "msee": "cp1250", - "mscyrl": "cp1251", - "msansi": "cp1252", - "msgreek": "cp1253", - "msturk": "cp1254", - "mshebr": "cp1255", - "msarab": "cp1256", - "winbaltrim": "cp1257", - "cp20866": "koi8r", - "20866": "koi8r", - "ibm878": "koi8r", - "cskoi8r": "koi8r", - "cp21866": "koi8u", - "21866": "koi8u", - "ibm1168": "koi8u", - "strk10482002": "rk1048", - "tcvn5712": "tcvn", - "tcvn57121": "tcvn", - "gb198880": "iso646cn", - "cn": "iso646cn", - "csiso14jisc6220ro": "iso646jp", - "jisc62201969ro": "iso646jp", - "jp": "iso646jp", - "cshproman8": "hproman8", - "r8": "hproman8", - "roman8": "hproman8", - "xroman8": "hproman8", - "ibm1051": "hproman8", - "mac": "macintosh", - "csmacintosh": "macintosh" - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js -var require_sbcs_data_generated = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) { - module.exports = { - "437": "cp437", - "737": "cp737", - "775": "cp775", - "850": "cp850", - "852": "cp852", - "855": "cp855", - "856": "cp856", - "857": "cp857", - "858": "cp858", - "860": "cp860", - "861": "cp861", - "862": "cp862", - "863": "cp863", - "864": "cp864", - "865": "cp865", - "866": "cp866", - "869": "cp869", - "874": "windows874", - "922": "cp922", - "1046": "cp1046", - "1124": "cp1124", - "1125": "cp1125", - "1129": "cp1129", - "1133": "cp1133", - "1161": "cp1161", - "1162": "cp1162", - "1163": "cp1163", - "1250": "windows1250", - "1251": "windows1251", - "1252": "windows1252", - "1253": "windows1253", - "1254": "windows1254", - "1255": "windows1255", - "1256": "windows1256", - "1257": "windows1257", - "1258": "windows1258", - "28591": "iso88591", - "28592": "iso88592", - "28593": "iso88593", - "28594": "iso88594", - "28595": "iso88595", - "28596": "iso88596", - "28597": "iso88597", - "28598": "iso88598", - "28599": "iso88599", - "28600": "iso885910", - "28601": "iso885911", - "28603": "iso885913", - "28604": "iso885914", - "28605": "iso885915", - "28606": "iso885916", - "windows874": { - "type": "_sbcs", - "chars": "€����…�����������‘’“”•–—��������\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "win874": "windows874", - "cp874": "windows874", - "windows1250": { - "type": "_sbcs", - "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź\xA0ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - "win1250": "windows1250", - "cp1250": "windows1250", - "windows1251": { - "type": "_sbcs", - "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ\xA0ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "win1251": "windows1251", - "cp1251": "windows1251", - "windows1252": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "win1252": "windows1252", - "cp1252": "windows1252", - "windows1253": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›����\xA0΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - "win1253": "windows1253", - "cp1253": "windows1253", - "windows1254": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - "win1254": "windows1254", - "cp1254": "windows1254", - "windows1255": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›����\xA0¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - "win1255": "windows1255", - "cp1255": "windows1255", - "windows1256": { - "type": "_sbcs", - "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں\xA0،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے" - }, - "win1256": "windows1256", - "cp1256": "windows1256", - "windows1257": { - "type": "_sbcs", - "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛�\xA0�¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙" - }, - "win1257": "windows1257", - "cp1257": "windows1257", - "windows1258": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "win1258": "windows1258", - "cp1258": "windows1258", - "iso88591": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "cp28591": "iso88591", - "iso88592": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - "cp28592": "iso88592", - "iso88593": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙" - }, - "cp28593": "iso88593", - "iso88594": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙" - }, - "cp28594": "iso88594", - "iso88595": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ" - }, - "cp28595": "iso88595", - "iso88596": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������" - }, - "cp28596": "iso88596", - "iso88597": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨ��ΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - "cp28597": "iso88597", - "iso88598": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0�¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - "cp28598": "iso88598", - "iso88599": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - "cp28599": "iso88599", - "iso885910": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ" - }, - "cp28600": "iso885910", - "iso885911": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "cp28601": "iso885911", - "iso885913": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’" - }, - "cp28603": "iso885913", - "iso885914": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ" - }, - "cp28604": "iso885914", - "iso885915": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "cp28605": "iso885915", - "iso885916": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ" - }, - "cp28606": "iso885916", - "cp437": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "ibm437": "cp437", - "csibm437": "cp437", - "cp737": { - "type": "_sbcs", - "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0" - }, - "ibm737": "cp737", - "csibm737": "cp737", - "cp775": { - "type": "_sbcs", - "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■\xA0" - }, - "ibm775": "cp775", - "csibm775": "cp775", - "cp850": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0" - }, - "ibm850": "cp850", - "csibm850": "cp850", - "cp852": { - "type": "_sbcs", - "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■\xA0" - }, - "ibm852": "cp852", - "csibm852": "cp852", - "cp855": { - "type": "_sbcs", - "chars": "ђЂѓЃёЁ��ЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■\xA0" - }, - "ibm855": "cp855", - "csibm855": "cp855", - "cp856": { - "type": "_sbcs", - "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■\xA0" - }, - "ibm856": "cp856", - "csibm856": "cp856", - "cp857": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■\xA0" - }, - "ibm857": "cp857", - "csibm857": "cp857", - "cp858": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0" - }, - "ibm858": "cp858", - "csibm858": "cp858", - "cp860": { - "type": "_sbcs", - "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "ibm860": "cp860", - "csibm860": "cp860", - "cp861": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "ibm861": "cp861", - "csibm861": "cp861", - "cp862": { - "type": "_sbcs", - "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "ibm862": "cp862", - "csibm862": "cp862", - "cp863": { - "type": "_sbcs", - "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "ibm863": "cp863", - "csibm863": "cp863", - "cp864": { - "type": "_sbcs", - "chars": "\0\x07\b \n\v\f\r\x1B !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ�\xA0­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�" - }, - "ibm864": "cp864", - "csibm864": "cp864", - "cp865": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0" - }, - "ibm865": "cp865", - "csibm865": "cp865", - "cp866": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■\xA0" - }, - "ibm866": "cp866", - "csibm866": "cp866", - "cp869": { - "type": "_sbcs", - "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■\xA0" - }, - "ibm869": "cp869", - "csibm869": "cp869", - "cp922": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ" - }, - "ibm922": "cp922", - "csibm922": "cp922", - "cp1046": { - "type": "_sbcs", - "chars": "ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ\xA0¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�" - }, - "ibm1046": "cp1046", - "csibm1046": "cp1046", - "cp1124": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ" - }, - "ibm1124": "cp1124", - "csibm1124": "cp1124", - "cp1125": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■\xA0" - }, - "ibm1125": "cp1125", - "csibm1125": "cp1125", - "cp1129": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "ibm1129": "cp1129", - "csibm1129": "cp1129", - "cp1133": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�" - }, - "ibm1133": "cp1133", - "csibm1133": "cp1133", - "cp1161": { - "type": "_sbcs", - "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦\xA0" - }, - "ibm1161": "cp1161", - "csibm1161": "cp1161", - "cp1162": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "ibm1162": "cp1162", - "csibm1162": "cp1162", - "cp1163": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "ibm1163": "cp1163", - "csibm1163": "cp1163", - "maccroatian": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ\xA0ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ" - }, - "maccyrillic": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - "macgreek": { - "type": "_sbcs", - "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�" - }, - "maciceland": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macroman": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑ��Üáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macromania": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macthai": { - "type": "_sbcs", - "chars": "«»…“”�•‘’�\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����" - }, - "macturkish": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macukraine": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - "koi8r": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8u": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8ru": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8t": { - "type": "_sbcs", - "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "armscii8": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0�և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�" - }, - "rk1048": { - "type": "_sbcs", - "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ\xA0ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "tcvn": { - "type": "_sbcs", - "chars": "\0ÚỤỪỬỮ\x07\b \n\v\f\rỨỰỲỶỸÝỴ\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ\xA0ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ" - }, - "georgianacademy": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "georgianps": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "pt154": { - "type": "_sbcs", - "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xA0ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "viscii": { - "type": "_sbcs", - "chars": "\0ẲẴẪ\x07\b \n\v\f\rỶỸ\x1BỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ" - }, - "iso646cn": { - "type": "_sbcs", - "chars": "\0\x07\b \n\v\f\r\x1B !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������" - }, - "iso646jp": { - "type": "_sbcs", - "chars": "\0\x07\b \n\v\f\r\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������" - }, - "hproman8": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�" - }, - "macintosh": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "ascii": { - "type": "_sbcs", - "chars": "��������������������������������������������������������������������������������������������������������������������������������" - }, - "tis620": { - "type": "_sbcs", - "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - } - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.js -var require_dbcs_codec = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) { - var Buffer$3 = require_safer().Buffer; - exports._dbcs = DBCSCodec; - var UNASSIGNED = -1, GB18030_CODE = -2, SEQ_START = -10, NODE_START = -1e3, UNASSIGNED_NODE = new Array(256), DEF_CHAR = -1; - for (var i$1 = 0; i$1 < 256; i$1++) UNASSIGNED_NODE[i$1] = UNASSIGNED; - function DBCSCodec(codecOptions, iconv$1) { - this.encodingName = codecOptions.encodingName; - if (!codecOptions) throw new Error("DBCS codec is called without the data."); - if (!codecOptions.table) throw new Error("Encoding '" + this.encodingName + "' has no data."); - var mappingTable$1 = codecOptions.table(); - this.decodeTables = []; - this.decodeTables[0] = UNASSIGNED_NODE.slice(0); - this.decodeTableSeq = []; - for (var i$4 = 0; i$4 < mappingTable$1.length; i$4++) this._addDecodeChunk(mappingTable$1[i$4]); - if (typeof codecOptions.gb18030 === "function") { - this.gb18030 = codecOptions.gb18030(); - var commonThirdByteNodeIdx = this.decodeTables.length; - this.decodeTables.push(UNASSIGNED_NODE.slice(0)); - var commonFourthByteNodeIdx = this.decodeTables.length; - this.decodeTables.push(UNASSIGNED_NODE.slice(0)); - var firstByteNode = this.decodeTables[0]; - for (var i$4 = 129; i$4 <= 254; i$4++) { - var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i$4]]; - for (var j = 48; j <= 57; j++) { - if (secondByteNode[j] === UNASSIGNED) secondByteNode[j] = NODE_START - commonThirdByteNodeIdx; - else if (secondByteNode[j] > NODE_START) throw new Error("gb18030 decode tables conflict at byte 2"); - var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]]; - for (var k = 129; k <= 254; k++) { - if (thirdByteNode[k] === UNASSIGNED) thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx; - else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) continue; - else if (thirdByteNode[k] > NODE_START) throw new Error("gb18030 decode tables conflict at byte 3"); - var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]]; - for (var l = 48; l <= 57; l++) if (fourthByteNode[l] === UNASSIGNED) fourthByteNode[l] = GB18030_CODE; - } - } - } - } - this.defaultCharUnicode = iconv$1.defaultCharUnicode; - this.encodeTable = []; - this.encodeTableSeq = []; - var skipEncodeChars = {}; - if (codecOptions.encodeSkipVals) for (var i$4 = 0; i$4 < codecOptions.encodeSkipVals.length; i$4++) { - var val = codecOptions.encodeSkipVals[i$4]; - if (typeof val === "number") skipEncodeChars[val] = true; - else for (var j = val.from; j <= val.to; j++) skipEncodeChars[j] = true; - } - this._fillEncodeTable(0, 0, skipEncodeChars); - if (codecOptions.encodeAdd) { - for (var uChar in codecOptions.encodeAdd) if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]); - } - this.defCharSB = this.encodeTable[0][iconv$1.defaultCharSingleByte.charCodeAt(0)]; - if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"]; - if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0); - } - DBCSCodec.prototype.encoder = DBCSEncoder; - DBCSCodec.prototype.decoder = DBCSDecoder; - DBCSCodec.prototype._getDecodeTrieNode = function(addr) { - var bytes = []; - for (; addr > 0; addr >>>= 8) bytes.push(addr & 255); - if (bytes.length == 0) bytes.push(0); - var node = this.decodeTables[0]; - for (var i$4 = bytes.length - 1; i$4 > 0; i$4--) { - var val = node[bytes[i$4]]; - if (val == UNASSIGNED) { - node[bytes[i$4]] = NODE_START - this.decodeTables.length; - this.decodeTables.push(node = UNASSIGNED_NODE.slice(0)); - } else if (val <= NODE_START) node = this.decodeTables[NODE_START - val]; - else throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16)); - } - return node; - }; - DBCSCodec.prototype._addDecodeChunk = function(chunk) { - var curAddr = parseInt(chunk[0], 16); - var writeTable = this._getDecodeTrieNode(curAddr); - curAddr = curAddr & 255; - for (var k = 1; k < chunk.length; k++) { - var part = chunk[k]; - if (typeof part === "string") for (var l = 0; l < part.length;) { - var code$1 = part.charCodeAt(l++); - if (55296 <= code$1 && code$1 < 56320) { - var codeTrail = part.charCodeAt(l++); - if (56320 <= codeTrail && codeTrail < 57344) writeTable[curAddr++] = 65536 + (code$1 - 55296) * 1024 + (codeTrail - 56320); - else throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]); - } else if (4080 < code$1 && code$1 <= 4095) { - var len$1 = 4095 - code$1 + 2; - var seq = []; - for (var m$1 = 0; m$1 < len$1; m$1++) seq.push(part.charCodeAt(l++)); - writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length; - this.decodeTableSeq.push(seq); - } else writeTable[curAddr++] = code$1; - } - else if (typeof part === "number") { - var charCode = writeTable[curAddr - 1] + 1; - for (var l = 0; l < part; l++) writeTable[curAddr++] = charCode++; - } else throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]); - } - if (curAddr > 255) throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr); - }; - DBCSCodec.prototype._getEncodeBucket = function(uCode) { - var high = uCode >> 8; - if (this.encodeTable[high] === void 0) this.encodeTable[high] = UNASSIGNED_NODE.slice(0); - return this.encodeTable[high]; - }; - DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) { - var bucket = this._getEncodeBucket(uCode); - var low = uCode & 255; - if (bucket[low] <= SEQ_START) this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode; - else if (bucket[low] == UNASSIGNED) bucket[low] = dbcsCode; - }; - DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) { - var uCode = seq[0]; - var bucket = this._getEncodeBucket(uCode); - var low = uCode & 255; - var node; - if (bucket[low] <= SEQ_START) node = this.encodeTableSeq[SEQ_START - bucket[low]]; - else { - node = {}; - if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; - bucket[low] = SEQ_START - this.encodeTableSeq.length; - this.encodeTableSeq.push(node); - } - for (var j = 1; j < seq.length - 1; j++) { - var oldVal = node[uCode]; - if (typeof oldVal === "object") node = oldVal; - else { - node = node[uCode] = {}; - if (oldVal !== void 0) node[DEF_CHAR] = oldVal; - } - } - uCode = seq[seq.length - 1]; - node[uCode] = dbcsCode; - }; - DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) { - var node = this.decodeTables[nodeIdx]; - var hasValues = false; - var subNodeEmpty = {}; - for (var i$4 = 0; i$4 < 256; i$4++) { - var uCode = node[i$4]; - var mbCode = prefix + i$4; - if (skipEncodeChars[mbCode]) continue; - if (uCode >= 0) { - this._setEncodeChar(uCode, mbCode); - hasValues = true; - } else if (uCode <= NODE_START) { - var subNodeIdx = NODE_START - uCode; - if (!subNodeEmpty[subNodeIdx]) { - var newPrefix = mbCode << 8 >>> 0; - if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) hasValues = true; - else subNodeEmpty[subNodeIdx] = true; - } - } else if (uCode <= SEQ_START) { - this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode); - hasValues = true; - } - } - return hasValues; - }; - function DBCSEncoder(options, codec) { - this.leadSurrogate = -1; - this.seqObj = void 0; - this.encodeTable = codec.encodeTable; - this.encodeTableSeq = codec.encodeTableSeq; - this.defaultCharSingleByte = codec.defCharSB; - this.gb18030 = codec.gb18030; - } - DBCSEncoder.prototype.write = function(str$1) { - var newBuf = Buffer$3.alloc(str$1.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i$4 = 0, j = 0; - while (true) { - if (nextChar === -1) { - if (i$4 == str$1.length) break; - var uCode = str$1.charCodeAt(i$4++); - } else { - var uCode = nextChar; - nextChar = -1; - } - if (55296 <= uCode && uCode < 57344) if (uCode < 56320) if (leadSurrogate === -1) { - leadSurrogate = uCode; - continue; - } else { - leadSurrogate = uCode; - uCode = UNASSIGNED; - } - else if (leadSurrogate !== -1) { - uCode = 65536 + (leadSurrogate - 55296) * 1024 + (uCode - 56320); - leadSurrogate = -1; - } else uCode = UNASSIGNED; - else if (leadSurrogate !== -1) { - nextChar = uCode; - uCode = UNASSIGNED; - leadSurrogate = -1; - } - var dbcsCode = UNASSIGNED; - if (seqObj !== void 0 && uCode != UNASSIGNED) { - var resCode = seqObj[uCode]; - if (typeof resCode === "object") { - seqObj = resCode; - continue; - } else if (typeof resCode == "number") dbcsCode = resCode; - else if (resCode == void 0) { - resCode = seqObj[DEF_CHAR]; - if (resCode !== void 0) { - dbcsCode = resCode; - nextChar = uCode; - } - } - seqObj = void 0; - } else if (uCode >= 0) { - var subtable = this.encodeTable[uCode >> 8]; - if (subtable !== void 0) dbcsCode = subtable[uCode & 255]; - if (dbcsCode <= SEQ_START) { - seqObj = this.encodeTableSeq[SEQ_START - dbcsCode]; - continue; - } - if (dbcsCode == UNASSIGNED && this.gb18030) { - var idx = findIdx(this.gb18030.uChars, uCode); - if (idx != -1) { - var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]); - newBuf[j++] = 129 + Math.floor(dbcsCode / 12600); - dbcsCode = dbcsCode % 12600; - newBuf[j++] = 48 + Math.floor(dbcsCode / 1260); - dbcsCode = dbcsCode % 1260; - newBuf[j++] = 129 + Math.floor(dbcsCode / 10); - dbcsCode = dbcsCode % 10; - newBuf[j++] = 48 + dbcsCode; - continue; - } - } - } - if (dbcsCode === UNASSIGNED) dbcsCode = this.defaultCharSingleByte; - if (dbcsCode < 256) newBuf[j++] = dbcsCode; - else if (dbcsCode < 65536) { - newBuf[j++] = dbcsCode >> 8; - newBuf[j++] = dbcsCode & 255; - } else if (dbcsCode < 16777216) { - newBuf[j++] = dbcsCode >> 16; - newBuf[j++] = dbcsCode >> 8 & 255; - newBuf[j++] = dbcsCode & 255; - } else { - newBuf[j++] = dbcsCode >>> 24; - newBuf[j++] = dbcsCode >>> 16 & 255; - newBuf[j++] = dbcsCode >>> 8 & 255; - newBuf[j++] = dbcsCode & 255; - } - } - this.seqObj = seqObj; - this.leadSurrogate = leadSurrogate; - return newBuf.slice(0, j); - }; - DBCSEncoder.prototype.end = function() { - if (this.leadSurrogate === -1 && this.seqObj === void 0) return; - var newBuf = Buffer$3.alloc(10), j = 0; - if (this.seqObj) { - var dbcsCode = this.seqObj[DEF_CHAR]; - if (dbcsCode !== void 0) if (dbcsCode < 256) newBuf[j++] = dbcsCode; - else { - newBuf[j++] = dbcsCode >> 8; - newBuf[j++] = dbcsCode & 255; - } - this.seqObj = void 0; - } - if (this.leadSurrogate !== -1) { - newBuf[j++] = this.defaultCharSingleByte; - this.leadSurrogate = -1; - } - return newBuf.slice(0, j); - }; - DBCSEncoder.prototype.findIdx = findIdx; - function DBCSDecoder(options, codec) { - this.nodeIdx = 0; - this.prevBytes = []; - this.decodeTables = codec.decodeTables; - this.decodeTableSeq = codec.decodeTableSeq; - this.defaultCharUnicode = codec.defaultCharUnicode; - this.gb18030 = codec.gb18030; - } - DBCSDecoder.prototype.write = function(buf) { - var newBuf = Buffer$3.alloc(buf.length * 2), nodeIdx = this.nodeIdx, prevBytes = this.prevBytes, prevOffset = this.prevBytes.length, seqStart = -this.prevBytes.length, uCode; - for (var i$4 = 0, j = 0; i$4 < buf.length; i$4++) { - var curByte = i$4 >= 0 ? buf[i$4] : prevBytes[i$4 + prevOffset]; - var uCode = this.decodeTables[nodeIdx][curByte]; - if (uCode >= 0) {} else if (uCode === UNASSIGNED) { - uCode = this.defaultCharUnicode.charCodeAt(0); - i$4 = seqStart; - } else if (uCode === GB18030_CODE) { - if (i$4 >= 3) var ptr = (buf[i$4 - 3] - 129) * 12600 + (buf[i$4 - 2] - 48) * 1260 + (buf[i$4 - 1] - 129) * 10 + (curByte - 48); - else var ptr = (prevBytes[i$4 - 3 + prevOffset] - 129) * 12600 + ((i$4 - 2 >= 0 ? buf[i$4 - 2] : prevBytes[i$4 - 2 + prevOffset]) - 48) * 1260 + ((i$4 - 1 >= 0 ? buf[i$4 - 1] : prevBytes[i$4 - 1 + prevOffset]) - 129) * 10 + (curByte - 48); - var idx = findIdx(this.gb18030.gbChars, ptr); - uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx]; - } else if (uCode <= NODE_START) { - nodeIdx = NODE_START - uCode; - continue; - } else if (uCode <= SEQ_START) { - var seq = this.decodeTableSeq[SEQ_START - uCode]; - for (var k = 0; k < seq.length - 1; k++) { - uCode = seq[k]; - newBuf[j++] = uCode & 255; - newBuf[j++] = uCode >> 8; - } - uCode = seq[seq.length - 1]; - } else throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte); - if (uCode >= 65536) { - uCode -= 65536; - var uCodeLead = 55296 | uCode >> 10; - newBuf[j++] = uCodeLead & 255; - newBuf[j++] = uCodeLead >> 8; - uCode = 56320 | uCode & 1023; - } - newBuf[j++] = uCode & 255; - newBuf[j++] = uCode >> 8; - nodeIdx = 0; - seqStart = i$4 + 1; - } - this.nodeIdx = nodeIdx; - this.prevBytes = seqStart >= 0 ? Array.prototype.slice.call(buf, seqStart) : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf)); - return newBuf.slice(0, j).toString("ucs2"); - }; - DBCSDecoder.prototype.end = function() { - var ret = ""; - while (this.prevBytes.length > 0) { - ret += this.defaultCharUnicode; - var bytesArr = this.prevBytes.slice(1); - this.prevBytes = []; - this.nodeIdx = 0; - if (bytesArr.length > 0) ret += this.write(bytesArr); - } - this.prevBytes = []; - this.nodeIdx = 0; - return ret; - }; - function findIdx(table, val) { - if (table[0] > val) return -1; - var l = 0, r = table.length; - while (l < r - 1) { - var mid = l + (r - l + 1 >> 1); - if (table[mid] <= val) l = mid; - else r = mid; - } - return l; - } -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.json -var require_shiftjis = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) { - module.exports = [ - [ - "0", - "\0", - 128 - ], - [ - "a1", - "。", - 62 - ], - [ - "8140", - " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈", - 9, - "+-±×" - ], - ["8180", "÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"], - ["81b8", "∈∋⊆⊇⊂⊃∪∩"], - ["81c8", "∧∨¬⇒⇔∀∃"], - ["81da", "∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"], - ["81f0", "ʼn♯♭♪†‡¶"], - ["81fc", "◯"], - [ - "824f", - "0", - 9 - ], - [ - "8260", - "A", - 25 - ], - [ - "8281", - "a", - 25 - ], - [ - "829f", - "ぁ", - 82 - ], - [ - "8340", - "ァ", - 62 - ], - [ - "8380", - "ム", - 22 - ], - [ - "839f", - "Α", - 16, - "Σ", - 6 - ], - [ - "83bf", - "α", - 16, - "σ", - 6 - ], - [ - "8440", - "А", - 5, - "ЁЖ", - 25 - ], - [ - "8470", - "а", - 5, - "ёж", - 7 - ], - [ - "8480", - "о", - 17 - ], - ["849f", "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"], - [ - "8740", - "①", - 19, - "Ⅰ", - 9 - ], - ["875f", "㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"], - ["877e", "㍻"], - [ - "8780", - "〝〟№㏍℡㊤", - 4, - "㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪" - ], - ["889f", "亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"], - ["8940", "院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"], - ["8980", "園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"], - ["8a40", "魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"], - ["8a80", "橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"], - ["8b40", "機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"], - ["8b80", "朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"], - ["8c40", "掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"], - ["8c80", "劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"], - ["8d40", "后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"], - ["8d80", "項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"], - ["8e40", "察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"], - ["8e80", "死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"], - ["8f40", "宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"], - ["8f80", "準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"], - ["9040", "拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"], - ["9080", "逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"], - ["9140", "繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"], - ["9180", "操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"], - ["9240", "叩但達辰奪脱巽竪���棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"], - ["9280", "逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"], - ["9340", "邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"], - ["9380", "凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"], - ["9440", "如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"], - ["9480", "楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"], - ["9540", "鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"], - ["9580", "斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"], - ["9640", "法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"], - ["9680", "摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"], - ["9740", "諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"], - ["9780", "沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"], - ["9840", "蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"], - ["989f", "弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"], - ["9940", "僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"], - ["9980", "凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"], - ["9a40", "咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"], - ["9a80", "噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥��壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"], - ["9b40", "奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"], - ["9b80", "它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"], - ["9c40", "廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"], - ["9c80", "怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"], - ["9d40", "戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"], - ["9d80", "捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"], - ["9e40", "曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"], - ["9e80", "梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"], - ["9f40", "檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"], - ["9f80", "麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"], - ["e040", "漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"], - ["e080", "烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"], - ["e140", "瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"], - ["e180", "痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"], - ["e240", "磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"], - ["e280", "窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"], - ["e340", "紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"], - ["e380", "縲縺繧繝繖繞繙���繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"], - ["e440", "隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"], - ["e480", "艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"], - ["e540", "蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"], - ["e580", "蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"], - ["e640", "襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"], - ["e680", "諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"], - ["e740", "蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"], - ["e780", "轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"], - ["e840", "錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"], - ["e880", "閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"], - ["e940", "顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"], - ["e980", "騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"], - ["ea40", "鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"], - ["ea80", "黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"], - ["ed40", "纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"], - ["ed80", "塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"], - ["ee40", "犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"], - ["ee80", "蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"], - [ - "eeef", - "ⅰ", - 9, - "¬¦'"" - ], - [ - "f040", - "", - 62 - ], - [ - "f080", - "", - 124 - ], - [ - "f140", - "", - 62 - ], - [ - "f180", - "", - 124 - ], - [ - "f240", - "", - 62 - ], - [ - "f280", - "", - 124 - ], - [ - "f340", - "", - 62 - ], - [ - "f380", - "", - 124 - ], - [ - "f440", - "", - 62 - ], - [ - "f480", - "", - 124 - ], - [ - "f540", - "", - 62 - ], - [ - "f580", - "", - 124 - ], - [ - "f640", - "", - 62 - ], - [ - "f680", - "", - 124 - ], - [ - "f740", - "", - 62 - ], - [ - "f780", - "", - 124 - ], - [ - "f840", - "", - 62 - ], - [ - "f880", - "", - 124 - ], - ["f940", ""], - [ - "fa40", - "ⅰ", - 9, - "Ⅰ", - 9, - "¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊" - ], - ["fa80", "兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"], - ["fb40", "涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"], - ["fb80", "祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"], - ["fc40", "髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.json -var require_eucjp = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) { - module.exports = [ - [ - "0", - "\0", - 127 - ], - [ - "8ea1", - "。", - 62 - ], - [ - "a1a1", - " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈", - 9, - "+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇" - ], - ["a2a1", "◆□■△▲▽▼※〒→←↑↓〓"], - ["a2ba", "∈∋⊆⊇⊂⊃∪∩"], - ["a2ca", "∧∨¬⇒⇔∀∃"], - ["a2dc", "∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"], - ["a2f2", "ʼn♯♭♪†‡¶"], - ["a2fe", "◯"], - [ - "a3b0", - "0", - 9 - ], - [ - "a3c1", - "A", - 25 - ], - [ - "a3e1", - "a", - 25 - ], - [ - "a4a1", - "ぁ", - 82 - ], - [ - "a5a1", - "ァ", - 85 - ], - [ - "a6a1", - "Α", - 16, - "Σ", - 6 - ], - [ - "a6c1", - "α", - 16, - "σ", - 6 - ], - [ - "a7a1", - "А", - 5, - "ЁЖ", - 25 - ], - [ - "a7d1", - "а", - 5, - "ёж", - 25 - ], - ["a8a1", "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"], - [ - "ada1", - "①", - 19, - "Ⅰ", - 9 - ], - ["adc0", "㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"], - [ - "addf", - "㍻〝〟№㏍℡㊤", - 4, - "㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪" - ], - ["b0a1", "亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"], - ["b1a1", "院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"], - ["b2a1", "押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"], - ["b3a1", "魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"], - ["b4a1", "粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"], - ["b5a1", "機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"], - ["b6a1", "供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"], - ["b7a1", "掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"], - ["b8a1", "検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"], - ["b9a1", "后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"], - ["baa1", "此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"], - ["bba1", "察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"], - ["bca1", "次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"], - ["bda1", "宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"], - ["bea1", "勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"], - ["bfa1", "拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"], - ["c0a1", "澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"], - ["c1a1", "繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"], - ["c2a1", "臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"], - ["c3a1", "叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"], - ["c4a1", "帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚���掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"], - ["c5a1", "邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"], - ["c6a1", "董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"], - ["c7a1", "如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"], - ["c8a1", "函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"], - ["c9a1", "鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"], - ["caa1", "福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"], - ["cba1", "法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"], - ["cca1", "漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"], - ["cda1", "諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"], - ["cea1", "痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"], - ["cfa1", "蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"], - ["d0a1", "弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"], - ["d1a1", "僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"], - ["d2a1", "辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"], - ["d3a1", "咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"], - ["d4a1", "圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"], - ["d5a1", "奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"], - ["d6a1", "屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"], - ["d7a1", "廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"], - ["d8a1", "悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"], - ["d9a1", "戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"], - ["daa1", "據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"], - ["dba1", "曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"], - ["dca1", "棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"], - ["dda1", "檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"], - ["dea1", "沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"], - ["dfa1", "漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"], - ["e0a1", "燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"], - ["e1a1", "瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"], - ["e2a1", "癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"], - ["e3a1", "磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"], - ["e4a1", "筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"], - ["e5a1", "紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"], - ["e6a1", "罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"], - ["e7a1", "隋腆脾腓腑胼腱腮腥腦腴膃膈���膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"], - ["e8a1", "茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"], - ["e9a1", "蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"], - ["eaa1", "蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"], - ["eba1", "襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"], - ["eca1", "譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"], - ["eda1", "蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"], - ["eea1", "遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"], - ["efa1", "錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"], - ["f0a1", "陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"], - ["f1a1", "顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"], - ["f2a1", "髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"], - ["f3a1", "鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"], - ["f4a1", "堯槇遙瑤凜熙"], - ["f9a1", "纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"], - ["faa1", "忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"], - ["fba1", "犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"], - ["fca1", "釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"], - [ - "fcf1", - "ⅰ", - 9, - "¬¦'"" - ], - ["8fa2af", "˘ˇ¸˙˝¯˛˚~΄΅"], - ["8fa2c2", "¡¦¿"], - ["8fa2eb", "ºª©®™¤№"], - ["8fa6e1", "ΆΈΉΊΪ"], - ["8fa6e7", "Ό"], - ["8fa6e9", "ΎΫ"], - ["8fa6ec", "Ώ"], - ["8fa6f1", "άέήίϊΐόςύϋΰώ"], - [ - "8fa7c2", - "Ђ", - 10, - "ЎЏ" - ], - [ - "8fa7f2", - "ђ", - 10, - "ўџ" - ], - ["8fa9a1", "ÆĐ"], - ["8fa9a4", "Ħ"], - ["8fa9a6", "IJ"], - ["8fa9a8", "ŁĿ"], - ["8fa9ab", "ŊØŒ"], - ["8fa9af", "ŦÞ"], - ["8fa9c1", "æđðħıijĸłŀʼnŋøœßŧþ"], - ["8faaa1", "ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"], - ["8faaba", "ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"], - ["8faba1", "áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"], - ["8fabbd", "ġĥíìïîǐ"], - ["8fabc5", "īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"], - ["8fb0a1", "丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"], - ["8fb1a1", "侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"], - [ - "8fb2a1", - "傒傓傔傖傛傜傞", - 4, - "傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂" - ], - ["8fb3a1", "凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"], - ["8fb4a1", "匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"], - ["8fb5a1", "咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"], - [ - "8fb6a1", - "嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍", - 5, - "嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤", - 4, - "囱囫园" - ], - [ - "8fb7a1", - "囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭", - 4, - "坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡" - ], - ["8fb8a1", "堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"], - ["8fb9a1", "奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"], - [ - "8fbaa1", - "嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖", - 4, - "寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩" - ], - ["8fbba1", "屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"], - [ - "8fbca1", - "巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪", - 4, - "幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧" - ], - [ - "8fbda1", - "彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐", - 4, - "忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟���怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷" - ], - [ - "8fbea1", - "悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐", - 4, - "愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥" - ], - ["8fbfa1", "懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"], - ["8fc0a1", "捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"], - ["8fc1a1", "擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"], - ["8fc2a1", "昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"], - [ - "8fc3a1", - "杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮", - 4, - "桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏" - ], - ["8fc4a1", "棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"], - ["8fc5a1", "樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"], - ["8fc6a1", "歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"], - ["8fc7a1", "泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"], - ["8fc8a1", "湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"], - [ - "8fc9a1", - "濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔", - 4, - "炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃", - 4, - "焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠" - ], - ["8fcaa1", "煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"], - ["8fcba1", "狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"], - [ - "8fcca1", - "珿琀琁琄琇琊琑琚琛琤琦琨", - 9, - "琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆" - ], - [ - "8fcda1", - "甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹", - 5, - "疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹" - ], - [ - "8fcea1", - "瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢", - 6, - "皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢" - ], - ["8fcfa1", "睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"], - ["8fd0a1", "碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"], - ["8fd1a1", "秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"], - [ - "8fd2a1", - "笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙", - 5 - ], - ["8fd3a1", "籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"], - [ - "8fd4a1", - "綞綦綧綪綳綶綷綹緂", - 4, - "緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭" - ], - ["8fd5a1", "罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"], - ["8fd6a1", "胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"], - ["8fd7a1", "艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"], - ["8fd8a1", "荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"], - [ - "8fd9a1", - "蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏", - 4, - "蕖蕙蕜", - 6, - "蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼" - ], - [ - "8fdaa1", - "藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠", - 4, - "虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣" - ], - [ - "8fdba1", - "蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃", - 6, - "螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵" - ], - [ - "8fdca1", - "蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊", - 4, - "裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺" - ], - [ - "8fdda1", - "襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔", - 4, - "觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳" - ], - [ - "8fdea1", - "誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂", - 4, - "譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆" - ], - ["8fdfa1", "貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"], - ["8fe0a1", "踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"], - [ - "8fe1a1", - "轃轇轏轑", - 4, - "轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃" - ], - ["8fe2a1", "郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"], - [ - "8fe3a1", - "釂釃釅釓釔釗釙釚釞釤釥釩釪釬", - 5, - "釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵", - 4, - "鉻鉼鉽鉿銈銉銊銍銎銒銗" - ], - [ - "8fe4a1", - "銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿", - 4, - "鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶" - ], - [ - "8fe5a1", - "鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉", - 4, - "鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹" - ], - ["8fe6a1", "镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"], - ["8fe7a1", "霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"], - [ - "8fe8a1", - "頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱", - 4, - "餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵" - ], - [ - "8fe9a1", - "馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿", - 4 - ], - [ - "8feaa1", - "鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪", - 4, - "魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸" - ], - [ - "8feba1", - "鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦", - 4, - "鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻" - ], - ["8feca1", "鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"], - [ - "8feda1", - "黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃", - 4, - "齓齕齖齗齘齚齝齞齨齩齭", - 4, - "齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥" - ] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.json -var require_cp936 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) { - module.exports = [ - [ - "0", - "\0", - 127, - "€" - ], - [ - "8140", - "丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪", - 5, - "乲乴", - 9, - "乿", - 6, - "亇亊" - ], - [ - "8180", - "亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂", - 6, - "伋伌伒", - 4, - "伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾", - 4, - "佄佅佇", - 5, - "佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢" - ], - [ - "8240", - "侤侫侭侰", - 4, - "侶", - 8, - "俀俁係俆俇俈俉俋俌俍俒", - 4, - "俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿", - 11 - ], - [ - "8280", - "個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯", - 10, - "倻倽倿偀偁偂偄偅偆偉偊偋偍偐", - 4, - "偖偗偘偙偛偝", - 7, - "偦", - 5, - "偭", - 8, - "偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎", - 20, - "傤傦傪傫傭", - 4, - "傳", - 6, - "傼" - ], - [ - "8340", - "傽", - 17, - "僐", - 5, - "僗僘僙僛", - 10, - "僨僩僪僫僯僰僱僲僴僶", - 4, - "僼", - 9, - "儈" - ], - [ - "8380", - "儉儊儌", - 5, - "儓", - 13, - "儢", - 28, - "兂兇兊兌兎兏児兒兓兗兘兙兛兝", - 4, - "兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦", - 4, - "冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒", - 5 - ], - [ - "8440", - "凘凙凚凜凞凟凢凣凥", - 5, - "凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄", - 5, - "剋剎剏剒剓剕剗剘" - ], - [ - "8480", - "剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳", - 9, - "剾劀劃", - 4, - "劉", - 6, - "劑劒劔", - 6, - "劜劤劥劦劧劮劯劰労", - 9, - "勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務", - 5, - "勠勡勢勣勥", - 10, - "勱", - 7, - "勻勼勽匁匂匃匄匇匉匊匋匌匎" - ], - [ - "8540", - "匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯", - 9, - "匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏" - ], - [ - "8580", - "厐", - 4, - "厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯", - 6, - "厷厸厹厺厼厽厾叀參", - 4, - "収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝", - 4, - "呣呥呧呩", - 7, - "呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡" - ], - [ - "8640", - "咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠", - 4, - "哫哬哯哰哱哴", - 5, - "哻哾唀唂唃唄唅唈唊", - 4, - "唒唓唕", - 5, - "唜唝唞唟唡唥唦" - ], - [ - "8680", - "唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋", - 4, - "啑啒啓啔啗", - 4, - "啝啞啟啠啢啣啨啩啫啯", - 5, - "啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠", - 6, - "喨", - 8, - "喲喴営喸喺喼喿", - 4, - "嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗", - 4, - "嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸", - 4, - "嗿嘂嘃嘄嘅" - ], - [ - "8740", - "嘆嘇嘊嘋嘍嘐", - 7, - "嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀", - 11, - "噏", - 4, - "噕噖噚噛噝", - 4 - ], - [ - "8780", - "噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽", - 7, - "嚇", - 6, - "嚐嚑嚒嚔", - 14, - "嚤", - 10, - "嚰", - 6, - "嚸嚹嚺嚻嚽", - 12, - "囋", - 8, - "囕囖囘囙囜団囥", - 5, - "囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國", - 6 - ], - [ - "8840", - "園", - 9, - "圝圞圠圡圢圤圥圦圧圫圱圲圴", - 4, - "圼圽圿坁坃坄坅坆坈坉坋坒", - 4, - "坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀" - ], - [ - "8880", - "垁垇垈垉垊垍", - 4, - "垔", - 6, - "垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹", - 8, - "埄", - 6, - "埌埍埐埑埓埖埗埛埜埞埡埢埣埥", - 7, - "埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥", - 4, - "堫", - 4, - "報堲堳場堶", - 7 - ], - [ - "8940", - "堾", - 5, - "塅", - 6, - "塎塏塐塒塓塕塖塗塙", - 4, - "塟", - 5, - "塦", - 4, - "塭", - 16, - "塿墂墄墆墇墈墊墋墌" - ], - [ - "8980", - "墍", - 4, - "墔", - 4, - "墛墜墝墠", - 7, - "墪", - 17, - "墽墾墿壀壂壃壄壆", - 10, - "壒壓壔壖", - 13, - "壥", - 5, - "壭壯壱売壴壵壷壸壺", - 7, - "夃夅夆夈", - 4, - "夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻" - ], - [ - "8a40", - "夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛", - 4, - "奡奣奤奦", - 12, - "奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦" - ], - [ - "8a80", - "妧���妭妰妱妳", - 5, - "妺妼妽妿", - 6, - "姇姈姉姌姍姎姏姕姖姙姛姞", - 4, - "姤姦姧姩姪姫姭", - 11, - "姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪", - 6, - "娳娵娷", - 4, - "娽娾娿婁", - 4, - "婇婈婋", - 9, - "婖婗婘婙婛", - 5 - ], - [ - "8b40", - "婡婣婤婥婦婨婩婫", - 8, - "婸婹婻婼婽婾媀", - 17, - "媓", - 6, - "媜", - 13, - "媫媬" - ], - [ - "8b80", - "媭", - 4, - "媴媶媷媹", - 4, - "媿嫀嫃", - 5, - "嫊嫋嫍", - 4, - "嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬", - 4, - "嫲", - 22, - "嬊", - 11, - "嬘", - 25, - "嬳嬵嬶嬸", - 7, - "孁", - 6 - ], - [ - "8c40", - "孈", - 7, - "孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏" - ], - [ - "8c80", - "寑寔", - 8, - "寠寢寣實寧審", - 4, - "寯寱", - 6, - "寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧", - 6, - "屰屲", - 6, - "屻屼屽屾岀岃", - 4, - "岉岊岋岎岏岒岓岕岝", - 4, - "岤", - 4 - ], - [ - "8d40", - "岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅", - 5, - "峌", - 5, - "峓", - 5, - "峚", - 6, - "峢峣峧峩峫峬峮峯峱", - 9, - "峼", - 4 - ], - [ - "8d80", - "崁崄崅崈", - 5, - "崏", - 4, - "崕崗崘崙崚崜崝崟", - 4, - "崥崨崪崫崬崯", - 4, - "崵", - 7, - "崿", - 7, - "嵈嵉嵍", - 10, - "嵙嵚嵜嵞", - 10, - "嵪嵭嵮嵰嵱嵲嵳嵵", - 12, - "嶃", - 21, - "嶚嶛嶜嶞嶟嶠" - ], - [ - "8e40", - "嶡", - 21, - "嶸", - 12, - "巆", - 6, - "巎", - 12, - "巜巟巠巣巤巪巬巭" - ], - [ - "8e80", - "巰巵巶巸", - 4, - "巿帀帄帇帉帊帋帍帎帒帓帗帞", - 7, - "帨", - 4, - "帯帰帲", - 4, - "帹帺帾帿幀幁幃幆", - 5, - "幍", - 6, - "幖", - 4, - "幜幝幟幠幣", - 14, - "幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨", - 4, - "庮", - 4, - "庴庺庻庼庽庿", - 6 - ], - [ - "8f40", - "廆廇廈廋", - 5, - "廔廕廗廘廙廚廜", - 11, - "廩廫", - 8, - "廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤" - ], - [ - "8f80", - "弨弫弬弮弰弲", - 6, - "弻弽弾弿彁", - 14, - "彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢", - 5, - "復徫徬徯", - 5, - "徶徸徹徺徻徾", - 4, - "忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇" - ], - [ - "9040", - "怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰", - 4, - "怶", - 4, - "怽怾恀恄", - 6, - "恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀" - ], - [ - "9080", - "悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽", - 7, - "惇惈惉惌", - 4, - "惒惓惔惖惗惙惛惞惡", - 4, - "惪惱惲惵惷惸惻", - 4, - "愂愃愄愅愇愊愋愌愐", - 4, - "愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬", - 18, - "慀", - 6 - ], - [ - "9140", - "慇慉態慍慏慐慒慓慔慖", - 6, - "慞慟慠慡慣慤慥慦慩", - 6, - "慱慲慳慴慶慸", - 18, - "憌憍憏", - 4, - "憕" - ], - [ - "9180", - "憖", - 6, - "憞", - 8, - "憪憫憭", - 9, - "憸", - 5, - "憿懀懁懃", - 4, - "應懌", - 4, - "懓懕", - 16, - "懧", - 13, - "懶", - 8, - "戀", - 5, - "戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸", - 4, - "扂扄扅扆扊" - ], - [ - "9240", - "扏扐払扖扗扙扚扜", - 6, - "扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋", - 5, - "抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁" - ], - [ - "9280", - "拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳", - 5, - "挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖", - 7, - "捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙", - 6, - "採掤掦掫掯掱掲掵掶掹掻掽掿揀" - ], - [ - "9340", - "揁揂揃揅揇揈揊揋揌揑揓揔揕揗", - 6, - "揟揢揤", - 4, - "揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆", - 4, - "損搎搑搒搕", - 5, - "搝搟搢搣搤" - ], - [ - "9380", - "搥搧搨搩搫搮", - 5, - "搵", - 4, - "搻搼搾摀摂摃摉摋", - 6, - "摓摕摖摗摙", - 4, - "摟", - 7, - "摨摪摫摬摮", - 9, - "摻", - 6, - "撃撆撈", - 8, - "撓撔撗撘撚撛撜撝撟", - 4, - "撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆", - 6, - "擏擑擓擔擕擖擙據" - ], - [ - "9440", - "擛擜擝擟擠擡擣擥擧", - 24, - "攁", - 7, - "攊", - 7, - "攓", - 4, - "攙", - 8 - ], - [ - "9480", - "攢攣攤攦", - 4, - "攬攭攰攱攲攳攷攺攼攽敀", - 4, - "敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數", - 14, - "斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱", - 7, - "斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘", - 7, - "旡旣旤旪旫" - ], - [ - "9540", - "旲旳旴旵旸旹旻", - 4, - "昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷", - 4, - "昽昿晀時晄", - 6, - "晍晎晐晑晘" - ], - [ - "9580", - "晙晛晜晝晞晠晢晣晥晧晩", - 4, - "晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘", - 4, - "暞", - 8, - "暩", - 4, - "暯", - 4, - "暵暶暷暸暺暻暼暽暿", - 25, - "曚曞", - 7, - "曧曨曪", - 5, - "曱曵曶書曺曻曽朁朂會" - ], - [ - "9640", - "朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠", - 5, - "朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗", - 4, - "杝杢杣杤杦杧杫杬杮東杴杶" - ], - [ - "9680", - "杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹", - 7, - "柂柅", - 9, - "柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵", - 7, - "柾栁栂栃栄栆栍栐栒栔栕栘", - 4, - "栞栟栠栢", - 6, - "栫", - 6, - "栴栵栶栺栻栿桇桋桍桏桒桖", - 5 - ], - [ - "9740", - "桜桝桞桟桪桬", - 7, - "桵桸", - 8, - "梂梄梇", - 7, - "梐梑梒梔梕梖梘", - 9, - "梣梤梥梩梪梫梬梮梱梲梴梶梷梸" - ], - [ - "9780", - "梹", - 6, - "棁棃", - 5, - "棊棌棎棏棐棑棓棔棖棗棙棛", - 4, - "棡棢棤", - 9, - "棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆", - 4, - "椌椏椑椓", - 11, - "椡椢椣椥", - 7, - "椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃", - 16, - "楕楖楘楙楛楜楟" - ], - [ - "9840", - "楡楢楤楥楧楨楩楪楬業楯楰楲", - 4, - "楺楻楽楾楿榁榃榅榊榋榌榎", - 5, - "榖榗榙榚榝", - 9, - "榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽" - ], - [ - "9880", - "榾榿槀槂", - 7, - "構槍槏槑槒槓槕", - 5, - "槜槝槞槡", - 11, - "槮槯槰槱槳", - 9, - "槾樀", - 9, - "樋", - 11, - "標", - 5, - "樠樢", - 5, - "権樫樬樭樮樰樲樳樴樶", - 6, - "樿", - 4, - "橅橆橈", - 7, - "橑", - 6, - "橚" - ], - [ - "9940", - "橜", - 4, - "橢橣橤橦", - 10, - "橲", - 6, - "橺橻橽橾橿檁檂檃檅", - 8, - "檏檒", - 4, - "檘", - 7, - "檡", - 5 - ], - [ - "9980", - "檧檨檪檭", - 114, - "欥欦欨", - 6 - ], - [ - "9a40", - "欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍", - 11, - "歚", - 7, - "歨歩歫", - 13, - "歺歽歾歿殀殅殈" - ], - [ - "9a80", - "殌殎殏殐殑殔殕殗殘殙殜", - 4, - "殢", - 7, - "殫", - 7, - "殶殸", - 6, - "毀毃毄毆", - 4, - "毌毎毐毑毘毚毜", - 4, - "毢", - 7, - "毬毭毮毰毱毲毴毶毷毸毺毻毼毾", - 6, - "氈", - 4, - "氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋", - 4, - "汑汒汓汖汘" - ], - [ - "9b40", - "汙汚汢汣汥汦汧汫", - 4, - "汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘" - ], - [ - "9b80", - "泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟", - 5, - "洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽", - 4, - "涃涄涆涇涊涋涍涏涐涒涖", - 4, - "涜涢涥涬涭涰涱涳涴涶涷涹", - 5, - "淁淂淃淈淉淊" - ], - [ - "9c40", - "淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽", - 7, - "渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵" - ], - [ - "9c80", - "渶渷渹渻", - 7, - "湅", - 7, - "湏湐湑湒湕湗湙湚湜湝湞湠", - 10, - "湬湭湯", - 14, - "満溁溂溄溇溈溊", - 4, - "溑", - 6, - "溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪", - 5 - ], - [ - "9d40", - "滰滱滲滳滵滶滷滸滺", - 7, - "漃漄漅漇漈漊", - 4, - "漐漑漒漖", - 9, - "漡漢漣漥漦漧漨漬漮漰漲漴漵漷", - 6, - "漿潀潁潂" - ], - [ - "9d80", - "潃潄潅潈潉潊潌潎", - 9, - "潙潚潛潝潟潠潡潣潤潥潧", - 5, - "潯潰潱潳潵潶潷潹潻潽", - 6, - "澅澆澇澊澋澏", - 12, - "澝澞澟澠澢", - 4, - "澨", - 10, - "澴澵澷澸澺", - 5, - "濁濃", - 5, - "濊", - 6, - "濓", - 10, - "濟濢濣濤濥" - ], - [ - "9e40", - "濦", - 7, - "濰", - 32, - "瀒", - 7, - "瀜", - 6, - "瀤", - 6 - ], - [ - "9e80", - "瀫", - 9, - "瀶瀷瀸瀺", - 17, - "灍灎灐", - 13, - "灟", - 11, - "灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞", - 12, - "炰炲炴炵炶為炾炿烄烅烆烇烉烋", - 12, - "烚" - ], - [ - "9f40", - "烜烝烞烠烡烢烣烥烪烮烰", - 6, - "烸烺烻烼烾", - 10, - "焋", - 4, - "焑焒焔焗焛", - 10, - "焧", - 7, - "焲焳焴" - ], - [ - "9f80", - "焵焷", - 13, - "煆煇煈煉煋煍煏", - 12, - "煝煟", - 4, - "煥煩", - 4, - "煯煰煱煴煵煶煷煹煻煼煾", - 5, - "熅", - 4, - "熋熌熍熎熐熑熒熓熕熖熗熚", - 4, - "熡", - 6, - "熩熪熫熭", - 5, - "熴熶熷熸熺", - 8, - "燄", - 9, - "燏", - 4 - ], - [ - "a040", - "燖", - 9, - "燡燢燣燤燦燨", - 5, - "燯", - 9, - "燺", - 11, - "爇", - 19 - ], - [ - "a080", - "爛爜爞", - 9, - "爩爫爭爮爯爲爳爴爺爼爾牀", - 6, - "牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅", - 4, - "犌犎犐犑犓", - 11, - "犠", - 11, - "犮犱犲犳犵犺", - 6, - "狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛" - ], - [ - "a1a1", - " 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈", - 7, - "〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓" - ], - [ - "a2a1", - "ⅰ", - 9 - ], - [ - "a2b1", - "⒈", - 19, - "⑴", - 19, - "①", - 9 - ], - [ - "a2e5", - "㈠", - 9 - ], - [ - "a2f1", - "Ⅰ", - 11 - ], - [ - "a3a1", - "!"#¥%", - 88, - " ̄" - ], - [ - "a4a1", - "ぁ", - 82 - ], - [ - "a5a1", - "ァ", - 85 - ], - [ - "a6a1", - "Α", - 16, - "Σ", - 6 - ], - [ - "a6c1", - "α", - 16, - "σ", - 6 - ], - ["a6e0", "︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"], - ["a6ee", "︻︼︷︸︱"], - ["a6f4", "︳︴"], - [ - "a7a1", - "А", - 5, - "ЁЖ", - 25 - ], - [ - "a7d1", - "а", - 5, - "ёж", - 25 - ], - [ - "a840", - "ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═", - 35, - "▁", - 6 - ], - [ - "a880", - "█", - 7, - "▓▔▕▼▽◢◣◤◥☉⊕〒〝〞" - ], - ["a8a1", "āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"], - ["a8bd", "ńň"], - ["a8c0", "ɡ"], - [ - "a8c5", - "ㄅ", - 36 - ], - [ - "a940", - "〡", - 8, - "㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦" - ], - ["a959", "℡㈱"], - ["a95c", "‐"], - [ - "a960", - "ー゛゜ヽヾ〆ゝゞ﹉", - 9, - "﹔﹕﹖﹗﹙", - 8 - ], - [ - "a980", - "﹢", - 4, - "﹨﹩﹪﹫" - ], - ["a996", "〇"], - [ - "a9a4", - "─", - 75 - ], - [ - "aa40", - "狜狝狟狢", - 5, - "狪狫狵狶狹狽狾狿猀猂猄", - 5, - "猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀", - 8 - ], - [ - "aa80", - "獉獊獋獌獎獏獑獓獔獕獖獘", - 7, - "獡", - 10, - "獮獰獱" - ], - [ - "ab40", - "獲", - 11, - "獿", - 4, - "玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣", - 5, - "玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃", - 4 - ], - [ - "ab80", - "珋珌珎珒", - 6, - "珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳", - 4 - ], - [ - "ac40", - "珸", - 10, - "琄琇琈琋琌琍琎琑", - 8, - "琜", - 5, - "琣琤琧琩琫琭琯琱琲琷", - 4, - "琽琾琿瑀瑂", - 11 - ], - [ - "ac80", - "瑎", - 6, - "瑖瑘瑝瑠", - 12, - "瑮瑯瑱", - 4, - "瑸瑹瑺" - ], - [ - "ad40", - "瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑", - 10, - "璝璟", - 7, - "璪", - 15, - "璻", - 12 - ], - [ - "ad80", - "瓈", - 9, - "瓓", - 8, - "瓝瓟瓡瓥瓧", - 6, - "瓰瓱瓲" - ], - [ - "ae40", - "瓳瓵瓸", - 6, - "甀甁甂甃甅", - 7, - "甎甐甒甔甕甖甗甛甝甞甠", - 4, - "甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘" - ], - [ - "ae80", - "畝", - 7, - "畧畨畩畫", - 6, - "畳畵當畷畺", - 4, - "疀疁疂疄疅疇" - ], - [ - "af40", - "疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦", - 4, - "疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇" - ], - ["af80", "瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"], - [ - "b040", - "癅", - 6, - "癎", - 5, - "癕癗", - 4, - "癝癟癠癡癢癤", - 6, - "癬癭癮癰", - 7, - "癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛" - ], - [ - "b080", - "皜", - 7, - "皥", - 8, - "皯皰皳皵", - 9, - "盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥" - ], - [ - "b140", - "盄盇盉盋盌盓盕盙盚盜盝盞盠", - 4, - "盦", - 7, - "盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎", - 10, - "眛眜眝眞眡眣眤眥眧眪眫" - ], - [ - "b180", - "眬眮眰", - 4, - "眹眻眽眾眿睂睄睅睆睈", - 7, - "睒", - 7, - "睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳" - ], - [ - "b240", - "睝睞睟睠睤睧睩睪睭", - 11, - "睺睻睼瞁瞂瞃瞆", - 5, - "瞏瞐瞓", - 11, - "瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶", - 4 - ], - [ - "b280", - "瞼瞾矀", - 12, - "矎", - 8, - "矘矙矚矝", - 4, - "矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖" - ], - [ - "b340", - "矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃", - 5, - "砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚" - ], - [ - "b380", - "硛硜硞", - 11, - "硯", - 7, - "硸硹硺硻硽", - 6, - "场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚" - ], - [ - "b440", - "碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨", - 7, - "碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚", - 9 - ], - [ - "b480", - "磤磥磦磧磩磪磫磭", - 4, - "磳磵磶磸磹磻", - 5, - "礂礃礄礆", - 6, - "础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮" - ], - [ - "b540", - "礍", - 5, - "礔", - 9, - "礟", - 4, - "礥", - 14, - "礵", - 4, - "礽礿祂祃祄祅祇祊", - 8, - "祔祕祘祙祡祣" - ], - [ - "b580", - "祤祦祩祪祫祬祮祰", - 6, - "祹祻", - 4, - "禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠" - ], - [ - "b640", - "禓", - 6, - "禛", - 11, - "禨", - 10, - "禴", - 4, - "禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙", - 5, - "秠秡秢秥秨秪" - ], - [ - "b680", - "秬秮秱", - 6, - "秹秺秼秾秿稁稄稅稇稈稉稊稌稏", - 4, - "稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二" - ], - [ - "b740", - "稝稟稡稢稤", - 14, - "稴稵稶稸稺稾穀", - 5, - "穇", - 9, - "穒", - 4, - "穘", - 16 - ], - [ - "b780", - "穩", - 6, - "穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服" - ], - [ - "b840", - "窣窤窧窩窪窫窮", - 4, - "窴", - 10, - "竀", - 10, - "竌", - 9, - "竗竘竚竛竜竝竡竢竤竧", - 5, - "竮竰竱竲竳" - ], - [ - "b880", - "竴", - 4, - "竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹" - ], - [ - "b940", - "笯笰笲笴笵笶笷笹笻笽笿", - 5, - "筆筈筊筍筎筓筕筗筙筜筞筟筡筣", - 10, - "筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆", - 6, - "箎箏" - ], - [ - "b980", - "箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹", - 7, - "篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈" - ], - [ - "ba40", - "篅篈築篊篋篍篎篏篐篒篔", - 4, - "篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲", - 4, - "篸篹篺篻篽篿", - 7, - "簈簉簊簍簎簐", - 5, - "簗簘簙" - ], - [ - "ba80", - "簚", - 4, - "簠", - 5, - "簨簩簫", - 12, - "簹", - 5, - "籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖" - ], - [ - "bb40", - "籃", - 9, - "籎", - 36, - "籵", - 5, - "籾", - 9 - ], - [ - "bb80", - "粈粊", - 6, - "粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴", - 4, - "粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕" - ], - [ - "bc40", - "粿糀糂糃糄糆糉糋糎", - 6, - "糘糚糛糝糞糡", - 6, - "糩", - 5, - "糰", - 7, - "糹糺糼", - 13, - "紋", - 5 - ], - [ - "bc80", - "紑", - 14, - "紡紣紤紥紦紨紩紪紬紭紮細", - 6, - "肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件" - ], - [ - "bd40", - "紷", - 54, - "絯", - 7 - ], - [ - "bd80", - "絸", - 32, - "健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸" - ], - [ - "be40", - "継", - 12, - "綧", - 6, - "綯", - 42 - ], - [ - "be80", - "線", - 32, - "尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻" - ], - [ - "bf40", - "緻", - 62 - ], - [ - "bf80", - "縺縼", - 4, - "繂", - 4, - "繈", - 21, - "俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀" - ], - [ - "c040", - "繞", - 35, - "纃", - 23, - "纜纝纞" - ], - [ - "c080", - "纮纴纻纼绖绤绬绹缊缐缞缷缹缻", - 6, - "罃罆", - 9, - "罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐" - ], - [ - "c140", - "罖罙罛罜罝罞罠罣", - 4, - "罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂", - 7, - "羋羍羏", - 4, - "羕", - 4, - "羛羜羠羢羣羥羦羨", - 6, - "羱" - ], - [ - "c180", - "羳", - 4, - "羺羻羾翀翂翃翄翆翇翈翉翋翍翏", - 4, - "翖翗翙", - 5, - "翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿" - ], - [ - "c240", - "翤翧翨翪翫翬翭翯翲翴", - 6, - "翽���翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫", - 5, - "耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗" - ], - [ - "c280", - "聙聛", - 13, - "聫", - 5, - "聲", - 11, - "隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫" - ], - [ - "c340", - "聾肁肂肅肈肊肍", - 5, - "肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇", - 4, - "胏", - 6, - "胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋" - ], - [ - "c380", - "脌脕脗脙脛脜脝脟", - 12, - "脭脮脰脳脴脵脷脹", - 4, - "脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸" - ], - [ - "c440", - "腀", - 5, - "腇腉腍腎腏腒腖腗腘腛", - 4, - "腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃", - 4, - "膉膋膌膍膎膐膒", - 5, - "膙膚膞", - 4, - "膤膥" - ], - [ - "c480", - "膧膩膫", - 7, - "膴", - 5, - "膼膽膾膿臄臅臇臈臉臋臍", - 6, - "摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁" - ], - [ - "c540", - "臔", - 14, - "臤臥臦臨臩臫臮", - 4, - "臵", - 5, - "臽臿舃與", - 4, - "舎舏舑舓舕", - 5, - "舝舠舤舥舦舧舩舮舲舺舼舽舿" - ], - [ - "c580", - "艀艁艂艃艅艆艈艊艌艍艎艐", - 7, - "艙艛艜艝艞艠", - 7, - "艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗" - ], - ["c640", "艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"], - [ - "c680", - "苺苼", - 4, - "茊茋茍茐茒茓茖茘茙茝", - 9, - "茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐" - ], - [ - "c740", - "茾茿荁荂荄荅荈荊", - 4, - "荓荕", - 4, - "荝荢荰", - 6, - "荹荺荾", - 6, - "莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡", - 6, - "莬莭莮" - ], - ["c780", "莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"], - [ - "c840", - "菮華菳", - 4, - "菺菻菼菾菿萀萂萅萇萈萉萊萐萒", - 5, - "萙萚萛萞", - 5, - "萩", - 7, - "萲", - 5, - "萹萺萻萾", - 7, - "葇葈葉" - ], - [ - "c880", - "葊", - 6, - "葒", - 4, - "葘葝葞葟葠葢葤", - 4, - "葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁" - ], - [ - "c940", - "葽", - 4, - "蒃蒄蒅蒆蒊蒍蒏", - 7, - "蒘蒚蒛蒝蒞蒟蒠蒢", - 12, - "蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗" - ], - [ - "c980", - "蓘", - 4, - "蓞蓡蓢蓤蓧", - 4, - "蓭蓮蓯蓱", - 10, - "蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳" - ], - [ - "ca40", - "蔃", - 8, - "蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢", - 8, - "蔭", - 9, - "蔾", - 4, - "蕄蕅蕆蕇蕋", - 10 - ], - [ - "ca80", - "蕗蕘蕚蕛蕜蕝蕟", - 4, - "蕥蕦蕧蕩", - 8, - "蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱" - ], - [ - "cb40", - "薂薃薆薈", - 6, - "薐", - 10, - "薝", - 6, - "薥薦薧薩薫薬薭薱", - 5, - "薸薺", - 6, - "藂", - 6, - "藊", - 4, - "藑藒" - ], - [ - "cb80", - "藔藖", - 5, - "藝", - 6, - "藥藦藧藨藪", - 14, - "恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔" - ], - [ - "cc40", - "藹藺藼藽藾蘀", - 4, - "蘆", - 10, - "蘒蘓蘔蘕蘗", - 15, - "蘨蘪", - 13, - "蘹蘺蘻蘽蘾蘿虀" - ], - [ - "cc80", - "虁", - 11, - "虒虓處", - 4, - "虛虜虝號虠虡虣", - 7, - "獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃" - ], - [ - "cd40", - "虭虯虰虲", - 6, - "蚃", - 6, - "蚎", - 4, - "蚔蚖", - 5, - "蚞", - 4, - "蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻", - 4, - "蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜" - ], - ["cd80", "蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"], - [ - "ce40", - "蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀", - 6, - "蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚", - 5, - "蝡蝢蝦", - 7, - "蝯蝱蝲蝳蝵" - ], - [ - "ce80", - "蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎", - 4, - "螔螕螖螘", - 6, - "螠", - 4, - "巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺" - ], - [ - "cf40", - "螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁", - 4, - "蟇蟈蟉蟌", - 4, - "蟔", - 6, - "蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯", - 9 - ], - [ - "cf80", - "蟺蟻蟼蟽蟿蠀蠁蠂蠄", - 5, - "蠋", - 7, - "蠔蠗蠘蠙蠚蠜", - 4, - "蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓" - ], - [ - "d040", - "蠤", - 13, - "蠳", - 5, - "蠺蠻蠽蠾蠿衁衂衃衆", - 5, - "衎", - 5, - "衕衖衘衚", - 6, - "衦衧衪衭衯衱衳衴衵衶衸衹衺" - ], - [ - "d080", - "衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗", - 4, - "袝", - 4, - "袣袥", - 5, - "小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄" - ], - [ - "d140", - "袬袮袯袰袲", - 4, - "袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚", - 4, - "裠裡裦裧裩", - 6, - "裲裵裶裷裺裻製裿褀褁褃", - 5 - ], - [ - "d180", - "褉褋", - 4, - "褑褔", - 4, - "褜", - 4, - "褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶" - ], - [ - "d240", - "褸", - 8, - "襂襃襅", - 24, - "襠", - 5, - "襧", - 19, - "襼" - ], - [ - "d280", - "襽襾覀覂覄覅覇", - 26, - "摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐" - ], - [ - "d340", - "覢", - 30, - "觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴", - 6 - ], - [ - "d380", - "觻", - 4, - "訁", - 5, - "計", - 21, - "印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉" - ], - [ - "d440", - "訞", - 31, - "訿", - 8, - "詉", - 21 - ], - [ - "d480", - "詟", - 25, - "詺", - 6, - "浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧" - ], - [ - "d540", - "誁", - 7, - "誋", - 7, - "誔", - 46 - ], - [ - "d580", - "諃", - 32, - "铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政" - ], - [ - "d640", - "諤", - 34, - "謈", - 27 - ], - [ - "d680", - "謤謥謧", - 30, - "帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑" - ], - [ - "d740", - "譆", - 31, - "譧", - 4, - "譭", - 25 - ], - [ - "d780", - "讇", - 24, - "讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座" - ], - [ - "d840", - "谸", - 8, - "豂豃豄豅豈豊豋豍", - 7, - "豖豗豘豙豛", - 5, - "豣", - 6, - "豬", - 6, - "豴豵豶豷豻", - 6, - "貃貄貆貇" - ], - [ - "d880", - "貈貋貍", - 6, - "貕貖貗貙", - 20, - "亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝" - ], - [ - "d940", - "貮", - 62 - ], - [ - "d980", - "賭", - 32, - "佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼" - ], - [ - "da40", - "贎", - 14, - "贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸", - 8, - "趂趃趆趇趈趉趌", - 4, - "趒趓趕", - 9, - "趠趡" - ], - [ - "da80", - "趢趤", - 12, - "趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺" - ], - [ - "db40", - "跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾", - 6, - "踆踇踈踋踍踎踐踑踒踓踕", - 7, - "踠踡踤", - 4, - "踫踭踰踲踳踴踶踷踸踻踼踾" - ], - [ - "db80", - "踿蹃蹅蹆蹌", - 4, - "蹓", - 5, - "蹚", - 11, - "蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝" - ], - [ - "dc40", - "蹳蹵蹷", - 4, - "蹽蹾躀躂躃躄躆躈", - 6, - "躑躒躓躕", - 6, - "躝躟", - 11, - "躭躮躰躱躳", - 6, - "躻", - 7 - ], - [ - "dc80", - "軃", - 10, - "軏", - 21, - "堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥" - ], - [ - "dd40", - "軥", - 62 - ], - [ - "dd80", - "輤", - 32, - "荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺" - ], - [ - "de40", - "轅", - 32, - "轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆" - ], - [ - "de80", - "迉", - 4, - "迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖" - ], - [ - "df40", - "這逜連逤逥逧", - 5, - "逰", - 4, - "逷逹逺逽逿遀遃遅遆遈", - 4, - "過達違遖遙遚遜", - 5, - "遤遦遧適遪遫遬遯", - 4, - "遶", - 6, - "遾邁" - ], - [ - "df80", - "還邅邆邇邉邊邌", - 4, - "邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼" - ], - [ - "e040", - "郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅", - 19, - "鄚鄛鄜" - ], - [ - "e080", - "鄝鄟鄠鄡鄤", - 10, - "鄰鄲", - 6, - "鄺", - 8, - "酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼" - ], - [ - "e140", - "酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀", - 4, - "醆醈醊醎醏醓", - 6, - "醜", - 5, - "醤", - 5, - "醫醬醰醱醲醳醶醷醸醹醻" - ], - [ - "e180", - "醼", - 10, - "釈釋釐釒", - 9, - "針", - 8, - "帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺" - ], - [ - "e240", - "釦", - 62 - ], - [ - "e280", - "鈥", - 32, - "狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧", - 5, - "饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂" - ], - [ - "e340", - "鉆", - 45, - "鉵", - 16 - ], - [ - "e380", - "銆", - 7, - "銏", - 24, - "恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾" - ], - [ - "e440", - "銨", - 5, - "銯", - 24, - "鋉", - 31 - ], - [ - "e480", - "鋩", - 32, - "洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑" - ], - [ - "e540", - "錊", - 51, - "錿", - 10 - ], - [ - "e580", - "鍊", - 31, - "鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣" - ], - [ - "e640", - "鍬", - 34, - "鎐", - 27 - ], - [ - "e680", - "鎬", - 29, - "鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩" - ], - [ - "e740", - "鏎", - 7, - "鏗", - 54 - ], - [ - "e780", - "鐎", - 32, - "纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡", - 6, - "缪缫缬缭缯", - 4, - "缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬" - ], - [ - "e840", - "鐯", - 14, - "鐿", - 43, - "鑬鑭鑮鑯" - ], - [ - "e880", - "鑰", - 20, - "钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹" - ], - [ - "e940", - "锧锳锽镃镈镋镕镚镠镮镴镵長", - 7, - "門", - 42 - ], - [ - "e980", - "閫", - 32, - "椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋" - ], - [ - "ea40", - "闌", - 27, - "闬闿阇阓阘阛阞阠阣", - 6, - "阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗" - ], - [ - "ea80", - "陘陙陚陜陝陞陠陣陥陦陫陭", - 4, - "陳陸", - 12, - "隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰" - ], - [ - "eb40", - "隌階隑隒隓隕隖隚際隝", - 9, - "隨", - 7, - "隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖", - 9, - "雡", - 6, - "雫" - ], - [ - "eb80", - "雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗", - 4, - "霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻" - ], - [ - "ec40", - "霡", - 8, - "霫霬霮霯霱霳", - 4, - "霺霻霼霽霿", - 18, - "靔靕靗靘靚靜靝靟靣靤靦靧靨靪", - 7 - ], - [ - "ec80", - "靲靵靷", - 4, - "靽", - 7, - "鞆", - 4, - "鞌鞎鞏鞐鞓鞕鞖鞗鞙", - 4, - "臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐" - ], - [ - "ed40", - "鞞鞟鞡鞢鞤", - 6, - "鞬鞮鞰鞱鞳鞵", - 46 - ], - [ - "ed80", - "韤韥韨韮", - 4, - "韴韷", - 23, - "怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨" - ], - [ - "ee40", - "頏", - 62 - ], - [ - "ee80", - "顎", - 32, - "睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶", - 4, - "钼钽钿铄铈", - 6, - "铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪" - ], - [ - "ef40", - "顯", - 5, - "颋颎颒颕颙颣風", - 37, - "飏飐飔飖飗飛飜飝飠", - 4 - ], - [ - "ef80", - "飥飦飩", - 30, - "铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒", - 4, - "锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤", - 8, - "镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔" - ], - [ - "f040", - "餈", - 4, - "餎餏餑", - 28, - "餯", - 26 - ], - [ - "f080", - "饊", - 9, - "饖", - 12, - "饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨", - 4, - "鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦", - 6, - "鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙" - ], - [ - "f140", - "馌馎馚", - 10, - "馦馧馩", - 47 - ], - [ - "f180", - "駙", - 32, - "瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃" - ], - [ - "f240", - "駺", - 62 - ], - [ - "f280", - "騹", - 32, - "颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒" - ], - [ - "f340", - "驚", - 17, - "驲骃骉骍骎骔骕骙骦骩", - 6, - "骲骳骴骵骹骻骽骾骿髃髄髆", - 4, - "髍髎髏髐髒體髕髖髗髙髚髛髜" - ], - [ - "f380", - "髝髞髠髢髣髤髥髧髨髩髪髬髮髰", - 8, - "髺髼", - 6, - "鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥���篪簌篾篼簏簖簋" - ], - [ - "f440", - "鬇鬉", - 5, - "鬐鬑鬒鬔", - 10, - "鬠鬡鬢鬤", - 10, - "鬰鬱鬳", - 7, - "鬽鬾鬿魀魆魊魋魌魎魐魒魓魕", - 5 - ], - [ - "f480", - "魛", - 32, - "簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤" - ], - [ - "f540", - "魼", - 62 - ], - [ - "f580", - "鮻", - 32, - "酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜" - ], - [ - "f640", - "鯜", - 62 - ], - [ - "f680", - "鰛", - 32, - "觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅", - 5, - "龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞", - 5, - "鲥", - 4, - "鲫鲭鲮鲰", - 7, - "鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋" - ], - [ - "f740", - "鰼", - 62 - ], - [ - "f780", - "鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾", - 4, - "鳈鳉鳑鳒鳚鳛鳠鳡鳌", - 4, - "鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄" - ], - [ - "f840", - "鳣", - 62 - ], - [ - "f880", - "鴢", - 32 - ], - [ - "f940", - "鵃", - 62 - ], - [ - "f980", - "鶂", - 32 - ], - [ - "fa40", - "鶣", - 62 - ], - [ - "fa80", - "鷢", - 32 - ], - [ - "fb40", - "鸃", - 27, - "鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴", - 9, - "麀" - ], - [ - "fb80", - "麁麃麄麅麆麉麊麌", - 5, - "麔", - 8, - "麞麠", - 5, - "麧麨麩麪" - ], - [ - "fc40", - "麫", - 8, - "麵麶麷麹麺麼麿", - 4, - "黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰", - 8, - "黺黽黿", - 6 - ], - [ - "fc80", - "鼆", - 4, - "鼌鼏鼑鼒鼔鼕鼖鼘鼚", - 5, - "鼡鼣", - 8, - "鼭鼮鼰鼱" - ], - [ - "fd40", - "鼲", - 4, - "鼸鼺鼼鼿", - 4, - "齅", - 10, - "齒", - 38 - ], - [ - "fd80", - "齹", - 5, - "龁龂龍", - 11, - "龜龝龞龡", - 4, - "郎凉秊裏隣" - ], - ["fe40", "兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.json -var require_gbk_added = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) { - module.exports = [ - [ - "a140", - "", - 62 - ], - [ - "a180", - "", - 32 - ], - [ - "a240", - "", - 62 - ], - [ - "a280", - "", - 32 - ], - [ - "a2ab", - "", - 5 - ], - ["a2e3", "€"], - ["a2ef", ""], - ["a2fd", ""], - [ - "a340", - "", - 62 - ], - [ - "a380", - "", - 31, - " " - ], - [ - "a440", - "", - 62 - ], - [ - "a480", - "", - 32 - ], - [ - "a4f4", - "", - 10 - ], - [ - "a540", - "", - 62 - ], - [ - "a580", - "", - 32 - ], - [ - "a5f7", - "", - 7 - ], - [ - "a640", - "", - 62 - ], - [ - "a680", - "", - 32 - ], - [ - "a6b9", - "", - 7 - ], - [ - "a6d9", - "", - 6 - ], - ["a6ec", ""], - ["a6f3", ""], - [ - "a6f6", - "", - 8 - ], - [ - "a740", - "", - 62 - ], - [ - "a780", - "", - 32 - ], - [ - "a7c2", - "", - 14 - ], - [ - "a7f2", - "", - 12 - ], - [ - "a896", - "", - 10 - ], - ["a8bc", "ḿ"], - ["a8bf", "ǹ"], - ["a8c1", ""], - [ - "a8ea", - "", - 20 - ], - ["a958", ""], - ["a95b", ""], - ["a95d", ""], - [ - "a989", - "〾⿰", - 11 - ], - [ - "a997", - "", - 12 - ], - [ - "a9f0", - "", - 14 - ], - [ - "aaa1", - "", - 93 - ], - [ - "aba1", - "", - 93 - ], - [ - "aca1", - "", - 93 - ], - [ - "ada1", - "", - 93 - ], - [ - "aea1", - "", - 93 - ], - [ - "afa1", - "", - 93 - ], - [ - "d7fa", - "", - 4 - ], - [ - "f8a1", - "", - 93 - ], - [ - "f9a1", - "", - 93 - ], - [ - "faa1", - "", - 93 - ], - [ - "fba1", - "", - 93 - ], - [ - "fca1", - "", - 93 - ], - [ - "fda1", - "", - 93 - ], - ["fe50", "⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳���㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"], - [ - "fe80", - "䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓", - 6, - "䶮", - 93 - ], - ["8135f437", ""] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json -var require_gb18030_ranges = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) { - module.exports = { - "uChars": [ - 128, - 165, - 169, - 178, - 184, - 216, - 226, - 235, - 238, - 244, - 248, - 251, - 253, - 258, - 276, - 284, - 300, - 325, - 329, - 334, - 364, - 463, - 465, - 467, - 469, - 471, - 473, - 475, - 477, - 506, - 594, - 610, - 712, - 716, - 730, - 930, - 938, - 962, - 970, - 1026, - 1104, - 1106, - 8209, - 8215, - 8218, - 8222, - 8231, - 8241, - 8244, - 8246, - 8252, - 8365, - 8452, - 8454, - 8458, - 8471, - 8482, - 8556, - 8570, - 8596, - 8602, - 8713, - 8720, - 8722, - 8726, - 8731, - 8737, - 8740, - 8742, - 8748, - 8751, - 8760, - 8766, - 8777, - 8781, - 8787, - 8802, - 8808, - 8816, - 8854, - 8858, - 8870, - 8896, - 8979, - 9322, - 9372, - 9548, - 9588, - 9616, - 9622, - 9634, - 9652, - 9662, - 9672, - 9676, - 9680, - 9702, - 9735, - 9738, - 9793, - 9795, - 11906, - 11909, - 11913, - 11917, - 11928, - 11944, - 11947, - 11951, - 11956, - 11960, - 11964, - 11979, - 12284, - 12292, - 12312, - 12319, - 12330, - 12351, - 12436, - 12447, - 12535, - 12543, - 12586, - 12842, - 12850, - 12964, - 13200, - 13215, - 13218, - 13253, - 13263, - 13267, - 13270, - 13384, - 13428, - 13727, - 13839, - 13851, - 14617, - 14703, - 14801, - 14816, - 14964, - 15183, - 15471, - 15585, - 16471, - 16736, - 17208, - 17325, - 17330, - 17374, - 17623, - 17997, - 18018, - 18212, - 18218, - 18301, - 18318, - 18760, - 18811, - 18814, - 18820, - 18823, - 18844, - 18848, - 18872, - 19576, - 19620, - 19738, - 19887, - 40870, - 59244, - 59336, - 59367, - 59413, - 59417, - 59423, - 59431, - 59437, - 59443, - 59452, - 59460, - 59478, - 59493, - 63789, - 63866, - 63894, - 63976, - 63986, - 64016, - 64018, - 64021, - 64025, - 64034, - 64037, - 64042, - 65074, - 65093, - 65107, - 65112, - 65127, - 65132, - 65375, - 65510, - 65536 - ], - "gbChars": [ - 0, - 36, - 38, - 45, - 50, - 81, - 89, - 95, - 96, - 100, - 103, - 104, - 105, - 109, - 126, - 133, - 148, - 172, - 175, - 179, - 208, - 306, - 307, - 308, - 309, - 310, - 311, - 312, - 313, - 341, - 428, - 443, - 544, - 545, - 558, - 741, - 742, - 749, - 750, - 805, - 819, - 820, - 7922, - 7924, - 7925, - 7927, - 7934, - 7943, - 7944, - 7945, - 7950, - 8062, - 8148, - 8149, - 8152, - 8164, - 8174, - 8236, - 8240, - 8262, - 8264, - 8374, - 8380, - 8381, - 8384, - 8388, - 8390, - 8392, - 8393, - 8394, - 8396, - 8401, - 8406, - 8416, - 8419, - 8424, - 8437, - 8439, - 8445, - 8482, - 8485, - 8496, - 8521, - 8603, - 8936, - 8946, - 9046, - 9050, - 9063, - 9066, - 9076, - 9092, - 9100, - 9108, - 9111, - 9113, - 9131, - 9162, - 9164, - 9218, - 9219, - 11329, - 11331, - 11334, - 11336, - 11346, - 11361, - 11363, - 11366, - 11370, - 11372, - 11375, - 11389, - 11682, - 11686, - 11687, - 11692, - 11694, - 11714, - 11716, - 11723, - 11725, - 11730, - 11736, - 11982, - 11989, - 12102, - 12336, - 12348, - 12350, - 12384, - 12393, - 12395, - 12397, - 12510, - 12553, - 12851, - 12962, - 12973, - 13738, - 13823, - 13919, - 13933, - 14080, - 14298, - 14585, - 14698, - 15583, - 15847, - 16318, - 16434, - 16438, - 16481, - 16729, - 17102, - 17122, - 17315, - 17320, - 17402, - 17418, - 17859, - 17909, - 17911, - 17915, - 17916, - 17936, - 17939, - 17961, - 18664, - 18703, - 18814, - 18962, - 19043, - 33469, - 33470, - 33471, - 33484, - 33485, - 33490, - 33497, - 33501, - 33505, - 33513, - 33520, - 33536, - 33550, - 37845, - 37921, - 37948, - 38029, - 38038, - 38064, - 38065, - 38066, - 38069, - 38075, - 38076, - 38078, - 39108, - 39109, - 39113, - 39114, - 39115, - 39116, - 39265, - 39394, - 189e3 - ] - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.json -var require_cp949 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) { - module.exports = [ - [ - "0", - "\0", - 127 - ], - [ - "8141", - "갂갃갅갆갋", - 4, - "갘갞갟갡갢갣갥", - 6, - "갮갲갳갴" - ], - [ - "8161", - "갵갶갷갺갻갽갾갿걁", - 9, - "걌걎", - 5, - "걕" - ], - [ - "8181", - "걖걗걙걚걛걝", - 18, - "걲걳걵걶걹걻", - 4, - "겂겇겈겍겎겏겑겒겓겕", - 6, - "겞겢", - 5, - "겫겭겮겱", - 6, - "겺겾겿곀곂곃곅곆곇곉곊곋곍", - 7, - "곖곘", - 7, - "곢곣곥곦곩곫곭곮곲곴곷", - 4, - "곾곿괁괂괃괅괇", - 4, - "괎괐괒괓" - ], - [ - "8241", - "괔괕괖괗괙괚괛괝괞괟괡", - 7, - "괪괫괮", - 5 - ], - [ - "8261", - "괶괷괹괺괻괽", - 6, - "굆굈굊", - 5, - "굑굒굓굕굖굗" - ], - [ - "8281", - "굙", - 7, - "굢굤", - 7, - "굮굯굱굲굷굸굹굺굾궀궃", - 4, - "궊궋궍궎궏궑", - 10, - "궞", - 5, - "궥", - 17, - "궸", - 7, - "귂귃귅귆귇귉", - 6, - "귒귔", - 7, - "귝귞귟귡귢귣귥", - 18 - ], - [ - "8341", - "귺귻귽귾긂", - 5, - "긊긌긎", - 5, - "긕", - 7 - ], - [ - "8361", - "긝", - 18, - "긲긳긵긶긹긻긼" - ], - [ - "8381", - "긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗", - 4, - "깞깢깣깤깦깧깪깫깭깮깯깱", - 6, - "깺깾", - 5, - "꺆", - 5, - "꺍", - 46, - "꺿껁껂껃껅", - 6, - "껎껒", - 5, - "껚껛껝", - 8 - ], - [ - "8441", - "껦껧껩껪껬껮", - 5, - "껵껶껷껹껺껻껽", - 8 - ], - [ - "8461", - "꼆꼉꼊꼋꼌꼎꼏꼑", - 18 - ], - [ - "8481", - "꼤", - 7, - "꼮꼯꼱꼳꼵", - 6, - "꼾꽀꽄꽅꽆꽇꽊", - 5, - "꽑", - 10, - "꽞", - 5, - "꽦", - 18, - "꽺", - 5, - "꾁꾂꾃꾅꾆꾇꾉", - 6, - "꾒꾓꾔꾖", - 5, - "꾝", - 26, - "꾺꾻꾽꾾" - ], - [ - "8541", - "꾿꿁", - 5, - "꿊꿌꿏", - 4, - "꿕", - 6, - "꿝", - 4 - ], - [ - "8561", - "꿢", - 5, - "꿪", - 5, - "꿲꿳꿵꿶꿷꿹", - 6, - "뀂뀃" - ], - [ - "8581", - "뀅", - 6, - "뀍뀎뀏뀑뀒뀓뀕", - 6, - "뀞", - 9, - "뀩", - 26, - "끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞", - 29, - "끾끿낁낂낃낅", - 6, - "낎낐낒", - 5, - "낛낝낞낣낤" - ], - [ - "8641", - "낥낦낧낪낰낲낶낷낹낺낻낽", - 6, - "냆냊", - 5, - "냒" - ], - [ - "8661", - "냓냕냖냗냙", - 6, - "냡냢냣냤냦", - 10 - ], - [ - "8681", - "냱", - 22, - "넊넍넎넏넑넔넕넖넗넚넞", - 4, - "넦넧넩넪넫넭", - 6, - "넶넺", - 5, - "녂녃녅녆녇녉", - 6, - "녒녓녖녗녙녚녛녝녞녟녡", - 22, - "녺녻녽녾녿놁놃", - 4, - "놊놌놎놏놐놑놕놖놗놙놚놛놝" - ], - [ - "8741", - "놞", - 9, - "놩", - 15 - ], - [ - "8761", - "놹", - 18, - "뇍뇎뇏뇑뇒뇓뇕" - ], - [ - "8781", - "뇖", - 5, - "뇞뇠", - 7, - "뇪뇫뇭뇮뇯뇱", - 7, - "뇺뇼뇾", - 5, - "눆눇눉눊눍", - 6, - "눖눘눚", - 5, - "눡", - 18, - "눵", - 6, - "눽", - 26, - "뉙뉚뉛뉝뉞뉟뉡", - 6, - "뉪", - 4 - ], - [ - "8841", - "뉯", - 4, - "뉶", - 5, - "뉽", - 6, - "늆늇늈늊", - 4 - ], - [ - "8861", - "늏늒늓늕늖늗늛", - 4, - "늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷" - ], - [ - "8881", - "늸", - 15, - "닊닋닍닎닏닑닓", - 4, - "닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉", - 6, - "댒댖", - 5, - "댝", - 54, - "덗덙덚덝덠덡덢덣" - ], - [ - "8941", - "덦덨덪덬덭덯덲덳덵덶덷덹", - 6, - "뎂뎆", - 5, - "뎍" - ], - [ - "8961", - "뎎뎏뎑뎒뎓뎕", - 10, - "뎢", - 5, - "뎩뎪뎫뎭" - ], - [ - "8981", - "뎮", - 21, - "돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩", - 18, - "돽", - 18, - "됑", - 6, - "됙됚됛됝됞됟됡", - 6, - "됪됬", - 7, - "됵", - 15 - ], - [ - "8a41", - "둅", - 10, - "둒둓둕둖둗둙", - 6, - "둢둤둦" - ], - [ - "8a61", - "둧", - 4, - "둭", - 18, - "뒁뒂" - ], - [ - "8a81", - "뒃", - 4, - "뒉", - 19, - "뒞", - 5, - "뒥뒦뒧뒩뒪뒫뒭", - 7, - "뒶뒸뒺", - 5, - "듁듂듃듅듆듇듉", - 6, - "듑듒듓듔듖", - 5, - "듞듟듡듢듥듧", - 4, - "듮듰듲", - 5, - "듹", - 26, - "딖딗딙딚딝" - ], - [ - "8b41", - "딞", - 5, - "딦딫", - 4, - "딲딳딵딶딷딹", - 6, - "땂땆" - ], - [ - "8b61", - "땇땈땉땊땎땏땑땒땓땕", - 6, - "땞땢", - 8 - ], - [ - "8b81", - "땫", - 52, - "떢떣떥떦떧떩떬떭떮떯떲떶", - 4, - "떾떿뗁뗂뗃뗅", - 6, - "뗎뗒", - 5, - "뗙", - 18, - "뗭", - 18 - ], - [ - "8c41", - "똀", - 15, - "똒똓똕똖똗똙", - 4 - ], - [ - "8c61", - "똞", - 6, - "똦", - 5, - "똭", - 6, - "똵", - 5 - ], - [ - "8c81", - "똻", - 12, - "뙉", - 26, - "뙥뙦뙧뙩", - 50, - "뚞뚟뚡뚢뚣뚥", - 5, - "뚭뚮뚯뚰뚲", - 16 - ], - [ - "8d41", - "뛃", - 16, - "뛕", - 8 - ], - [ - "8d61", - "뛞", - 17, - "뛱뛲뛳뛵뛶뛷뛹뛺" - ], - [ - "8d81", - "뛻", - 4, - "뜂뜃뜄뜆", - 33, - "뜪뜫뜭뜮뜱", - 6, - "뜺뜼", - 7, - "띅띆띇띉띊띋띍", - 6, - "띖", - 9, - "띡띢띣띥띦띧띩", - 6, - "띲띴띶", - 5, - "띾띿랁랂랃랅", - 6, - "랎랓랔랕랚랛랝랞" - ], - [ - "8e41", - "랟랡", - 6, - "랪랮", - 5, - "랶랷랹", - 8 - ], - [ - "8e61", - "럂", - 4, - "럈럊", - 19 - ], - [ - "8e81", - "럞", - 13, - "럮럯럱럲럳럵", - 6, - "럾렂", - 4, - "렊렋렍렎렏렑", - 6, - "렚렜렞", - 5, - "렦렧렩렪렫렭", - 6, - "렶렺", - 5, - "롁롂롃롅", - 11, - "롒롔", - 7, - "롞롟롡롢롣롥", - 6, - "롮롰롲", - 5, - "롹롺롻롽", - 7 - ], - [ - "8f41", - "뢅", - 7, - "뢎", - 17 - ], - [ - "8f61", - "뢠", - 7, - "뢩", - 6, - "뢱뢲뢳뢵뢶뢷뢹", - 4 - ], - [ - "8f81", - "뢾뢿룂룄룆", - 5, - "룍룎룏룑룒룓룕", - 7, - "룞룠룢", - 5, - "룪룫룭룮룯룱", - 6, - "룺룼룾", - 5, - "뤅", - 18, - "뤙", - 6, - "뤡", - 26, - "뤾뤿륁륂륃륅", - 6, - "륍륎륐륒", - 5 - ], - [ - "9041", - "륚륛륝륞륟륡", - 6, - "륪륬륮", - 5, - "륶륷륹륺륻륽" - ], - [ - "9061", - "륾", - 5, - "릆릈릋릌릏", - 15 - ], - [ - "9081", - "릟", - 12, - "릮릯릱릲릳릵", - 6, - "릾맀맂", - 5, - "맊맋맍맓", - 4, - "맚맜맟맠맢맦맧맩맪맫맭", - 6, - "맶맻", - 4, - "먂", - 5, - "먉", - 11, - "먖", - 33, - "먺먻먽먾먿멁멃멄멅멆" - ], - [ - "9141", - "멇멊멌멏멐멑멒멖멗멙멚멛멝", - 6, - "멦멪", - 5 - ], - [ - "9161", - "멲멳멵멶멷멹", - 9, - "몆몈몉몊몋몍", - 5 - ], - [ - "9181", - "몓", - 20, - "몪몭몮몯몱몳", - 4, - "몺몼몾", - 5, - "뫅뫆뫇뫉", - 14, - "뫚", - 33, - "뫽뫾뫿묁묂묃묅", - 7, - "묎묐묒", - 5, - "묙묚묛묝묞묟묡", - 6 - ], - [ - "9241", - "묨묪묬", - 7, - "묷묹묺묿", - 4, - "뭆뭈뭊뭋뭌뭎뭑뭒" - ], - [ - "9261", - "뭓뭕뭖뭗뭙", - 7, - "뭢뭤", - 7, - "뭭", - 4 - ], - [ - "9281", - "뭲", - 21, - "뮉뮊뮋뮍뮎뮏뮑", - 18, - "뮥뮦뮧뮩뮪뮫뮭", - 6, - "뮵뮶뮸", - 7, - "믁믂믃믅믆믇믉", - 6, - "믑믒믔", - 35, - "믺믻믽믾밁" - ], - [ - "9341", - "밃", - 4, - "밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵" - ], - [ - "9361", - "밶밷밹", - 6, - "뱂뱆뱇뱈뱊뱋뱎뱏뱑", - 8 - ], - [ - "9381", - "뱚뱛뱜뱞", - 37, - "벆벇벉벊벍벏", - 4, - "벖벘벛", - 4, - "벢벣벥벦벩", - 6, - "벲벶", - 5, - "벾벿볁볂볃볅", - 7, - "볎볒볓볔볖볗볙볚볛볝", - 22, - "볷볹볺볻볽" - ], - [ - "9441", - "볾", - 5, - "봆봈봊", - 5, - "봑봒봓봕", - 8 - ], - [ - "9461", - "봞", - 5, - "봥", - 6, - "봭", - 12 - ], - [ - "9481", - "봺", - 5, - "뵁", - 6, - "뵊뵋뵍뵎뵏뵑", - 6, - "뵚", - 9, - "뵥뵦뵧뵩", - 22, - "붂붃붅붆붋", - 4, - "붒붔붖붗붘붛붝", - 6, - "붥", - 10, - "붱", - 6, - "붹", - 24 - ], - [ - "9541", - "뷒뷓뷖뷗뷙뷚뷛뷝", - 11, - "뷪", - 5, - "뷱" - ], - [ - "9561", - "뷲뷳뷵뷶뷷뷹", - 6, - "븁븂븄븆", - 5, - "븎븏븑븒븓" - ], - [ - "9581", - "븕", - 6, - "븞븠", - 35, - "빆빇빉빊빋빍빏", - 4, - "빖빘빜빝빞빟빢빣빥빦빧빩빫", - 4, - "빲빶", - 4, - "빾빿뺁뺂뺃뺅", - 6, - "뺎뺒", - 5, - "뺚", - 13, - "뺩", - 14 - ], - [ - "9641", - "뺸", - 23, - "뻒뻓" - ], - [ - "9661", - "뻕뻖뻙", - 6, - "뻡뻢뻦", - 5, - "뻭", - 8 - ], - [ - "9681", - "뻶", - 10, - "뼂", - 5, - "뼊", - 13, - "뼚뼞", - 33, - "뽂뽃뽅뽆뽇뽉", - 6, - "뽒뽓뽔뽖", - 44 - ], - [ - "9741", - "뾃", - 16, - "뾕", - 8 - ], - [ - "9761", - "뾞", - 17, - "뾱", - 7 - ], - [ - "9781", - "뾹", - 11, - "뿆", - 5, - "뿎뿏뿑뿒뿓뿕", - 6, - "뿝뿞뿠뿢", - 89, - "쀽쀾쀿" - ], - [ - "9841", - "쁀", - 16, - "쁒", - 5, - "쁙쁚쁛" - ], - [ - "9861", - "쁝쁞쁟쁡", - 6, - "쁪", - 15 - ], - [ - "9881", - "쁺", - 21, - "삒삓삕삖삗삙", - 6, - "삢삤삦", - 5, - "삮삱삲삷", - 4, - "삾샂샃샄샆샇샊샋샍샎샏샑", - 6, - "샚샞", - 5, - "샦샧샩샪샫샭", - 6, - "샶샸샺", - 5, - "섁섂섃섅섆섇섉", - 6, - "섑섒섓섔섖", - 5, - "섡섢섥섨섩섪섫섮" - ], - [ - "9941", - "섲섳섴섵섷섺섻섽섾섿셁", - 6, - "셊셎", - 5, - "셖셗" - ], - [ - "9961", - "셙셚셛셝", - 6, - "셦셪", - 5, - "셱셲셳셵셶셷셹셺셻" - ], - [ - "9981", - "셼", - 8, - "솆", - 5, - "솏솑솒솓솕솗", - 4, - "솞솠솢솣솤솦솧솪솫솭솮솯솱", - 11, - "솾", - 5, - "쇅쇆쇇쇉쇊쇋쇍", - 6, - "쇕쇖쇙", - 6, - "쇡쇢쇣쇥쇦쇧쇩", - 6, - "쇲쇴", - 7, - "쇾쇿숁숂숃숅", - 6, - "숎숐숒", - 5, - "숚숛숝숞숡숢숣" - ], - [ - "9a41", - "숤숥숦숧숪숬숮숰숳숵", - 16 - ], - [ - "9a61", - "쉆쉇쉉", - 6, - "쉒쉓쉕쉖쉗쉙", - 6, - "쉡쉢쉣쉤쉦" - ], - [ - "9a81", - "쉧", - 4, - "쉮쉯쉱쉲쉳쉵", - 6, - "쉾슀슂", - 5, - "슊", - 5, - "슑", - 6, - "슙슚슜슞", - 5, - "슦슧슩슪슫슮", - 5, - "슶슸슺", - 33, - "싞싟싡싢싥", - 5, - "싮싰싲싳싴싵싷싺싽싾싿쌁", - 6, - "쌊쌋쌎쌏" - ], - [ - "9b41", - "쌐쌑쌒쌖쌗쌙쌚쌛쌝", - 6, - "쌦쌧쌪", - 8 - ], - [ - "9b61", - "쌳", - 17, - "썆", - 7 - ], - [ - "9b81", - "썎", - 25, - "썪썫썭썮썯썱썳", - 4, - "썺썻썾", - 5, - "쎅쎆쎇쎉쎊쎋쎍", - 50, - "쏁", - 22, - "쏚" - ], - [ - "9c41", - "쏛쏝쏞쏡쏣", - 4, - "쏪쏫쏬쏮", - 5, - "쏶쏷쏹", - 5 - ], - [ - "9c61", - "쏿", - 8, - "쐉", - 6, - "쐑", - 9 - ], - [ - "9c81", - "쐛", - 8, - "쐥", - 6, - "쐭쐮쐯쐱쐲쐳쐵", - 6, - "쐾", - 9, - "쑉", - 26, - "쑦쑧쑩쑪쑫쑭", - 6, - "쑶쑷쑸쑺", - 5, - "쒁", - 18, - "쒕", - 6, - "쒝", - 12 - ], - [ - "9d41", - "쒪", - 13, - "쒹쒺쒻쒽", - 8 - ], - [ - "9d61", - "쓆", - 25 - ], - [ - "9d81", - "쓠", - 8, - "쓪", - 5, - "쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂", - 9, - "씍씎씏씑씒씓씕", - 6, - "씝", - 10, - "씪씫씭씮씯씱", - 6, - "씺씼씾", - 5, - "앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩", - 6, - "앲앶", - 5, - "앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔" - ], - [ - "9e41", - "얖얙얚얛얝얞얟얡", - 7, - "얪", - 9, - "얶" - ], - [ - "9e61", - "얷얺얿", - 4, - "엋엍엏엒엓엕엖엗엙", - 6, - "엢엤엦엧" - ], - [ - "9e81", - "엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑", - 6, - "옚옝", - 6, - "옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉", - 6, - "왒왖", - 5, - "왞왟왡", - 10, - "왭왮왰왲", - 5, - "왺왻왽왾왿욁", - 6, - "욊욌욎", - 5, - "욖욗욙욚욛욝", - 6, - "욦" - ], - [ - "9f41", - "욨욪", - 5, - "욲욳욵욶욷욻", - 4, - "웂웄웆", - 5, - "웎" - ], - [ - "9f61", - "웏웑웒웓웕", - 6, - "웞웟웢", - 5, - "웪웫웭웮웯웱웲" - ], - [ - "9f81", - "웳", - 4, - "웺웻웼웾", - 5, - "윆윇윉윊윋윍", - 6, - "윖윘윚", - 5, - "윢윣윥윦윧윩", - 6, - "윲윴윶윸윹윺윻윾윿읁읂읃읅", - 4, - "읋읎읐읙읚읛읝읞읟읡", - 6, - "읩읪읬", - 7, - "읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛", - 4, - "잢잧", - 4, - "잮잯잱잲잳잵잶잷" - ], - [ - "a041", - "잸잹잺잻잾쟂", - 5, - "쟊쟋쟍쟏쟑", - 6, - "쟙쟚쟛쟜" - ], - [ - "a061", - "쟞", - 5, - "쟥쟦쟧쟩쟪쟫쟭", - 13 - ], - [ - "a081", - "쟻", - 4, - "젂젃젅젆젇젉젋", - 4, - "젒젔젗", - 4, - "젞젟젡젢젣젥", - 6, - "젮젰젲", - 5, - "젹젺젻젽젾젿졁", - 6, - "졊졋졎", - 5, - "졕", - 26, - "졲졳졵졶졷졹졻", - 4, - "좂좄좈좉좊좎", - 5, - "좕", - 7, - "좞좠좢좣좤" - ], - [ - "a141", - "좥좦좧좩", - 18, - "좾좿죀죁" - ], - [ - "a161", - "죂죃죅죆죇죉죊죋죍", - 6, - "죖죘죚", - 5, - "죢죣죥" - ], - [ - "a181", - "죦", - 14, - "죶", - 5, - "죾죿줁줂줃줇", - 4, - "줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈", - 9, - "±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬" - ], - [ - "a241", - "줐줒", - 5, - "줙", - 18 - ], - [ - "a261", - "줭", - 6, - "줵", - 18 - ], - [ - "a281", - "쥈", - 7, - "쥒쥓쥕쥖쥗쥙", - 6, - "쥢쥤", - 7, - "쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦��♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®" - ], - [ - "a341", - "쥱쥲쥳쥵", - 6, - "쥽", - 10, - "즊즋즍즎즏" - ], - [ - "a361", - "즑", - 6, - "즚즜즞", - 16 - ], - [ - "a381", - "즯", - 16, - "짂짃짅짆짉짋", - 4, - "짒짔짗짘짛!", - 58, - "₩]", - 32, - " ̄" - ], - [ - "a441", - "짞짟짡짣짥짦짨짩짪짫짮짲", - 5, - "짺짻짽짾짿쨁쨂쨃쨄" - ], - [ - "a461", - "쨅쨆쨇쨊쨎", - 5, - "쨕쨖쨗쨙", - 12 - ], - [ - "a481", - "쨦쨧쨨쨪", - 28, - "ㄱ", - 93 - ], - [ - "a541", - "쩇", - 4, - "쩎쩏쩑쩒쩓쩕", - 6, - "쩞쩢", - 5, - "쩩쩪" - ], - [ - "a561", - "쩫", - 17, - "쩾", - 5, - "쪅쪆" - ], - [ - "a581", - "쪇", - 16, - "쪙", - 14, - "ⅰ", - 9 - ], - [ - "a5b0", - "Ⅰ", - 9 - ], - [ - "a5c1", - "Α", - 16, - "Σ", - 6 - ], - [ - "a5e1", - "α", - 16, - "σ", - 6 - ], - [ - "a641", - "쪨", - 19, - "쪾쪿쫁쫂쫃쫅" - ], - [ - "a661", - "쫆", - 5, - "쫎쫐쫒쫔쫕쫖쫗쫚", - 5, - "쫡", - 6 - ], - [ - "a681", - "쫨쫩쫪쫫쫭", - 6, - "쫵", - 18, - "쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃", - 7 - ], - [ - "a741", - "쬋", - 4, - "쬑쬒쬓쬕쬖쬗쬙", - 6, - "쬢", - 7 - ], - [ - "a761", - "쬪", - 22, - "쭂쭃쭄" - ], - [ - "a781", - "쭅쭆쭇쭊쭋쭍쭎쭏쭑", - 6, - "쭚쭛쭜쭞", - 5, - "쭥", - 7, - "㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙", - 9, - "㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰", - 9, - "㎀", - 4, - "㎺", - 5, - "㎐", - 4, - "Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆" - ], - [ - "a841", - "쭭", - 10, - "쭺", - 14 - ], - [ - "a861", - "쮉", - 18, - "쮝", - 6 - ], - [ - "a881", - "쮤", - 19, - "쮹", - 11, - "ÆÐªĦ" - ], - ["a8a6", "IJ"], - ["a8a8", "ĿŁØŒºÞŦŊ"], - [ - "a8b1", - "㉠", - 27, - "ⓐ", - 25, - "①", - 14, - "½⅓⅔¼¾⅛⅜⅝⅞" - ], - [ - "a941", - "쯅", - 14, - "쯕", - 10 - ], - [ - "a961", - "쯠쯡쯢쯣쯥쯦쯨쯪", - 18 - ], - [ - "a981", - "쯽", - 14, - "찎찏찑찒찓찕", - 6, - "찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀", - 27, - "⒜", - 25, - "⑴", - 14, - "¹²³⁴ⁿ₁₂₃₄" - ], - [ - "aa41", - "찥찦찪찫찭찯찱", - 6, - "찺찿", - 4, - "챆챇챉챊챋챍챎" - ], - [ - "aa61", - "챏", - 4, - "챖챚", - 5, - "챡챢챣챥챧챩", - 6, - "챱챲" - ], - [ - "aa81", - "챳챴챶", - 29, - "ぁ", - 82 - ], - [ - "ab41", - "첔첕첖첗첚첛첝첞첟첡", - 6, - "첪첮", - 5, - "첶첷첹" - ], - [ - "ab61", - "첺첻첽", - 6, - "쳆쳈쳊", - 5, - "쳑쳒쳓쳕", - 5 - ], - [ - "ab81", - "쳛", - 8, - "쳥", - 6, - "쳭쳮쳯쳱", - 12, - "ァ", - 85 - ], - [ - "ac41", - "쳾쳿촀촂", - 5, - "촊촋촍촎촏촑", - 6, - "촚촜촞촟촠" - ], - [ - "ac61", - "촡촢촣촥촦촧촩촪촫촭", - 11, - "촺", - 4 - ], - [ - "ac81", - "촿", - 28, - "쵝쵞쵟А", - 5, - "ЁЖ", - 25 - ], - [ - "acd1", - "а", - 5, - "ёж", - 25 - ], - [ - "ad41", - "쵡쵢쵣쵥", - 6, - "쵮쵰쵲", - 5, - "쵹", - 7 - ], - [ - "ad61", - "춁", - 6, - "춉", - 10, - "춖춗춙춚춛춝춞춟" - ], - [ - "ad81", - "춠춡춢춣춦춨춪", - 5, - "춱", - 18, - "췅" - ], - [ - "ae41", - "췆", - 5, - "췍췎췏췑", - 16 - ], - [ - "ae61", - "췢", - 5, - "췩췪췫췭췮췯췱", - 6, - "췺췼췾", - 4 - ], - [ - "ae81", - "츃츅츆츇츉츊츋츍", - 6, - "츕츖츗츘츚", - 5, - "츢츣츥츦츧츩츪츫" - ], - [ - "af41", - "츬츭츮츯츲츴츶", - 19 - ], - [ - "af61", - "칊", - 13, - "칚칛칝칞칢", - 5, - "칪칬" - ], - [ - "af81", - "칮", - 5, - "칶칷칹칺칻칽", - 6, - "캆캈캊", - 5, - "캒캓캕캖캗캙" - ], - [ - "b041", - "캚", - 5, - "캢캦", - 5, - "캮", - 12 - ], - [ - "b061", - "캻", - 5, - "컂", - 19 - ], - [ - "b081", - "컖", - 13, - "컦컧컩컪컭", - 6, - "컶컺", - 5, - "가각간갇갈갉갊감", - 7, - "같", - 4, - "갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆" - ], - [ - "b141", - "켂켃켅켆켇켉", - 6, - "켒켔켖", - 5, - "켝켞켟켡켢켣" - ], - [ - "b161", - "켥", - 6, - "켮켲", - 5, - "켹", - 11 - ], - [ - "b181", - "콅", - 14, - "콖콗콙콚콛콝", - 6, - "콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸" - ], - [ - "b241", - "콭콮콯콲콳콵콶콷콹", - 6, - "쾁쾂쾃쾄쾆", - 5, - "쾍" - ], - [ - "b261", - "쾎", - 18, - "쾢", - 5, - "쾩" - ], - [ - "b281", - "쾪", - 5, - "쾱", - 18, - "쿅", - 6, - "깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙" - ], - [ - "b341", - "쿌", - 19, - "쿢쿣쿥쿦쿧쿩" - ], - [ - "b361", - "쿪", - 5, - "쿲쿴쿶", - 5, - "쿽쿾쿿퀁퀂퀃퀅", - 5 - ], - [ - "b381", - "퀋", - 5, - "퀒", - 5, - "퀙", - 19, - "끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫", - 4, - "낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝" - ], - [ - "b441", - "퀮", - 5, - "퀶퀷퀹퀺퀻퀽", - 6, - "큆큈큊", - 5 - ], - [ - "b461", - "큑큒큓큕큖큗큙", - 6, - "큡", - 10, - "큮큯" - ], - [ - "b481", - "큱큲큳큵", - 6, - "큾큿킀킂", - 18, - "뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫", - 4, - "닳담답닷", - 4, - "닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥" - ], - [ - "b541", - "킕", - 14, - "킦킧킩킪킫킭", - 5 - ], - [ - "b561", - "킳킶킸킺", - 5, - "탂탃탅탆탇탊", - 5, - "탒탖", - 4 - ], - [ - "b581", - "탛탞탟탡탢탣탥", - 6, - "탮탲", - 5, - "탹", - 11, - "덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸" - ], - [ - "b641", - "턅", - 7, - "턎", - 17 - ], - [ - "b661", - "턠", - 15, - "턲턳턵턶턷턹턻턼턽턾" - ], - [ - "b681", - "턿텂텆", - 5, - "텎텏텑텒텓텕", - 6, - "텞텠텢", - 5, - "텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗" - ], - [ - "b741", - "텮", - 13, - "텽", - 6, - "톅톆톇톉톊" - ], - [ - "b761", - "톋", - 20, - "톢톣톥톦톧" - ], - [ - "b781", - "톩", - 6, - "톲톴톶톷톸톹톻톽톾톿퇁", - 14, - "래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩" - ], - [ - "b841", - "퇐", - 7, - "퇙", - 17 - ], - [ - "b861", - "퇫", - 8, - "퇵퇶퇷퇹", - 13 - ], - [ - "b881", - "툈툊", - 5, - "툑", - 24, - "륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많", - 4, - "맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼" - ], - [ - "b941", - "툪툫툮툯툱툲툳툵", - 6, - "툾퉀퉂", - 5, - "퉉퉊퉋퉌" - ], - [ - "b961", - "퉍", - 14, - "퉝", - 6, - "퉥퉦퉧퉨" - ], - [ - "b981", - "퉩", - 22, - "튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바", - 4, - "받", - 4, - "밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗" - ], - [ - "ba41", - "튍튎튏튒튓튔튖", - 5, - "튝튞튟튡튢튣튥", - 6, - "튭" - ], - [ - "ba61", - "튮튯튰튲", - 5, - "튺튻튽튾틁틃", - 4, - "틊틌", - 5 - ], - [ - "ba81", - "틒틓틕틖틗틙틚틛틝", - 6, - "틦", - 9, - "틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉���뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤" - ], - [ - "bb41", - "틻", - 4, - "팂팄팆", - 5, - "팏팑팒팓팕팗", - 4, - "팞팢팣" - ], - [ - "bb61", - "팤팦팧팪팫팭팮팯팱", - 6, - "팺팾", - 5, - "퍆퍇퍈퍉" - ], - [ - "bb81", - "퍊", - 31, - "빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤" - ], - [ - "bc41", - "퍪", - 17, - "퍾퍿펁펂펃펅펆펇" - ], - [ - "bc61", - "펈펉펊펋펎펒", - 5, - "펚펛펝펞펟펡", - 6, - "펪펬펮" - ], - [ - "bc81", - "펯", - 4, - "펵펶펷펹펺펻펽", - 6, - "폆폇폊", - 5, - "폑", - 5, - "샥샨샬샴샵샷샹섀섄섈섐섕서", - 4, - "섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭" - ], - [ - "bd41", - "폗폙", - 7, - "폢폤", - 7, - "폮폯폱폲폳폵폶폷" - ], - [ - "bd61", - "폸폹폺폻폾퐀퐂", - 5, - "퐉", - 13 - ], - [ - "bd81", - "퐗", - 5, - "퐞", - 25, - "숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰" - ], - [ - "be41", - "퐸", - 7, - "푁푂푃푅", - 14 - ], - [ - "be61", - "푔", - 7, - "푝푞푟푡푢푣푥", - 7, - "푮푰푱푲" - ], - [ - "be81", - "푳", - 4, - "푺푻푽푾풁풃", - 4, - "풊풌풎", - 5, - "풕", - 8, - "쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄", - 6, - "엌엎" - ], - [ - "bf41", - "풞", - 10, - "풪", - 14 - ], - [ - "bf61", - "풹", - 18, - "퓍퓎퓏퓑퓒퓓퓕" - ], - [ - "bf81", - "퓖", - 5, - "퓝퓞퓠", - 7, - "퓩퓪퓫퓭퓮퓯퓱", - 6, - "퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염", - 5, - "옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨" - ], - [ - "c041", - "퓾", - 5, - "픅픆픇픉픊픋픍", - 6, - "픖픘", - 5 - ], - [ - "c061", - "픞", - 25 - ], - [ - "c081", - "픸픹픺픻픾픿핁핂핃핅", - 6, - "핎핐핒", - 5, - "핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응", - 7, - "읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊" - ], - [ - "c141", - "핤핦핧핪핬핮", - 5, - "핶핷핹핺핻핽", - 6, - "햆햊햋" - ], - [ - "c161", - "햌햍햎햏햑", - 19, - "햦햧" - ], - [ - "c181", - "햨", - 31, - "점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓" - ], - [ - "c241", - "헊헋헍헎헏헑헓", - 4, - "헚헜헞", - 5, - "헦헧헩헪헫헭헮" - ], - [ - "c261", - "헯", - 4, - "헶헸헺", - 5, - "혂혃혅혆혇혉", - 6, - "혒" - ], - [ - "c281", - "혖", - 5, - "혝혞혟혡혢혣혥", - 7, - "혮", - 9, - "혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻" - ], - [ - "c341", - "혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝", - 4 - ], - [ - "c361", - "홢", - 4, - "홨홪", - 5, - "홲홳홵", - 11 - ], - [ - "c381", - "횁횂횄횆", - 5, - "횎횏횑횒횓횕", - 7, - "횞횠횢", - 5, - "횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻��츄츈츌츔츙츠측츤츨츰츱츳층" - ], - [ - "c441", - "횫횭횮횯횱", - 7, - "횺횼", - 7, - "훆훇훉훊훋" - ], - [ - "c461", - "훍훎훏훐훒훓훕훖훘훚", - 5, - "훡훢훣훥훦훧훩", - 4 - ], - [ - "c481", - "훮훯훱훲훳훴훶", - 5, - "훾훿휁휂휃휅", - 11, - "휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼" - ], - [ - "c541", - "휕휖휗휚휛휝휞휟휡", - 6, - "휪휬휮", - 5, - "휶휷휹" - ], - [ - "c561", - "휺휻휽", - 6, - "흅흆흈흊", - 5, - "흒흓흕흚", - 4 - ], - [ - "c581", - "흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵", - 6, - "흾흿힀힂", - 5, - "힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜" - ], - [ - "c641", - "힍힎힏힑", - 6, - "힚힜힞", - 5 - ], - ["c6a1", "퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"], - ["c7a1", "퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"], - ["c8a1", "혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"], - ["caa1", "伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"], - ["cba1", "匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"], - ["cca1", "瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"], - ["cda1", "棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"], - ["cea1", "科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"], - ["cfa1", "區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"], - ["d0a1", "鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"], - [ - "d1a1", - "朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩", - 5, - "那樂", - 4, - "諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉" - ], - [ - "d2a1", - "納臘蠟衲囊娘廊", - 4, - "乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧", - 5, - "駑魯", - 10, - "濃籠聾膿農惱牢磊腦賂雷尿壘", - 7, - "嫩訥杻紐勒", - 5, - "能菱陵尼泥匿溺多茶" - ], - ["d3a1", "丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"], - ["d4a1", "棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"], - ["d5a1", "蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"], - ["d6a1", "煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"], - ["d7a1", "遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"], - ["d8a1", "立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"], - ["d9a1", "蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"], - ["daa1", "汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"], - ["dba1", "發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"], - ["dca1", "碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"], - ["dda1", "孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"], - ["dea1", "脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"], - ["dfa1", "傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"], - ["e0a1", "胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"], - ["e1a1", "聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"], - ["e2a1", "戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"], - ["e3a1", "嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"], - ["e4a1", "沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃���鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"], - ["e5a1", "櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"], - ["e6a1", "旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"], - ["e7a1", "簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"], - ["e8a1", "烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"], - ["e9a1", "窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"], - ["eaa1", "運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"], - ["eba1", "濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"], - ["eca1", "議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"], - ["eda1", "立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"], - ["eea1", "障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"], - ["efa1", "煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"], - ["f0a1", "靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"], - ["f1a1", "踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"], - ["f2a1", "咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"], - ["f3a1", "鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"], - ["f4a1", "責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"], - ["f5a1", "椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充��沖蟲衝衷悴膵萃"], - ["f6a1", "贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"], - ["f7a1", "鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"], - ["f8a1", "阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"], - ["f9a1", "品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"], - ["faa1", "行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"], - ["fba1", "形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"], - ["fca1", "禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"], - ["fda1", "爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.json -var require_cp950 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) { - module.exports = [ - [ - "0", - "\0", - 127 - ], - ["a140", " ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"], - [ - "a1a1", - "﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢", - 4, - "~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/" - ], - [ - "a240", - "\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁", - 7, - "▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭" - ], - [ - "a2a1", - "╮╰╯═╞╪╡◢◣◥◤╱╲╳0", - 9, - "Ⅰ", - 9, - "〡", - 8, - "十卄卅A", - 25, - "a", - 21 - ], - [ - "a340", - "wxyzΑ", - 16, - "Σ", - 6, - "α", - 16, - "σ", - 6, - "ㄅ", - 10 - ], - [ - "a3a1", - "ㄐ", - 25, - "˙ˉˊˇˋ" - ], - ["a3e1", "€"], - ["a440", "一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"], - ["a4a1", "丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"], - ["a540", "世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"], - ["a5a1", "央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"], - ["a640", "共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"], - ["a6a1", "式弛忙忖戎戌戍成扣扛托收早旨旬旭曲���有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"], - ["a740", "作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"], - ["a7a1", "均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"], - ["a840", "杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"], - ["a8a1", "芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"], - ["a940", "咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"], - ["a9a1", "屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"], - ["aa40", "昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"], - ["aaa1", "炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"], - ["ab40", "陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"], - ["aba1", "哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"], - ["ac40", "拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"], - ["aca1", "活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"], - ["ad40", "耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"], - ["ada1", "迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"], - ["ae40", "哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"], - ["aea1", "恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"], - ["af40", "浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"], - ["afa1", "砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"], - ["b040", "虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"], - ["b0a1", "陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務��動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"], - ["b140", "娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"], - ["b1a1", "情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"], - ["b240", "毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"], - ["b2a1", "瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"], - ["b340", "莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"], - ["b3a1", "部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"], - ["b440", "婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"], - ["b4a1", "插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"], - ["b540", "溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"], - ["b5a1", "窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"], - ["b640", "詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"], - ["b6a1", "間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"], - ["b740", "媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"], - ["b7a1", "楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"], - ["b840", "睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"], - ["b8a1", "腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"], - ["b940", "辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"], - ["b9a1", "飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"], - ["ba40", "愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"], - ["baa1", "滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"], - ["bb40", "罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"], - ["bba1", "說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"], - ["bc40", "劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"], - ["bca1", "慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"], - ["bd40", "瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"], - ["bda1", "翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"], - ["be40", "輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"], - ["bea1", "鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"], - ["bf40", "濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"], - ["bfa1", "縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"], - ["c040", "錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"], - ["c0a1", "嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"], - ["c140", "瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"], - ["c1a1", "薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"], - ["c240", "駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"], - ["c2a1", "癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"], - ["c340", "鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"], - ["c3a1", "獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"], - ["c440", "願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"], - ["c4a1", "纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣���蠡蠟襪襬覽譴"], - ["c540", "護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"], - ["c5a1", "禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"], - ["c640", "讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"], - ["c940", "乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"], - ["c9a1", "氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"], - ["ca40", "汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"], - ["caa1", "吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"], - ["cb40", "杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"], - ["cba1", "芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"], - ["cc40", "坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"], - ["cca1", "怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"], - ["cd40", "泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"], - ["cda1", "矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"], - ["ce40", "哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"], - ["cea1", "峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"], - ["cf40", "柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"], - ["cfa1", "洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"], - ["d040", "穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"], - ["d0a1", "苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"], - ["d140", "唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"], - ["d1a1", "恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"], - ["d240", "毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"], - ["d2a1", "牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"], - ["d340", "笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"], - ["d3a1", "荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"], - ["d440", "酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"], - ["d4a1", "唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"], - ["d540", "崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"], - ["d5a1", "捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"], - ["d640", "淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"], - ["d6a1", "痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"], - ["d740", "耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"], - ["d7a1", "蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"], - ["d840", "釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"], - ["d8a1", "堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"], - ["d940", "惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"], - ["d9a1", "晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"], - ["da40", "湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"], - ["daa1", "琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"], - ["db40", "罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"], - ["dba1", "菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑���詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"], - ["dc40", "軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"], - ["dca1", "隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"], - ["dd40", "媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"], - ["dda1", "搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"], - ["de40", "毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"], - ["dea1", "煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"], - ["df40", "稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"], - ["dfa1", "腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"], - ["e040", "觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"], - ["e0a1", "遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"], - ["e140", "凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"], - ["e1a1", "寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"], - ["e240", "榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"], - ["e2a1", "漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"], - ["e340", "禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"], - ["e3a1", "耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"], - ["e440", "裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"], - ["e4a1", "銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"], - ["e540", "噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"], - ["e5a1", "憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂��漦潾澇濆澒"], - ["e640", "澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"], - ["e6a1", "獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"], - ["e740", "膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"], - ["e7a1", "蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"], - ["e840", "踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"], - ["e8a1", "銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"], - ["e940", "噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"], - ["e9a1", "憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"], - ["ea40", "澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"], - ["eaa1", "瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"], - ["eb40", "蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"], - ["eba1", "諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"], - ["ec40", "錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"], - ["eca1", "魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"], - ["ed40", "檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"], - ["eda1", "瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"], - ["ee40", "蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"], - ["eea1", "謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"], - ["ef40", "鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"], - ["efa1", "鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"], - ["f040", "璸瓀璵瓁璾璶璻瓂甔甓癜癤���癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"], - ["f0a1", "臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"], - ["f140", "蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"], - ["f1a1", "鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"], - ["f240", "徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"], - ["f2a1", "礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"], - ["f340", "譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"], - ["f3a1", "鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"], - ["f440", "嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"], - ["f4a1", "禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"], - ["f540", "鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"], - ["f5a1", "鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"], - ["f640", "蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"], - ["f6a1", "騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"], - ["f740", "糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"], - ["f7a1", "驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"], - ["f840", "讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"], - ["f8a1", "齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"], - ["f940", "纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"], - ["f9a1", "龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.json -var require_big5_added = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) { - module.exports = [ - ["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"], - ["8767", "綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"], - ["87a1", "𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"], - [ - "8840", - "㇀", - 4, - "𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ" - ], - ["88a1", "ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"], - ["8940", "𪎩𡅅"], - ["8943", "攊"], - ["8946", "丽滝鵎釟"], - ["894c", "𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"], - ["89a1", "琑糼緍楆竉刧"], - ["89ab", "醌碸酞肼"], - ["89b0", "贋胶𠧧"], - ["89b5", "肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"], - ["89c1", "溚舾甙"], - ["89c5", "䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"], - ["8a40", "𧶄唥"], - ["8a43", "𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"], - ["8a64", "𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"], - ["8a76", "䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"], - ["8aa1", "𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"], - ["8aac", "䠋𠆩㿺塳𢶍"], - ["8ab2", "𤗈𠓼𦂗𠽌𠶖啹䂻䎺"], - ["8abb", "䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"], - ["8ac9", "𪘁𠸉𢫏𢳉"], - ["8ace", "𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"], - ["8adf", "𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"], - ["8af6", "𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"], - ["8b40", "𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"], - ["8b55", "𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"], - ["8ba1", "𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"], - ["8bde", "𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"], - ["8c40", "倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"], - ["8ca1", "𣏹椙橃𣱣泿"], - ["8ca7", "爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"], - ["8cc9", "顨杫䉶圽"], - ["8cce", "藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"], - ["8ce6", "峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"], - ["8d40", "𠮟"], - ["8d42", "𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"], - ["8da1", "㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"], - ["8e40", "𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"], - ["8ea1", "繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"], - ["8f40", "蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"], - ["8fa1", "𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"], - ["9040", "趩𨀂����𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"], - ["90a1", "𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"], - ["9140", "𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"], - ["91a1", "鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"], - ["9240", "𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"], - ["92a1", "働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"], - ["9340", "媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"], - ["93a1", "摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"], - ["9440", "銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"], - ["94a1", "㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"], - ["9540", "𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"], - ["95a1", "衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"], - ["9640", "桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"], - ["96a1", "𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"], - ["9740", "愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"], - ["97a1", "𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"], - ["9840", "𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"], - ["98a1", "咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"], - ["9940", "䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"], - ["99a1", "䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"], - ["9a40", "鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"], - ["9aa1", "黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"], - ["9b40", "𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"], - ["9b62", "𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"], - ["9ba1", "椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"], - ["9c40", "嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"], - ["9ca1", "㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"], - ["9d40", "𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"], - ["9da1", "辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"], - ["9e40", "𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"], - ["9ea1", "鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"], - ["9ead", "𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"], - ["9ec5", "㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"], - ["9ef5", "噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"], - ["9f40", "籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"], - ["9f4f", "凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"], - ["9fa1", "椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"], - ["9fae", "酙隁酜"], - ["9fb2", "酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"], - ["9fc1", "𤤙盖鮝个𠳔莾衂"], - ["9fc9", "届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"], - ["9fdb", "歒酼龥鮗頮颴骺麨麄煺笔"], - ["9fe7", "毺蠘罸"], - ["9feb", "嘠𪙊蹷齓"], - ["9ff0", "跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"], - ["a040", "𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"], - ["a055", "𡠻𦸅"], - ["a058", "詾𢔛"], - ["a05b", "惽癧髗鵄鍮鮏蟵"], - ["a063", "蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"], - ["a073", "坟慯抦戹拎㩜懢厪𣏵捤栂㗒"], - ["a0a1", "嵗𨯂迚𨸹"], - ["a0a6", "僙𡵆礆匲阸𠼻䁥"], - ["a0ae", "矾"], - ["a0b0", "糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"], - ["a0d4", "覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"], - ["a0e2", "罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"], - [ - "a3c0", - "␀", - 31, - "␡" - ], - [ - "c6a1", - "①", - 9, - "⑴", - 9, - "ⅰ", - 9, - "丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ", - 23 - ], - [ - "c740", - "す", - 58, - "ァアィイ" - ], - [ - "c7a1", - "ゥ", - 81, - "А", - 5, - "ЁЖ", - 4 - ], - [ - "c840", - "Л", - 26, - "ёж", - 25, - "⇧↸↹㇏𠃌乚𠂊刂䒑" - ], - ["c8a1", "龰冈龱𧘇"], - ["c8cd", "¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"], - ["c8f5", "ʃɐɛɔɵœøŋʊɪ"], - ["f9fe", "■"], - ["fa40", "𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"], - ["faa1", "鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"], - ["fb40", "𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"], - ["fba1", "𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"], - ["fc40", "廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"], - ["fca1", "𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"], - ["fd40", "𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"], - ["fda1", "𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"], - ["fe40", "鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"], - ["fea1", "𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"] - ]; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.js -var require_dbcs_data = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) { - module.exports = { - "shiftjis": { - type: "_dbcs", - table: function() { - return require_shiftjis(); - }, - encodeAdd: { - "¥": 92, - "‾": 126 - }, - encodeSkipVals: [{ - from: 60736, - to: 63808 - }] - }, - "csshiftjis": "shiftjis", - "mskanji": "shiftjis", - "sjis": "shiftjis", - "windows31j": "shiftjis", - "ms31j": "shiftjis", - "xsjis": "shiftjis", - "windows932": "shiftjis", - "ms932": "shiftjis", - "932": "shiftjis", - "cp932": "shiftjis", - "eucjp": { - type: "_dbcs", - table: function() { - return require_eucjp(); - }, - encodeAdd: { - "¥": 92, - "‾": 126 - } - }, - "gb2312": "cp936", - "gb231280": "cp936", - "gb23121980": "cp936", - "csgb2312": "cp936", - "csiso58gb231280": "cp936", - "euccn": "cp936", - "windows936": "cp936", - "ms936": "cp936", - "936": "cp936", - "cp936": { - type: "_dbcs", - table: function() { - return require_cp936(); - } - }, - "gbk": { - type: "_dbcs", - table: function() { - return require_cp936().concat(require_gbk_added()); - } - }, - "xgbk": "gbk", - "isoir58": "gbk", - "gb18030": { - type: "_dbcs", - table: function() { - return require_cp936().concat(require_gbk_added()); - }, - gb18030: function() { - return require_gb18030_ranges(); - }, - encodeSkipVals: [128], - encodeAdd: { "€": 41699 } - }, - "chinese": "gb18030", - "windows949": "cp949", - "ms949": "cp949", - "949": "cp949", - "cp949": { - type: "_dbcs", - table: function() { - return require_cp949(); - } - }, - "cseuckr": "cp949", - "csksc56011987": "cp949", - "euckr": "cp949", - "isoir149": "cp949", - "korean": "cp949", - "ksc56011987": "cp949", - "ksc56011989": "cp949", - "ksc5601": "cp949", - "windows950": "cp950", - "ms950": "cp950", - "950": "cp950", - "cp950": { - type: "_dbcs", - table: function() { - return require_cp950(); - } - }, - "big5": "big5hkscs", - "big5hkscs": { - type: "_dbcs", - table: function() { - return require_cp950().concat(require_big5_added()); - }, - encodeSkipVals: [ - 36457, - 36463, - 36478, - 36523, - 36532, - 36557, - 36560, - 36695, - 36713, - 36718, - 36811, - 36862, - 36973, - 36986, - 37060, - 37084, - 37105, - 37311, - 37551, - 37552, - 37553, - 37554, - 37585, - 37959, - 38090, - 38361, - 38652, - 39285, - 39798, - 39800, - 39803, - 39878, - 39902, - 39916, - 39926, - 40002, - 40019, - 40034, - 40040, - 40043, - 40055, - 40124, - 40125, - 40144, - 40279, - 40282, - 40388, - 40431, - 40443, - 40617, - 40687, - 40701, - 40800, - 40907, - 41079, - 41180, - 41183, - 36812, - 37576, - 38468, - 38637, - 41636, - 41637, - 41639, - 41638, - 41676, - 41678 - ] - }, - "cnbig5": "big5hkscs", - "csbig5": "big5hkscs", - "xxbig5": "big5hkscs" - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.js -var require_encodings = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.js"(exports) { - var modules = [ - require_internal(), - require_utf32(), - require_utf16(), - require_utf7(), - require_sbcs_codec(), - require_sbcs_data(), - require_sbcs_data_generated(), - require_dbcs_codec(), - require_dbcs_data() - ]; - for (var i = 0; i < modules.length; i++) { - var module$1 = modules[i]; - for (var enc in module$1) if (Object.prototype.hasOwnProperty.call(module$1, enc)) exports[enc] = module$1[enc]; - } -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.js -var require_streams = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.js"(exports, module) { - var Buffer$2 = require_safer().Buffer; - module.exports = function(stream_module$1) { - var Transform = stream_module$1.Transform; - function IconvLiteEncoderStream(conv, options) { - this.conv = conv; - options = options || {}; - options.decodeStrings = false; - Transform.call(this, options); - } - IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, { constructor: { value: IconvLiteEncoderStream } }); - IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) { - if (typeof chunk != "string") return done(new Error("Iconv encoding stream needs strings as its input.")); - try { - var res = this.conv.write(chunk); - if (res && res.length) this.push(res); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteEncoderStream.prototype._flush = function(done) { - try { - var res = this.conv.end(); - if (res && res.length) this.push(res); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteEncoderStream.prototype.collect = function(cb) { - var chunks = []; - this.on("error", cb); - this.on("data", function(chunk) { - chunks.push(chunk); - }); - this.on("end", function() { - cb(null, Buffer$2.concat(chunks)); - }); - return this; - }; - function IconvLiteDecoderStream(conv, options) { - this.conv = conv; - options = options || {}; - options.encoding = this.encoding = "utf8"; - Transform.call(this, options); - } - IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, { constructor: { value: IconvLiteDecoderStream } }); - IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) { - if (!Buffer$2.isBuffer(chunk) && !(chunk instanceof Uint8Array)) return done(new Error("Iconv decoding stream needs buffers as its input.")); - try { - var res = this.conv.write(chunk); - if (res && res.length) this.push(res, this.encoding); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteDecoderStream.prototype._flush = function(done) { - try { - var res = this.conv.end(); - if (res && res.length) this.push(res, this.encoding); - done(); - } catch (e) { - done(e); - } - }; - IconvLiteDecoderStream.prototype.collect = function(cb) { - var res = ""; - this.on("error", cb); - this.on("data", function(chunk) { - res += chunk; - }); - this.on("end", function() { - cb(null, res); - }); - return this; - }; - return { - IconvLiteEncoderStream, - IconvLiteDecoderStream - }; - }; -} }); - -//#endregion -//#region node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js -var require_lib$1 = __commonJS({ "node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js"(exports, module) { - var Buffer$1 = require_safer().Buffer; - var bomHandling = require_bom_handling(), iconv = module.exports; - iconv.encodings = null; - iconv.defaultCharUnicode = "�"; - iconv.defaultCharSingleByte = "?"; - iconv.encode = function encode$1(str$1, encoding, options) { - str$1 = "" + (str$1 || ""); - var encoder = iconv.getEncoder(encoding, options); - var res = encoder.write(str$1); - var trail = encoder.end(); - return trail && trail.length > 0 ? Buffer$1.concat([res, trail]) : res; - }; - iconv.decode = function decode(buf, encoding, options) { - if (typeof buf === "string") { - if (!iconv.skipDecodeWarning) { - console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"); - iconv.skipDecodeWarning = true; - } - buf = Buffer$1.from("" + (buf || ""), "binary"); - } - var decoder = iconv.getDecoder(encoding, options); - var res = decoder.write(buf); - var trail = decoder.end(); - return trail ? res + trail : res; - }; - iconv.encodingExists = function encodingExists(enc$1) { - try { - iconv.getCodec(enc$1); - return true; - } catch (e) { - return false; - } - }; - iconv.toEncoding = iconv.encode; - iconv.fromEncoding = iconv.decode; - iconv._codecDataCache = {}; - iconv.getCodec = function getCodec(encoding) { - if (!iconv.encodings) iconv.encodings = require_encodings(); - var enc$1 = iconv._canonicalizeEncoding(encoding); - var codecOptions = {}; - while (true) { - var codec = iconv._codecDataCache[enc$1]; - if (codec) return codec; - var codecDef = iconv.encodings[enc$1]; - switch (typeof codecDef) { - case "string": - enc$1 = codecDef; - break; - case "object": - for (var key$1 in codecDef) codecOptions[key$1] = codecDef[key$1]; - if (!codecOptions.encodingName) codecOptions.encodingName = enc$1; - enc$1 = codecDef.type; - break; - case "function": - if (!codecOptions.encodingName) codecOptions.encodingName = enc$1; - codec = new codecDef(codecOptions, iconv); - iconv._codecDataCache[codecOptions.encodingName] = codec; - return codec; - default: throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc$1 + "')"); - } - } - }; - iconv._canonicalizeEncoding = function(encoding) { - return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, ""); - }; - iconv.getEncoder = function getEncoder(encoding, options) { - var codec = iconv.getCodec(encoding), encoder = new codec.encoder(options, codec); - if (codec.bomAware && options && options.addBOM) encoder = new bomHandling.PrependBOM(encoder, options); - return encoder; - }; - iconv.getDecoder = function getDecoder(encoding, options) { - var codec = iconv.getCodec(encoding), decoder = new codec.decoder(options, codec); - if (codec.bomAware && !(options && options.stripBOM === false)) decoder = new bomHandling.StripBOM(decoder, options); - return decoder; - }; - iconv.enableStreamingAPI = function enableStreamingAPI(stream_module$1) { - if (iconv.supportsStreams) return; - var streams = require_streams()(stream_module$1); - iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream; - iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream; - iconv.encodeStream = function encodeStream(encoding, options) { - return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options); - }; - iconv.decodeStream = function decodeStream(encoding, options) { - return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options); - }; - iconv.supportsStreams = true; - }; - var stream_module; - try { - stream_module = __require("stream"); - } catch (e) {} - if (stream_module && stream_module.Transform) iconv.enableStreamingAPI(stream_module); - else iconv.encodeStream = iconv.decodeStream = function() { - throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it."); - }; -} }); - -//#endregion -//#region node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.js -var require_encoding = __commonJS({ "node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.js"(exports, module) { - var iconvLite = require_lib$1(); - module.exports.convert = convert$1; - /** - * Convert encoding of an UTF-8 string or a buffer - * - * @param {String|Buffer} str String to be converted - * @param {String} to Encoding to be converted to - * @param {String} [from='UTF-8'] Encoding to be converted from - * @return {Buffer} Encoded string - */ - function convert$1(str$1, to, from) { - from = checkEncoding(from || "UTF-8"); - to = checkEncoding(to || "UTF-8"); - str$1 = str$1 || ""; - var result; - if (from !== "UTF-8" && typeof str$1 === "string") str$1 = Buffer.from(str$1, "binary"); - if (from === to) if (typeof str$1 === "string") result = Buffer.from(str$1); - else result = str$1; - else try { - result = convertIconvLite(str$1, to, from); - } catch (E) { - console.error(E); - result = str$1; - } - if (typeof result === "string") result = Buffer.from(result, "utf-8"); - return result; - } - /** - * Convert encoding of astring with iconv-lite - * - * @param {String|Buffer} str String to be converted - * @param {String} to Encoding to be converted to - * @param {String} [from='UTF-8'] Encoding to be converted from - * @return {Buffer} Encoded string - */ - function convertIconvLite(str$1, to, from) { - if (to === "UTF-8") return iconvLite.decode(str$1, from); - else if (from === "UTF-8") return iconvLite.encode(str$1, to); - else return iconvLite.encode(iconvLite.decode(str$1, from), to); - } - /** - * Converts charset name if needed - * - * @param {String} name Character set - * @return {String} Character set name - */ - function checkEncoding(name) { - return (name || "").toString().trim().replace(/^latin[\-_]?(\d+)$/i, "ISO-8859-$1").replace(/^win(?:dows)?[\-_]?(\d+)$/i, "WINDOWS-$1").replace(/^utf[\-_]?(\d+)$/i, "UTF-$1").replace(/^ks_c_5601\-1987$/i, "CP949").replace(/^us[\-_]?ascii$/i, "ASCII").toUpperCase(); - } -} }); - -//#endregion -//#region node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.js -var require_lib = __commonJS({ "node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.js"(exports, module) { - Object.defineProperty(exports, "__esModule", { value: true }); - function _interopDefault(ex) { - return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex; - } - var Stream$1 = _interopDefault(__require("stream")); - var http = _interopDefault(__require("http")); - var Url = _interopDefault(__require("url")); - var whatwgUrl = _interopDefault(require_public_api()); - var https = _interopDefault(__require("https")); - var zlib = _interopDefault(__require("zlib")); - const Readable$1 = Stream$1.Readable; - const BUFFER = Symbol("buffer"); - const TYPE = Symbol("type"); - var Blob$2 = class Blob$2 { - constructor() { - this[TYPE] = ""; - const blobParts = arguments[0]; - const options = arguments[1]; - const buffers = []; - let size = 0; - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i$4 = 0; i$4 < length; i$4++) { - const element = a[i$4]; - let buffer$1; - if (element instanceof Buffer) buffer$1 = element; - else if (ArrayBuffer.isView(element)) buffer$1 = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - else if (element instanceof ArrayBuffer) buffer$1 = Buffer.from(element); - else if (element instanceof Blob$2) buffer$1 = element[BUFFER]; - else buffer$1 = Buffer.from(typeof element === "string" ? element : String(element)); - size += buffer$1.length; - buffers.push(buffer$1); - } - } - this[BUFFER] = Buffer.concat(buffers); - let type = options && options.type !== void 0 && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) this[TYPE] = type; - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable$1(); - readable._read = function() {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return "[object Blob]"; - } - slice() { - const size = this.size; - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === void 0) relativeStart = 0; - else if (start < 0) relativeStart = Math.max(size + start, 0); - else relativeStart = Math.min(start, size); - if (end === void 0) relativeEnd = size; - else if (end < 0) relativeEnd = Math.max(size + end, 0); - else relativeEnd = Math.min(end, size); - const span = Math.max(relativeEnd - relativeStart, 0); - const buffer$1 = this[BUFFER]; - const slicedBuffer = buffer$1.slice(relativeStart, relativeStart + span); - const blob = new Blob$2([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } - }; - Object.defineProperties(Blob$2.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } - }); - Object.defineProperty(Blob$2.prototype, Symbol.toStringTag, { - value: "Blob", - writable: false, - enumerable: false, - configurable: true - }); - /** - * fetch-error.js - * - * FetchError interface for operational errors - */ - /** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ - function FetchError(message, type, systemError) { - Error.call(this, message); - this.message = message; - this.type = type; - if (systemError) this.code = this.errno = systemError.code; - Error.captureStackTrace(this, this.constructor); - } - FetchError.prototype = Object.create(Error.prototype); - FetchError.prototype.constructor = FetchError; - FetchError.prototype.name = "FetchError"; - let convert; - try { - convert = require_encoding().convert; - } catch (e) {} - const INTERNALS = Symbol("Body internals"); - const PassThrough = Stream$1.PassThrough; - /** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ - function Body(body) { - var _this = this; - var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref$size = _ref.size; - let size = _ref$size === void 0 ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === void 0 ? 0 : _ref$timeout; - if (body == null) body = null; - else if (isURLSearchParams(body)) body = Buffer.from(body.toString()); - else if (isBlob$1(body)); - else if (Buffer.isBuffer(body)); - else if (Object.prototype.toString.call(body) === "[object ArrayBuffer]") body = Buffer.from(body); - else if (ArrayBuffer.isView(body)) body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - else if (body instanceof Stream$1); - else body = Buffer.from(String(body)); - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - if (body instanceof Stream$1) body.on("error", function(err) { - const error = err.name === "AbortError" ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, "system", err); - _this[INTERNALS].error = error; - }); - } - Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - arrayBuffer() { - return consumeBody.call(this).then(function(buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - blob() { - let ct = this.headers && this.headers.get("content-type") || ""; - return consumeBody.call(this).then(function(buf) { - return Object.assign(new Blob$2([], { type: ct.toLowerCase() }), { [BUFFER]: buf }); - }); - }, - json() { - var _this2 = this; - return consumeBody.call(this).then(function(buffer$1) { - try { - return JSON.parse(buffer$1.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, "invalid-json")); - } - }); - }, - text() { - return consumeBody.call(this).then(function(buffer$1) { - return buffer$1.toString(); - }); - }, - buffer() { - return consumeBody.call(this); - }, - textConverted() { - var _this3 = this; - return consumeBody.call(this).then(function(buffer$1) { - return convertBody(buffer$1, _this3.headers); - }); - } - }; - Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } - }); - Body.mixIn = function(proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - }; - /** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ - function consumeBody() { - var _this4 = this; - if (this[INTERNALS].disturbed) return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - this[INTERNALS].disturbed = true; - if (this[INTERNALS].error) return Body.Promise.reject(this[INTERNALS].error); - let body = this.body; - if (body === null) return Body.Promise.resolve(Buffer.alloc(0)); - if (isBlob$1(body)) body = body.stream(); - if (Buffer.isBuffer(body)) return Body.Promise.resolve(body); - // istanbul ignore if: should never happen - if (!(body instanceof Stream$1)) return Body.Promise.resolve(Buffer.alloc(0)); - let accum = []; - let accumBytes = 0; - let abort = false; - return new Body.Promise(function(resolve, reject) { - let resTimeout; - if (_this4.timeout) resTimeout = setTimeout(function() { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, "body-timeout")); - }, _this4.timeout); - body.on("error", function(err) { - if (err.name === "AbortError") { - abort = true; - reject(err); - } else reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, "system", err)); - }); - body.on("data", function(chunk) { - if (abort || chunk === null) return; - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, "max-size")); - return; - } - accumBytes += chunk.length; - accum.push(chunk); - }); - body.on("end", function() { - if (abort) return; - clearTimeout(resTimeout); - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, "system", err)); - } - }); - }); - } - /** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ - function convertBody(buffer$1, headers) { - if (typeof convert !== "function") throw new Error("The package `encoding` must be installed to use the textConverted() function"); - const ct = headers.get("content-type"); - let charset = "utf-8"; - let res, str$1; - if (ct) res = /charset=([^;]*)/i.exec(ct); - str$1 = buffer$1.slice(0, 1024).toString(); - if (!res && str$1) res = / 0 && arguments[0] !== void 0 ? arguments[0] : void 0; - this[MAP] = Object.create(null); - if (init$1 instanceof Headers$1) { - const rawHeaders = init$1.raw(); - const headerNames = Object.keys(rawHeaders); - for (const headerName of headerNames) for (const value of rawHeaders[headerName]) this.append(headerName, value); - return; - } - if (init$1 == null); - else if (typeof init$1 === "object") { - const method = init$1[Symbol.iterator]; - if (method != null) { - if (typeof method !== "function") throw new TypeError("Header pairs must be iterable"); - const pairs = []; - for (const pair of init$1) { - if (typeof pair !== "object" || typeof pair[Symbol.iterator] !== "function") throw new TypeError("Each header pair must be iterable"); - pairs.push(Array.from(pair)); - } - for (const pair of pairs) { - if (pair.length !== 2) throw new TypeError("Each header pair must be a name/value tuple"); - this.append(pair[0], pair[1]); - } - } else for (const key$1 of Object.keys(init$1)) { - const value = init$1[key$1]; - this.append(key$1, value); - } - } else throw new TypeError("Provided initializer must be an object"); - } - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key$1 = find(this[MAP], name); - if (key$1 === void 0) return null; - return this[MAP][key$1].join(", "); - } - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0; - let pairs = getHeaders(this); - let i$4 = 0; - while (i$4 < pairs.length) { - var _pairs$i = pairs[i$4]; - const name = _pairs$i[0], value = _pairs$i[1]; - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i$4++; - } - } - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key$1 = find(this[MAP], name); - this[MAP][key$1 !== void 0 ? key$1 : name] = [value]; - } - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key$1 = find(this[MAP], name); - if (key$1 !== void 0) this[MAP][key$1].push(value); - else this[MAP][name] = [value]; - } - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== void 0; - } - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key$1 = find(this[MAP], name); - if (key$1 !== void 0) delete this[MAP][key$1]; - } - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, "key"); - } - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, "value"); - } - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, "key+value"); - } - }; - Headers$1.prototype.entries = Headers$1.prototype[Symbol.iterator]; - Object.defineProperty(Headers$1.prototype, Symbol.toStringTag, { - value: "Headers", - writable: false, - enumerable: false, - configurable: true - }); - Object.defineProperties(Headers$1.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } - }); - function getHeaders(headers) { - let kind$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "key+value"; - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind$1 === "key" ? function(k) { - return k.toLowerCase(); - } : kind$1 === "value" ? function(k) { - return headers[MAP][k].join(", "); - } : function(k) { - return [k.toLowerCase(), headers[MAP][k].join(", ")]; - }); - } - const INTERNAL = Symbol("internal"); - function createHeadersIterator(target, kind$1) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind: kind$1, - index: 0 - }; - return iterator; - } - const HeadersIteratorPrototype = Object.setPrototypeOf({ next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) throw new TypeError("Value of `this` is not a HeadersIterator"); - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, kind$1 = _INTERNAL.kind, index = _INTERNAL.index; - const values = getHeaders(target, kind$1); - const len$1 = values.length; - if (index >= len$1) return { - value: void 0, - done: true - }; - this[INTERNAL].index = index + 1; - return { - value: values[index], - done: false - }; - } }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: "HeadersIterator", - writable: false, - enumerable: false, - configurable: true - }); - /** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ - function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - const hostHeaderKey = find(headers[MAP], "Host"); - if (hostHeaderKey !== void 0) obj[hostHeaderKey] = obj[hostHeaderKey][0]; - return obj; - } - /** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ - function createHeadersLenient(obj) { - const headers = new Headers$1(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) continue; - if (Array.isArray(obj[name])) for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) continue; - if (headers[MAP][name] === void 0) headers[MAP][name] = [val]; - else headers[MAP][name].push(val); - } - else if (!invalidHeaderCharRegex.test(obj[name])) headers[MAP][name] = [obj[name]]; - } - return headers; - } - const INTERNALS$1 = Symbol("Response internals"); - const STATUS_CODES = http.STATUS_CODES; - /** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ - var Response$1 = class Response$1 { - constructor() { - let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - Body.call(this, body, opts); - const status = opts.status || 200; - const headers = new Headers$1(opts.headers); - if (body != null && !headers.has("Content-Type")) { - const contentType = extractContentType(body); - if (contentType) headers.append("Content-Type", contentType); - } - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - get url() { - return this[INTERNALS$1].url || ""; - } - get status() { - return this[INTERNALS$1].status; - } - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - get redirected() { - return this[INTERNALS$1].counter > 0; - } - get statusText() { - return this[INTERNALS$1].statusText; - } - get headers() { - return this[INTERNALS$1].headers; - } - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response$1(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } - }; - Body.mixIn(Response$1.prototype); - Object.defineProperties(Response$1.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } - }); - Object.defineProperty(Response$1.prototype, Symbol.toStringTag, { - value: "Response", - writable: false, - enumerable: false, - configurable: true - }); - const INTERNALS$2 = Symbol("Request internals"); - const URL$1 = Url.URL || whatwgUrl.URL; - const parse_url = Url.parse; - const format_url = Url.format; - /** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} - */ - function parseURL(urlStr) { - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) urlStr = new URL$1(urlStr).toString(); - return parse_url(urlStr); - } - const streamDestructionSupported = "destroy" in Stream$1.Readable.prototype; - /** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ - function isRequest(input) { - return typeof input === "object" && typeof input[INTERNALS$2] === "object"; - } - function isAbortSignal(signal) { - const proto = signal && typeof signal === "object" && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === "AbortSignal"); - } - /** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ - var Request$1 = class Request$1 { - constructor(input) { - let init$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - let parsedURL; - if (!isRequest(input)) { - if (input && input.href) parsedURL = parseURL(input.href); - else parsedURL = parseURL(`${input}`); - input = {}; - } else parsedURL = parseURL(input.url); - let method = init$1.method || input.method || "GET"; - method = method.toUpperCase(); - if ((init$1.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) throw new TypeError("Request with GET/HEAD method cannot have body"); - let inputBody = init$1.body != null ? init$1.body : isRequest(input) && input.body !== null ? clone(input) : null; - Body.call(this, inputBody, { - timeout: init$1.timeout || input.timeout || 0, - size: init$1.size || input.size || 0 - }); - const headers = new Headers$1(init$1.headers || input.headers || {}); - if (inputBody != null && !headers.has("Content-Type")) { - const contentType = extractContentType(inputBody); - if (contentType) headers.append("Content-Type", contentType); - } - let signal = isRequest(input) ? input.signal : null; - if ("signal" in init$1) signal = init$1.signal; - if (signal != null && !isAbortSignal(signal)) throw new TypeError("Expected signal to be an instanceof AbortSignal"); - this[INTERNALS$2] = { - method, - redirect: init$1.redirect || input.redirect || "follow", - headers, - parsedURL, - signal - }; - this.follow = init$1.follow !== void 0 ? init$1.follow : input.follow !== void 0 ? input.follow : 20; - this.compress = init$1.compress !== void 0 ? init$1.compress : input.compress !== void 0 ? input.compress : true; - this.counter = init$1.counter || input.counter || 0; - this.agent = init$1.agent || input.agent; - } - get method() { - return this[INTERNALS$2].method; - } - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - get headers() { - return this[INTERNALS$2].headers; - } - get redirect() { - return this[INTERNALS$2].redirect; - } - get signal() { - return this[INTERNALS$2].signal; - } - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request$1(this); - } - }; - Body.mixIn(Request$1.prototype); - Object.defineProperty(Request$1.prototype, Symbol.toStringTag, { - value: "Request", - writable: false, - enumerable: false, - configurable: true - }); - Object.defineProperties(Request$1.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } - }); - /** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ - function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers$1(request[INTERNALS$2].headers); - if (!headers.has("Accept")) headers.set("Accept", "*/*"); - if (!parsedURL.protocol || !parsedURL.hostname) throw new TypeError("Only absolute URLs are supported"); - if (!/^https?:$/.test(parsedURL.protocol)) throw new TypeError("Only HTTP(S) protocols are supported"); - if (request.signal && request.body instanceof Stream$1.Readable && !streamDestructionSupported) throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8"); - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) contentLengthValue = "0"; - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === "number") contentLengthValue = String(totalBytes); - } - if (contentLengthValue) headers.set("Content-Length", contentLengthValue); - if (!headers.has("User-Agent")) headers.set("User-Agent", "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"); - if (request.compress && !headers.has("Accept-Encoding")) headers.set("Accept-Encoding", "gzip,deflate"); - let agent = request.agent; - if (typeof agent === "function") agent = agent(parsedURL); - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); - } - /** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - /** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ - function AbortError(message) { - Error.call(this, message); - this.type = "aborted"; - this.message = message; - Error.captureStackTrace(this, this.constructor); - } - AbortError.prototype = Object.create(Error.prototype); - AbortError.prototype.constructor = AbortError; - AbortError.prototype.name = "AbortError"; - const URL$1$1 = Url.URL || whatwgUrl.URL; - const PassThrough$1 = Stream$1.PassThrough; - const isDomainOrSubdomain = function isDomainOrSubdomain$1(destination, original) { - const orig = new URL$1$1(original).hostname; - const dest = new URL$1$1(destination).hostname; - return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest); - }; - /** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination - */ - const isSameProtocol = function isSameProtocol$1(destination, original) { - const orig = new URL$1$1(original).protocol; - const dest = new URL$1$1(destination).protocol; - return orig === dest; - }; - /** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ - function fetch$2(url, opts) { - if (!fetch$2.Promise) throw new Error("native promise missing, set fetch.Promise to your favorite alternative"); - Body.Promise = fetch$2.Promise; - return new fetch$2.Promise(function(resolve, reject) { - const request = new Request$1(url, opts); - const options = getNodeRequestOptions(request); - const send = (options.protocol === "https:" ? https : http).request; - const signal = request.signal; - let response = null; - const abort = function abort$1() { - let error = new AbortError("The user aborted a request."); - reject(error); - if (request.body && request.body instanceof Stream$1.Readable) destroyStream(request.body, error); - if (!response || !response.body) return; - response.body.emit("error", error); - }; - if (signal && signal.aborted) { - abort(); - return; - } - const abortAndFinalize = function abortAndFinalize$1() { - abort(); - finalize(); - }; - const req = send(options); - let reqTimeout; - if (signal) signal.addEventListener("abort", abortAndFinalize); - function finalize() { - req.abort(); - if (signal) signal.removeEventListener("abort", abortAndFinalize); - clearTimeout(reqTimeout); - } - if (request.timeout) req.once("socket", function(socket) { - reqTimeout = setTimeout(function() { - reject(new FetchError(`network timeout at: ${request.url}`, "request-timeout")); - finalize(); - }, request.timeout); - }); - req.on("error", function(err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, "system", err)); - if (response && response.body) destroyStream(response.body, err); - finalize(); - }); - fixResponseChunkedTransferBadEnding(req, function(err) { - if (signal && signal.aborted) return; - if (response && response.body) destroyStream(response.body, err); - }); - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) req.on("socket", function(s$1) { - s$1.addListener("close", function(hadError) { - const hasDataListener = s$1.listenerCount("data") > 0; - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error("Premature close"); - err.code = "ERR_STREAM_PREMATURE_CLOSE"; - response.body.emit("error", err); - } - }); - }); - req.on("response", function(res) { - clearTimeout(reqTimeout); - const headers = createHeadersLenient(res.headers); - if (fetch$2.isRedirect(res.statusCode)) { - const location$1 = headers.get("Location"); - let locationURL = null; - try { - locationURL = location$1 === null ? null : new URL$1$1(location$1, request.url).toString(); - } catch (err) { - if (request.redirect !== "manual") { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location$1}`, "invalid-redirect")); - finalize(); - return; - } - } - switch (request.redirect) { - case "error": - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, "no-redirect")); - finalize(); - return; - case "manual": - if (locationURL !== null) try { - headers.set("Location", locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - break; - case "follow": - if (locationURL === null) break; - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, "max-redirect")); - finalize(); - return; - } - const requestOpts = { - headers: new Headers$1(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) for (const name of [ - "authorization", - "www-authenticate", - "cookie", - "cookie2" - ]) requestOpts.headers.delete(name); - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect")); - finalize(); - return; - } - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === "POST") { - requestOpts.method = "GET"; - requestOpts.body = void 0; - requestOpts.headers.delete("content-length"); - } - resolve(fetch$2(new Request$1(locationURL, requestOpts))); - finalize(); - return; - } - } - res.once("end", function() { - if (signal) signal.removeEventListener("abort", abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - const codings = headers.get("Content-Encoding"); - if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response$1(body, response_options); - resolve(response); - return; - } - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - if (codings == "gzip" || codings == "x-gzip") { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response$1(body, response_options); - resolve(response); - return; - } - if (codings == "deflate" || codings == "x-deflate") { - const raw = res.pipe(new PassThrough$1()); - raw.once("data", function(chunk) { - if ((chunk[0] & 15) === 8) body = body.pipe(zlib.createInflate()); - else body = body.pipe(zlib.createInflateRaw()); - response = new Response$1(body, response_options); - resolve(response); - }); - raw.on("end", function() { - if (!response) { - response = new Response$1(body, response_options); - resolve(response); - } - }); - return; - } - if (codings == "br" && typeof zlib.createBrotliDecompress === "function") { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response$1(body, response_options); - resolve(response); - return; - } - response = new Response$1(body, response_options); - resolve(response); - }); - writeToStream(req, request); - }); - } - function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; - request.on("socket", function(s$1) { - socket = s$1; - }); - request.on("response", function(response) { - const headers = response.headers; - if (headers["transfer-encoding"] === "chunked" && !headers["content-length"]) response.once("close", function(hadError) { - const hasDataListener = socket && socket.listenerCount("data") > 0; - if (hasDataListener && !hadError) { - const err = new Error("Premature close"); - err.code = "ERR_STREAM_PREMATURE_CLOSE"; - errorCallback(err); - } - }); - }); - } - function destroyStream(stream, err) { - if (stream.destroy) stream.destroy(err); - else { - stream.emit("error", err); - stream.end(); - } - } - /** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ - fetch$2.isRedirect = function(code$1) { - return code$1 === 301 || code$1 === 302 || code$1 === 303 || code$1 === 307 || code$1 === 308; - }; - fetch$2.Promise = global.Promise; - module.exports = exports = fetch$2; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = exports; - exports.Headers = Headers$1; - exports.Request = Request$1; - exports.Response = Response$1; - exports.FetchError = FetchError; - exports.AbortError = AbortError; -} }); - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/setup/async_local_storage.js -function initializeAsyncLocalStorageSingleton() { - AsyncLocalStorageProviderSingleton.initializeGlobalInstance(new AsyncLocalStorage()); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/errors.js -var BaseLangGraphError = class extends Error { - constructor(message, fields) { - let finalMessage = message ?? ""; - if (fields?.lc_error_code) finalMessage = `${finalMessage}\n\nTroubleshooting URL: https://langchain-ai.github.io/langgraphjs/troubleshooting/errors/${fields.lc_error_code}/\n`; - super(finalMessage); - Object.defineProperty(this, "lc_error_code", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.lc_error_code = fields?.lc_error_code; - } -}; -var GraphBubbleUp = class extends BaseLangGraphError { - get is_bubble_up() { - return true; - } -}; -var GraphRecursionError = class extends BaseLangGraphError { - constructor(message, fields) { - super(message, fields); - this.name = "GraphRecursionError"; - } - static get unminifiable_name() { - return "GraphRecursionError"; - } -}; -var GraphValueError = class extends BaseLangGraphError { - constructor(message, fields) { - super(message, fields); - this.name = "GraphValueError"; - } - static get unminifiable_name() { - return "GraphValueError"; - } -}; -var GraphInterrupt = class extends GraphBubbleUp { - constructor(interrupts, fields) { - super(JSON.stringify(interrupts, null, 2), fields); - Object.defineProperty(this, "interrupts", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = "GraphInterrupt"; - this.interrupts = interrupts ?? []; - } - static get unminifiable_name() { - return "GraphInterrupt"; - } -}; -/** Raised by a node to interrupt execution. */ -var NodeInterrupt = class extends GraphInterrupt { - constructor(message, fields) { - super([{ - value: message, - when: "during" - }], fields); - this.name = "NodeInterrupt"; - } - static get unminifiable_name() { - return "NodeInterrupt"; - } -}; -var ParentCommand = class extends GraphBubbleUp { - constructor(command) { - super(); - Object.defineProperty(this, "command", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.name = "ParentCommand"; - this.command = command; - } - static get unminifiable_name() { - return "ParentCommand"; - } -}; -function isParentCommand(e) { - return e !== void 0 && e.name === ParentCommand.unminifiable_name; -} -function isGraphBubbleUp(e) { - return e !== void 0 && e.is_bubble_up === true; -} -function isGraphInterrupt(e) { - return e !== void 0 && [GraphInterrupt.unminifiable_name, NodeInterrupt.unminifiable_name].includes(e.name); -} -var EmptyInputError = class extends BaseLangGraphError { - constructor(message, fields) { - super(message, fields); - this.name = "EmptyInputError"; - } - static get unminifiable_name() { - return "EmptyInputError"; - } -}; -var EmptyChannelError = class extends BaseLangGraphError { - constructor(message, fields) { - super(message, fields); - this.name = "EmptyChannelError"; - } - static get unminifiable_name() { - return "EmptyChannelError"; - } -}; -var InvalidUpdateError = class extends BaseLangGraphError { - constructor(message, fields) { - super(message, fields); - this.name = "InvalidUpdateError"; - } - static get unminifiable_name() { - return "InvalidUpdateError"; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/channels/base.js -function isBaseChannel(obj) { - return obj != null && obj.lg_is_channel === true; -} -var BaseChannel = class { - constructor() { - Object.defineProperty(this, "ValueType", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "UpdateType", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @ignore */ - Object.defineProperty(this, "lg_is_channel", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - } - /** - * Mark the current value of the channel as consumed. By default, no-op. - * This is called by Pregel before the start of the next step, for all - * channels that triggered a node. If the channel was updated, return true. - */ - consume() { - return false; - } -}; -function emptyChannels(channels, checkpoint) { - const filteredChannels = Object.fromEntries(Object.entries(channels).filter(([, value]) => isBaseChannel(value))); - const newChannels = {}; - for (const k in filteredChannels) if (Object.prototype.hasOwnProperty.call(filteredChannels, k)) { - const channelValue = checkpoint.channel_values[k]; - newChannels[k] = filteredChannels[k].fromCheckpoint(channelValue); - } - return newChannels; -} -function createCheckpoint(checkpoint, channels, step) { - let values; - if (channels === void 0) values = checkpoint.channel_values; - else { - values = {}; - for (const k of Object.keys(channels)) try { - values[k] = channels[k].checkpoint(); - } catch (error) { - if (error.name === EmptyChannelError.unminifiable_name) {} else throw error; - } - } - return { - v: 1, - id: uuid6(step), - ts: (/* @__PURE__ */ new Date()).toISOString(), - channel_values: values, - channel_versions: { ...checkpoint.channel_versions }, - versions_seen: deepCopy(checkpoint.versions_seen), - pending_sends: checkpoint.pending_sends ?? [] - }; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/channels/binop.js -/** -* Stores the result of applying a binary operator to the current value and each new value. -*/ -var BinaryOperatorAggregate = class BinaryOperatorAggregate extends BaseChannel { - constructor(operator, initialValueFactory) { - super(); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "BinaryOperatorAggregate" - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "operator", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "initialValueFactory", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.operator = operator; - this.initialValueFactory = initialValueFactory; - this.value = initialValueFactory?.(); - } - fromCheckpoint(checkpoint) { - const empty = new BinaryOperatorAggregate(this.operator, this.initialValueFactory); - if (typeof checkpoint !== "undefined") empty.value = checkpoint; - return empty; - } - update(values) { - let newValues = values; - if (!newValues.length) return false; - if (this.value === void 0) { - [this.value] = newValues; - newValues = newValues.slice(1); - } - for (const value of newValues) if (this.value !== void 0) this.value = this.operator(this.value, value); - return true; - } - get() { - if (this.value === void 0) throw new EmptyChannelError(); - return this.value; - } - checkpoint() { - if (this.value === void 0) throw new EmptyChannelError(); - return this.value; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/channels/last_value.js -/** -* Stores the last value received, can receive at most one value per step. -* -* Since `update` is only called once per step and value can only be of length 1, -* LastValue always stores the last value of a single node. If multiple nodes attempt to -* write to this channel in a single step, an error will be thrown. -* @internal -*/ -var LastValue = class LastValue extends BaseChannel { - constructor() { - super(...arguments); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "LastValue" - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - } - fromCheckpoint(checkpoint) { - const empty = new LastValue(); - if (typeof checkpoint !== "undefined") empty.value = [checkpoint]; - return empty; - } - update(values) { - if (values.length === 0) return false; - if (values.length !== 1) throw new InvalidUpdateError("LastValue can only receive one value per step.", { lc_error_code: "INVALID_CONCURRENT_GRAPH_UPDATE" }); - this.value = [values[values.length - 1]]; - return true; - } - get() { - if (this.value.length === 0) throw new EmptyChannelError(); - return this.value[0]; - } - checkpoint() { - if (this.value.length === 0) throw new EmptyChannelError(); - return this.value[0]; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/constants.js -/** Special reserved node name denoting the start of a graph. */ -const START = "__start__"; -/** Special reserved node name denoting the end of a graph. */ -const END$1 = "__end__"; -const INPUT = "__input__"; -const COPY = "__copy__"; -const ERROR = "__error__"; -const CONFIG_KEY_SEND = "__pregel_send"; -/** config key containing function used to call a node (push task) */ -const CONFIG_KEY_CALL = "__pregel_call"; -const CONFIG_KEY_READ = "__pregel_read"; -const CONFIG_KEY_CHECKPOINTER = "__pregel_checkpointer"; -const CONFIG_KEY_RESUMING = "__pregel_resuming"; -const CONFIG_KEY_TASK_ID = "__pregel_task_id"; -const CONFIG_KEY_STREAM = "__pregel_stream"; -const CONFIG_KEY_RESUME_VALUE = "__pregel_resume_value"; -const CONFIG_KEY_SCRATCHPAD = "__pregel_scratchpad"; -/** config key containing state from previous invocation of graph for the given thread */ -const CONFIG_KEY_PREVIOUS_STATE = "__pregel_previous"; -const CONFIG_KEY_CHECKPOINT_ID = "checkpoint_id"; -const CONFIG_KEY_CHECKPOINT_NS = "checkpoint_ns"; -const CONFIG_KEY_NODE_FINISHED = "__pregel_node_finished"; -const CONFIG_KEY_CHECKPOINT_MAP = "checkpoint_map"; -const CONFIG_KEY_ABORT_SIGNALS = "__pregel_abort_signals"; -/** Special channel reserved for graph interrupts */ -const INTERRUPT = "__interrupt__"; -/** Special channel reserved for graph resume */ -const RESUME = "__resume__"; -/** Special channel reserved for cases when a task exits without any writes */ -const NO_WRITES = "__no_writes__"; -/** Special channel reserved for graph return */ -const RETURN = "__return__"; -/** Special channel reserved for graph previous state */ -const PREVIOUS = "__previous__"; -const RUNTIME_PLACEHOLDER = "__pregel_runtime_placeholder__"; -const TAG_HIDDEN = "langsmith:hidden"; -const TAG_NOSTREAM = "langsmith:nostream"; -const TASKS = "__pregel_tasks"; -const PUSH = "__pregel_push"; -const PULL = "__pregel_pull"; -const NULL_TASK_ID = "00000000-0000-0000-0000-000000000000"; -const RESERVED = [ - TAG_HIDDEN, - INPUT, - INTERRUPT, - RESUME, - ERROR, - NO_WRITES, - TASKS, - CONFIG_KEY_SEND, - CONFIG_KEY_READ, - CONFIG_KEY_CHECKPOINTER, - CONFIG_KEY_STREAM, - CONFIG_KEY_RESUMING, - CONFIG_KEY_TASK_ID, - CONFIG_KEY_CALL, - CONFIG_KEY_RESUME_VALUE, - CONFIG_KEY_SCRATCHPAD, - CONFIG_KEY_PREVIOUS_STATE, - CONFIG_KEY_CHECKPOINT_MAP, - CONFIG_KEY_CHECKPOINT_NS, - CONFIG_KEY_CHECKPOINT_ID -]; -const CHECKPOINT_NAMESPACE_SEPARATOR = "|"; -const CHECKPOINT_NAMESPACE_END = ":"; -function _isSendInterface(x) { - const operation = x; - return operation !== null && operation !== void 0 && typeof operation.node === "string" && operation.args !== void 0; -} -/** -* -* A message or packet to send to a specific node in the graph. -* -* The `Send` class is used within a `StateGraph`'s conditional edges to -* dynamically invoke a node with a custom state at the next step. -* -* Importantly, the sent state can differ from the core graph's state, -* allowing for flexible and dynamic workflow management. -* -* One such example is a "map-reduce" workflow where your graph invokes -* the same node multiple times in parallel with different states, -* before aggregating the results back into the main graph's state. -* -* @example -* ```typescript -* import { Annotation, Send, StateGraph } from "@langchain/langgraph"; -* -* const ChainState = Annotation.Root({ -* subjects: Annotation, -* jokes: Annotation({ -* reducer: (a, b) => a.concat(b), -* }), -* }); -* -* const continueToJokes = async (state: typeof ChainState.State) => { -* return state.subjects.map((subject) => { -* return new Send("generate_joke", { subjects: [subject] }); -* }); -* }; -* -* const graph = new StateGraph(ChainState) -* .addNode("generate_joke", (state) => ({ -* jokes: [`Joke about ${state.subjects}`], -* })) -* .addConditionalEdges("__start__", continueToJokes) -* .addEdge("generate_joke", "__end__") -* .compile(); -* -* const res = await graph.invoke({ subjects: ["cats", "dogs"] }); -* console.log(res); -* -* // Invoking with two subjects results in a generated joke for each -* // { subjects: ["cats", "dogs"], jokes: [`Joke about cats`, `Joke about dogs`] } -* ``` -*/ -var Send = class { - constructor(node, args) { - Object.defineProperty(this, "lg_name", { - enumerable: true, - configurable: true, - writable: true, - value: "Send" - }); - Object.defineProperty(this, "node", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "args", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.node = node; - this.args = _deserializeCommandSendObjectGraph(args); - } - toJSON() { - return { - lg_name: this.lg_name, - node: this.node, - args: this.args - }; - } -}; -function _isSend(x) { - return x instanceof Send; -} -/** -* One or more commands to update the graph's state and send messages to nodes. -* Can be used to combine routing logic with state updates in lieu of conditional edges -* -* @example -* ```ts -* import { Annotation, Command } from "@langchain/langgraph"; -* -* // Define graph state -* const StateAnnotation = Annotation.Root({ -* foo: Annotation, -* }); -* -* // Define the nodes -* const nodeA = async (_state: typeof StateAnnotation.State) => { -* console.log("Called A"); -* // this is a replacement for a real conditional edge function -* const goto = Math.random() > .5 ? "nodeB" : "nodeC"; -* // note how Command allows you to BOTH update the graph state AND route to the next node -* return new Command({ -* // this is the state update -* update: { -* foo: "a", -* }, -* // this is a replacement for an edge -* goto, -* }); -* }; -* -* // Nodes B and C are unchanged -* const nodeB = async (state: typeof StateAnnotation.State) => { -* console.log("Called B"); -* return { -* foo: state.foo + "|b", -* }; -* } -* -* const nodeC = async (state: typeof StateAnnotation.State) => { -* console.log("Called C"); -* return { -* foo: state.foo + "|c", -* }; -* } -* -* import { StateGraph } from "@langchain/langgraph"; - -* // NOTE: there are no edges between nodes A, B and C! -* const graph = new StateGraph(StateAnnotation) -* .addNode("nodeA", nodeA, { -* ends: ["nodeB", "nodeC"], -* }) -* .addNode("nodeB", nodeB) -* .addNode("nodeC", nodeC) -* .addEdge("__start__", "nodeA") -* .compile(); -* -* await graph.invoke({ foo: "" }); -* -* // Randomly oscillates between -* // { foo: 'a|c' } and { foo: 'a|b' } -* ``` -*/ -var Command = class { - constructor(args) { - Object.defineProperty(this, "lg_name", { - enumerable: true, - configurable: true, - writable: true, - value: "Command" - }); - Object.defineProperty(this, "lc_direct_tool_output", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - /** - * Graph to send the command to. Supported values are: - * - None: the current graph (default) - * - The specific name of the graph to send the command to - * - {@link Command.PARENT}: closest parent graph (only supported when returned from a node in a subgraph) - */ - Object.defineProperty(this, "graph", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Update to apply to the graph's state as a result of executing the node that is returning the command. - * Written to the state as if the node had simply returned this value instead of the Command object. - */ - Object.defineProperty(this, "update", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Value to resume execution with. To be used together with {@link interrupt}. - */ - Object.defineProperty(this, "resume", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Can be one of the following: - * - name of the node to navigate to next (any node that belongs to the specified `graph`) - * - sequence of node names to navigate to next - * - {@link Send} object (to execute a node with the exact input provided in the {@link Send} object) - * - sequence of {@link Send} objects - */ - Object.defineProperty(this, "goto", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.resume = args.resume; - this.graph = args.graph; - this.update = args.update; - if (args.goto) this.goto = Array.isArray(args.goto) ? _deserializeCommandSendObjectGraph(args.goto) : [_deserializeCommandSendObjectGraph(args.goto)]; - } - /** - * Convert the update field to a list of {@link PendingWrite} tuples - * @returns List of {@link PendingWrite} tuples of the form `[channelKey, value]`. - * @internal - */ - _updateAsTuples() { - if (this.update && typeof this.update === "object" && !Array.isArray(this.update)) return Object.entries(this.update); - else if (Array.isArray(this.update) && this.update.every((t) => Array.isArray(t) && t.length === 2 && typeof t[0] === "string")) return this.update; - else return [["__root__", this.update]]; - } - toJSON() { - let serializedGoto; - if (typeof this.goto === "string") serializedGoto = this.goto; - else if (_isSend(this.goto)) serializedGoto = this.goto.toJSON(); - else serializedGoto = this.goto?.map((innerGoto) => { - if (typeof innerGoto === "string") return innerGoto; - else return innerGoto.toJSON(); - }); - return { - lg_name: this.lg_name, - update: this.update, - resume: this.resume, - goto: serializedGoto - }; - } -}; -Object.defineProperty(Command, "PARENT", { - enumerable: true, - configurable: true, - writable: true, - value: "__parent__" -}); -/** -* A type guard to check if the given value is a {@link Command}. -* -* Useful for type narrowing when working with the {@link Command} object. -* -* @param x - The value to check. -* @returns `true` if the value is a {@link Command}, `false` otherwise. -*/ -function isCommand(x) { - if (typeof x !== "object") return false; - if (x === null || x === void 0) return false; - if ("lg_name" in x && x.lg_name === "Command") return true; - return false; -} -/** -* Reconstructs Command and Send objects from a deeply nested tree of anonymous objects -* matching their interfaces. -* -* This is only exported for testing purposes. It is NOT intended to be used outside of -* the Command and Send classes. -* -* @internal -* -* @param x - The command send tree to convert. -* @param seen - A map of seen objects to avoid infinite loops. -* @returns The converted command send tree. -*/ -function _deserializeCommandSendObjectGraph(x, seen = /* @__PURE__ */ new Map()) { - if (x !== void 0 && x !== null && typeof x === "object") { - if (seen.has(x)) return seen.get(x); - let result; - if (Array.isArray(x)) { - result = []; - seen.set(x, result); - x.forEach((item, index) => { - result[index] = _deserializeCommandSendObjectGraph(item, seen); - }); - } else if (isCommand(x) && !(x instanceof Command)) { - result = new Command(x); - seen.set(x, result); - } else if (_isSendInterface(x) && !(x instanceof Send)) { - result = new Send(x.node, x.args); - seen.set(x, result); - } else if (isCommand(x) || _isSend(x)) { - result = x; - seen.set(x, result); - } else if ("lc_serializable" in x && x.lc_serializable) { - result = x; - seen.set(x, result); - } else { - result = {}; - seen.set(x, result); - for (const [key$1, value] of Object.entries(x)) result[key$1] = _deserializeCommandSendObjectGraph(value, seen); - } - return result; - } - return x; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/managed/base.js -var ManagedValue = class { - constructor(config, _params) { - Object.defineProperty(this, "runtime", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_promises", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "lg_is_managed_value", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.config = config; - } - static async initialize(_config, _args) { - throw new Error("Not implemented"); - } - async promises() { - return Promise.all(this._promises); - } - addPromise(promise) { - this._promises.push(promise); - } -}; -const ChannelKeyPlaceholder = "__channel_key_placeholder__"; -var ManagedValueMapping = class extends Map { - constructor(entries) { - super(entries ? Array.from(entries) : void 0); - } - replaceRuntimeValues(step, values) { - if (this.size === 0 || !values) return; - if (Array.from(this.values()).every((mv) => !mv.runtime)) return; - if (typeof values === "object" && !Array.isArray(values)) { - for (const [key$1, value] of Object.entries(values)) for (const [chan, mv] of this.entries()) if (mv.runtime && mv.call(step) === value) values[key$1] = { [RUNTIME_PLACEHOLDER]: chan }; - } else if (typeof values === "object" && "constructor" in values) for (const key$1 of Object.getOwnPropertyNames(Object.getPrototypeOf(values))) try { - const value = values[key$1]; - for (const [chan, mv] of this.entries()) if (mv.runtime && mv.call(step) === value) values[key$1] = { [RUNTIME_PLACEHOLDER]: chan }; - } catch (error) { - if (error.name !== TypeError.name) throw error; - } - } - replaceRuntimePlaceholders(step, values) { - if (this.size === 0 || !values) return; - if (Array.from(this.values()).every((mv) => !mv.runtime)) return; - if (typeof values === "object" && !Array.isArray(values)) { - for (const [key$1, value] of Object.entries(values)) if (typeof value === "object" && value !== null && RUNTIME_PLACEHOLDER in value) { - const placeholder = value[RUNTIME_PLACEHOLDER]; - if (typeof placeholder === "string") values[key$1] = this.get(placeholder)?.call(step); - } - } else if (typeof values === "object" && "constructor" in values) for (const key$1 of Object.getOwnPropertyNames(Object.getPrototypeOf(values))) try { - const value = values[key$1]; - if (typeof value === "object" && value !== null && RUNTIME_PLACEHOLDER in value) { - const managedValue = this.get(value[RUNTIME_PLACEHOLDER]); - if (managedValue) values[key$1] = managedValue.call(step); - } - } catch (error) { - if (error.name !== TypeError.name) throw error; - } - } -}; -function isConfiguredManagedValue(value) { - if (typeof value === "object" && value && "cls" in value && "params" in value) return true; - return false; -} -/** -* No-op class used when getting state values, as managed values should never be returned -* in get state calls. -*/ -var NoopManagedValue = class NoopManagedValue extends ManagedValue { - call() {} - static async initialize(config, _args) { - return Promise.resolve(new NoopManagedValue(config)); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/graph/annotation.js -/** -* Should not be instantiated directly. See {@link Annotation}. -*/ -var AnnotationRoot = class { - constructor(s$1) { - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "AnnotationRoot" - }); - Object.defineProperty(this, "spec", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.spec = s$1; - } -}; -/** -* Helper that instantiates channels within a StateGraph state. -* -* Can be used as a field in an {@link Annotation.Root} wrapper in one of two ways: -* 1. **Directly**: Creates a channel that stores the most recent value returned from a node. -* 2. **With a reducer**: Creates a channel that applies the reducer on a node's return value. -* -* @example -* ```ts -* import { StateGraph, Annotation } from "@langchain/langgraph"; -* -* // Define a state with a single string key named "currentOutput" -* const SimpleAnnotation = Annotation.Root({ -* currentOutput: Annotation, -* }); -* -* const graphBuilder = new StateGraph(SimpleAnnotation); -* -* // A node in the graph that returns an object with a "currentOutput" key -* // replaces the value in the state. You can get the state type as shown below: -* const myNode = (state: typeof SimpleAnnotation.State) => { -* return { -* currentOutput: "some_new_value", -* }; -* } -* -* const graph = graphBuilder -* .addNode("myNode", myNode) -* ... -* .compile(); -* ``` -* -* @example -* ```ts -* import { type BaseMessage, AIMessage } from "@langchain/core/messages"; -* import { StateGraph, Annotation } from "@langchain/langgraph"; -* -* // Define a state with a single key named "messages" that will -* // combine a returned BaseMessage or arrays of BaseMessages -* const AnnotationWithReducer = Annotation.Root({ -* messages: Annotation({ -* // Different types are allowed for updates -* reducer: (left: BaseMessage[], right: BaseMessage | BaseMessage[]) => { -* if (Array.isArray(right)) { -* return left.concat(right); -* } -* return left.concat([right]); -* }, -* default: () => [], -* }), -* }); -* -* const graphBuilder = new StateGraph(AnnotationWithReducer); -* -* // A node in the graph that returns an object with a "messages" key -* // will update the state by combining the existing value with the returned one. -* const myNode = (state: typeof AnnotationWithReducer.State) => { -* return { -* messages: [new AIMessage("Some new response")], -* }; -* }; -* -* const graph = graphBuilder -* .addNode("myNode", myNode) -* ... -* .compile(); -* ``` -* @namespace -* @property Root -* Helper function that instantiates a StateGraph state. See {@link Annotation} for usage. -*/ -const Annotation$1 = function(annotation) { - if (isConfiguredManagedValue(annotation)) return annotation; - else if (annotation) return getChannel(annotation); - else return new LastValue(); -}; -Annotation$1.Root = (sd) => new AnnotationRoot(sd); -function getChannel(reducer) { - if (typeof reducer === "object" && reducer && "reducer" in reducer && reducer.reducer) return new BinaryOperatorAggregate(reducer.reducer, reducer.default); - if (typeof reducer === "object" && reducer && "value" in reducer && reducer.value) return new BinaryOperatorAggregate(reducer.value, reducer.default); - return new LastValue(); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/utils/config.js -const COPIABLE_KEYS = [ - "tags", - "metadata", - "callbacks", - "configurable" -]; -const CONFIG_KEYS = [ - "tags", - "metadata", - "callbacks", - "runName", - "maxConcurrency", - "recursionLimit", - "configurable", - "runId", - "outputKeys", - "streamMode", - "store", - "writer", - "interruptBefore", - "interruptAfter", - "signal" -]; -const DEFAULT_RECURSION_LIMIT = 25; -function ensureLangGraphConfig(...configs) { - const empty = { - tags: [], - metadata: {}, - callbacks: void 0, - recursionLimit: DEFAULT_RECURSION_LIMIT, - configurable: {} - }; - const implicitConfig = AsyncLocalStorageProviderSingleton.getRunnableConfig(); - if (implicitConfig !== void 0) { - for (const [k, v] of Object.entries(implicitConfig)) if (v !== void 0) if (COPIABLE_KEYS.includes(k)) { - let copiedValue; - if (Array.isArray(v)) copiedValue = [...v]; - else if (typeof v === "object") if (k === "callbacks" && "copy" in v && typeof v.copy === "function") copiedValue = v.copy(); - else copiedValue = { ...v }; - else copiedValue = v; - empty[k] = copiedValue; - } else empty[k] = v; - } - for (const config of configs) { - if (config === void 0) continue; - for (const [k, v] of Object.entries(config)) if (v !== void 0 && CONFIG_KEYS.includes(k)) empty[k] = v; - } - for (const [key$1, value] of Object.entries(empty.configurable)) { - empty.metadata = empty.metadata ?? {}; - if (!key$1.startsWith("__") && (typeof value === "string" || typeof value === "number" || typeof value === "boolean") && !(key$1 in empty.metadata)) empty.metadata[key$1] = value; - } - return empty; -} -function recastCheckpointNamespace(namespace) { - return namespace.split(CHECKPOINT_NAMESPACE_SEPARATOR).filter((part) => !part.match(/^\d+$/)).map((part) => part.split(CHECKPOINT_NAMESPACE_END)[0]).join(CHECKPOINT_NAMESPACE_SEPARATOR); -} -function getParentCheckpointNamespace(namespace) { - const parts = namespace.split(CHECKPOINT_NAMESPACE_SEPARATOR); - while (parts.length > 1 && parts[parts.length - 1].match(/^\d+$/)) parts.pop(); - return parts.slice(0, -1).join(CHECKPOINT_NAMESPACE_SEPARATOR); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/utils.js -var RunnableCallable = class extends Runnable { - constructor(fields) { - super(); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langgraph"] - }); - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "trace", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "recurse", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.name = fields.name ?? fields.func.name; - this.func = fields.func; - this.config = fields.tags ? { tags: fields.tags } : void 0; - this.trace = fields.trace ?? this.trace; - this.recurse = fields.recurse ?? this.recurse; - } - async _tracedInvoke(input, config, runManager) { - return new Promise((resolve, reject) => { - const childConfig = patchConfig(config, { callbacks: runManager?.getChild() }); - AsyncLocalStorageProviderSingleton.runWithConfig(childConfig, async () => { - try { - const output = await this.func(input, childConfig); - resolve(output); - } catch (e) { - reject(e); - } - }); - }); - } - async invoke(input, options) { - let returnValue; - const config = ensureLangGraphConfig(options); - const mergedConfig = mergeConfigs(this.config, config); - if (this.trace) returnValue = await this._callWithConfig(this._tracedInvoke, input, mergedConfig); - else returnValue = await AsyncLocalStorageProviderSingleton.runWithConfig(mergedConfig, async () => this.func(input, mergedConfig)); - if (Runnable.isRunnable(returnValue) && this.recurse) return await AsyncLocalStorageProviderSingleton.runWithConfig(mergedConfig, async () => returnValue.invoke(input, mergedConfig)); - return returnValue; - } -}; -function* prefixGenerator(generator, prefix) { - if (prefix === void 0) yield* generator; - else for (const value of generator) yield [prefix, value]; -} -async function gatherIterator(i$4) { - const out = []; - for await (const item of await i$4) out.push(item); - return out; -} -function gatherIteratorSync(i$4) { - const out = []; - for (const item of i$4) out.push(item); - return out; -} -function patchConfigurable(config, patch) { - if (!config) return { configurable: patch }; - else if (!("configurable" in config)) return { - ...config, - configurable: patch - }; - else return { - ...config, - configurable: { - ...config.configurable, - ...patch - } - }; -} -function isAsyncGeneratorFunction(val) { - return val != null && typeof val === "function" && val instanceof Object.getPrototypeOf(async function* () {}).constructor; -} -function isGeneratorFunction(val) { - return val != null && typeof val === "function" && val instanceof Object.getPrototypeOf(function* () {}).constructor; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/write.js -const SKIP_WRITE = { [Symbol.for("LG_SKIP_WRITE")]: true }; -function _isSkipWrite(x) { - return typeof x === "object" && x?.[Symbol.for("LG_SKIP_WRITE")] !== void 0; -} -const PASSTHROUGH = { [Symbol.for("LG_PASSTHROUGH")]: true }; -function _isPassthrough(x) { - return typeof x === "object" && x?.[Symbol.for("LG_PASSTHROUGH")] !== void 0; -} -const IS_WRITER = Symbol("IS_WRITER"); -/** -* Mapping of write channels to Runnables that return the value to be written, -* or None to skip writing. -*/ -var ChannelWrite = class ChannelWrite extends RunnableCallable { - constructor(writes, tags) { - const name = `ChannelWrite<${writes.map((packet) => { - if (_isSend(packet)) return packet.node; - else if ("channel" in packet) return packet.channel; - return "..."; - }).join(",")}>`; - super({ - writes, - name, - tags, - func: async (input, config) => { - return this._write(input, config ?? {}); - } - }); - Object.defineProperty(this, "writes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.writes = writes; - } - async _write(input, config) { - const writes = this.writes.map((write) => { - if (_isChannelWriteTupleEntry(write) && _isPassthrough(write.value)) return { - mapper: write.mapper, - value: input - }; - else if (_isChannelWriteEntry(write) && _isPassthrough(write.value)) return { - channel: write.channel, - value: input, - skipNone: write.skipNone, - mapper: write.mapper - }; - else return write; - }); - await ChannelWrite.doWrite(config, writes); - return input; - } - static async doWrite(config, writes) { - for (const w$1 of writes) { - if (_isChannelWriteEntry(w$1)) { - if (w$1.channel === TASKS) throw new InvalidUpdateError("Cannot write to the reserved channel TASKS"); - if (_isPassthrough(w$1.value)) throw new InvalidUpdateError("PASSTHROUGH value must be replaced"); - } - if (_isChannelWriteTupleEntry(w$1)) { - if (_isPassthrough(w$1.value)) throw new InvalidUpdateError("PASSTHROUGH value must be replaced"); - } - } - const writeEntries = []; - for (const w$1 of writes) if (_isSend(w$1)) writeEntries.push([TASKS, w$1]); - else if (_isChannelWriteTupleEntry(w$1)) { - const mappedResult = await w$1.mapper.invoke(w$1.value, config); - if (mappedResult != null && mappedResult.length > 0) writeEntries.push(...mappedResult); - } else if (_isChannelWriteEntry(w$1)) { - const mappedValue = w$1.mapper !== void 0 ? await w$1.mapper.invoke(w$1.value, config) : w$1.value; - if (_isSkipWrite(mappedValue)) continue; - if (w$1.skipNone && mappedValue === void 0) continue; - writeEntries.push([w$1.channel, mappedValue]); - } else throw new Error(`Invalid write entry: ${JSON.stringify(w$1)}`); - const write = config.configurable?.[CONFIG_KEY_SEND]; - write(writeEntries); - } - static isWriter(runnable) { - return runnable instanceof ChannelWrite || IS_WRITER in runnable && !!runnable[IS_WRITER]; - } - static registerWriter(runnable) { - return Object.defineProperty(runnable, IS_WRITER, { value: true }); - } -}; -function _isChannelWriteEntry(x) { - return x !== void 0 && typeof x.channel === "string"; -} -function _isChannelWriteTupleEntry(x) { - return x !== void 0 && !_isChannelWriteEntry(x) && Runnable.isRunnable(x.mapper); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/read.js -const defaultRunnableBound = /* @__PURE__ */ new RunnablePassthrough(); -var PregelNode = class PregelNode extends RunnableBinding { - constructor(fields) { - const { channels, triggers, mapper, writers, bound, kwargs, metadata, retryPolicy, tags, subgraphs, ends } = fields; - const mergedTags = [...fields.config?.tags ? fields.config.tags : [], ...tags ?? []]; - super({ - ...fields, - bound: fields.bound ?? defaultRunnableBound, - config: { - ...fields.config ? fields.config : {}, - tags: mergedTags - } - }); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "PregelNode" - }); - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "triggers", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "mapper", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "writers", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "bound", { - enumerable: true, - configurable: true, - writable: true, - value: defaultRunnableBound - }); - Object.defineProperty(this, "kwargs", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "metadata", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "tags", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "retryPolicy", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "subgraphs", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "ends", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.channels = channels; - this.triggers = triggers; - this.mapper = mapper; - this.writers = writers ?? this.writers; - this.bound = bound ?? this.bound; - this.kwargs = kwargs ?? this.kwargs; - this.metadata = metadata ?? this.metadata; - this.tags = mergedTags; - this.retryPolicy = retryPolicy; - this.subgraphs = subgraphs; - this.ends = ends; - } - getWriters() { - const newWriters = [...this.writers]; - while (newWriters.length > 1 && newWriters[newWriters.length - 1] instanceof ChannelWrite && newWriters[newWriters.length - 2] instanceof ChannelWrite) { - const endWriters = newWriters.slice(-2); - const combinedWrites = endWriters[0].writes.concat(endWriters[1].writes); - newWriters[newWriters.length - 2] = new ChannelWrite(combinedWrites, endWriters[0].config?.tags); - newWriters.pop(); - } - return newWriters; - } - getNode() { - const writers = this.getWriters(); - if (this.bound === defaultRunnableBound && writers.length === 0) return void 0; - else if (this.bound === defaultRunnableBound && writers.length === 1) return writers[0]; - else if (this.bound === defaultRunnableBound) return new RunnableSequence({ - first: writers[0], - middle: writers.slice(1, writers.length - 1), - last: writers[writers.length - 1], - omitSequenceTags: true - }); - else if (writers.length > 0) return new RunnableSequence({ - first: this.bound, - middle: writers.slice(0, writers.length - 1), - last: writers[writers.length - 1], - omitSequenceTags: true - }); - else return this.bound; - } - join(channels) { - if (!Array.isArray(channels)) throw new Error("channels must be a list"); - if (typeof this.channels !== "object") throw new Error("all channels must be named when using .join()"); - return new PregelNode({ - channels: { - ...this.channels, - ...Object.fromEntries(channels.map((chan) => [chan, chan])) - }, - triggers: this.triggers, - mapper: this.mapper, - writers: this.writers, - bound: this.bound, - kwargs: this.kwargs, - config: this.config, - retryPolicy: this.retryPolicy - }); - } - pipe(coerceable) { - if (ChannelWrite.isWriter(coerceable)) return new PregelNode({ - channels: this.channels, - triggers: this.triggers, - mapper: this.mapper, - writers: [...this.writers, coerceable], - bound: this.bound, - config: this.config, - kwargs: this.kwargs, - retryPolicy: this.retryPolicy - }); - else if (this.bound === defaultRunnableBound) return new PregelNode({ - channels: this.channels, - triggers: this.triggers, - mapper: this.mapper, - writers: this.writers, - bound: _coerceToRunnable(coerceable), - config: this.config, - kwargs: this.kwargs, - retryPolicy: this.retryPolicy - }); - else return new PregelNode({ - channels: this.channels, - triggers: this.triggers, - mapper: this.mapper, - writers: this.writers, - bound: this.bound.pipe(coerceable), - config: this.config, - kwargs: this.kwargs, - retryPolicy: this.retryPolicy - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/validate.js -var GraphValidationError = class extends Error { - constructor(message) { - super(message); - this.name = "GraphValidationError"; - } -}; -function validateGraph({ nodes, channels, inputChannels, outputChannels, streamChannels, interruptAfterNodes, interruptBeforeNodes }) { - if (!channels) throw new GraphValidationError("Channels not provided"); - const subscribedChannels = /* @__PURE__ */ new Set(); - const allOutputChannels = /* @__PURE__ */ new Set(); - for (const [name, node] of Object.entries(nodes)) { - if (name === INTERRUPT) throw new GraphValidationError(`"Node name ${INTERRUPT} is reserved"`); - if (node.constructor === PregelNode) node.triggers.forEach((trigger) => subscribedChannels.add(trigger)); - else throw new GraphValidationError(`Invalid node type ${typeof node}, expected PregelNode`); - } - for (const chan of subscribedChannels) if (!(chan in channels)) throw new GraphValidationError(`Subcribed channel '${String(chan)}' not in channels`); - if (!Array.isArray(inputChannels)) { - if (!subscribedChannels.has(inputChannels)) throw new GraphValidationError(`Input channel ${String(inputChannels)} is not subscribed to by any node`); - } else if (inputChannels.every((channel) => !subscribedChannels.has(channel))) throw new GraphValidationError(`None of the input channels ${inputChannels} are subscribed to by any node`); - if (!Array.isArray(outputChannels)) allOutputChannels.add(outputChannels); - else outputChannels.forEach((chan) => allOutputChannels.add(chan)); - if (streamChannels && !Array.isArray(streamChannels)) allOutputChannels.add(streamChannels); - else if (Array.isArray(streamChannels)) streamChannels.forEach((chan) => allOutputChannels.add(chan)); - for (const chan of allOutputChannels) if (!(chan in channels)) throw new GraphValidationError(`Output channel '${String(chan)}' not in channels`); - if (interruptAfterNodes && interruptAfterNodes !== "*") { - for (const node of interruptAfterNodes) if (!(node in nodes)) throw new GraphValidationError(`Node ${String(node)} not in nodes`); - } - if (interruptBeforeNodes && interruptBeforeNodes !== "*") { - for (const node of interruptBeforeNodes) if (!(node in nodes)) throw new GraphValidationError(`Node ${String(node)} not in nodes`); - } -} -function validateKeys(keys, channels) { - if (Array.isArray(keys)) { - for (const key$1 of keys) if (!(key$1 in channels)) throw new Error(`Key ${String(key$1)} not found in channels`); - } else if (!(keys in channels)) throw new Error(`Key ${String(keys)} not found in channels`); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/io.js -function readChannel(channels, chan, catchErrors = true, returnException = false) { - try { - return channels[chan].get(); - } catch (e) { - if (e.name === EmptyChannelError.unminifiable_name) { - if (returnException) return e; - else if (catchErrors) return null; - } - throw e; - } -} -function readChannels(channels, select, skipEmpty = true) { - if (Array.isArray(select)) { - const values = {}; - for (const k of select) try { - values[k] = readChannel(channels, k, !skipEmpty); - } catch (e) { - if (e.name === EmptyChannelError.unminifiable_name) continue; - } - return values; - } else return readChannel(channels, select); -} -/** -* Map input chunk to a sequence of pending writes in the form (channel, value). -*/ -function* mapCommand(cmd, pendingWrites) { - if (cmd.graph === Command.PARENT) throw new InvalidUpdateError("There is no parent graph."); - if (cmd.goto) { - let sends; - if (Array.isArray(cmd.goto)) sends = cmd.goto; - else sends = [cmd.goto]; - for (const send of sends) if (_isSend(send)) yield [ - NULL_TASK_ID, - TASKS, - send - ]; - else if (typeof send === "string") yield [ - NULL_TASK_ID, - `branch:to:${send}`, - "__start__" - ]; - else throw new Error(`In Command.send, expected Send or string, got ${typeof send}`); - } - if (cmd.resume) if (typeof cmd.resume === "object" && Object.keys(cmd.resume).length && Object.keys(cmd.resume).every(validate_default)) for (const [tid, resume] of Object.entries(cmd.resume)) { - const existing = pendingWrites.filter((w$1) => w$1[0] === tid && w$1[1] === RESUME).map((w$1) => w$1[2]).slice(0, 1) ?? []; - existing.push(resume); - yield [ - tid, - RESUME, - existing - ]; - } - else yield [ - NULL_TASK_ID, - RESUME, - cmd.resume - ]; - if (cmd.update) { - if (typeof cmd.update !== "object" || !cmd.update) throw new Error("Expected cmd.update to be a dict mapping channel names to update values"); - if (Array.isArray(cmd.update)) for (const [k, v] of cmd.update) yield [ - NULL_TASK_ID, - k, - v - ]; - else for (const [k, v] of Object.entries(cmd.update)) yield [ - NULL_TASK_ID, - k, - v - ]; - } -} -/** -* Map input chunk to a sequence of pending writes in the form [channel, value]. -*/ -function* mapInput(inputChannels, chunk) { - if (chunk !== void 0 && chunk !== null) if (Array.isArray(inputChannels) && typeof chunk === "object" && !Array.isArray(chunk)) { - for (const k in chunk) if (inputChannels.includes(k)) yield [k, chunk[k]]; - } else if (Array.isArray(inputChannels)) throw new Error(`Input chunk must be an object when "inputChannels" is an array`); - else yield [inputChannels, chunk]; -} -/** -* Map pending writes (a sequence of tuples (channel, value)) to output chunk. -*/ -function* mapOutputValues(outputChannels, pendingWrites, channels) { - if (Array.isArray(outputChannels)) { - if (pendingWrites === true || pendingWrites.find(([chan, _]) => outputChannels.includes(chan))) yield readChannels(channels, outputChannels); - } else if (pendingWrites === true || pendingWrites.some(([chan, _]) => chan === outputChannels)) yield readChannel(channels, outputChannels); -} -/** -* Map pending writes (a sequence of tuples (channel, value)) to output chunk. -* @internal -* -* @param outputChannels - The channels to output. -* @param tasks - The tasks to output. -* @param cached - Whether the output is cached. -* -* @returns A generator that yields the output chunk (if any). -*/ -function* mapOutputUpdates(outputChannels, tasks, cached) { - const outputTasks = tasks.filter(([task, ww]) => { - return (task.config === void 0 || !task.config.tags?.includes(TAG_HIDDEN)) && ww[0][0] !== ERROR && ww[0][0] !== INTERRUPT; - }); - if (!outputTasks.length) return; - let updated; - if (outputTasks.some(([task]) => task.writes.some(([chan, _]) => chan === RETURN))) updated = outputTasks.flatMap(([task]) => task.writes.filter(([chan, _]) => chan === RETURN).map(([_, value]) => [task.name, value])); - else if (!Array.isArray(outputChannels)) updated = outputTasks.flatMap(([task]) => task.writes.filter(([chan, _]) => chan === outputChannels).map(([_, value]) => [task.name, value])); - else updated = outputTasks.flatMap(([task]) => { - const { writes } = task; - const counts = {}; - for (const [chan] of writes) if (outputChannels.includes(chan)) counts[chan] = (counts[chan] || 0) + 1; - if (Object.values(counts).some((count) => count > 1)) return writes.filter(([chan]) => outputChannels.includes(chan)).map(([chan, value]) => [task.name, { [chan]: value }]); - else return [[task.name, Object.fromEntries(writes.filter(([chan]) => outputChannels.includes(chan)))]]; - }); - const grouped = {}; - for (const [node, value] of updated) { - if (!(node in grouped)) grouped[node] = []; - grouped[node].push(value); - } - const flattened = {}; - for (const node in grouped) if (grouped[node].length === 1) { - const [write] = grouped[node]; - flattened[node] = write; - } else flattened[node] = grouped[node]; - if (cached) flattened["__metadata__"] = { cached }; - yield flattened; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.js -function isRunnableSequence(x) { - return "steps" in x && Array.isArray(x.steps); -} -function isPregelLike(x) { - return "lg_is_pregel" in x && x.lg_is_pregel === true; -} -function findSubgraphPregel(candidate) { - const candidates = [candidate]; - for (const candidate$1 of candidates) if (isPregelLike(candidate$1)) return candidate$1; - else if (isRunnableSequence(candidate$1)) candidates.push(...candidate$1.steps); - return void 0; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/debug.js -const COLORS_MAP = { - blue: { - start: "\x1B[34m", - end: "\x1B[0m" - }, - green: { - start: "\x1B[32m", - end: "\x1B[0m" - }, - yellow: { - start: "\x1B[33;1m", - end: "\x1B[0m" - } -}; -/** -* Wrap some text in a color for printing to the console. -*/ -const wrap = (color, text) => `${color.start}${text}${color.end}`; -function* mapDebugTasks(step, tasks) { - const ts = (/* @__PURE__ */ new Date()).toISOString(); - for (const { id, name, input, config, triggers, writes } of tasks) { - if (config?.tags?.includes(TAG_HIDDEN)) continue; - const interrupts = writes.filter(([writeId, n]) => { - return writeId === id && n === INTERRUPT; - }).map(([, v]) => { - return v; - }); - yield { - type: "task", - timestamp: ts, - step, - payload: { - id, - name, - input, - triggers, - interrupts - } - }; - } -} -function* mapDebugTaskResults(step, tasks, streamChannels) { - const ts = (/* @__PURE__ */ new Date()).toISOString(); - for (const [{ id, name, config }, writes] of tasks) { - if (config?.tags?.includes(TAG_HIDDEN)) continue; - yield { - type: "task_result", - timestamp: ts, - step, - payload: { - id, - name, - result: writes.filter(([channel]) => { - return Array.isArray(streamChannels) ? streamChannels.includes(channel) : channel === streamChannels; - }), - interrupts: writes.filter((w$1) => w$1[0] === INTERRUPT).map((w$1) => w$1[1]) - } - }; - } -} -function* mapDebugCheckpoint(step, config, channels, streamChannels, metadata, tasks, pendingWrites, parentConfig) { - function formatConfig(config$1) { - const pyConfig = {}; - if (config$1.callbacks != null) pyConfig.callbacks = config$1.callbacks; - if (config$1.configurable != null) pyConfig.configurable = config$1.configurable; - if (config$1.maxConcurrency != null) pyConfig.max_concurrency = config$1.maxConcurrency; - if (config$1.metadata != null) pyConfig.metadata = config$1.metadata; - if (config$1.recursionLimit != null) pyConfig.recursion_limit = config$1.recursionLimit; - if (config$1.runId != null) pyConfig.run_id = config$1.runId; - if (config$1.runName != null) pyConfig.run_name = config$1.runName; - if (config$1.tags != null) pyConfig.tags = config$1.tags; - return pyConfig; - } - const parentNs = config.configurable?.checkpoint_ns; - const taskStates = {}; - for (const task of tasks) { - const candidates = task.subgraphs?.length ? task.subgraphs : [task.proc]; - if (!candidates.find(findSubgraphPregel)) continue; - let taskNs = `${task.name}:${task.id}`; - if (parentNs) taskNs = `${parentNs}|${taskNs}`; - taskStates[task.id] = { configurable: { - thread_id: config.configurable?.thread_id, - checkpoint_ns: taskNs - } }; - } - const ts = (/* @__PURE__ */ new Date()).toISOString(); - yield { - type: "checkpoint", - timestamp: ts, - step, - payload: { - config: formatConfig(config), - values: readChannels(channels, streamChannels), - metadata, - next: tasks.map((task) => task.name), - tasks: tasksWithWrites(tasks, pendingWrites, taskStates), - parentConfig: parentConfig ? formatConfig(parentConfig) : void 0 - } - }; -} -function tasksWithWrites(tasks, pendingWrites, states) { - return tasks.map((task) => { - const error = pendingWrites.find(([id, n]) => id === task.id && n === ERROR)?.[2]; - const interrupts = pendingWrites.filter(([id, n]) => { - return id === task.id && n === INTERRUPT; - }).map(([, , v]) => { - return v; - }); - if (error) return { - id: task.id, - name: task.name, - path: task.path, - error, - interrupts - }; - const taskState = states?.[task.id]; - return { - id: task.id, - name: task.name, - path: task.path, - interrupts, - ...taskState !== void 0 ? { state: taskState } : {} - }; - }); -} -function printStepCheckpoint(step, channels, whitelist) { - console.log([ - `${wrap(COLORS_MAP.blue, `[${step}:checkpoint]`)}`, - `\x1b[1m State at the end of step ${step}:\x1b[0m\n`, - JSON.stringify(readChannels(channels, whitelist), null, 2) - ].join("")); -} -function printStepTasks(step, nextTasks) { - const nTasks = nextTasks.length; - console.log([ - `${wrap(COLORS_MAP.blue, `[${step}:tasks]`)}`, - `\x1b[1m Starting step ${step} with ${nTasks} task${nTasks === 1 ? "" : "s"}:\x1b[0m\n`, - nextTasks.map((task) => `- ${wrap(COLORS_MAP.green, String(task.name))} -> ${JSON.stringify(task.input, null, 2)}`).join("\n") - ].join("")); -} -function printStepWrites(step, writes, whitelist) { - const byChannel = {}; - for (const [channel, value] of writes) if (whitelist.includes(channel)) { - if (!byChannel[channel]) byChannel[channel] = []; - byChannel[channel].push(value); - } - console.log([ - `${wrap(COLORS_MAP.blue, `[${step}:writes]`)}`, - `\x1b[1m Finished step ${step} with writes to ${Object.keys(byChannel).length} channel${Object.keys(byChannel).length !== 1 ? "s" : ""}:\x1b[0m\n`, - Object.entries(byChannel).map(([name, vals]) => `- ${wrap(COLORS_MAP.yellow, name)} -> ${vals.map((v) => JSON.stringify(v)).join(", ")}`).join("\n") - ].join("")); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/types.js -var Call = class { - constructor({ func, name, input, retry, callbacks }) { - Object.defineProperty(this, "func", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "input", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "retry", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "callbacks", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "__lg_type", { - enumerable: true, - configurable: true, - writable: true, - value: "call" - }); - this.func = func; - this.name = name; - this.input = input; - this.retry = retry; - this.callbacks = callbacks; - } -}; -function isCall(value) { - return typeof value === "object" && value !== null && "__lg_type" in value && value.__lg_type === "call"; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/utils/index.js -function getNullChannelVersion(currentVersions) { - const versionValues = Object.values(currentVersions); - const versionType = versionValues.length > 0 ? typeof versionValues[0] : void 0; - let nullVersion; - if (versionType === "number") nullVersion = 0; - else if (versionType === "string") nullVersion = ""; - return nullVersion; -} -function getNewChannelVersions(previousVersions, currentVersions) { - if (Object.keys(previousVersions).length > 0) { - const nullVersion = getNullChannelVersion(currentVersions); - return Object.fromEntries(Object.entries(currentVersions).filter(([k, v]) => v > (previousVersions[k] ?? nullVersion))); - } else return currentVersions; -} -function _coerceToDict$1(value, defaultKey) { - return value && !Array.isArray(value) && !(value instanceof Date) && typeof value === "object" ? value : { [defaultKey]: value }; -} -function patchConfigurable$1(config, patch) { - if (config === null) return { configurable: patch }; - else if (config?.configurable === void 0) return { - ...config, - configurable: patch - }; - else return { - ...config, - configurable: { - ...config.configurable, - ...patch - } - }; -} -function patchCheckpointMap(config, metadata) { - const parents = metadata?.parents ?? {}; - if (Object.keys(parents).length > 0) return patchConfigurable$1(config, { [CONFIG_KEY_CHECKPOINT_MAP]: { - ...parents, - [config.configurable?.checkpoint_ns ?? ""]: config.configurable?.checkpoint_id - } }); - else return config; -} -/** -* Combine multiple abort signals into a single abort signal. -* @param signals - The abort signals to combine. -* @returns A single abort signal that is aborted if any of the input signals are aborted. -*/ -function combineAbortSignals(...signals$1) { - if (signals$1.length === 1) return signals$1[0]; - const combinedController = new AbortController(); - const listener = () => { - combinedController.abort(); - signals$1.forEach((s$1) => s$1.removeEventListener("abort", listener)); - }; - signals$1.forEach((s$1) => s$1.addEventListener("abort", listener)); - if (signals$1.some((s$1) => s$1.aborted)) combinedController.abort(); - return combinedController.signal; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/call.js -/** -* Wraps a user function in a Runnable that writes the returned value to the RETURN channel. -*/ -function getRunnableForFunc(name, func) { - const run = new RunnableCallable({ - func: (input) => func(...input), - name, - trace: false, - recurse: false - }); - return new RunnableSequence({ - name, - first: run, - last: new ChannelWrite([{ - channel: RETURN, - value: PASSTHROUGH - }], [TAG_HIDDEN]) - }); -} -function getRunnableForEntrypoint(name, func) { - const run = new RunnableCallable({ - func: (input, config) => { - return func(input, config); - }, - name, - trace: false, - recurse: false - }); - return run; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/algo.js -const increment = (current) => { - return current !== void 0 ? current + 1 : 1; -}; -function shouldInterrupt(checkpoint, interruptNodes, tasks) { - const versionValues = Object.values(checkpoint.channel_versions); - const versionType = versionValues.length > 0 ? typeof versionValues[0] : void 0; - let nullVersion; - if (versionType === "number") nullVersion = 0; - else if (versionType === "string") nullVersion = ""; - const seen = checkpoint.versions_seen[INTERRUPT] ?? {}; - const anyChannelUpdated = Object.entries(checkpoint.channel_versions).some(([chan, version]) => { - return version > (seen[chan] ?? nullVersion); - }); - const anyTriggeredNodeInInterruptNodes = tasks.some((task) => interruptNodes === "*" ? !task.config?.tags?.includes(TAG_HIDDEN) : interruptNodes.includes(task.name)); - return anyChannelUpdated && anyTriggeredNodeInInterruptNodes; -} -function _localRead(step, checkpoint, channels, managed, task, select, fresh = false) { - let managedKeys = []; - let updated = /* @__PURE__ */ new Set(); - if (!Array.isArray(select)) { - for (const [c] of task.writes) if (c === select) { - updated = new Set([c]); - break; - } - updated = updated || /* @__PURE__ */ new Set(); - } else { - managedKeys = select.filter((k) => managed.get(k)); - select = select.filter((k) => !managed.get(k)); - updated = new Set(select.filter((c) => task.writes.some(([key$1, _]) => key$1 === c))); - } - let values; - if (fresh && updated.size > 0) { - const localChannels = Object.fromEntries(Object.entries(channels).filter(([k, _]) => updated.has(k))); - const newCheckpoint = createCheckpoint(checkpoint, localChannels, -1); - const newChannels = emptyChannels(localChannels, newCheckpoint); - _applyWrites(copyCheckpoint(newCheckpoint), newChannels, [task]); - values = readChannels({ - ...channels, - ...newChannels - }, select); - } else values = readChannels(channels, select); - if (managedKeys.length > 0) for (const k of managedKeys) { - const managedValue = managed.get(k); - if (managedValue) { - const resultOfManagedCall = managedValue.call(step); - values[k] = resultOfManagedCall; - } - } - return values; -} -function _localWrite(step, commit, processes, managed, writes) { - for (const [chan, value] of writes) if ([PUSH, TASKS].includes(chan) && value != null) { - if (!_isSend(value)) throw new InvalidUpdateError(`Invalid packet type, expected SendProtocol, got ${JSON.stringify(value)}`); - if (!(value.node in processes)) throw new InvalidUpdateError(`Invalid node name "${value.node}" in Send packet`); - managed.replaceRuntimeValues(step, value.args); - } - commit(writes); -} -const IGNORE = new Set([ - NO_WRITES, - PUSH, - RESUME, - INTERRUPT, - RETURN, - ERROR -]); -function _applyWrites(checkpoint, channels, tasks, getNextVersion) { - tasks.sort((a, b) => { - const aPath = a.path?.slice(0, 3) || []; - const bPath = b.path?.slice(0, 3) || []; - for (let i$4 = 0; i$4 < Math.min(aPath.length, bPath.length); i$4 += 1) { - if (aPath[i$4] < bPath[i$4]) return -1; - if (aPath[i$4] > bPath[i$4]) return 1; - } - return aPath.length - bPath.length; - }); - const bumpStep = tasks.some((task) => task.triggers.length > 0); - const onlyChannels = Object.fromEntries(Object.entries(channels).filter(([_, value]) => isBaseChannel(value))); - for (const task of tasks) { - if (checkpoint.versions_seen[task.name] === void 0) checkpoint.versions_seen[task.name] = {}; - for (const chan of task.triggers) if (chan in checkpoint.channel_versions) checkpoint.versions_seen[task.name][chan] = checkpoint.channel_versions[chan]; - } - let maxVersion; - if (Object.keys(checkpoint.channel_versions).length > 0) maxVersion = maxChannelVersion(...Object.values(checkpoint.channel_versions)); - const channelsToConsume = new Set(tasks.flatMap((task) => task.triggers).filter((chan) => !RESERVED.includes(chan))); - for (const chan of channelsToConsume) if (chan in onlyChannels && onlyChannels[chan].consume()) { - if (getNextVersion !== void 0) checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - } - if (checkpoint.pending_sends?.length && bumpStep) checkpoint.pending_sends = []; - const pendingWriteValuesByChannel = {}; - const pendingWritesByManaged = {}; - for (const task of tasks) for (const [chan, val] of task.writes) if (IGNORE.has(chan)) {} else if (chan === TASKS) checkpoint.pending_sends.push({ - node: val.node, - args: val.args - }); - else if (chan in onlyChannels) if (chan in pendingWriteValuesByChannel) pendingWriteValuesByChannel[chan].push(val); - else pendingWriteValuesByChannel[chan] = [val]; - else if (chan in pendingWritesByManaged) pendingWritesByManaged[chan].push(val); - else pendingWritesByManaged[chan] = [val]; - maxVersion = void 0; - if (Object.keys(checkpoint.channel_versions).length > 0) maxVersion = maxChannelVersion(...Object.values(checkpoint.channel_versions)); - const updatedChannels = /* @__PURE__ */ new Set(); - for (const [chan, vals] of Object.entries(pendingWriteValuesByChannel)) if (chan in onlyChannels) { - let updated; - try { - updated = onlyChannels[chan].update(vals); - } catch (e) { - if (e.name === InvalidUpdateError.unminifiable_name) { - const wrappedError = new InvalidUpdateError(`Invalid update for channel "${chan}" with values ${JSON.stringify(vals)}: ${e.message}`); - wrappedError.lc_error_code = e.lc_error_code; - throw wrappedError; - } else throw e; - } - if (updated && getNextVersion !== void 0) checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - updatedChannels.add(chan); - } - if (bumpStep) { - for (const chan of Object.keys(onlyChannels)) if (!updatedChannels.has(chan)) { - const updated = onlyChannels[chan].update([]); - if (updated && getNextVersion !== void 0) checkpoint.channel_versions[chan] = getNextVersion(maxVersion, onlyChannels[chan]); - } - } - return pendingWritesByManaged; -} -/** -* Prepare the set of tasks that will make up the next Pregel step. -* This is the union of all PUSH tasks (Sends) and PULL tasks (nodes triggered -* by edges). -*/ -function _prepareNextTasks(checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra) { - const tasks = {}; - for (let i$4 = 0; i$4 < checkpoint.pending_sends.length; i$4 += 1) { - const task = _prepareSingleTask([PUSH, i$4], checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra); - if (task !== void 0) tasks[task.id] = task; - } - for (const name of Object.keys(processes)) { - const task = _prepareSingleTask([PULL, name], checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra); - if (task !== void 0) tasks[task.id] = task; - } - return tasks; -} -/** -* Prepares a single task for the next Pregel step, given a task path, which -* uniquely identifies a PUSH or PULL task within the graph. -*/ -function _prepareSingleTask(taskPath, checkpoint, pendingWrites, processes, channels, managed, config, forExecution, extra) { - const { step, checkpointer, manager } = extra; - const configurable = config.configurable ?? {}; - const parentNamespace = configurable.checkpoint_ns ?? ""; - if (taskPath[0] === PUSH && isCall(taskPath[taskPath.length - 1])) { - const call$4 = taskPath[taskPath.length - 1]; - const proc = getRunnableForFunc(call$4.name, call$4.func); - const triggers = [PUSH]; - const checkpointNamespace = parentNamespace === "" ? call$4.name : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR}${call$4.name}`; - const id = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - call$4.name, - PUSH, - taskPath[1], - taskPath[2] - ]), checkpoint.id); - const taskCheckpointNamespace = `${checkpointNamespace}${CHECKPOINT_NAMESPACE_END}${id}`; - const metadata = { - langgraph_step: step, - langgraph_node: call$4.name, - langgraph_triggers: triggers, - langgraph_path: taskPath.slice(0, 3), - langgraph_checkpoint_ns: taskCheckpointNamespace - }; - if (forExecution) { - const writes = []; - const task = { - name: call$4.name, - input: call$4.input, - proc, - writes, - config: patchConfig(mergeConfigs(config, { - metadata, - store: extra.store ?? config.store - }), { - runName: call$4.name, - callbacks: manager?.getChild(`graph:step:${step}`), - configurable: { - [CONFIG_KEY_TASK_ID]: id, - [CONFIG_KEY_SEND]: (writes_) => _localWrite(step, (items) => writes.push(...items), processes, managed, writes_), - [CONFIG_KEY_READ]: (select_, fresh_ = false) => _localRead(step, checkpoint, channels, managed, { - name: call$4.name, - writes, - triggers, - path: taskPath.slice(0, 3) - }, select_, fresh_), - [CONFIG_KEY_CHECKPOINTER]: checkpointer ?? configurable[CONFIG_KEY_CHECKPOINTER], - [CONFIG_KEY_CHECKPOINT_MAP]: { - ...configurable[CONFIG_KEY_CHECKPOINT_MAP], - [parentNamespace]: checkpoint.id - }, - [CONFIG_KEY_SCRATCHPAD]: _scratchpad({ - pendingWrites: pendingWrites ?? [], - taskId: id, - currentTaskInput: call$4.input - }), - [CONFIG_KEY_PREVIOUS_STATE]: checkpoint.channel_values[PREVIOUS], - checkpoint_id: void 0, - checkpoint_ns: taskCheckpointNamespace - } - }), - triggers, - retry_policy: call$4.retry, - id, - path: taskPath.slice(0, 3), - writers: [] - }; - return task; - } else return { - id, - name: call$4.name, - interrupts: [], - path: taskPath.slice(0, 3) - }; - } else if (taskPath[0] === PUSH) { - const index = typeof taskPath[1] === "number" ? taskPath[1] : parseInt(taskPath[1], 10); - if (index >= checkpoint.pending_sends.length) return void 0; - const packet = _isSendInterface(checkpoint.pending_sends[index]) && !_isSend(checkpoint.pending_sends[index]) ? new Send(checkpoint.pending_sends[index].node, checkpoint.pending_sends[index].args) : checkpoint.pending_sends[index]; - if (!_isSendInterface(packet)) { - console.warn(`Ignoring invalid packet ${JSON.stringify(packet)} in pending sends.`); - return void 0; - } - if (!(packet.node in processes)) { - console.warn(`Ignoring unknown node name ${packet.node} in pending sends.`); - return void 0; - } - const triggers = [PUSH]; - const checkpointNamespace = parentNamespace === "" ? packet.node : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR}${packet.node}`; - const taskId = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - packet.node, - PUSH, - index.toString() - ]), checkpoint.id); - const taskCheckpointNamespace = `${checkpointNamespace}${CHECKPOINT_NAMESPACE_END}${taskId}`; - let metadata = { - langgraph_step: step, - langgraph_node: packet.node, - langgraph_triggers: triggers, - langgraph_path: taskPath.slice(0, 3), - langgraph_checkpoint_ns: taskCheckpointNamespace - }; - if (forExecution) { - const proc = processes[packet.node]; - const node = proc.getNode(); - if (node !== void 0) { - managed.replaceRuntimePlaceholders(step, packet.args); - if (proc.metadata !== void 0) metadata = { - ...metadata, - ...proc.metadata - }; - const writes = []; - return { - name: packet.node, - input: packet.args, - proc: node, - subgraphs: proc.subgraphs, - writes, - config: patchConfig(mergeConfigs(config, { - metadata, - tags: proc.tags, - store: extra.store ?? config.store - }), { - runName: packet.node, - callbacks: manager?.getChild(`graph:step:${step}`), - configurable: { - [CONFIG_KEY_TASK_ID]: taskId, - [CONFIG_KEY_SEND]: (writes_) => _localWrite(step, (items) => writes.push(...items), processes, managed, writes_), - [CONFIG_KEY_READ]: (select_, fresh_ = false) => _localRead(step, checkpoint, channels, managed, { - name: packet.node, - writes, - triggers, - path: taskPath - }, select_, fresh_), - [CONFIG_KEY_CHECKPOINTER]: checkpointer ?? configurable[CONFIG_KEY_CHECKPOINTER], - [CONFIG_KEY_CHECKPOINT_MAP]: { - ...configurable[CONFIG_KEY_CHECKPOINT_MAP], - [parentNamespace]: checkpoint.id - }, - [CONFIG_KEY_SCRATCHPAD]: _scratchpad({ - pendingWrites: pendingWrites ?? [], - taskId, - currentTaskInput: packet.args - }), - [CONFIG_KEY_PREVIOUS_STATE]: checkpoint.channel_values[PREVIOUS], - checkpoint_id: void 0, - checkpoint_ns: taskCheckpointNamespace - } - }), - triggers, - retry_policy: proc.retryPolicy, - id: taskId, - path: taskPath, - writers: proc.getWriters() - }; - } - } else return { - id: taskId, - name: packet.node, - interrupts: [], - path: taskPath - }; - } else if (taskPath[0] === PULL) { - const name = taskPath[1].toString(); - const proc = processes[name]; - if (proc === void 0) return void 0; - if (pendingWrites?.length) { - const checkpointNamespace = parentNamespace === "" ? name : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR}${name}`; - const taskId = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - name, - PULL, - name - ]), checkpoint.id); - const hasSuccessfulWrites = pendingWrites.some((w$1) => w$1[0] === taskId && w$1[1] !== ERROR); - if (hasSuccessfulWrites) return void 0; - } - const nullVersion = getNullChannelVersion(checkpoint.channel_versions); - if (nullVersion === void 0) return void 0; - const seen = checkpoint.versions_seen[name] ?? {}; - const triggers = proc.triggers.filter((chan) => { - const result = readChannel(channels, chan, false, true); - const isEmptyChannelError = result instanceof Error && result.name === EmptyChannelError.unminifiable_name; - return !isEmptyChannelError && (checkpoint.channel_versions[chan] ?? nullVersion) > (seen[chan] ?? nullVersion); - }).sort(); - if (triggers.length > 0) { - const val = _procInput(step, proc, managed, channels, forExecution); - if (val === void 0) return void 0; - const checkpointNamespace = parentNamespace === "" ? name : `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR}${name}`; - const taskId = uuid5(JSON.stringify([ - checkpointNamespace, - step.toString(), - name, - PULL, - triggers - ]), checkpoint.id); - const taskCheckpointNamespace = `${checkpointNamespace}${CHECKPOINT_NAMESPACE_END}${taskId}`; - let metadata = { - langgraph_step: step, - langgraph_node: name, - langgraph_triggers: triggers, - langgraph_path: taskPath, - langgraph_checkpoint_ns: taskCheckpointNamespace - }; - if (forExecution) { - const node = proc.getNode(); - if (node !== void 0) { - if (proc.metadata !== void 0) metadata = { - ...metadata, - ...proc.metadata - }; - const writes = []; - return { - name, - input: val, - proc: node, - subgraphs: proc.subgraphs, - writes, - config: patchConfig(mergeConfigs(config, { - metadata, - tags: proc.tags, - store: extra.store ?? config.store - }), { - runName: name, - callbacks: manager?.getChild(`graph:step:${step}`), - configurable: { - [CONFIG_KEY_TASK_ID]: taskId, - [CONFIG_KEY_SEND]: (writes_) => _localWrite(step, (items) => { - writes.push(...items); - }, processes, managed, writes_), - [CONFIG_KEY_READ]: (select_, fresh_ = false) => _localRead(step, checkpoint, channels, managed, { - name, - writes, - triggers, - path: taskPath - }, select_, fresh_), - [CONFIG_KEY_CHECKPOINTER]: checkpointer ?? configurable[CONFIG_KEY_CHECKPOINTER], - [CONFIG_KEY_CHECKPOINT_MAP]: { - ...configurable[CONFIG_KEY_CHECKPOINT_MAP], - [parentNamespace]: checkpoint.id - }, - [CONFIG_KEY_SCRATCHPAD]: _scratchpad({ - pendingWrites: pendingWrites ?? [], - taskId, - currentTaskInput: val - }), - [CONFIG_KEY_PREVIOUS_STATE]: checkpoint.channel_values[PREVIOUS], - checkpoint_id: void 0, - checkpoint_ns: taskCheckpointNamespace - } - }), - triggers, - retry_policy: proc.retryPolicy, - id: taskId, - path: taskPath, - writers: proc.getWriters() - }; - } - } else return { - id: taskId, - name, - interrupts: [], - path: taskPath - }; - } - } - return void 0; -} -/** -* Function injected under CONFIG_KEY_READ in task config, to read current state. -* Used by conditional edges to read a copy of the state with reflecting the writes -* from that node only. -* -* @internal -*/ -function _procInput(step, proc, managed, channels, forExecution) { - let val; - if (typeof proc.channels === "object" && !Array.isArray(proc.channels)) { - val = {}; - for (const [k, chan] of Object.entries(proc.channels)) if (proc.triggers.includes(chan)) try { - val[k] = readChannel(channels, chan, false); - } catch (e) { - if (e.name === EmptyChannelError.unminifiable_name) return void 0; - else throw e; - } - else if (chan in channels) try { - val[k] = readChannel(channels, chan, false); - } catch (e) { - if (e.name === EmptyChannelError.unminifiable_name) continue; - else throw e; - } - else val[k] = managed.get(k)?.call(step); - } else if (Array.isArray(proc.channels)) { - let successfulRead = false; - for (const chan of proc.channels) try { - val = readChannel(channels, chan, false); - successfulRead = true; - break; - } catch (e) { - if (e.name === EmptyChannelError.unminifiable_name) continue; - else throw e; - } - if (!successfulRead) return void 0; - } else throw new Error(`Invalid channels type, expected list or dict, got ${proc.channels}`); - if (forExecution && proc.mapper !== void 0) val = proc.mapper(val); - return val; -} -function _scratchpad({ pendingWrites, taskId, currentTaskInput }) { - const nullResume = pendingWrites.find(([writeTaskId, chan]) => writeTaskId === NULL_TASK_ID && chan === RESUME)?.[2]; - const scratchpad = { - callCounter: 0, - interruptCounter: -1, - resume: pendingWrites.filter(([writeTaskId, chan]) => writeTaskId === taskId && chan === RESUME).flatMap(([_writeTaskId, _chan, resume]) => resume), - nullResume, - subgraphCounter: 0, - currentTaskInput, - consumeNullResume: () => { - if (scratchpad.nullResume) { - delete scratchpad.nullResume; - pendingWrites.splice(pendingWrites.findIndex(([writeTaskId, chan]) => writeTaskId === NULL_TASK_ID && chan === RESUME), 1); - return nullResume; - } - return void 0; - } - }; - return scratchpad; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/stream.js -/** -* A wrapper around an IterableReadableStream that allows for aborting the stream when -* {@link cancel} is called. -*/ -var IterableReadableStreamWithAbortSignal = class extends IterableReadableStream { - /** - * @param readableStream - The stream to wrap. - * @param abortController - The abort controller to use. Optional. One will be created if not provided. - */ - constructor(readableStream, abortController) { - const reader = readableStream.getReader(); - const ac = abortController ?? new AbortController(); - super({ start(controller) { - return pump(); - function pump() { - return reader.read().then(({ done, value }) => { - if (done) { - controller.close(); - return; - } - controller.enqueue(value); - return pump(); - }); - } - } }); - Object.defineProperty(this, "_abortController", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_reader", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this._abortController = ac; - this._reader = reader; - } - /** - * Aborts the stream, abandoning any pending operations in progress. Calling this triggers an - * {@link AbortSignal} that is propagated to the tasks that are producing the data for this stream. - * @param reason - The reason for aborting the stream. Optional. - */ - async cancel(reason) { - this._abortController.abort(reason); - this._reader.releaseLock(); - } - /** - * The {@link AbortSignal} for the stream. Aborted when {@link cancel} is called. - */ - get signal() { - return this._abortController.signal; - } -}; -var IterableReadableWritableStream = class extends IterableReadableStream { - get closed() { - return this._closed; - } - constructor(params) { - let streamControllerPromiseResolver; - const streamControllerPromise = new Promise((resolve) => { - streamControllerPromiseResolver = resolve; - }); - super({ start: (controller) => { - streamControllerPromiseResolver(controller); - } }); - Object.defineProperty(this, "modes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "controller", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "passthroughFn", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_closed", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - streamControllerPromise.then((controller) => { - this.controller = controller; - }); - this.passthroughFn = params.passthroughFn; - this.modes = params.modes; - } - push(chunk) { - this.passthroughFn?.(chunk); - this.controller.enqueue(chunk); - } - close() { - try { - this.controller.close(); - } catch (e) {} finally { - this._closed = true; - } - } - error(e) { - this.controller.error(e); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/loop.js -const INPUT_DONE = Symbol.for("INPUT_DONE"); -const INPUT_RESUMING = Symbol.for("INPUT_RESUMING"); -const DEFAULT_LOOP_LIMIT = 25; -function createDuplexStream(...streams) { - return new IterableReadableWritableStream({ - passthroughFn: (value) => { - for (const stream of streams) if (stream.modes.has(value[1])) stream.push(value); - }, - modes: new Set(streams.flatMap((s$1) => Array.from(s$1.modes))) - }); -} -var PregelLoop = class PregelLoop { - get isResuming() { - const hasChannelVersions = Object.keys(this.checkpoint.channel_versions).length !== 0; - const configHasResumingFlag = this.config.configurable?.[CONFIG_KEY_RESUMING] !== void 0; - const configIsResuming = configHasResumingFlag && this.config.configurable?.[CONFIG_KEY_RESUMING]; - const inputIsNullOrUndefined = this.input === null || this.input === void 0; - const inputIsCommandResuming = isCommand(this.input) && this.input.resume != null; - const inputIsResuming = this.input === INPUT_RESUMING; - return hasChannelVersions && (configIsResuming || inputIsNullOrUndefined || inputIsCommandResuming || inputIsResuming); - } - constructor(params) { - Object.defineProperty(this, "input", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "output", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointer", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointerGetNextVersion", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "managed", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpoint", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointConfig", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointMetadata", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointNamespace", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointPendingWrites", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "checkpointPreviousVersions", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "step", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "stop", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "outputKeys", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "streamKeys", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "nodes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "skipDoneTasks", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "prevCheckpointConfig", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "status", { - enumerable: true, - configurable: true, - writable: true, - value: "pending" - }); - Object.defineProperty(this, "tasks", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "stream", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "checkpointerPromises", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "isNested", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "_checkpointerChainedPromise", { - enumerable: true, - configurable: true, - writable: true, - value: Promise.resolve() - }); - Object.defineProperty(this, "store", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "manager", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "interruptAfter", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "interruptBefore", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "toInterrupt", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - Object.defineProperty(this, "debug", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - this.input = params.input; - this.checkpointer = params.checkpointer; - if (this.checkpointer !== void 0) this.checkpointerGetNextVersion = this.checkpointer.getNextVersion.bind(this.checkpointer); - else this.checkpointerGetNextVersion = increment; - this.checkpoint = params.checkpoint; - this.checkpointMetadata = params.checkpointMetadata; - this.checkpointPreviousVersions = params.checkpointPreviousVersions; - this.channels = params.channels; - this.managed = params.managed; - this.checkpointPendingWrites = params.checkpointPendingWrites; - this.step = params.step; - this.stop = params.stop; - this.config = params.config; - this.checkpointConfig = params.checkpointConfig; - this.isNested = params.isNested; - this.manager = params.manager; - this.outputKeys = params.outputKeys; - this.streamKeys = params.streamKeys; - this.nodes = params.nodes; - this.skipDoneTasks = params.skipDoneTasks; - this.store = params.store; - this.stream = params.stream; - this.checkpointNamespace = params.checkpointNamespace; - this.prevCheckpointConfig = params.prevCheckpointConfig; - this.interruptAfter = params.interruptAfter; - this.interruptBefore = params.interruptBefore; - this.debug = params.debug; - } - static async initialize(params) { - let { config, stream } = params; - if (stream !== void 0 && config.configurable?.[CONFIG_KEY_STREAM] !== void 0) stream = createDuplexStream(stream, config.configurable[CONFIG_KEY_STREAM]); - const skipDoneTasks = config.configurable ? !("checkpoint_id" in config.configurable) : true; - const scratchpad = config.configurable?.[CONFIG_KEY_SCRATCHPAD]; - if (config.configurable && scratchpad) { - if (scratchpad.subgraphCounter > 0) config = patchConfigurable$1(config, { [CONFIG_KEY_CHECKPOINT_NS]: [config.configurable[CONFIG_KEY_CHECKPOINT_NS], scratchpad.subgraphCounter.toString()].join(CHECKPOINT_NAMESPACE_SEPARATOR) }); - scratchpad.subgraphCounter += 1; - } - const isNested = CONFIG_KEY_READ in (config.configurable ?? {}); - if (!isNested && config.configurable?.checkpoint_ns !== void 0 && config.configurable?.checkpoint_ns !== "") config = patchConfigurable$1(config, { - checkpoint_ns: "", - checkpoint_id: void 0 - }); - let checkpointConfig = config; - if (config.configurable?.[CONFIG_KEY_CHECKPOINT_MAP] !== void 0 && config.configurable?.[CONFIG_KEY_CHECKPOINT_MAP]?.[config.configurable?.checkpoint_ns]) checkpointConfig = patchConfigurable$1(config, { checkpoint_id: config.configurable[CONFIG_KEY_CHECKPOINT_MAP][config.configurable?.checkpoint_ns] }); - const checkpointNamespace = config.configurable?.checkpoint_ns?.split(CHECKPOINT_NAMESPACE_SEPARATOR) ?? []; - const saved = await params.checkpointer?.getTuple(checkpointConfig) ?? { - config, - checkpoint: emptyCheckpoint(), - metadata: { - source: "input", - step: -2, - writes: null, - parents: {} - }, - pendingWrites: [] - }; - checkpointConfig = { - ...config, - ...saved.config, - configurable: { - checkpoint_ns: "", - ...config.configurable, - ...saved.config.configurable - } - }; - const prevCheckpointConfig = saved.parentConfig; - const checkpoint = copyCheckpoint(saved.checkpoint); - const checkpointMetadata = { ...saved.metadata }; - const checkpointPendingWrites = saved.pendingWrites ?? []; - const channels = emptyChannels(params.channelSpecs, checkpoint); - const step = (checkpointMetadata.step ?? 0) + 1; - const stop = step + (config.recursionLimit ?? DEFAULT_LOOP_LIMIT) + 1; - const checkpointPreviousVersions = { ...checkpoint.channel_versions }; - const store = params.store ? new AsyncBatchedStore(params.store) : void 0; - if (store) store.start(); - return new PregelLoop({ - input: params.input, - config, - checkpointer: params.checkpointer, - checkpoint, - checkpointMetadata, - checkpointConfig, - prevCheckpointConfig, - checkpointNamespace, - channels, - managed: params.managed, - isNested, - manager: params.manager, - skipDoneTasks, - step, - stop, - checkpointPreviousVersions, - checkpointPendingWrites, - outputKeys: params.outputKeys ?? [], - streamKeys: params.streamKeys ?? [], - nodes: params.nodes, - stream, - store, - interruptAfter: params.interruptAfter, - interruptBefore: params.interruptBefore, - debug: params.debug - }); - } - _checkpointerPutAfterPrevious(input) { - this._checkpointerChainedPromise = this._checkpointerChainedPromise.then(() => { - return this.checkpointer?.put(input.config, input.checkpoint, input.metadata, input.newVersions); - }); - this.checkpointerPromises.push(this._checkpointerChainedPromise); - } - async updateManagedValues(key$1, values) { - const mv = this.managed.get(key$1); - if (mv && "update" in mv && typeof mv.update === "function") await mv.update(values); - } - /** - * Put writes for a task, to be read by the next tick. - * @param taskId - * @param writes - */ - putWrites(taskId, writes) { - let writesCopy = writes; - if (writesCopy.length === 0) return; - if (writesCopy.every(([key$1]) => key$1 in WRITES_IDX_MAP)) writesCopy = Array.from(new Map(writesCopy.map((w$1) => [w$1[0], w$1])).values()); - for (const [c, v] of writesCopy) { - const idx = this.checkpointPendingWrites.findIndex((w$1) => w$1[0] === taskId && w$1[1] === c); - if (c in WRITES_IDX_MAP && idx !== -1) this.checkpointPendingWrites[idx] = [ - taskId, - c, - v - ]; - else this.checkpointPendingWrites.push([ - taskId, - c, - v - ]); - } - const putWritePromise = this.checkpointer?.putWrites({ - ...this.checkpointConfig, - configurable: { - ...this.checkpointConfig.configurable, - checkpoint_ns: this.config.configurable?.checkpoint_ns ?? "", - checkpoint_id: this.checkpoint.id - } - }, writesCopy, taskId); - if (putWritePromise !== void 0) this.checkpointerPromises.push(putWritePromise); - if (this.tasks) this._outputWrites(taskId, writesCopy); - } - _outputWrites(taskId, writes, cached = false) { - const task = this.tasks[taskId]; - if (task !== void 0) { - if (task.config !== void 0 && (task.config.tags ?? []).includes(TAG_HIDDEN)) return; - if (writes.length > 0 && writes[0][0] !== ERROR && writes[0][0] !== INTERRUPT) this._emit(gatherIteratorSync(prefixGenerator(mapOutputUpdates(this.outputKeys, [[task, writes]], cached), "updates"))); - if (!cached) this._emit(gatherIteratorSync(prefixGenerator(mapDebugTaskResults(this.step, [[task, writes]], this.streamKeys), "debug"))); - } - } - /** - * Execute a single iteration of the Pregel loop. - * Returns true if more iterations are needed. - * @param params - */ - async tick(params) { - if (this.store && !this.store.isRunning) this.store?.start(); - const { inputKeys = [] } = params; - if (this.status !== "pending") throw new Error(`Cannot tick when status is no longer "pending". Current status: "${this.status}"`); - if (![INPUT_DONE, INPUT_RESUMING].includes(this.input)) await this._first(inputKeys); - else if (this.toInterrupt.length > 0) { - this.status = "interrupt_before"; - throw new GraphInterrupt(); - } else if (Object.values(this.tasks).every((task) => task.writes.length > 0)) { - const writes = Object.values(this.tasks).flatMap((t) => t.writes); - const managedValueWrites = _applyWrites(this.checkpoint, this.channels, Object.values(this.tasks), this.checkpointerGetNextVersion); - for (const [key$1, values] of Object.entries(managedValueWrites)) await this.updateManagedValues(key$1, values); - const valuesOutput = await gatherIterator(prefixGenerator(mapOutputValues(this.outputKeys, writes, this.channels), "values")); - this._emit(valuesOutput); - this.checkpointPendingWrites = []; - await this._putCheckpoint({ - source: "loop", - writes: mapOutputUpdates(this.outputKeys, Object.values(this.tasks).map((task) => [task, task.writes])).next().value ?? null - }); - if (shouldInterrupt(this.checkpoint, this.interruptAfter, Object.values(this.tasks))) { - this.status = "interrupt_after"; - throw new GraphInterrupt(); - } - if (this.config.configurable?.[CONFIG_KEY_RESUMING] !== void 0) delete this.config.configurable?.[CONFIG_KEY_RESUMING]; - } else return false; - if (this.step > this.stop) { - this.status = "out_of_steps"; - return false; - } - const nextTasks = _prepareNextTasks(this.checkpoint, this.checkpointPendingWrites, this.nodes, this.channels, this.managed, this.config, true, { - step: this.step, - checkpointer: this.checkpointer, - isResuming: this.isResuming, - manager: this.manager, - store: this.store, - stream: this.stream - }); - this.tasks = nextTasks; - if (this.checkpointer) this._emit(await gatherIterator(prefixGenerator(mapDebugCheckpoint(this.step - 1, this.checkpointConfig, this.channels, this.streamKeys, this.checkpointMetadata, Object.values(this.tasks), this.checkpointPendingWrites, this.prevCheckpointConfig), "debug"))); - if (Object.values(this.tasks).length === 0) { - this.status = "done"; - return false; - } - if (this.skipDoneTasks && this.checkpointPendingWrites.length > 0) { - for (const [tid, k, v] of this.checkpointPendingWrites) { - if (k === ERROR || k === INTERRUPT || k === RESUME) continue; - const task = Object.values(this.tasks).find((t) => t.id === tid); - if (task) task.writes.push([k, v]); - } - for (const task of Object.values(this.tasks)) if (task.writes.length > 0) this._outputWrites(task.id, task.writes, true); - } - if (Object.values(this.tasks).every((task) => task.writes.length > 0)) return this.tick({ inputKeys }); - if (shouldInterrupt(this.checkpoint, this.interruptBefore, Object.values(this.tasks))) { - this.status = "interrupt_before"; - throw new GraphInterrupt(); - } - const debugOutput = await gatherIterator(prefixGenerator(mapDebugTasks(this.step, Object.values(this.tasks)), "debug")); - this._emit(debugOutput); - return true; - } - async finishAndHandleError(error) { - const suppress = this._suppressInterrupt(error); - if (suppress || error === void 0) this.output = readChannels(this.channels, this.outputKeys); - if (suppress) { - if (this.tasks !== void 0 && this.checkpointPendingWrites.length > 0 && Object.values(this.tasks).some((task) => task.writes.length > 0)) { - const managedValueWrites = _applyWrites(this.checkpoint, this.channels, Object.values(this.tasks), this.checkpointerGetNextVersion); - for (const [key$1, values] of Object.entries(managedValueWrites)) await this.updateManagedValues(key$1, values); - this._emit(gatherIteratorSync(prefixGenerator(mapOutputValues(this.outputKeys, Object.values(this.tasks).flatMap((t) => t.writes), this.channels), "values"))); - } - this._emit([["updates", { [INTERRUPT]: error.interrupts }]]); - } - return suppress; - } - acceptPush(task, writeIdx, call$4) { - if (this.interruptAfter?.length > 0 && shouldInterrupt(this.checkpoint, this.interruptAfter, [task])) { - this.toInterrupt.push(task); - return; - } - const pushed = _prepareSingleTask([ - PUSH, - task.path ?? [], - writeIdx, - task.id, - call$4 - ], this.checkpoint, this.checkpointPendingWrites, this.nodes, this.channels, this.managed, task.config ?? {}, true, { - step: this.step, - checkpointer: this.checkpointer, - manager: this.manager, - store: this.store, - stream: this.stream - }); - if (pushed) { - if (this.interruptBefore?.length > 0 && shouldInterrupt(this.checkpoint, this.interruptBefore, [pushed])) { - this.toInterrupt.push(pushed); - return; - } - this._emit(gatherIteratorSync(prefixGenerator(mapDebugTasks(this.step, [pushed]), "debug"))); - if (this.debug) printStepTasks(this.step, [pushed]); - this.tasks[pushed.id] = pushed; - if (this.skipDoneTasks) this._matchWrites({ [pushed.id]: pushed }); - return pushed; - } - } - _suppressInterrupt(e) { - return isGraphInterrupt(e) && !this.isNested; - } - async _first(inputKeys) { - const { configurable } = this.config; - const scratchpad = configurable?.[CONFIG_KEY_SCRATCHPAD]; - if (scratchpad && scratchpad.nullResume !== void 0) this.putWrites(NULL_TASK_ID, [[RESUME, scratchpad.nullResume]]); - if (isCommand(this.input)) { - const hasResume = this.input.resume != null; - if (hasResume && this.checkpointer == null) throw new Error("Cannot use Command(resume=...) without checkpointer"); - const writes = {}; - for (const [tid, key$1, value] of mapCommand(this.input, this.checkpointPendingWrites)) { - if (writes[tid] === void 0) writes[tid] = []; - writes[tid].push([key$1, value]); - } - if (Object.keys(writes).length === 0) throw new EmptyInputError("Received empty Command input"); - for (const [tid, ws] of Object.entries(writes)) this.putWrites(tid, ws); - } - const nullWrites = (this.checkpointPendingWrites ?? []).filter((w$1) => w$1[0] === NULL_TASK_ID).map((w$1) => w$1.slice(1)); - if (nullWrites.length > 0) _applyWrites(this.checkpoint, this.channels, [{ - name: INPUT, - writes: nullWrites, - triggers: [] - }], this.checkpointerGetNextVersion); - const isCommandUpdateOrGoto = isCommand(this.input) && nullWrites.length > 0; - if (this.isResuming || isCommandUpdateOrGoto) { - for (const channelName of Object.keys(this.channels)) if (this.checkpoint.channel_versions[channelName] !== void 0) { - const version = this.checkpoint.channel_versions[channelName]; - this.checkpoint.versions_seen[INTERRUPT] = { - ...this.checkpoint.versions_seen[INTERRUPT], - [channelName]: version - }; - } - const valuesOutput = await gatherIterator(prefixGenerator(mapOutputValues(this.outputKeys, true, this.channels), "values")); - this._emit(valuesOutput); - } - if (this.isResuming) this.input = INPUT_RESUMING; - else if (isCommandUpdateOrGoto) { - await this._putCheckpoint({ - source: "input", - writes: {} - }); - this.input = INPUT_DONE; - } else { - const inputWrites = await gatherIterator(mapInput(inputKeys, this.input)); - if (inputWrites.length > 0) { - const discardTasks = _prepareNextTasks(this.checkpoint, this.checkpointPendingWrites, this.nodes, this.channels, this.managed, this.config, true, { step: this.step }); - _applyWrites(this.checkpoint, this.channels, Object.values(discardTasks).concat([{ - name: INPUT, - writes: inputWrites, - triggers: [] - }]), this.checkpointerGetNextVersion); - await this._putCheckpoint({ - source: "input", - writes: Object.fromEntries(inputWrites) - }); - this.input = INPUT_DONE; - } else if (!(CONFIG_KEY_RESUMING in (this.config.configurable ?? {}))) throw new EmptyInputError(`Received no input writes for ${JSON.stringify(inputKeys, null, 2)}`); - else this.input = INPUT_DONE; - } - if (!this.isNested) this.config = patchConfigurable$1(this.config, { [CONFIG_KEY_RESUMING]: this.isResuming }); - } - _emit(values) { - for (const chunk of values) if (this.stream.modes.has(chunk[0])) this.stream.push([this.checkpointNamespace, ...chunk]); - } - async _putCheckpoint(inputMetadata) { - const metadata = { - ...inputMetadata, - step: this.step, - parents: this.config.configurable?.[CONFIG_KEY_CHECKPOINT_MAP] ?? {} - }; - if (this.checkpointer !== void 0) { - this.prevCheckpointConfig = this.checkpointConfig?.configurable?.checkpoint_id ? this.checkpointConfig : void 0; - this.checkpointMetadata = metadata; - this.checkpoint = createCheckpoint(this.checkpoint, this.channels, this.step); - this.checkpointConfig = { - ...this.checkpointConfig, - configurable: { - ...this.checkpointConfig.configurable, - checkpoint_ns: this.config.configurable?.checkpoint_ns ?? "" - } - }; - const channelVersions = { ...this.checkpoint.channel_versions }; - const newVersions = getNewChannelVersions(this.checkpointPreviousVersions, channelVersions); - this.checkpointPreviousVersions = channelVersions; - this._checkpointerPutAfterPrevious({ - config: { ...this.checkpointConfig }, - checkpoint: copyCheckpoint(this.checkpoint), - metadata: { ...this.checkpointMetadata }, - newVersions - }); - this.checkpointConfig = { - ...this.checkpointConfig, - configurable: { - ...this.checkpointConfig.configurable, - checkpoint_id: this.checkpoint.id - } - }; - } - this.step += 1; - } - _matchWrites(tasks) { - for (const [tid, k, v] of this.checkpointPendingWrites) { - if (k === ERROR || k === INTERRUPT || k === RESUME) continue; - const task = Object.values(tasks).find((t) => t.id === tid); - if (task) task.writes.push([k, v]); - } - for (const task of Object.values(tasks)) if (task.writes.length > 0) this._outputWrites(task.id, task.writes, true); - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/messages.js -function isChatGenerationChunk(x) { - return isBaseMessage(x?.message); -} -/** -* A callback handler that implements stream_mode=messages. -* Collects messages from (1) chat model stream events and (2) node outputs. -*/ -var StreamMessagesHandler = class extends BaseCallbackHandler { - constructor(streamFn) { - super(); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "StreamMessagesHandler" - }); - Object.defineProperty(this, "streamFn", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "metadatas", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "seen", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "emittedChatModelRunIds", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "stableMessageIdMap", { - enumerable: true, - configurable: true, - writable: true, - value: {} - }); - Object.defineProperty(this, "lc_prefer_streaming", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.streamFn = streamFn; - } - _emit(meta, message, runId, dedupe = false) { - if (dedupe && message.id !== void 0 && this.seen[message.id] !== void 0) return; - let messageId = message.id; - if (runId != null) if (isToolMessage(message)) messageId ??= `run-${runId}-tool-${message.tool_call_id}`; - else { - if (messageId == null || messageId === `run-${runId}`) messageId = this.stableMessageIdMap[runId] ?? messageId ?? `run-${runId}`; - this.stableMessageIdMap[runId] ??= messageId; - } - if (messageId !== message.id) { - message.id = messageId; - message.lc_kwargs.id = messageId; - } - if (message.id != null) this.seen[message.id] = message; - this.streamFn([ - meta[0], - "messages", - [message, meta[1]] - ]); - } - handleChatModelStart(_llm, _messages, runId, _parentRunId, _extraParams, tags, metadata, name) { - if (metadata && (!tags || !tags.includes(TAG_NOSTREAM) && !tags.includes("nostream"))) this.metadatas[runId] = [metadata.langgraph_checkpoint_ns.split("|"), { - tags, - name, - ...metadata - }]; - } - handleLLMNewToken(token, _idx, runId, _parentRunId, _tags, fields) { - const chunk = fields?.chunk; - this.emittedChatModelRunIds[runId] = true; - if (this.metadatas[runId] !== void 0) if (isChatGenerationChunk(chunk)) this._emit(this.metadatas[runId], chunk.message, runId); - else this._emit(this.metadatas[runId], new AIMessageChunk({ content: token }), runId); - } - handleLLMEnd(output, runId) { - if (!this.emittedChatModelRunIds[runId]) { - const chatGeneration = output.generations?.[0]?.[0]; - if (isBaseMessage(chatGeneration?.message)) this._emit(this.metadatas[runId], chatGeneration?.message, runId, true); - delete this.emittedChatModelRunIds[runId]; - } - delete this.metadatas[runId]; - delete this.stableMessageIdMap[runId]; - } - handleLLMError(_err, runId) { - delete this.metadatas[runId]; - } - handleChainStart(_chain, inputs, runId, _parentRunId, tags, metadata, _runType, name) { - if (metadata !== void 0 && name === metadata.langgraph_node && (tags === void 0 || !tags.includes(TAG_HIDDEN))) { - this.metadatas[runId] = [metadata.langgraph_checkpoint_ns.split("|"), { - tags, - name, - ...metadata - }]; - if (typeof inputs === "object") { - for (const value of Object.values(inputs)) if ((isBaseMessage(value) || isBaseMessageChunk(value)) && value.id !== void 0) this.seen[value.id] = value; - else if (Array.isArray(value)) { - for (const item of value) if ((isBaseMessage(item) || isBaseMessageChunk(item)) && item.id !== void 0) this.seen[item.id] = item; - } - } - } - } - handleChainEnd(outputs, runId) { - const metadata = this.metadatas[runId]; - delete this.metadatas[runId]; - if (metadata !== void 0) { - if (isBaseMessage(outputs)) this._emit(metadata, outputs, runId, true); - else if (Array.isArray(outputs)) { - for (const value of outputs) if (isBaseMessage(value)) this._emit(metadata, value, runId, true); - } else if (outputs != null && typeof outputs === "object") { - for (const value of Object.values(outputs)) if (isBaseMessage(value)) this._emit(metadata, value, runId, true); - else if (Array.isArray(value)) { - for (const item of value) if (isBaseMessage(item)) this._emit(metadata, item, runId, true); - } - } - } - } - handleChainError(_err, runId) { - delete this.metadatas[runId]; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/retry.js -const DEFAULT_INITIAL_INTERVAL = 500; -const DEFAULT_BACKOFF_FACTOR = 2; -const DEFAULT_MAX_INTERVAL = 128e3; -const DEFAULT_MAX_RETRIES = 3; -const DEFAULT_STATUS_NO_RETRY = [ - 400, - 401, - 402, - 403, - 404, - 405, - 406, - 407, - 409 -]; -const DEFAULT_RETRY_ON_HANDLER = (error) => { - if (error.message.startsWith("Cancel") || error.message.startsWith("AbortError") || error.name === "AbortError") return false; - if (error?.code === "ECONNABORTED") return false; - const status = error?.response?.status ?? error?.status; - if (status && DEFAULT_STATUS_NO_RETRY.includes(+status)) return false; - if (error?.error?.code === "insufficient_quota") return false; - return true; -}; -async function _runWithRetry(pregelTask, retryPolicy, configurable, signal) { - const resolvedRetryPolicy = pregelTask.retry_policy ?? retryPolicy; - let interval = resolvedRetryPolicy !== void 0 ? resolvedRetryPolicy.initialInterval ?? DEFAULT_INITIAL_INTERVAL : 0; - let attempts = 0; - let error; - let result; - let { config } = pregelTask; - if (configurable) config = patchConfigurable$1(config, configurable); - config = { - ...config, - signal - }; - while (true) { - if (signal?.aborted) break; - pregelTask.writes.splice(0, pregelTask.writes.length); - error = void 0; - try { - result = await pregelTask.proc.invoke(pregelTask.input, config); - break; - } catch (e) { - error = e; - error.pregelTaskId = pregelTask.id; - if (isParentCommand(error)) { - const ns = config?.configurable?.checkpoint_ns; - const cmd = error.command; - if (cmd.graph === ns) { - for (const writer of pregelTask.writers) await writer.invoke(cmd, config); - error = void 0; - break; - } else if (cmd.graph === Command.PARENT) { - const parentNs = getParentCheckpointNamespace(ns); - error.command = new Command({ - ...error.command, - graph: parentNs - }); - } - } - if (isGraphBubbleUp(error)) break; - if (resolvedRetryPolicy === void 0) break; - attempts += 1; - if (attempts >= (resolvedRetryPolicy.maxAttempts ?? DEFAULT_MAX_RETRIES)) break; - const retryOn = resolvedRetryPolicy.retryOn ?? DEFAULT_RETRY_ON_HANDLER; - if (!retryOn(error)) break; - interval = Math.min(resolvedRetryPolicy.maxInterval ?? DEFAULT_MAX_INTERVAL, interval * (resolvedRetryPolicy.backoffFactor ?? DEFAULT_BACKOFF_FACTOR)); - const intervalWithJitter = resolvedRetryPolicy.jitter ? Math.floor(interval + Math.random() * 1e3) : interval; - await new Promise((resolve) => setTimeout(resolve, intervalWithJitter)); - const errorName = error.name ?? error.constructor.unminifiable_name ?? error.constructor.name; - if (resolvedRetryPolicy?.logWarning ?? true) console.log(`Retrying task "${String(pregelTask.name)}" after ${interval.toFixed(2)}ms (attempt ${attempts}) after ${errorName}: ${error}`); - config = patchConfigurable$1(config, { [CONFIG_KEY_RESUMING]: true }); - } - } - return { - task: pregelTask, - result, - error, - signalAborted: signal?.aborted - }; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/runner.js -const PROMISE_ADDED_SYMBOL = Symbol.for("promiseAdded"); -function createPromiseBarrier() { - const barrier = { - next: () => void 0, - wait: Promise.resolve(PROMISE_ADDED_SYMBOL) - }; - function waitHandler(resolve) { - barrier.next = () => { - barrier.wait = new Promise(waitHandler); - resolve(PROMISE_ADDED_SYMBOL); - }; - } - barrier.wait = new Promise(waitHandler); - return barrier; -} -/** -* Responsible for handling task execution on each tick of the {@link PregelLoop}. -*/ -var PregelRunner = class { - /** - * Construct a new PregelRunner, which executes tasks from the provided PregelLoop. - * @param loop - The PregelLoop that produces tasks for this runner to execute. - */ - constructor({ loop, nodeFinished }) { - Object.defineProperty(this, "nodeFinished", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "loop", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.loop = loop; - this.nodeFinished = nodeFinished; - } - /** - * Execute tasks from the current step of the PregelLoop. - * - * Note: this method does NOT call {@link PregelLoop}#tick. That must be handled externally. - * @param options - Options for the execution. - */ - async tick(options = {}) { - const { timeout, retryPolicy, onStepWrite, maxConcurrency } = options; - const nodeErrors = /* @__PURE__ */ new Set(); - let graphBubbleUp; - const exceptionSignalController = new AbortController(); - const pendingTasks = Object.values(this.loop.tasks).filter((t) => t.writes.length === 0); - const currentSignals = this._initializeAbortSignals({ - exceptionSignalController, - timeout, - signal: options.signal - }); - const taskStream = this._executeTasksWithRetry(pendingTasks, { - signals: currentSignals, - retryPolicy, - maxConcurrency - }); - for await (const { task, error, signalAborted } of taskStream) { - this._commit(task, error); - if (isGraphInterrupt(error)) graphBubbleUp = error; - else if (isGraphBubbleUp(error) && !isGraphInterrupt(graphBubbleUp)) graphBubbleUp = error; - else if (error && (nodeErrors.size === 0 || !signalAborted)) { - exceptionSignalController.abort(); - nodeErrors.add(error); - } - } - onStepWrite?.(this.loop.step, Object.values(this.loop.tasks).map((task) => task.writes).flat()); - if (nodeErrors.size === 1) throw Array.from(nodeErrors)[0]; - else if (nodeErrors.size > 1) throw new AggregateError(Array.from(nodeErrors), `Multiple errors occurred during superstep ${this.loop.step}. See the "errors" field of this exception for more details.`); - if (isGraphInterrupt(graphBubbleUp)) throw graphBubbleUp; - if (isGraphBubbleUp(graphBubbleUp) && this.loop.isNested) throw graphBubbleUp; - } - /** - * Initializes the current AbortSignals for the PregelRunner, handling the various ways that - * AbortSignals must be chained together so that the PregelLoop can be interrupted if necessary - * while still allowing nodes to gracefully exit. - * - * This method must only be called once per PregelRunner#tick. It has the side effect of updating - * the PregelLoop#config with the new AbortSignals so they may be propagated correctly to future - * ticks and subgraph calls. - * - * @param options - Options for the initialization. - * @returns The current abort signals. - * @internal - */ - _initializeAbortSignals({ exceptionSignalController, timeout, signal }) { - const previousSignals = this.loop.config.configurable?.[CONFIG_KEY_ABORT_SIGNALS] ?? {}; - const subgraphCalledWithSignalCreatedByNode = signal && previousSignals.composedAbortSignal && signal !== previousSignals.composedAbortSignal; - const externalAbortSignal = subgraphCalledWithSignalCreatedByNode ? combineAbortSignals(previousSignals.externalAbortSignal, signal) : previousSignals.externalAbortSignal ?? signal; - const errorAbortSignal = previousSignals.errorAbortSignal ? combineAbortSignals(previousSignals.errorAbortSignal, exceptionSignalController.signal) : exceptionSignalController.signal; - const timeoutAbortSignal = timeout ? AbortSignal.timeout(timeout) : void 0; - const composedAbortSignal = combineAbortSignals(...externalAbortSignal ? [externalAbortSignal] : [], ...timeoutAbortSignal ? [timeoutAbortSignal] : [], errorAbortSignal); - const currentSignals = { - externalAbortSignal, - errorAbortSignal, - timeoutAbortSignal, - composedAbortSignal - }; - this.loop.config = patchConfigurable$1(this.loop.config, { [CONFIG_KEY_ABORT_SIGNALS]: currentSignals }); - return currentSignals; - } - /** - * Concurrently executes tasks with the requested retry policy, yielding a {@link SettledPregelTask} for each task as it completes. - * @param tasks - The tasks to execute. - * @param options - Options for the execution. - */ - async *_executeTasksWithRetry(tasks, options) { - const { retryPolicy, maxConcurrency, signals: signals$1 } = options ?? {}; - const barrier = createPromiseBarrier(); - const executingTasksMap = {}; - const thisCall = { - executingTasksMap, - barrier, - retryPolicy, - scheduleTask: async (task, writeIdx, call$4) => this.loop.acceptPush(task, writeIdx, call$4) - }; - if (signals$1?.composedAbortSignal?.aborted) throw new Error("Abort"); - let startedTasksCount = 0; - let listener; - const timeoutOrCancelSignal = signals$1?.externalAbortSignal || signals$1?.timeoutAbortSignal ? combineAbortSignals(...signals$1.externalAbortSignal ? [signals$1.externalAbortSignal] : [], ...signals$1.timeoutAbortSignal ? [signals$1.timeoutAbortSignal] : []) : void 0; - const abortPromise = timeoutOrCancelSignal ? new Promise((_resolve, reject) => { - listener = () => reject(new Error("Abort")); - timeoutOrCancelSignal.addEventListener("abort", listener, { once: true }); - }) : void 0; - while ((startedTasksCount === 0 || Object.keys(executingTasksMap).length > 0) && tasks.length) { - for (; Object.values(executingTasksMap).length < (maxConcurrency ?? tasks.length) && startedTasksCount < tasks.length; startedTasksCount += 1) { - const task = tasks[startedTasksCount]; - executingTasksMap[task.id] = _runWithRetry(task, retryPolicy, { [CONFIG_KEY_CALL]: call$1?.bind(thisCall, this, task) }, signals$1?.composedAbortSignal).catch((error) => { - return { - task, - error, - signalAborted: signals$1?.composedAbortSignal?.aborted - }; - }); - } - const settledTask = await Promise.race([ - ...Object.values(executingTasksMap), - ...abortPromise ? [abortPromise] : [], - barrier.wait - ]); - if (settledTask === PROMISE_ADDED_SYMBOL) continue; - yield settledTask; - delete executingTasksMap[settledTask.task.id]; - } - } - /** - * Determines what writes to apply based on whether the task completed successfully, and what type of error occurred. - * - * Throws an error if the error is a {@link GraphBubbleUp} error and {@link PregelLoop}#isNested is true. - * - * @param task - The task to commit. - * @param error - The error that occurred, if any. - */ - _commit(task, error) { - if (error !== void 0) if (isGraphInterrupt(error)) { - if (error.interrupts.length) { - const interrupts = error.interrupts.map((interrupt$1) => [INTERRUPT, interrupt$1]); - const resumes = task.writes.filter((w$1) => w$1[0] === RESUME); - if (resumes.length) interrupts.push(...resumes); - this.loop.putWrites(task.id, interrupts); - } - } else if (isGraphBubbleUp(error) && task.writes.length) this.loop.putWrites(task.id, task.writes); - else this.loop.putWrites(task.id, [[ERROR, { - message: error.message, - name: error.name - }]]); - else { - if (this.nodeFinished && (task.config?.tags == null || !task.config.tags.includes(TAG_HIDDEN))) this.nodeFinished(String(task.name)); - if (task.writes.length === 0) task.writes.push([NO_WRITES, null]); - this.loop.putWrites(task.id, task.writes); - } - } -}; -async function call$1(runner, task, func, name, input, options = {}) { - const scratchpad = task.config?.configurable?.[CONFIG_KEY_SCRATCHPAD]; - if (!scratchpad) throw new Error(`BUG: No scratchpad found on task ${task.name}__${task.id}`); - const cnt = scratchpad.callCounter; - scratchpad.callCounter += 1; - const wcall = new Call({ - func, - name, - input, - retry: options.retry, - callbacks: options.callbacks - }); - const nextTask = await this.scheduleTask(task, cnt, wcall); - if (!nextTask) return void 0; - const existingPromise = this.executingTasksMap[nextTask.id]; - if (existingPromise !== void 0) return existingPromise; - if (nextTask.writes.length > 0) { - const returns = nextTask.writes.filter(([c]) => c === RETURN); - const errors = nextTask.writes.filter(([c]) => c === ERROR); - if (returns.length > 0) { - if (returns.length === 1) return Promise.resolve(returns[0][1]); - throw new Error(`BUG: multiple returns found for task ${nextTask.name}__${nextTask.id}`); - } - if (errors.length > 0) { - if (errors.length === 1) { - const errorValue = errors[0][1]; - const error = errorValue instanceof Error ? errorValue : new Error(String(errorValue)); - return Promise.reject(error); - } - throw new Error(`BUG: multiple errors found for task ${nextTask.name}__${nextTask.id}`); - } - return void 0; - } else { - const prom = _runWithRetry(nextTask, options.retry, { [CONFIG_KEY_CALL]: call$1.bind(this, runner, nextTask) }); - this.executingTasksMap[nextTask.id] = prom; - this.barrier.next(); - return prom.then(({ result, error }) => { - if (error) return Promise.reject(error); - return result; - }); - } -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/pregel/index.js -/** -* The Pregel class is the core runtime engine of LangGraph, implementing a message-passing graph computation model -* inspired by [Google's Pregel system](https://research.google/pubs/pregel-a-system-for-large-scale-graph-processing/). -* It provides the foundation for building reliable, controllable agent workflows that can evolve state over time. -* -* Key features: -* - Message passing between nodes in discrete "supersteps" -* - Built-in persistence layer through checkpointers -* - First-class streaming support for values, updates, and events -* - Human-in-the-loop capabilities via interrupts -* - Support for parallel node execution within supersteps -* -* The Pregel class is not intended to be instantiated directly by consumers. Instead, use the following higher-level APIs: -* - {@link StateGraph}: The main graph class for building agent workflows -* - Compiling a {@link StateGraph} will return a {@link CompiledGraph} instance, which extends `Pregel` -* - Functional API: A declarative approach using tasks and entrypoints -* - A `Pregel` instance is returned by the {@link entrypoint} function -* -* @example -* ```typescript -* // Using StateGraph API -* const graph = new StateGraph(annotation) -* .addNode("nodeA", myNodeFunction) -* .addEdge("nodeA", "nodeB") -* .compile(); -* -* // The compiled graph is a Pregel instance -* const result = await graph.invoke(input); -* ``` -* -* @example -* ```typescript -* // Using Functional API -* import { task, entrypoint } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* -* // Define tasks that can be composed -* const addOne = task("add", async (x: number) => x + 1); -* -* // Create a workflow using the entrypoint function -* const workflow = entrypoint({ -* name: "workflow", -* checkpointer: new MemorySaver() -* }, async (numbers: number[]) => { -* // Tasks can be run in parallel -* const results = await Promise.all(numbers.map(n => addOne(n))); -* return results; -* }); -* -* // The workflow is a Pregel instance -* const result = await workflow.invoke([1, 2, 3]); // Returns [2, 3, 4] -* ``` -* -* @typeParam Nodes - Mapping of node names to their {@link PregelNode} implementations -* @typeParam Channels - Mapping of channel names to their {@link BaseChannel} or {@link ManagedValueSpec} implementations -* @typeParam ConfigurableFieldType - Type of configurable fields that can be passed to the graph -* @typeParam InputType - Type of input values accepted by the graph -* @typeParam OutputType - Type of output values produced by the graph -*/ -var Pregel = class extends Runnable { - /** - * Name of the class when serialized - * @internal - */ - static lc_name() { - return "LangGraph"; - } - /** - * Constructor for Pregel - meant for internal use only. - * - * @internal - */ - constructor(fields) { - super(fields); - /** @internal LangChain namespace for serialization necessary because Pregel extends Runnable */ - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: ["langgraph", "pregel"] - }); - /** @internal Flag indicating this is a Pregel instance - necessary for serialization */ - Object.defineProperty(this, "lg_is_pregel", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - /** The nodes in the graph, mapping node names to their PregelNode instances */ - Object.defineProperty(this, "nodes", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** The channels in the graph, mapping channel names to their BaseChannel or ManagedValueSpec instances */ - Object.defineProperty(this, "channels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * The input channels for the graph. These channels receive the initial input when the graph is invoked. - * Can be a single channel key or an array of channel keys. - */ - Object.defineProperty(this, "inputChannels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * The output channels for the graph. These channels contain the final output when the graph completes. - * Can be a single channel key or an array of channel keys. - */ - Object.defineProperty(this, "outputChannels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Whether to automatically validate the graph structure when it is compiled. Defaults to true. */ - Object.defineProperty(this, "autoValidate", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - /** - * The streaming modes enabled for this graph. Defaults to ["values"]. - * Supported modes: - * - "values": Streams the full state after each step - * - "updates": Streams state updates after each step - * - "messages": Streams messages from within nodes - * - "custom": Streams custom events from within nodes - * - "debug": Streams events related to the execution of the graph - useful for tracing & debugging graph execution - */ - Object.defineProperty(this, "streamMode", { - enumerable: true, - configurable: true, - writable: true, - value: ["values"] - }); - /** - * Optional channels to stream. If not specified, all channels will be streamed. - * Can be a single channel key or an array of channel keys. - */ - Object.defineProperty(this, "streamChannels", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional array of node names or "all" to interrupt after executing these nodes. - * Used for implementing human-in-the-loop workflows. - */ - Object.defineProperty(this, "interruptAfter", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional array of node names or "all" to interrupt before executing these nodes. - * Used for implementing human-in-the-loop workflows. - */ - Object.defineProperty(this, "interruptBefore", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Optional timeout in milliseconds for the execution of each superstep */ - Object.defineProperty(this, "stepTimeout", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Whether to enable debug logging. Defaults to false. */ - Object.defineProperty(this, "debug", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - /** - * Optional checkpointer for persisting graph state. - * When provided, saves a checkpoint of the graph state at every superstep. - * When false or undefined, checkpointing is disabled, and the graph will not be able to save or restore state. - */ - Object.defineProperty(this, "checkpointer", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Optional retry policy for handling failures in node execution */ - Object.defineProperty(this, "retryPolicy", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** The default configuration for graph execution, can be overridden on a per-invocation basis */ - Object.defineProperty(this, "config", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Optional long-term memory store for the graph, allows for persistance & retrieval of data across threads - */ - Object.defineProperty(this, "store", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - let { streamMode } = fields; - if (streamMode != null && !Array.isArray(streamMode)) streamMode = [streamMode]; - this.nodes = fields.nodes; - this.channels = fields.channels; - this.autoValidate = fields.autoValidate ?? this.autoValidate; - this.streamMode = streamMode ?? this.streamMode; - this.inputChannels = fields.inputChannels; - this.outputChannels = fields.outputChannels; - this.streamChannels = fields.streamChannels ?? this.streamChannels; - this.interruptAfter = fields.interruptAfter; - this.interruptBefore = fields.interruptBefore; - this.stepTimeout = fields.stepTimeout ?? this.stepTimeout; - this.debug = fields.debug ?? this.debug; - this.checkpointer = fields.checkpointer; - this.retryPolicy = fields.retryPolicy; - this.config = fields.config; - this.store = fields.store; - this.name = fields.name; - if (this.autoValidate) this.validate(); - } - /** - * Creates a new instance of the Pregel graph with updated configuration. - * This method follows the immutable pattern - instead of modifying the current instance, - * it returns a new instance with the merged configuration. - * - * @example - * ```typescript - * // Create a new instance with debug enabled - * const debugGraph = graph.withConfig({ debug: true }); - * - * // Create a new instance with a specific thread ID - * const threadGraph = graph.withConfig({ - * configurable: { thread_id: "123" } - * }); - * ``` - * - * @param config - The configuration to merge with the current configuration - * @returns A new Pregel instance with the merged configuration - */ - withConfig(config) { - const mergedConfig = mergeConfigs(this.config, config); - return new this.constructor({ - ...this, - config: mergedConfig - }); - } - /** - * Validates the graph structure to ensure it is well-formed. - * Checks for: - * - No orphaned nodes - * - Valid input/output channel configurations - * - Valid interrupt configurations - * - * @returns this - The Pregel instance for method chaining - * @throws {GraphValidationError} If the graph structure is invalid - */ - validate() { - validateGraph({ - nodes: this.nodes, - channels: this.channels, - outputChannels: this.outputChannels, - inputChannels: this.inputChannels, - streamChannels: this.streamChannels, - interruptAfterNodes: this.interruptAfter, - interruptBeforeNodes: this.interruptBefore - }); - return this; - } - /** - * Gets a list of all channels that should be streamed. - * If streamChannels is specified, returns those channels. - * Otherwise, returns all channels in the graph. - * - * @returns Array of channel keys to stream - */ - get streamChannelsList() { - if (Array.isArray(this.streamChannels)) return this.streamChannels; - else if (this.streamChannels) return [this.streamChannels]; - else return Object.keys(this.channels); - } - /** - * Gets the channels to stream in their original format. - * If streamChannels is specified, returns it as-is (either single key or array). - * Otherwise, returns all channels in the graph as an array. - * - * @returns Channel keys to stream, either as a single key or array - */ - get streamChannelsAsIs() { - if (this.streamChannels) return this.streamChannels; - else return Object.keys(this.channels); - } - /** - * Gets a drawable representation of the graph structure. - * This is an async version of getGraph() and is the preferred method to use. - * - * @param config - Configuration for generating the graph visualization - * @returns A representation of the graph that can be visualized - */ - async getGraphAsync(config) { - return this.getGraph(config); - } - /** - * Gets all subgraphs within this graph. - * A subgraph is a Pregel instance that is nested within a node of this graph. - * - * @deprecated Use getSubgraphsAsync instead. The async method will become the default in the next minor release. - * @param namespace - Optional namespace to filter subgraphs - * @param recurse - Whether to recursively get subgraphs of subgraphs - * @returns Generator yielding tuples of [name, subgraph] - */ - *getSubgraphs(namespace, recurse) { - for (const [name, node] of Object.entries(this.nodes)) { - if (namespace !== void 0) { - if (!namespace.startsWith(name)) continue; - } - const candidates = node.subgraphs?.length ? node.subgraphs : [node.bound]; - for (const candidate of candidates) { - const graph$1 = findSubgraphPregel(candidate); - if (graph$1 !== void 0) { - if (name === namespace) { - yield [name, graph$1]; - return; - } - if (namespace === void 0) yield [name, graph$1]; - if (recurse) { - let newNamespace = namespace; - if (namespace !== void 0) newNamespace = namespace.slice(name.length + 1); - for (const [subgraphName, subgraph] of graph$1.getSubgraphs(newNamespace, recurse)) yield [`${name}${CHECKPOINT_NAMESPACE_SEPARATOR}${subgraphName}`, subgraph]; - } - } - } - } - } - /** - * Gets all subgraphs within this graph asynchronously. - * A subgraph is a Pregel instance that is nested within a node of this graph. - * - * @param namespace - Optional namespace to filter subgraphs - * @param recurse - Whether to recursively get subgraphs of subgraphs - * @returns AsyncGenerator yielding tuples of [name, subgraph] - */ - async *getSubgraphsAsync(namespace, recurse) { - yield* this.getSubgraphs(namespace, recurse); - } - /** - * Prepares a state snapshot from saved checkpoint data. - * This is an internal method used by getState and getStateHistory. - * - * @param config - Configuration for preparing the snapshot - * @param saved - Optional saved checkpoint data - * @param subgraphCheckpointer - Optional checkpointer for subgraphs - * @param applyPendingWrites - Whether to apply pending writes to tasks and then to channels - * @returns A snapshot of the graph state - * @internal - */ - async _prepareStateSnapshot({ config, saved, subgraphCheckpointer, applyPendingWrites = false }) { - if (saved === void 0) return { - values: {}, - next: [], - config, - tasks: [] - }; - const { managed } = await this.prepareSpecs(config, { skipManaged: true }); - const channels = emptyChannels(this.channels, saved.checkpoint); - if (saved.pendingWrites?.length) { - const nullWrites = saved.pendingWrites.filter(([taskId, _]) => taskId === NULL_TASK_ID).map(([_, channel, value]) => [String(channel), value]); - if (nullWrites.length > 0) _applyWrites(saved.checkpoint, channels, [{ - name: INPUT, - writes: nullWrites, - triggers: [] - }]); - } - const nextTasks = Object.values(_prepareNextTasks(saved.checkpoint, saved.pendingWrites, this.nodes, channels, managed, saved.config, true, { - step: (saved.metadata?.step ?? -1) + 1, - store: this.store - })); - const subgraphs = await gatherIterator(this.getSubgraphsAsync()); - const parentNamespace = saved.config.configurable?.checkpoint_ns ?? ""; - const taskStates = {}; - for (const task of nextTasks) { - const matchingSubgraph = subgraphs.find(([name]) => name === task.name); - if (!matchingSubgraph) continue; - let taskNs = `${String(task.name)}${CHECKPOINT_NAMESPACE_END}${task.id}`; - if (parentNamespace) taskNs = `${parentNamespace}${CHECKPOINT_NAMESPACE_SEPARATOR}${taskNs}`; - if (subgraphCheckpointer === void 0) { - const config$1 = { configurable: { - thread_id: saved.config.configurable?.thread_id, - checkpoint_ns: taskNs - } }; - taskStates[task.id] = config$1; - } else { - const subgraphConfig = { configurable: { - [CONFIG_KEY_CHECKPOINTER]: subgraphCheckpointer, - thread_id: saved.config.configurable?.thread_id, - checkpoint_ns: taskNs - } }; - const pregel = matchingSubgraph[1]; - taskStates[task.id] = await pregel.getState(subgraphConfig, { subgraphs: true }); - } - } - if (applyPendingWrites && saved.pendingWrites?.length) { - const nextTaskById = Object.fromEntries(nextTasks.map((task) => [task.id, task])); - for (const [taskId, channel, value] of saved.pendingWrites) { - if ([ - ERROR, - INTERRUPT, - SCHEDULED - ].includes(channel)) continue; - if (!(taskId in nextTaskById)) continue; - nextTaskById[taskId].writes.push([String(channel), value]); - } - const tasksWithWrites$2 = nextTasks.filter((task) => task.writes.length > 0); - if (tasksWithWrites$2.length > 0) _applyWrites(saved.checkpoint, channels, tasksWithWrites$2); - } - let metadata = saved?.metadata; - if (metadata && saved?.config?.configurable?.thread_id) metadata = { - ...metadata, - thread_id: saved.config.configurable.thread_id - }; - const nextList = nextTasks.filter((task) => task.writes.length === 0).map((task) => task.name); - return { - values: readChannels(channels, this.streamChannelsAsIs), - next: nextList, - tasks: tasksWithWrites(nextTasks, saved?.pendingWrites ?? [], taskStates), - metadata, - config: patchCheckpointMap(saved.config, saved.metadata), - createdAt: saved.checkpoint.ts, - parentConfig: saved.parentConfig - }; - } - /** - * Gets the current state of the graph. - * Requires a checkpointer to be configured. - * - * @param config - Configuration for retrieving the state - * @param options - Additional options - * @returns A snapshot of the current graph state - * @throws {GraphValueError} If no checkpointer is configured - */ - async getState(config, options) { - const checkpointer = config.configurable?.[CONFIG_KEY_CHECKPOINTER] ?? this.checkpointer; - if (!checkpointer) throw new GraphValueError("No checkpointer set"); - const checkpointNamespace = config.configurable?.checkpoint_ns ?? ""; - if (checkpointNamespace !== "" && config.configurable?.[CONFIG_KEY_CHECKPOINTER] === void 0) { - const recastNamespace = recastCheckpointNamespace(checkpointNamespace); - for await (const [name, subgraph] of this.getSubgraphsAsync(recastNamespace, true)) if (name === recastNamespace) return await subgraph.getState(patchConfigurable(config, { [CONFIG_KEY_CHECKPOINTER]: checkpointer }), { subgraphs: options?.subgraphs }); - throw new Error(`Subgraph with namespace "${recastNamespace}" not found.`); - } - const mergedConfig = mergeConfigs(this.config, config); - const saved = await checkpointer.getTuple(config); - const snapshot = await this._prepareStateSnapshot({ - config: mergedConfig, - saved, - subgraphCheckpointer: options?.subgraphs ? checkpointer : void 0, - applyPendingWrites: !config.configurable?.checkpoint_id - }); - return snapshot; - } - /** - * Gets the history of graph states. - * Requires a checkpointer to be configured. - * Useful for: - * - Debugging execution history - * - Implementing time travel - * - Analyzing graph behavior - * - * @param config - Configuration for retrieving the history - * @param options - Options for filtering the history - * @returns An async iterator of state snapshots - * @throws {Error} If no checkpointer is configured - */ - async *getStateHistory(config, options) { - const checkpointer = config.configurable?.[CONFIG_KEY_CHECKPOINTER] ?? this.checkpointer; - if (!checkpointer) throw new Error("No checkpointer set"); - const checkpointNamespace = config.configurable?.checkpoint_ns ?? ""; - if (checkpointNamespace !== "" && config.configurable?.[CONFIG_KEY_CHECKPOINTER] === void 0) { - const recastNamespace = recastCheckpointNamespace(checkpointNamespace); - for await (const [name, pregel] of this.getSubgraphsAsync(recastNamespace, true)) if (name === recastNamespace) { - yield* pregel.getStateHistory(patchConfigurable(config, { [CONFIG_KEY_CHECKPOINTER]: checkpointer }), options); - return; - } - throw new Error(`Subgraph with namespace "${recastNamespace}" not found.`); - } - const mergedConfig = mergeConfigs(this.config, config, { configurable: { checkpoint_ns: checkpointNamespace } }); - for await (const checkpointTuple of checkpointer.list(mergedConfig, options)) yield this._prepareStateSnapshot({ - config: checkpointTuple.config, - saved: checkpointTuple - }); - } - /** - * Apply updates to the graph state in bulk. - * Requires a checkpointer to be configured. - * - * This method is useful for recreating a thread - * from a list of updates, especially if a checkpoint - * is created as a result of multiple tasks. - * - * @internal The API might change in the future. - * - * @param startConfig - Configuration for the update - * @param updates - The list of updates to apply to graph state - * @returns Updated configuration - * @throws {GraphValueError} If no checkpointer is configured - * @throws {InvalidUpdateError} If the update cannot be attributed to a node or an update can be only applied in sequence. - */ - async bulkUpdateState(startConfig, supersteps) { - const checkpointer = startConfig.configurable?.[CONFIG_KEY_CHECKPOINTER] ?? this.checkpointer; - if (!checkpointer) throw new GraphValueError("No checkpointer set"); - if (supersteps.length === 0) throw new Error("No supersteps provided"); - if (supersteps.some((s$1) => s$1.updates.length === 0)) throw new Error("No updates provided"); - const checkpointNamespace = startConfig.configurable?.checkpoint_ns ?? ""; - if (checkpointNamespace !== "" && startConfig.configurable?.[CONFIG_KEY_CHECKPOINTER] === void 0) { - const recastNamespace = recastCheckpointNamespace(checkpointNamespace); - for await (const [, pregel] of this.getSubgraphsAsync(recastNamespace, true)) return await pregel.bulkUpdateState(patchConfigurable(startConfig, { [CONFIG_KEY_CHECKPOINTER]: checkpointer }), supersteps); - throw new Error(`Subgraph "${recastNamespace}" not found`); - } - const updateSuperStep = async (inputConfig, updates) => { - const config = this.config ? mergeConfigs(this.config, inputConfig) : inputConfig; - const saved = await checkpointer.getTuple(config); - const checkpoint = saved !== void 0 ? copyCheckpoint(saved.checkpoint) : emptyCheckpoint(); - const checkpointPreviousVersions = { ...saved?.checkpoint.channel_versions }; - const step = saved?.metadata?.step ?? -1; - let checkpointConfig = patchConfigurable(config, { checkpoint_ns: config.configurable?.checkpoint_ns ?? "" }); - let checkpointMetadata = config.metadata ?? {}; - if (saved?.config.configurable) { - checkpointConfig = patchConfigurable(config, saved.config.configurable); - checkpointMetadata = { - ...saved.metadata, - ...checkpointMetadata - }; - } - const { values, asNode } = updates[0]; - if (values == null && asNode === void 0) { - if (updates.length > 1) throw new InvalidUpdateError(`Cannot create empty checkpoint with multiple updates`); - const nextConfig$1 = await checkpointer.put(checkpointConfig, createCheckpoint(checkpoint, void 0, step), { - source: "update", - step: step + 1, - writes: {}, - parents: saved?.metadata?.parents ?? {} - }, {}); - return patchCheckpointMap(nextConfig$1, saved ? saved.metadata : void 0); - } - const channels = emptyChannels(this.channels, checkpoint); - const { managed } = await this.prepareSpecs(config, { skipManaged: true }); - if (values === null && asNode === END$1) { - if (updates.length > 1) throw new InvalidUpdateError(`Cannot apply multiple updates when clearing state`); - if (saved) { - const nextTasks = _prepareNextTasks(checkpoint, saved.pendingWrites || [], this.nodes, channels, managed, saved.config, true, { - step: (saved.metadata?.step ?? -1) + 1, - checkpointer: this.checkpointer || void 0, - store: this.store - }); - const nullWrites = (saved.pendingWrites || []).filter((w$1) => w$1[0] === NULL_TASK_ID).map((w$1) => w$1.slice(1)); - if (nullWrites.length > 0) _applyWrites(saved.checkpoint, channels, [{ - name: INPUT, - writes: nullWrites, - triggers: [] - }]); - for (const [taskId, k, v] of saved.pendingWrites || []) { - if ([ - ERROR, - INTERRUPT, - SCHEDULED - ].includes(k)) continue; - if (!(taskId in nextTasks)) continue; - nextTasks[taskId].writes.push([k, v]); - } - _applyWrites(checkpoint, channels, Object.values(nextTasks)); - } - const nextConfig$1 = await checkpointer.put(checkpointConfig, createCheckpoint(checkpoint, void 0, step), { - ...checkpointMetadata, - source: "update", - step: step + 1, - writes: {}, - parents: saved?.metadata?.parents ?? {} - }, {}); - return patchCheckpointMap(nextConfig$1, saved ? saved.metadata : void 0); - } - if (values == null && asNode === COPY) { - if (updates.length > 1) throw new InvalidUpdateError(`Cannot copy checkpoint with multiple updates`); - const nextConfig$1 = await checkpointer.put(saved?.parentConfig ?? checkpointConfig, createCheckpoint(checkpoint, void 0, step), { - source: "fork", - step: step + 1, - writes: {}, - parents: saved?.metadata?.parents ?? {} - }, {}); - return patchCheckpointMap(nextConfig$1, saved ? saved.metadata : void 0); - } - if (asNode === INPUT) { - if (updates.length > 1) throw new InvalidUpdateError(`Cannot apply multiple updates when updating as input`); - const inputWrites = await gatherIterator(mapInput(this.inputChannels, values)); - if (inputWrites.length === 0) throw new InvalidUpdateError(`Received no input writes for ${JSON.stringify(this.inputChannels, null, 2)}`); - _applyWrites(checkpoint, channels, [{ - name: INPUT, - writes: inputWrites, - triggers: [] - }], checkpointer.getNextVersion.bind(this.checkpointer)); - const nextStep = saved?.metadata?.step != null ? saved.metadata.step + 1 : -1; - const nextConfig$1 = await checkpointer.put(checkpointConfig, createCheckpoint(checkpoint, channels, nextStep), { - source: "input", - step: nextStep, - writes: Object.fromEntries(inputWrites), - parents: saved?.metadata?.parents ?? {} - }, getNewChannelVersions(checkpointPreviousVersions, checkpoint.channel_versions)); - await checkpointer.putWrites(nextConfig$1, inputWrites, uuid5(INPUT, checkpoint.id)); - return patchCheckpointMap(nextConfig$1, saved ? saved.metadata : void 0); - } - if (config.configurable?.checkpoint_id === void 0 && saved?.pendingWrites !== void 0 && saved.pendingWrites.length > 0) { - const nextTasks = _prepareNextTasks(checkpoint, saved.pendingWrites, this.nodes, channels, managed, saved.config, true, { - store: this.store, - checkpointer: this.checkpointer, - step: (saved.metadata?.step ?? -1) + 1 - }); - const nullWrites = (saved.pendingWrites ?? []).filter((w$1) => w$1[0] === NULL_TASK_ID).map((w$1) => w$1.slice(1)); - if (nullWrites.length > 0) _applyWrites(saved.checkpoint, channels, [{ - name: INPUT, - writes: nullWrites, - triggers: [] - }]); - for (const [tid, k, v] of saved.pendingWrites) { - if ([ - ERROR, - INTERRUPT, - SCHEDULED - ].includes(k) || nextTasks[tid] === void 0) continue; - nextTasks[tid].writes.push([k, v]); - } - const tasks$1 = Object.values(nextTasks).filter((task) => { - return task.writes.length > 0; - }); - if (tasks$1.length > 0) _applyWrites(checkpoint, channels, tasks$1); - } - const nonNullVersion = Object.values(checkpoint.versions_seen).map((seenVersions) => { - return Object.values(seenVersions); - }).flat().find((v) => !!v); - const validUpdates = []; - if (updates.length === 1) { - let { values: values$1, asNode: asNode$1 } = updates[0]; - if (asNode$1 === void 0 && Object.keys(this.nodes).length === 1) [asNode$1] = Object.keys(this.nodes); - else if (asNode$1 === void 0 && nonNullVersion === void 0) { - if (typeof this.inputChannels === "string" && this.nodes[this.inputChannels] !== void 0) asNode$1 = this.inputChannels; - } else if (asNode$1 === void 0) { - const lastSeenByNode = Object.entries(checkpoint.versions_seen).map(([n, seen]) => { - return Object.values(seen).map((v) => { - return [v, n]; - }); - }).flat().sort(([aNumber], [bNumber]) => compareChannelVersions(aNumber, bNumber)); - if (lastSeenByNode) { - if (lastSeenByNode.length === 1) asNode$1 = lastSeenByNode[0][1]; - else if (lastSeenByNode[lastSeenByNode.length - 1][0] !== lastSeenByNode[lastSeenByNode.length - 2][0]) asNode$1 = lastSeenByNode[lastSeenByNode.length - 1][1]; - } - } - if (asNode$1 === void 0) throw new InvalidUpdateError(`Ambiguous update, specify "asNode"`); - validUpdates.push({ - values: values$1, - asNode: asNode$1 - }); - } else for (const { asNode: asNode$1, values: values$1 } of updates) { - if (asNode$1 == null) throw new InvalidUpdateError(`"asNode" is required when applying multiple updates`); - validUpdates.push({ - values: values$1, - asNode: asNode$1 - }); - } - const tasks = []; - for (const { asNode: asNode$1, values: values$1 } of validUpdates) { - if (this.nodes[asNode$1] === void 0) throw new InvalidUpdateError(`Node "${asNode$1.toString()}" does not exist`); - const writers = this.nodes[asNode$1].getWriters(); - if (!writers.length) throw new InvalidUpdateError(`No writers found for node "${asNode$1.toString()}"`); - tasks.push({ - name: asNode$1, - input: values$1, - proc: writers.length > 1 ? RunnableSequence.from(writers, { omitSequenceTags: true }) : writers[0], - writes: [], - triggers: [INTERRUPT], - id: uuid5(INTERRUPT, checkpoint.id), - writers: [] - }); - } - for (const task of tasks) await task.proc.invoke(task.input, patchConfig({ - ...config, - store: config?.store ?? this.store - }, { - runName: config.runName ?? `${this.getName()}UpdateState`, - configurable: { - [CONFIG_KEY_SEND]: (items) => task.writes.push(...items), - [CONFIG_KEY_READ]: (select_, fresh_ = false) => _localRead(step, checkpoint, channels, managed, task, select_, fresh_) - } - })); - for (const task of tasks) { - const channelWrites = task.writes.filter((w$1) => w$1[0] !== PUSH); - if (saved !== void 0 && channelWrites.length > 0) await checkpointer.putWrites(checkpointConfig, channelWrites, task.id); - } - _applyWrites(checkpoint, channels, tasks, checkpointer.getNextVersion.bind(this.checkpointer)); - const newVersions = getNewChannelVersions(checkpointPreviousVersions, checkpoint.channel_versions); - const nextConfig = await checkpointer.put(checkpointConfig, createCheckpoint(checkpoint, channels, step + 1), { - source: "update", - step: step + 1, - writes: Object.fromEntries(validUpdates.map((update) => [update.asNode, update.values])), - parents: saved?.metadata?.parents ?? {} - }, newVersions); - for (const task of tasks) { - const pushWrites = task.writes.filter((w$1) => w$1[0] === PUSH); - if (pushWrites.length > 0) await checkpointer.putWrites(nextConfig, pushWrites, task.id); - } - return patchCheckpointMap(nextConfig, saved ? saved.metadata : void 0); - }; - let currentConfig = startConfig; - for (const { updates } of supersteps) currentConfig = await updateSuperStep(currentConfig, updates); - return currentConfig; - } - /** - * Updates the state of the graph with new values. - * Requires a checkpointer to be configured. - * - * This method can be used for: - * - Implementing human-in-the-loop workflows - * - Modifying graph state during breakpoints - * - Integrating external inputs into the graph - * - * @param inputConfig - Configuration for the update - * @param values - The values to update the state with - * @param asNode - Optional node name to attribute the update to - * @returns Updated configuration - * @throws {GraphValueError} If no checkpointer is configured - * @throws {InvalidUpdateError} If the update cannot be attributed to a node - */ - async updateState(inputConfig, values, asNode) { - return this.bulkUpdateState(inputConfig, [{ updates: [{ - values, - asNode - }] }]); - } - /** - * Gets the default values for various graph configuration options. - * This is an internal method used to process and normalize configuration options. - * - * @param config - The input configuration options - * @returns A tuple containing normalized values for: - * - debug mode - * - stream modes - * - input keys - * - output keys - * - remaining config - * - interrupt before nodes - * - interrupt after nodes - * - checkpointer - * - store - * - whether stream mode is single - * @internal - */ - _defaults(config) { - const { debug: debug$2, streamMode, inputKeys, outputKeys, interruptAfter, interruptBefore,...rest } = config; - let streamModeSingle = true; - const defaultDebug = debug$2 !== void 0 ? debug$2 : this.debug; - let defaultOutputKeys = outputKeys; - if (defaultOutputKeys === void 0) defaultOutputKeys = this.streamChannelsAsIs; - else validateKeys(defaultOutputKeys, this.channels); - let defaultInputKeys = inputKeys; - if (defaultInputKeys === void 0) defaultInputKeys = this.inputChannels; - else validateKeys(defaultInputKeys, this.channels); - const defaultInterruptBefore = interruptBefore ?? this.interruptBefore ?? []; - const defaultInterruptAfter = interruptAfter ?? this.interruptAfter ?? []; - let defaultStreamMode; - if (streamMode !== void 0) { - defaultStreamMode = Array.isArray(streamMode) ? streamMode : [streamMode]; - streamModeSingle = typeof streamMode === "string"; - } else { - defaultStreamMode = this.streamMode; - streamModeSingle = true; - } - if (config.configurable?.[CONFIG_KEY_TASK_ID] !== void 0) defaultStreamMode = ["values"]; - let defaultCheckpointer; - if (this.checkpointer === false) defaultCheckpointer = void 0; - else if (config !== void 0 && config.configurable?.[CONFIG_KEY_CHECKPOINTER] !== void 0) defaultCheckpointer = config.configurable[CONFIG_KEY_CHECKPOINTER]; - else defaultCheckpointer = this.checkpointer; - const defaultStore = config.store ?? this.store; - return [ - defaultDebug, - defaultStreamMode, - defaultInputKeys, - defaultOutputKeys, - rest, - defaultInterruptBefore, - defaultInterruptAfter, - defaultCheckpointer, - defaultStore, - streamModeSingle - ]; - } - /** - * Streams the execution of the graph, emitting state updates as they occur. - * This is the primary method for observing graph execution in real-time. - * - * Stream modes: - * - "values": Emits complete state after each step - * - "updates": Emits only state changes after each step - * - "debug": Emits detailed debug information - * - "messages": Emits messages from within nodes - * - * For more details, see the [Streaming how-to guides](../../how-tos/#streaming_1). - * - * @param input - The input to start graph execution with - * @param options - Configuration options for streaming - * @returns An async iterable stream of graph state updates - */ - async stream(input, options) { - const abortController = new AbortController(); - const config = { - recursionLimit: this.config?.recursionLimit, - ...options, - signal: options?.signal ? combineAbortSignals(options.signal, abortController.signal) : abortController.signal - }; - return new IterableReadableStreamWithAbortSignal(await super.stream(input, config), abortController); - } - streamEvents(input, options, streamOptions) { - const abortController = new AbortController(); - const config = { - recursionLimit: this.config?.recursionLimit, - callbacks: this.config?.callbacks, - ...options, - signal: options?.signal ? combineAbortSignals(options.signal, abortController.signal) : abortController.signal - }; - return new IterableReadableStreamWithAbortSignal(super.streamEvents(input, config, streamOptions), abortController); - } - /** - * Prepares channel specifications and managed values for graph execution. - * This is an internal method used to set up the graph's communication channels - * and managed state before execution. - * - * @param config - Configuration for preparing specs - * @param options - Additional options - * @param options.skipManaged - Whether to skip initialization of managed values - * @returns Object containing channel specs and managed value mapping - * @internal - */ - async prepareSpecs(config, options) { - const configForManaged = { - ...config, - store: this.store - }; - const channelSpecs = {}; - const managedSpecs = {}; - for (const [name, spec] of Object.entries(this.channels)) if (isBaseChannel(spec)) channelSpecs[name] = spec; - else if (options?.skipManaged) managedSpecs[name] = { - cls: NoopManagedValue, - params: { config: {} } - }; - else managedSpecs[name] = spec; - const managed = new ManagedValueMapping(await Object.entries(managedSpecs).reduce(async (accPromise, [key$1, value]) => { - const acc = await accPromise; - let initializedValue; - if (isConfiguredManagedValue(value)) { - if ("key" in value.params && value.params.key === ChannelKeyPlaceholder) value.params.key = key$1; - initializedValue = await value.cls.initialize(configForManaged, value.params); - } else initializedValue = await value.initialize(configForManaged); - if (initializedValue !== void 0) acc.push([key$1, initializedValue]); - return acc; - }, Promise.resolve([]))); - return { - channelSpecs, - managed - }; - } - /** - * Validates the input for the graph. - * @param input - The input to validate - * @returns The validated input - * @internal - */ - async _validateInput(input) { - return input; - } - /** - * Validates the configurable options for the graph. - * @param config - The configurable options to validate - * @returns The validated configurable options - * @internal - */ - async _validateConfigurable(config) { - return config; - } - /** - * Internal iterator used by stream() to generate state updates. - * This method handles the core logic of graph execution and streaming. - * - * @param input - The input to start graph execution with - * @param options - Configuration options for streaming - * @returns AsyncGenerator yielding state updates - * @internal - */ - async *_streamIterator(input, options) { - const streamSubgraphs = options?.subgraphs; - const inputConfig = ensureLangGraphConfig(this.config, options); - if (inputConfig.recursionLimit === void 0 || inputConfig.recursionLimit < 1) throw new Error(`Passed "recursionLimit" must be at least 1.`); - if (this.checkpointer !== void 0 && this.checkpointer !== false && inputConfig.configurable === void 0) throw new Error(`Checkpointer requires one or more of the following "configurable" keys: "thread_id", "checkpoint_ns", "checkpoint_id"`); - const validInput = await this._validateInput(input); - const { runId,...restConfig } = inputConfig; - const [debug$2, streamMode, , outputKeys, config, interruptBefore, interruptAfter, checkpointer, store, streamModeSingle] = this._defaults(restConfig); - config.configurable = await this._validateConfigurable(config.configurable); - const stream = new IterableReadableWritableStream({ modes: new Set(streamMode) }); - if (streamMode.includes("messages")) { - const messageStreamer = new StreamMessagesHandler((chunk) => stream.push(chunk)); - const { callbacks } = config; - if (callbacks === void 0) config.callbacks = [messageStreamer]; - else if (Array.isArray(callbacks)) config.callbacks = callbacks.concat(messageStreamer); - else { - const copiedCallbacks = callbacks.copy(); - copiedCallbacks.addHandler(messageStreamer, true); - config.callbacks = copiedCallbacks; - } - } - if (streamMode.includes("custom")) config.writer = (chunk) => stream.push([ - [], - "custom", - chunk - ]); - const callbackManager = await getCallbackManagerForConfig(config); - const runManager = await callbackManager?.handleChainStart(this.toJSON(), _coerceToDict$1(input, "input"), runId, void 0, void 0, void 0, config?.runName ?? this.getName()); - const { channelSpecs, managed } = await this.prepareSpecs(config); - let loop; - let loopError; - /** - * The PregelLoop will yield events from concurrent tasks as soon as they are - * generated. Each task can push multiple events onto the stream in any order. - * - * We use a separate background method and stream here in order to yield events - * from the loop to the main stream and therefore back to the user as soon as - * they are available. - */ - const createAndRunLoop = async () => { - try { - loop = await PregelLoop.initialize({ - input: validInput, - config, - checkpointer, - nodes: this.nodes, - channelSpecs, - managed, - outputKeys, - streamKeys: this.streamChannelsAsIs, - store, - stream, - interruptAfter, - interruptBefore, - manager: runManager, - debug: this.debug - }); - const runner = new PregelRunner({ - loop, - nodeFinished: config.configurable?.[CONFIG_KEY_NODE_FINISHED] - }); - if (options?.subgraphs) loop.config.configurable = { - ...loop.config.configurable, - [CONFIG_KEY_STREAM]: loop.stream - }; - await this._runLoop({ - loop, - runner, - debug: debug$2, - config - }); - } catch (e) { - loopError = e; - } finally { - try { - if (loop) await loop.store?.stop(); - await Promise.all([...loop?.checkpointerPromises ?? [], ...Array.from(managed.values()).map((mv) => mv.promises())]); - } catch (e) { - loopError = loopError ?? e; - } - if (loopError) stream.error(loopError); - else stream.close(); - } - }; - const runLoopPromise = createAndRunLoop(); - try { - for await (const chunk of stream) { - if (chunk === void 0) throw new Error("Data structure error."); - const [namespace, mode, payload] = chunk; - if (streamMode.includes(mode)) if (streamSubgraphs && !streamModeSingle) yield [ - namespace, - mode, - payload - ]; - else if (!streamModeSingle) yield [mode, payload]; - else if (streamSubgraphs) yield [namespace, payload]; - else yield payload; - } - } catch (e) { - await runManager?.handleChainError(loopError); - throw e; - } finally { - await runLoopPromise; - } - await runManager?.handleChainEnd(loop?.output ?? {}, runId, void 0, void 0, void 0); - } - /** - * Run the graph with a single input and config. - * @param input The input to the graph. - * @param options The configuration to use for the run. - */ - async invoke(input, options) { - const streamMode = options?.streamMode ?? "values"; - const config = { - ...options, - outputKeys: options?.outputKeys ?? this.outputChannels, - streamMode - }; - const chunks = []; - const stream = await this.stream(input, config); - for await (const chunk of stream) chunks.push(chunk); - if (streamMode === "values") return chunks[chunks.length - 1]; - return chunks; - } - async _runLoop(params) { - const { loop, runner, debug: debug$2, config } = params; - let tickError; - try { - while (await loop.tick({ inputKeys: this.inputChannels })) { - if (debug$2) printStepCheckpoint(loop.checkpointMetadata.step, loop.channels, this.streamChannelsList); - if (debug$2) printStepTasks(loop.step, Object.values(loop.tasks)); - await runner.tick({ - timeout: this.stepTimeout, - retryPolicy: this.retryPolicy, - onStepWrite: (step, writes) => { - if (debug$2) printStepWrites(step, writes, this.streamChannelsList); - }, - maxConcurrency: config.maxConcurrency, - signal: config.signal - }); - } - if (loop.status === "out_of_steps") throw new GraphRecursionError([ - `Recursion limit of ${config.recursionLimit} reached`, - "without hitting a stop condition. You can increase the", - `limit by setting the "recursionLimit" config key.` - ].join(" "), { lc_error_code: "GRAPH_RECURSION_LIMIT" }); - } catch (e) { - tickError = e; - const suppress = await loop.finishAndHandleError(tickError); - if (!suppress) throw e; - } finally { - if (tickError === void 0) await loop.finishAndHandleError(); - } - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.js -/** -* Stores the value received in the step immediately preceding, clears after. -* @internal -*/ -var EphemeralValue = class EphemeralValue extends BaseChannel { - constructor(guard = true) { - super(); - Object.defineProperty(this, "lc_graph_name", { - enumerable: true, - configurable: true, - writable: true, - value: "EphemeralValue" - }); - Object.defineProperty(this, "guard", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "value", { - enumerable: true, - configurable: true, - writable: true, - value: [] - }); - this.guard = guard; - } - fromCheckpoint(checkpoint) { - const empty = new EphemeralValue(this.guard); - if (typeof checkpoint !== "undefined") empty.value = [checkpoint]; - return empty; - } - update(values) { - if (values.length === 0) { - const updated = this.value.length > 0; - this.value = []; - return updated; - } - if (values.length !== 1 && this.guard) throw new InvalidUpdateError("EphemeralValue can only receive one value per step."); - this.value = [values[values.length - 1]]; - return true; - } - get() { - if (this.value.length === 0) throw new EmptyChannelError(); - return this.value[0]; - } - checkpoint() { - if (this.value.length === 0) throw new EmptyChannelError(); - return this.value[0]; - } -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/graph/zod/state.js -const META_MAP = /* @__PURE__ */ new WeakMap(); -function isZodType(value) { - return typeof value === "object" && value != null && "_parse" in value && typeof value._parse === "function"; -} -/** -* @internal -*/ -function isZodDefault(value) { - return isZodType(value) && "removeDefault" in value && typeof value.removeDefault === "function"; -} -function withLangGraph(schema, meta) { - if (meta.reducer && !meta.default) { - const defaultValue = isZodDefault(schema) ? schema._def.defaultValue : void 0; - if (defaultValue != null) meta.default = defaultValue; - } - META_MAP.set(schema, meta); - return schema; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/graph/message.js -const REMOVE_ALL_MESSAGES = "__remove_all__"; -/** -* Prebuilt reducer that combines returned messages. -* Can handle standard messages and special modifiers like {@link RemoveMessage} -* instances. -*/ -function messagesStateReducer(left, right) { - const leftArray = Array.isArray(left) ? left : [left]; - const rightArray = Array.isArray(right) ? right : [right]; - const leftMessages = leftArray.map(coerceMessageLikeToMessage); - const rightMessages = rightArray.map(coerceMessageLikeToMessage); - for (const m$1 of leftMessages) if (m$1.id === null || m$1.id === void 0) { - m$1.id = v4_default(); - m$1.lc_kwargs.id = m$1.id; - } - let removeAllIdx; - for (let i$4 = 0; i$4 < rightMessages.length; i$4 += 1) { - const m$1 = rightMessages[i$4]; - if (m$1.id === null || m$1.id === void 0) { - m$1.id = v4_default(); - m$1.lc_kwargs.id = m$1.id; - } - if (m$1.getType() === "remove" && m$1.id === REMOVE_ALL_MESSAGES) removeAllIdx = i$4; - } - if (removeAllIdx != null) return rightMessages.slice(removeAllIdx + 1); - const merged = [...leftMessages]; - const mergedById = new Map(merged.map((m$1, i$4) => [m$1.id, i$4])); - const idsToRemove = /* @__PURE__ */ new Set(); - for (const m$1 of rightMessages) { - const existingIdx = mergedById.get(m$1.id); - if (existingIdx !== void 0) if (m$1.getType() === "remove") idsToRemove.add(m$1.id); - else { - idsToRemove.delete(m$1.id); - merged[existingIdx] = m$1; - } - else { - if (m$1.getType() === "remove") throw new Error(`Attempting to delete a message with an ID that doesn't exist ('${m$1.id}')`); - mergedById.set(m$1.id, merged.length); - merged.push(m$1); - } - } - return merged.filter((m$1) => !idsToRemove.has(m$1.id)); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/func/index.js -/** -* Define a LangGraph workflow using the `entrypoint` function. -* -* ### Function signature -* -* The wrapped function must accept at most **two parameters**. The first parameter -* is the input to the function. The second (optional) parameter is a -* {@link LangGraphRunnableConfig} object. If you wish to pass multiple parameters to -* the function, you can pass them as an object. -* -* ### Helper functions -* -* #### Streaming -* To write data to the "custom" stream, use the {@link getWriter} function, or the -* {@link LangGraphRunnableConfig.writer} property. -* -* #### State management -* The {@link getPreviousState} function can be used to access the previous state -* that was returned from the last invocation of the entrypoint on the same thread id. -* -* If you wish to save state other than the return value, you can use the -* {@link entrypoint.final} function. -* -* @typeParam InputT - The type of input the entrypoint accepts -* @typeParam OutputT - The type of output the entrypoint produces -* @param optionsOrName - Either an {@link EntrypointOptions} object, or a string for the name of the entrypoint -* @param func - The function that executes this entrypoint -* @returns A {@link Pregel} instance that can be run to execute the workflow -* -* @example Using entrypoint and tasks -* ```typescript -* import { task, entrypoint } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* import { interrupt, Command } from "@langchain/langgraph"; -* -* const composeEssay = task("compose", async (topic: string) => { -* await new Promise(r => setTimeout(r, 1000)); // Simulate slow operation -* return `An essay about ${topic}`; -* }); -* -* const reviewWorkflow = entrypoint({ -* name: "review", -* checkpointer: new MemorySaver() -* }, async (topic: string) => { -* const essay = await composeEssay(topic); -* const humanReview = await interrupt({ -* question: "Please provide a review", -* essay -* }); -* return { -* essay, -* review: humanReview -* }; -* }); -* -* // Example configuration for the workflow -* const config = { -* configurable: { -* thread_id: "some_thread" -* } -* }; -* -* // Topic for the essay -* const topic = "cats"; -* -* // Stream the workflow to generate the essay and await human review -* for await (const result of reviewWorkflow.stream(topic, config)) { -* console.log(result); -* } -* -* // Example human review provided after the interrupt -* const humanReview = "This essay is great."; -* -* // Resume the workflow with the provided human review -* for await (const result of reviewWorkflow.stream(new Command({ resume: humanReview }), config)) { -* console.log(result); -* } -* ``` -* -* @example Accessing the previous return value -* ```typescript -* import { entrypoint, getPreviousState } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* -* const accumulator = entrypoint({ -* name: "accumulator", -* checkpointer: new MemorySaver() -* }, async (input: string) => { -* const previous = getPreviousState(); -* return previous !== undefined ? `${previous } ${input}` : input; -* }); -* -* const config = { -* configurable: { -* thread_id: "some_thread" -* } -* }; -* await accumulator.invoke("hello", config); // returns "hello" -* await accumulator.invoke("world", config); // returns "hello world" -* ``` -* -* @example Using entrypoint.final to save a value -* ```typescript -* import { entrypoint, getPreviousState } from "@langchain/langgraph"; -* import { MemorySaver } from "@langchain/langgraph-checkpoint"; -* -* const myWorkflow = entrypoint({ -* name: "accumulator", -* checkpointer: new MemorySaver() -* }, async (num: number) => { -* const previous = getPreviousState(); -* -* // This will return the previous value to the caller, saving -* // 2 * num to the checkpoint, which will be used in the next invocation -* // for the `previous` parameter. -* return entrypoint.final({ -* value: previous ?? 0, -* save: 2 * num -* }); -* }); -* -* const config = { -* configurable: { -* thread_id: "some_thread" -* } -* }; -* -* await myWorkflow.invoke(3, config); // 0 (previous was undefined) -* await myWorkflow.invoke(1, config); // 6 (previous was 3 * 2 from the previous invocation) -* ``` -*/ -const entrypoint = function entrypoint$2(optionsOrName, func) { - const { name, checkpointer, store } = typeof optionsOrName === "string" ? { - name: optionsOrName, - checkpointer: void 0, - store: void 0 - } : optionsOrName; - if (isAsyncGeneratorFunction(func) || isGeneratorFunction(func)) throw new Error("Generators are disallowed as entrypoints. For streaming responses, use config.write."); - const streamMode = "updates"; - const bound = getRunnableForEntrypoint(name, func); - function isEntrypointFinal(value) { - return typeof value === "object" && value !== null && "__lg_type" in value && value.__lg_type === "__pregel_final"; - } - const pluckReturnValue = new RunnableCallable({ - name: "pluckReturnValue", - func: (value) => { - return isEntrypointFinal(value) ? value.value : value; - } - }); - const pluckSaveValue = new RunnableCallable({ - name: "pluckSaveValue", - func: (value) => { - return isEntrypointFinal(value) ? value.save : value; - } - }); - const entrypointNode = new PregelNode({ - bound, - triggers: [START], - channels: [START], - writers: [new ChannelWrite([{ - channel: END$1, - value: PASSTHROUGH, - mapper: pluckReturnValue - }, { - channel: PREVIOUS, - value: PASSTHROUGH, - mapper: pluckSaveValue - }], [TAG_HIDDEN])] - }); - return new Pregel({ - name, - checkpointer, - nodes: { [name]: entrypointNode }, - channels: { - [START]: new EphemeralValue(), - [END$1]: new LastValue(), - [PREVIOUS]: new LastValue() - }, - inputChannels: START, - outputChannels: END$1, - streamChannels: END$1, - streamMode, - store - }); -}; -entrypoint.final = function final({ value, save }) { - return { - value, - save, - __lg_type: "__pregel_final" - }; -}; - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/graph/messages_annotation.js -/** -* Prebuilt state annotation that combines returned messages. -* Can handle standard messages and special modifiers like {@link RemoveMessage} -* instances. -* -* Specifically, importing and using the prebuilt MessagesAnnotation like this: -* -* @example -* ```ts -* import { MessagesAnnotation, StateGraph } from "@langchain/langgraph"; -* -* const graph = new StateGraph(MessagesAnnotation) -* .addNode(...) -* ... -* ``` -* -* Is equivalent to initializing your state manually like this: -* -* @example -* ```ts -* import { BaseMessage } from "@langchain/core/messages"; -* import { Annotation, StateGraph, messagesStateReducer } from "@langchain/langgraph"; -* -* export const StateAnnotation = Annotation.Root({ -* messages: Annotation({ -* reducer: messagesStateReducer, -* default: () => [], -* }), -* }); -* -* const graph = new StateGraph(StateAnnotation) -* .addNode(...) -* ... -* ``` -*/ -const MessagesAnnotation = Annotation$1.Root({ messages: Annotation$1({ - reducer: messagesStateReducer, - default: () => [] -}) }); -/** -* Prebuilt state object that uses Zod to combine returned messages. -* This utility is synonymous with the `MessagesAnnotation` annotation, -* but uses Zod as the way to express messages state. -* -* You can use import and use this prebuilt schema like this: -* -* @example -* ```ts -* import { MessagesZodState, StateGraph } from "@langchain/langgraph"; -* -* const graph = new StateGraph(MessagesZodState) -* .addNode(...) -* ... -* ``` -* -* Which is equivalent to initializing the schema object manually like this: -* -* @example -* ```ts -* import { z } from "zod"; -* import type { BaseMessage, BaseMessageLike } from "@langchain/core/messages"; -* import { StateGraph, messagesStateReducer } from "@langchain/langgraph"; -* import "@langchain/langgraph/zod"; -* -* const AgentState = z.object({ -* messages: z -* .custom() -* .default(() => []) -* .langgraph.reducer( -* messagesStateReducer, -* z.custom() -* ), -* }); -* const graph = new StateGraph(AgentState) -* .addNode(...) -* ... -* ``` -*/ -const MessagesZodState = objectType({ messages: withLangGraph(custom(), { - reducer: { - schema: custom(), - fn: messagesStateReducer - }, - default: () => [] -}) }); - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/interrupt.js -/** -* Interrupts the execution of a graph node. -* This function can be used to pause execution of a node, and return the value of the `resume` -* input when the graph is re-invoked using `Command`. -* Multiple interrupts can be called within a single node, and each will be handled sequentially. -* -* When an interrupt is called: -* 1. If there's a `resume` value available (from a previous `Command`), it returns that value. -* 2. Otherwise, it throws a `GraphInterrupt` with the provided value -* 3. The graph can be resumed by passing a `Command` with a `resume` value -* -* Because the `interrupt` function propagates by throwing a special `GraphInterrupt` error, -* you should avoid using `try/catch` blocks around the `interrupt` function, -* or if you do, ensure that the `GraphInterrupt` error is thrown again within your `catch` block. -* -* @param value - The value to include in the interrupt. This will be available in task.interrupts[].value -* @returns The `resume` value provided when the graph is re-invoked with a Command -* -* @example -* ```typescript -* // Define a node that uses multiple interrupts -* const nodeWithInterrupts = () => { -* // First interrupt - will pause execution and include {value: 1} in task values -* const answer1 = interrupt({ value: 1 }); -* -* // Second interrupt - only called after first interrupt is resumed -* const answer2 = interrupt({ value: 2 }); -* -* // Use the resume values -* return { myKey: answer1 + " " + answer2 }; -* }; -* -* // Resume the graph after first interrupt -* await graph.stream(new Command({ resume: "answer 1" })); -* -* // Resume the graph after second interrupt -* await graph.stream(new Command({ resume: "answer 2" })); -* // Final result: { myKey: "answer 1 answer 2" } -* ``` -* -* @throws {Error} If called outside the context of a graph -* @throws {GraphInterrupt} When no resume value is available -*/ -function interrupt(value) { - const config = AsyncLocalStorageProviderSingleton.getRunnableConfig(); - if (!config) throw new Error("Called interrupt() outside the context of a graph."); - const conf = config.configurable; - if (!conf) throw new Error("No configurable found in config"); - const scratchpad = conf[CONFIG_KEY_SCRATCHPAD]; - scratchpad.interruptCounter += 1; - const idx = scratchpad.interruptCounter; - if (scratchpad.resume.length > 0 && idx < scratchpad.resume.length) return scratchpad.resume[idx]; - if (scratchpad.nullResume !== void 0) { - if (scratchpad.resume.length !== idx) throw new Error(`Resume length mismatch: ${scratchpad.resume.length} !== ${idx}`); - const v = scratchpad.consumeNullResume(); - scratchpad.resume.push(v); - const send = conf[CONFIG_KEY_SEND]; - if (send) send([[RESUME, scratchpad.resume]]); - return v; - } - throw new GraphInterrupt([{ - value, - when: "during", - resumable: true, - ns: conf[CONFIG_KEY_CHECKPOINT_NS]?.split(CHECKPOINT_NAMESPACE_SEPARATOR) - }]); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+langgraph@0.2.74_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___ddfec464503a15c7cf46b91fce9798c9/node_modules/@langchain/langgraph/dist/index.js -initializeAsyncLocalStorageSingleton(); - -//#endregion -//#region node_modules/.pnpm/@copilotkit+sdk-js@1.8.14_@aws-crypto+sha256-js@5.2.0_@aws-sdk+credential-provider-node_97b0d0aaae49fd022aa5a0836b4496fe/node_modules/@copilotkit/sdk-js/dist/chunk-B5CQATKH.mjs -var __defProp = Object.defineProperty; -var __name = (target, value) => __defProp(target, "name", { - value, - configurable: true -}); -var CopilotKitPropertiesAnnotation = Annotation$1.Root({ actions: Annotation$1 }); -var CopilotKitStateAnnotation = Annotation$1.Root({ - copilotkit: Annotation$1, - ...MessagesAnnotation.spec -}); -function copilotkitCustomizeConfig(baseConfig, options) { - const metadata = (baseConfig == null ? void 0 : baseConfig.metadata) || {}; - if (options == null ? void 0 : options.emitAll) { - metadata["copilotkit:emit-tool-calls"] = true; - metadata["copilotkit:emit-messages"] = true; - } else { - if ((options == null ? void 0 : options.emitToolCalls) !== void 0) metadata["copilotkit:emit-tool-calls"] = options.emitToolCalls; - if ((options == null ? void 0 : options.emitMessages) !== void 0) metadata["copilotkit:emit-messages"] = options.emitMessages; - } - if (options == null ? void 0 : options.emitIntermediateState) { - const snakeCaseIntermediateState = options.emitIntermediateState.map((state) => ({ - tool: state.tool, - tool_argument: state.toolArgument, - state_key: state.stateKey - })); - metadata["copilotkit:emit-intermediate-state"] = snakeCaseIntermediateState; - } - baseConfig = baseConfig || {}; - return { - ...baseConfig, - metadata - }; -} -__name(copilotkitCustomizeConfig, "copilotkitCustomizeConfig"); -async function copilotkitExit(config) { - await dispatchCustomEvent("copilotkit_exit", {}, config); -} -__name(copilotkitExit, "copilotkitExit"); -async function copilotkitEmitState(config, state) { - await dispatchCustomEvent("copilotkit_manually_emit_intermediate_state", state, config); -} -__name(copilotkitEmitState, "copilotkitEmitState"); -async function copilotkitEmitMessage(config, message) { - await dispatchCustomEvent("copilotkit_manually_emit_message", { - message, - message_id: randomId(), - role: "assistant" - }, config); -} -__name(copilotkitEmitMessage, "copilotkitEmitMessage"); -async function copilotkitEmitToolCall(config, name, args) { - await dispatchCustomEvent("copilotkit_manually_emit_tool_call", { - name, - args, - id: randomId() - }, config); -} -__name(copilotkitEmitToolCall, "copilotkitEmitToolCall"); -function convertActionToDynamicStructuredTool(actionInput) { - return new DynamicStructuredTool({ - name: actionInput.name, - description: actionInput.description, - schema: convertJsonSchemaToZodSchema(actionInput.parameters, true), - func: async () => { - return ""; - } - }); -} -__name(convertActionToDynamicStructuredTool, "convertActionToDynamicStructuredTool"); -function convertActionsToDynamicStructuredTools(actions) { - return actions.map((action) => convertActionToDynamicStructuredTool(action)); -} -__name(convertActionsToDynamicStructuredTools, "convertActionsToDynamicStructuredTools"); -function copilotKitInterrupt({ message, action, args }) { - if (!message && !action) throw new Error("Either message or action (and optional arguments) must be provided"); - let interruptValues = null; - let interruptMessage = null; - let answer = null; - if (message) { - interruptValues = message; - interruptMessage = new AIMessage({ - content: message, - id: randomId() - }); - } else { - const toolId = randomId(); - interruptMessage = new AIMessage({ - content: "", - tool_calls: [{ - id: toolId, - name: action, - args: args ?? {} - }] - }); - interruptValues = { - action, - args: args ?? {} - }; - } - const response = interrupt({ - __copilotkit_interrupt_value__: interruptValues, - __copilotkit_messages__: [interruptMessage] - }); - answer = response[response.length - 1].content; - return { - answer, - messages: response - }; -} -__name(copilotKitInterrupt, "copilotKitInterrupt"); - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/internal/qs/formats.mjs -const default_format = "RFC3986"; -const formatters = { - RFC1738: (v) => String(v).replace(/%20/g, "+"), - RFC3986: (v) => String(v) -}; -const RFC1738 = "RFC1738"; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/internal/qs/utils.mjs -const is_array$1 = Array.isArray; -const hex_table = (() => { - const array = []; - for (let i$4 = 0; i$4 < 256; ++i$4) array.push("%" + ((i$4 < 16 ? "0" : "") + i$4.toString(16)).toUpperCase()); - return array; -})(); -const limit = 1024; -const encode = (str$1, _defaultEncoder, charset, _kind, format$1) => { - if (str$1.length === 0) return str$1; - let string = str$1; - if (typeof str$1 === "symbol") string = Symbol.prototype.toString.call(str$1); - else if (typeof str$1 !== "string") string = String(str$1); - if (charset === "iso-8859-1") return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) { - return "%26%23" + parseInt($0.slice(2), 16) + "%3B"; - }); - let out = ""; - for (let j = 0; j < string.length; j += limit) { - const segment = string.length >= limit ? string.slice(j, j + limit) : string; - const arr$1 = []; - for (let i$4 = 0; i$4 < segment.length; ++i$4) { - let c = segment.charCodeAt(i$4); - if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format$1 === RFC1738 && (c === 40 || c === 41)) { - arr$1[arr$1.length] = segment.charAt(i$4); - continue; - } - if (c < 128) { - arr$1[arr$1.length] = hex_table[c]; - continue; - } - if (c < 2048) { - arr$1[arr$1.length] = hex_table[192 | c >> 6] + hex_table[128 | c & 63]; - continue; - } - if (c < 55296 || c >= 57344) { - arr$1[arr$1.length] = hex_table[224 | c >> 12] + hex_table[128 | c >> 6 & 63] + hex_table[128 | c & 63]; - continue; - } - i$4 += 1; - c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i$4) & 1023); - arr$1[arr$1.length] = hex_table[240 | c >> 18] + hex_table[128 | c >> 12 & 63] + hex_table[128 | c >> 6 & 63] + hex_table[128 | c & 63]; - } - out += arr$1.join(""); - } - return out; -}; -function is_buffer(obj) { - if (!obj || typeof obj !== "object") return false; - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -} -function maybe_map(val, fn) { - if (is_array$1(val)) { - const mapped = []; - for (let i$4 = 0; i$4 < val.length; i$4 += 1) mapped.push(fn(val[i$4])); - return mapped; - } - return fn(val); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/internal/qs/stringify.mjs -const has = Object.prototype.hasOwnProperty; -const array_prefix_generators = { - brackets(prefix) { - return String(prefix) + "[]"; - }, - comma: "comma", - indices(prefix, key$1) { - return String(prefix) + "[" + key$1 + "]"; - }, - repeat(prefix) { - return String(prefix); - } -}; -const is_array = Array.isArray; -const push = Array.prototype.push; -const push_to_array = function(arr$1, value_or_array) { - push.apply(arr$1, is_array(value_or_array) ? value_or_array : [value_or_array]); -}; -const to_ISO = Date.prototype.toISOString; -const defaults = { - addQueryPrefix: false, - allowDots: false, - allowEmptyArrays: false, - arrayFormat: "indices", - charset: "utf-8", - charsetSentinel: false, - delimiter: "&", - encode: true, - encodeDotInKeys: false, - encoder: encode, - encodeValuesOnly: false, - format: default_format, - formatter: formatters[default_format], - indices: false, - serializeDate(date$1) { - return to_ISO.call(date$1); - }, - skipNulls: false, - strictNullHandling: false -}; -function is_non_nullish_primitive(v) { - return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint"; -} -const sentinel = {}; -function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format$1, formatter, encodeValuesOnly, charset, sideChannel) { - let obj = object; - let tmp_sc = sideChannel; - let step = 0; - let find_flag = false; - while ((tmp_sc = tmp_sc.get(sentinel)) !== void 0 && !find_flag) { - const pos = tmp_sc.get(object); - step += 1; - if (typeof pos !== "undefined") if (pos === step) throw new RangeError("Cyclic object value"); - else find_flag = true; - if (typeof tmp_sc.get(sentinel) === "undefined") step = 0; - } - if (typeof filter === "function") obj = filter(prefix, obj); - else if (obj instanceof Date) obj = serializeDate?.(obj); - else if (generateArrayPrefix === "comma" && is_array(obj)) obj = maybe_map(obj, function(value) { - if (value instanceof Date) return serializeDate?.(value); - return value; - }); - if (obj === null) { - if (strictNullHandling) return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format$1) : prefix; - obj = ""; - } - if (is_non_nullish_primitive(obj) || is_buffer(obj)) { - if (encoder) { - const key_value = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format$1); - return [formatter?.(key_value) + "=" + formatter?.(encoder(obj, defaults.encoder, charset, "value", format$1))]; - } - return [formatter?.(prefix) + "=" + formatter?.(String(obj))]; - } - const values = []; - if (typeof obj === "undefined") return values; - let obj_keys; - if (generateArrayPrefix === "comma" && is_array(obj)) { - if (encodeValuesOnly && encoder) obj = maybe_map(obj, encoder); - obj_keys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }]; - } else if (is_array(filter)) obj_keys = filter; - else { - const keys = Object.keys(obj); - obj_keys = sort ? keys.sort(sort) : keys; - } - const encoded_prefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix); - const adjusted_prefix = commaRoundTrip && is_array(obj) && obj.length === 1 ? encoded_prefix + "[]" : encoded_prefix; - if (allowEmptyArrays && is_array(obj) && obj.length === 0) return adjusted_prefix + "[]"; - for (let j = 0; j < obj_keys.length; ++j) { - const key$1 = obj_keys[j]; - const value = typeof key$1 === "object" && typeof key$1.value !== "undefined" ? key$1.value : obj[key$1]; - if (skipNulls && value === null) continue; - const encoded_key = allowDots && encodeDotInKeys ? key$1.replace(/\./g, "%2E") : key$1; - const key_prefix = is_array(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjusted_prefix, encoded_key) : adjusted_prefix : adjusted_prefix + (allowDots ? "." + encoded_key : "[" + encoded_key + "]"); - sideChannel.set(object, step); - const valueSideChannel = /* @__PURE__ */ new WeakMap(); - valueSideChannel.set(sentinel, sideChannel); - push_to_array(values, inner_stringify(value, key_prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && is_array(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format$1, formatter, encodeValuesOnly, charset, valueSideChannel)); - } - return values; -} -function normalize_stringify_options(opts = defaults) { - if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided"); - if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided"); - if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") throw new TypeError("Encoder has to be a function."); - const charset = opts.charset || defaults.charset; - if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); - let format$1 = default_format; - if (typeof opts.format !== "undefined") { - if (!has.call(formatters, opts.format)) throw new TypeError("Unknown format option provided."); - format$1 = opts.format; - } - const formatter = formatters[format$1]; - let filter = defaults.filter; - if (typeof opts.filter === "function" || is_array(opts.filter)) filter = opts.filter; - let arrayFormat; - if (opts.arrayFormat && opts.arrayFormat in array_prefix_generators) arrayFormat = opts.arrayFormat; - else if ("indices" in opts) arrayFormat = opts.indices ? "indices" : "repeat"; - else arrayFormat = defaults.arrayFormat; - if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); - const allowDots = typeof opts.allowDots === "undefined" ? !!opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; - return { - addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots, - allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, - arrayFormat, - charset, - charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel, - commaRoundTrip: !!opts.commaRoundTrip, - delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode, - encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys, - encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter, - format: format$1, - formatter, - serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === "function" ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling - }; -} -function stringify(object, opts = {}) { - let obj = object; - const options = normalize_stringify_options(opts); - let obj_keys; - let filter; - if (typeof options.filter === "function") { - filter = options.filter; - obj = filter("", obj); - } else if (is_array(options.filter)) { - filter = options.filter; - obj_keys = filter; - } - const keys = []; - if (typeof obj !== "object" || obj === null) return ""; - const generateArrayPrefix = array_prefix_generators[options.arrayFormat]; - const commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip; - if (!obj_keys) obj_keys = Object.keys(obj); - if (options.sort) obj_keys.sort(options.sort); - const sideChannel = /* @__PURE__ */ new WeakMap(); - for (let i$4 = 0; i$4 < obj_keys.length; ++i$4) { - const key$1 = obj_keys[i$4]; - if (options.skipNulls && obj[key$1] === null) continue; - push_to_array(keys, inner_stringify(obj[key$1], key$1, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel)); - } - const joined = keys.join(options.delimiter); - let prefix = options.addQueryPrefix === true ? "?" : ""; - if (options.charsetSentinel) if (options.charset === "iso-8859-1") prefix += "utf8=%26%2310003%3B&"; - else prefix += "utf8=%E2%9C%93&"; - return joined.length > 0 ? prefix + joined : ""; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/version.mjs -const VERSION = "4.104.0"; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_shims/registry.mjs -let auto = false; -let kind = void 0; -let fetch$1 = void 0; -let Request = void 0; -let Response = void 0; -let Headers = void 0; -let FormData = void 0; -let Blob$1 = void 0; -let File$1 = void 0; -let ReadableStream$2 = void 0; -let getMultipartRequestOptions = void 0; -let getDefaultAgent = void 0; -let fileFromPath = void 0; -let isFsReadStream = void 0; -function setShims(shims, options = { auto: false }) { - if (auto) throw new Error(`you must \`import 'openai/shims/${shims.kind}'\` before importing anything else from openai`); - if (kind) throw new Error(`can't \`import 'openai/shims/${shims.kind}'\` after \`import 'openai/shims/${kind}'\``); - auto = options.auto; - kind = shims.kind; - fetch$1 = shims.fetch; - Request = shims.Request; - Response = shims.Response; - Headers = shims.Headers; - FormData = shims.FormData; - Blob$1 = shims.Blob; - File$1 = shims.File; - ReadableStream$2 = shims.ReadableStream; - getMultipartRequestOptions = shims.getMultipartRequestOptions; - getDefaultAgent = shims.getDefaultAgent; - fileFromPath = shims.fileFromPath; - isFsReadStream = shims.isFsReadStream; -} - -//#endregion -//#region node_modules/.pnpm/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/isBlob.js -const isBlob = (value) => value instanceof Blob; - -//#endregion -//#region node_modules/.pnpm/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/deprecateConstructorEntries.js -const deprecateConstructorEntries = deprecate(() => {}, "Constructor \"entries\" argument is not spec-compliant and will be removed in next major release."); - -//#endregion -//#region node_modules/.pnpm/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/FormData.js -var __classPrivateFieldGet$8 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _FormData_instances, _FormData_entries, _FormData_setEntry; -var FormData$1 = class { - constructor(entries) { - _FormData_instances.add(this); - _FormData_entries.set(this, /* @__PURE__ */ new Map()); - if (entries) { - deprecateConstructorEntries(); - entries.forEach(({ name, value, fileName }) => this.append(name, value, fileName)); - } - } - static [(_FormData_entries = /* @__PURE__ */ new WeakMap(), _FormData_instances = /* @__PURE__ */ new WeakSet(), Symbol.hasInstance)](value) { - return Boolean(value && isFunction(value.constructor) && value[Symbol.toStringTag] === "FormData" && isFunction(value.append) && isFunction(value.set) && isFunction(value.get) && isFunction(value.getAll) && isFunction(value.has) && isFunction(value.delete) && isFunction(value.entries) && isFunction(value.values) && isFunction(value.keys) && isFunction(value[Symbol.iterator]) && isFunction(value.forEach)); - } - append(name, value, fileName) { - __classPrivateFieldGet$8(this, _FormData_instances, "m", _FormData_setEntry).call(this, { - name, - fileName, - append: true, - rawValue: value, - argsLength: arguments.length - }); - } - set(name, value, fileName) { - __classPrivateFieldGet$8(this, _FormData_instances, "m", _FormData_setEntry).call(this, { - name, - fileName, - append: false, - rawValue: value, - argsLength: arguments.length - }); - } - get(name) { - const field = __classPrivateFieldGet$8(this, _FormData_entries, "f").get(String(name)); - if (!field) return null; - return field[0]; - } - getAll(name) { - const field = __classPrivateFieldGet$8(this, _FormData_entries, "f").get(String(name)); - if (!field) return []; - return field.slice(); - } - has(name) { - return __classPrivateFieldGet$8(this, _FormData_entries, "f").has(String(name)); - } - delete(name) { - __classPrivateFieldGet$8(this, _FormData_entries, "f").delete(String(name)); - } - *keys() { - for (const key$1 of __classPrivateFieldGet$8(this, _FormData_entries, "f").keys()) yield key$1; - } - *entries() { - for (const name of this.keys()) { - const values = this.getAll(name); - for (const value of values) yield [name, value]; - } - } - *values() { - for (const [, value] of this) yield value; - } - [(_FormData_setEntry = function _FormData_setEntry$1({ name, rawValue, append, fileName, argsLength }) { - const methodName = append ? "append" : "set"; - if (argsLength < 2) throw new TypeError(`Failed to execute '${methodName}' on 'FormData': 2 arguments required, but only ${argsLength} present.`); - name = String(name); - let value; - if (isFile(rawValue)) value = fileName === void 0 ? rawValue : new File([rawValue], fileName, { - type: rawValue.type, - lastModified: rawValue.lastModified - }); - else if (isBlob(rawValue)) value = new File([rawValue], fileName === void 0 ? "blob" : fileName, { type: rawValue.type }); - else if (fileName) throw new TypeError(`Failed to execute '${methodName}' on 'FormData': parameter 2 is not of type 'Blob'.`); - else value = String(rawValue); - const values = __classPrivateFieldGet$8(this, _FormData_entries, "f").get(name); - if (!values) return void __classPrivateFieldGet$8(this, _FormData_entries, "f").set(name, [value]); - if (!append) return void __classPrivateFieldGet$8(this, _FormData_entries, "f").set(name, [value]); - values.push(value); - }, Symbol.iterator)]() { - return this.entries(); - } - forEach(callback, thisArg) { - for (const [name, value] of this) callback.call(thisArg, value, name, this); - } - get [Symbol.toStringTag]() { - return "FormData"; - } - [inspect.custom]() { - return this[Symbol.toStringTag]; - } -}; - -//#endregion -//#region node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js -var require_ms = __commonJS({ "node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) { - /** - * Helpers. - */ - var s = 1e3; - var m = s * 60; - var h = m * 60; - var d = h * 24; - var w = d * 7; - var y = d * 365.25; - /** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === "string" && val.length > 0) return parse(val); - else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val); - throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val)); - }; - /** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - function parse(str$1) { - str$1 = String(str$1); - if (str$1.length > 100) return; - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str$1); - if (!match) return; - var n = parseFloat(match[1]); - var type = (match[2] || "ms").toLowerCase(); - switch (type) { - case "years": - case "year": - case "yrs": - case "yr": - case "y": return n * y; - case "weeks": - case "week": - case "w": return n * w; - case "days": - case "day": - case "d": return n * d; - case "hours": - case "hour": - case "hrs": - case "hr": - case "h": return n * h; - case "minutes": - case "minute": - case "mins": - case "min": - case "m": return n * m; - case "seconds": - case "second": - case "secs": - case "sec": - case "s": return n * s; - case "milliseconds": - case "millisecond": - case "msecs": - case "msec": - case "ms": return n; - default: return void 0; - } - } - /** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - function fmtShort(ms$2) { - var msAbs = Math.abs(ms$2); - if (msAbs >= d) return Math.round(ms$2 / d) + "d"; - if (msAbs >= h) return Math.round(ms$2 / h) + "h"; - if (msAbs >= m) return Math.round(ms$2 / m) + "m"; - if (msAbs >= s) return Math.round(ms$2 / s) + "s"; - return ms$2 + "ms"; - } - /** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - function fmtLong(ms$2) { - var msAbs = Math.abs(ms$2); - if (msAbs >= d) return plural(ms$2, msAbs, d, "day"); - if (msAbs >= h) return plural(ms$2, msAbs, h, "hour"); - if (msAbs >= m) return plural(ms$2, msAbs, m, "minute"); - if (msAbs >= s) return plural(ms$2, msAbs, s, "second"); - return ms$2 + " ms"; - } - /** - * Pluralization helper. - */ - function plural(ms$2, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms$2 / n) + " " + name + (isPlural ? "s" : ""); - } -} }); - -//#endregion -//#region node_modules/.pnpm/humanize-ms@1.2.1/node_modules/humanize-ms/index.js -var require_humanize_ms = __commonJS({ "node_modules/.pnpm/humanize-ms@1.2.1/node_modules/humanize-ms/index.js"(exports, module) { - /** - * Module dependencies. - */ - var util = __require("util"); - var ms$1 = require_ms(); - module.exports = function(t) { - if (typeof t === "number") return t; - var r = ms$1(t); - if (r === void 0) { - var err = new Error(util.format("humanize-ms(%j) result undefined", t)); - console.warn(err.stack); - } - return r; - }; -} }); - -//#endregion -//#region node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/lib/constants.js -var require_constants = __commonJS({ "node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/lib/constants.js"(exports, module) { - module.exports = { - CURRENT_ID: Symbol("agentkeepalive#currentId"), - CREATE_ID: Symbol("agentkeepalive#createId"), - INIT_SOCKET: Symbol("agentkeepalive#initSocket"), - CREATE_HTTPS_CONNECTION: Symbol("agentkeepalive#createHttpsConnection"), - SOCKET_CREATED_TIME: Symbol("agentkeepalive#socketCreatedTime"), - SOCKET_NAME: Symbol("agentkeepalive#socketName"), - SOCKET_REQUEST_COUNT: Symbol("agentkeepalive#socketRequestCount"), - SOCKET_REQUEST_FINISHED_COUNT: Symbol("agentkeepalive#socketRequestFinishedCount") - }; -} }); - -//#endregion -//#region node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/lib/agent.js -var require_agent = __commonJS({ "node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/lib/agent.js"(exports, module) { - const OriginalAgent = __require("http").Agent; - const ms = require_humanize_ms(); - const debug$1 = __require("util").debuglog("agentkeepalive"); - const { INIT_SOCKET: INIT_SOCKET$1, CURRENT_ID, CREATE_ID, SOCKET_CREATED_TIME, SOCKET_NAME, SOCKET_REQUEST_COUNT, SOCKET_REQUEST_FINISHED_COUNT } = require_constants(); - let defaultTimeoutListenerCount = 1; - const majorVersion = parseInt(process.version.split(".", 1)[0].substring(1)); - if (majorVersion >= 11 && majorVersion <= 12) defaultTimeoutListenerCount = 2; - else if (majorVersion >= 13) defaultTimeoutListenerCount = 3; - function deprecate$1(message) { - console.log("[agentkeepalive:deprecated] %s", message); - } - var Agent = class extends OriginalAgent { - constructor(options) { - options = options || {}; - options.keepAlive = options.keepAlive !== false; - if (options.freeSocketTimeout === void 0) options.freeSocketTimeout = 4e3; - if (options.keepAliveTimeout) { - deprecate$1("options.keepAliveTimeout is deprecated, please use options.freeSocketTimeout instead"); - options.freeSocketTimeout = options.keepAliveTimeout; - delete options.keepAliveTimeout; - } - if (options.freeSocketKeepAliveTimeout) { - deprecate$1("options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead"); - options.freeSocketTimeout = options.freeSocketKeepAliveTimeout; - delete options.freeSocketKeepAliveTimeout; - } - if (options.timeout === void 0) options.timeout = Math.max(options.freeSocketTimeout * 2, 8e3); - options.timeout = ms(options.timeout); - options.freeSocketTimeout = ms(options.freeSocketTimeout); - options.socketActiveTTL = options.socketActiveTTL ? ms(options.socketActiveTTL) : 0; - super(options); - this[CURRENT_ID] = 0; - this.createSocketCount = 0; - this.createSocketCountLastCheck = 0; - this.createSocketErrorCount = 0; - this.createSocketErrorCountLastCheck = 0; - this.closeSocketCount = 0; - this.closeSocketCountLastCheck = 0; - this.errorSocketCount = 0; - this.errorSocketCountLastCheck = 0; - this.requestCount = 0; - this.requestCountLastCheck = 0; - this.timeoutSocketCount = 0; - this.timeoutSocketCountLastCheck = 0; - this.on("free", (socket) => { - const timeout = this.calcSocketTimeout(socket); - if (timeout > 0 && socket.timeout !== timeout) socket.setTimeout(timeout); - }); - } - get freeSocketKeepAliveTimeout() { - deprecate$1("agent.freeSocketKeepAliveTimeout is deprecated, please use agent.options.freeSocketTimeout instead"); - return this.options.freeSocketTimeout; - } - get timeout() { - deprecate$1("agent.timeout is deprecated, please use agent.options.timeout instead"); - return this.options.timeout; - } - get socketActiveTTL() { - deprecate$1("agent.socketActiveTTL is deprecated, please use agent.options.socketActiveTTL instead"); - return this.options.socketActiveTTL; - } - calcSocketTimeout(socket) { - /** - * return <= 0: should free socket - * return > 0: should update socket timeout - * return undefined: not find custom timeout - */ - let freeSocketTimeout = this.options.freeSocketTimeout; - const socketActiveTTL = this.options.socketActiveTTL; - if (socketActiveTTL) { - const aliveTime = Date.now() - socket[SOCKET_CREATED_TIME]; - const diff = socketActiveTTL - aliveTime; - if (diff <= 0) return diff; - if (freeSocketTimeout && diff < freeSocketTimeout) freeSocketTimeout = diff; - } - if (freeSocketTimeout) { - const customFreeSocketTimeout = socket.freeSocketTimeout || socket.freeSocketKeepAliveTimeout; - return customFreeSocketTimeout || freeSocketTimeout; - } - } - keepSocketAlive(socket) { - const result = super.keepSocketAlive(socket); - if (!result) return result; - const customTimeout = this.calcSocketTimeout(socket); - if (typeof customTimeout === "undefined") return true; - if (customTimeout <= 0) { - debug$1("%s(requests: %s, finished: %s) free but need to destroy by TTL, request count %s, diff is %s", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT], customTimeout); - return false; - } - if (socket.timeout !== customTimeout) socket.setTimeout(customTimeout); - return true; - } - reuseSocket(...args) { - super.reuseSocket(...args); - const socket = args[0]; - const req = args[1]; - req.reusedSocket = true; - const agentTimeout = this.options.timeout; - if (getSocketTimeout(socket) !== agentTimeout) { - socket.setTimeout(agentTimeout); - debug$1("%s reset timeout to %sms", socket[SOCKET_NAME], agentTimeout); - } - socket[SOCKET_REQUEST_COUNT]++; - debug$1("%s(requests: %s, finished: %s) reuse on addRequest, timeout %sms", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT], getSocketTimeout(socket)); - } - [CREATE_ID]() { - const id = this[CURRENT_ID]++; - if (this[CURRENT_ID] === Number.MAX_SAFE_INTEGER) this[CURRENT_ID] = 0; - return id; - } - [INIT_SOCKET$1](socket, options) { - if (options.timeout) { - const timeout = getSocketTimeout(socket); - if (!timeout) socket.setTimeout(options.timeout); - } - if (this.options.keepAlive) socket.setNoDelay(true); - this.createSocketCount++; - if (this.options.socketActiveTTL) socket[SOCKET_CREATED_TIME] = Date.now(); - socket[SOCKET_NAME] = `sock[${this[CREATE_ID]()}#${options._agentKey}]`.split("-----BEGIN", 1)[0]; - socket[SOCKET_REQUEST_COUNT] = 1; - socket[SOCKET_REQUEST_FINISHED_COUNT] = 0; - installListeners(this, socket, options); - } - createConnection(options, oncreate) { - let called = false; - const onNewCreate = (err, socket) => { - if (called) return; - called = true; - if (err) { - this.createSocketErrorCount++; - return oncreate(err); - } - this[INIT_SOCKET$1](socket, options); - oncreate(err, socket); - }; - const newSocket = super.createConnection(options, onNewCreate); - if (newSocket) onNewCreate(null, newSocket); - return newSocket; - } - get statusChanged() { - const changed = this.createSocketCount !== this.createSocketCountLastCheck || this.createSocketErrorCount !== this.createSocketErrorCountLastCheck || this.closeSocketCount !== this.closeSocketCountLastCheck || this.errorSocketCount !== this.errorSocketCountLastCheck || this.timeoutSocketCount !== this.timeoutSocketCountLastCheck || this.requestCount !== this.requestCountLastCheck; - if (changed) { - this.createSocketCountLastCheck = this.createSocketCount; - this.createSocketErrorCountLastCheck = this.createSocketErrorCount; - this.closeSocketCountLastCheck = this.closeSocketCount; - this.errorSocketCountLastCheck = this.errorSocketCount; - this.timeoutSocketCountLastCheck = this.timeoutSocketCount; - this.requestCountLastCheck = this.requestCount; - } - return changed; - } - getCurrentStatus() { - return { - createSocketCount: this.createSocketCount, - createSocketErrorCount: this.createSocketErrorCount, - closeSocketCount: this.closeSocketCount, - errorSocketCount: this.errorSocketCount, - timeoutSocketCount: this.timeoutSocketCount, - requestCount: this.requestCount, - freeSockets: inspect$1(this.freeSockets), - sockets: inspect$1(this.sockets), - requests: inspect$1(this.requests) - }; - } - }; - function getSocketTimeout(socket) { - return socket.timeout || socket._idleTimeout; - } - function installListeners(agent, socket, options) { - debug$1("%s create, timeout %sms", socket[SOCKET_NAME], getSocketTimeout(socket)); - function onFree() { - if (!socket._httpMessage && socket[SOCKET_REQUEST_COUNT] === 1) return; - socket[SOCKET_REQUEST_FINISHED_COUNT]++; - agent.requestCount++; - debug$1("%s(requests: %s, finished: %s) free", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT]); - const name = agent.getName(options); - if (socket.writable && agent.requests[name] && agent.requests[name].length) { - socket[SOCKET_REQUEST_COUNT]++; - debug$1("%s(requests: %s, finished: %s) will be reuse on agent free event", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT]); - } - } - socket.on("free", onFree); - function onClose(isError) { - debug$1("%s(requests: %s, finished: %s) close, isError: %s", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT], isError); - agent.closeSocketCount++; - } - socket.on("close", onClose); - function onTimeout() { - const listenerCount = socket.listeners("timeout").length; - const timeout = getSocketTimeout(socket); - const req = socket._httpMessage; - const reqTimeoutListenerCount = req && req.listeners("timeout").length || 0; - debug$1("%s(requests: %s, finished: %s) timeout after %sms, listeners %s, defaultTimeoutListenerCount %s, hasHttpRequest %s, HttpRequest timeoutListenerCount %s", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT], timeout, listenerCount, defaultTimeoutListenerCount, !!req, reqTimeoutListenerCount); - if (debug$1.enabled) debug$1("timeout listeners: %s", socket.listeners("timeout").map((f) => f.name).join(", ")); - agent.timeoutSocketCount++; - const name = agent.getName(options); - if (agent.freeSockets[name] && agent.freeSockets[name].indexOf(socket) !== -1) { - socket.destroy(); - agent.removeSocket(socket, options); - debug$1("%s is free, destroy quietly", socket[SOCKET_NAME]); - } else if (reqTimeoutListenerCount === 0) { - const error = new Error("Socket timeout"); - error.code = "ERR_SOCKET_TIMEOUT"; - error.timeout = timeout; - socket.destroy(error); - agent.removeSocket(socket, options); - debug$1("%s destroy with timeout error", socket[SOCKET_NAME]); - } - } - socket.on("timeout", onTimeout); - function onError(err) { - const listenerCount = socket.listeners("error").length; - debug$1("%s(requests: %s, finished: %s) error: %s, listenerCount: %s", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT], err, listenerCount); - agent.errorSocketCount++; - if (listenerCount === 1) { - debug$1("%s emit uncaught error event", socket[SOCKET_NAME]); - socket.removeListener("error", onError); - socket.emit("error", err); - } - } - socket.on("error", onError); - function onRemove() { - debug$1("%s(requests: %s, finished: %s) agentRemove", socket[SOCKET_NAME], socket[SOCKET_REQUEST_COUNT], socket[SOCKET_REQUEST_FINISHED_COUNT]); - socket.removeListener("close", onClose); - socket.removeListener("error", onError); - socket.removeListener("free", onFree); - socket.removeListener("timeout", onTimeout); - socket.removeListener("agentRemove", onRemove); - } - socket.on("agentRemove", onRemove); - } - module.exports = Agent; - function inspect$1(obj) { - const res = {}; - for (const key$1 in obj) res[key$1] = obj[key$1].length; - return res; - } -} }); - -//#endregion -//#region node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/lib/https_agent.js -var require_https_agent = __commonJS({ "node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/lib/https_agent.js"(exports, module) { - const OriginalHttpsAgent = __require("https").Agent; - const HttpAgent$1 = require_agent(); - const { INIT_SOCKET, CREATE_HTTPS_CONNECTION } = require_constants(); - var HttpsAgent = class extends HttpAgent$1 { - constructor(options) { - super(options); - this.defaultPort = 443; - this.protocol = "https:"; - this.maxCachedSessions = this.options.maxCachedSessions; - /* istanbul ignore next */ - if (this.maxCachedSessions === void 0) this.maxCachedSessions = 100; - this._sessionCache = { - map: {}, - list: [] - }; - } - createConnection(options, oncreate) { - const socket = this[CREATE_HTTPS_CONNECTION](options, oncreate); - this[INIT_SOCKET](socket, options); - return socket; - } - }; - HttpsAgent.prototype[CREATE_HTTPS_CONNECTION] = OriginalHttpsAgent.prototype.createConnection; - [ - "getName", - "_getSession", - "_cacheSession", - "_evictSession" - ].forEach(function(method) { - /* istanbul ignore next */ - if (typeof OriginalHttpsAgent.prototype[method] === "function") HttpsAgent.prototype[method] = OriginalHttpsAgent.prototype[method]; - }); - module.exports = HttpsAgent; -} }); - -//#endregion -//#region node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/index.js -var require_agentkeepalive = __commonJS({ "node_modules/.pnpm/agentkeepalive@4.6.0/node_modules/agentkeepalive/index.js"(exports, module) { - const HttpAgent = require_agent(); - module.exports = HttpAgent; - module.exports.HttpAgent = HttpAgent; - module.exports.HttpsAgent = require_https_agent(); - module.exports.constants = require_constants(); -} }); - -//#endregion -//#region node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js -var require_event_target_shim = __commonJS({ "node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js"(exports, module) { - Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {object} PrivateData - * @property {EventTarget} eventTarget The event target. - * @property {{type:string}} event The original event object. - * @property {number} eventPhase The current event phase. - * @property {EventTarget|null} currentTarget The current event target. - * @property {boolean} canceled The flag to prevent default. - * @property {boolean} stopped The flag to stop propagation. - * @property {boolean} immediateStopped The flag to stop propagation immediately. - * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null. - * @property {number} timeStamp The unix time. - * @private - */ - /** - * Private data for event wrappers. - * @type {WeakMap} - * @private - */ - const privateData = /* @__PURE__ */ new WeakMap(); - /** - * Cache for wrapper classes. - * @type {WeakMap} - * @private - */ - const wrappers = /* @__PURE__ */ new WeakMap(); - /** - * Get private data. - * @param {Event} event The event object to get private data. - * @returns {PrivateData} The private data of the event. - * @private - */ - function pd(event) { - const retv = privateData.get(event); - console.assert(retv != null, "'this' is expected an Event object, but got", event); - return retv; - } - /** - * https://dom.spec.whatwg.org/#set-the-canceled-flag - * @param data {PrivateData} private data. - */ - function setCancelFlag(data) { - if (data.passiveListener != null) { - if (typeof console !== "undefined" && typeof console.error === "function") console.error("Unable to preventDefault inside passive event listener invocation.", data.passiveListener); - return; - } - if (!data.event.cancelable) return; - data.canceled = true; - if (typeof data.event.preventDefault === "function") data.event.preventDefault(); - } - /** - * @see https://dom.spec.whatwg.org/#interface-event - * @private - */ - /** - * The event wrapper. - * @constructor - * @param {EventTarget} eventTarget The event target of this dispatching. - * @param {Event|{type:string}} event The original event to wrap. - */ - function Event(eventTarget, event) { - privateData.set(this, { - eventTarget, - event, - eventPhase: 2, - currentTarget: eventTarget, - canceled: false, - stopped: false, - immediateStopped: false, - passiveListener: null, - timeStamp: event.timeStamp || Date.now() - }); - Object.defineProperty(this, "isTrusted", { - value: false, - enumerable: true - }); - const keys = Object.keys(event); - for (let i$4 = 0; i$4 < keys.length; ++i$4) { - const key$1 = keys[i$4]; - if (!(key$1 in this)) Object.defineProperty(this, key$1, defineRedirectDescriptor(key$1)); - } - } - Event.prototype = { - get type() { - return pd(this).event.type; - }, - get target() { - return pd(this).eventTarget; - }, - get currentTarget() { - return pd(this).currentTarget; - }, - composedPath() { - const currentTarget = pd(this).currentTarget; - if (currentTarget == null) return []; - return [currentTarget]; - }, - get NONE() { - return 0; - }, - get CAPTURING_PHASE() { - return 1; - }, - get AT_TARGET() { - return 2; - }, - get BUBBLING_PHASE() { - return 3; - }, - get eventPhase() { - return pd(this).eventPhase; - }, - stopPropagation() { - const data = pd(this); - data.stopped = true; - if (typeof data.event.stopPropagation === "function") data.event.stopPropagation(); - }, - stopImmediatePropagation() { - const data = pd(this); - data.stopped = true; - data.immediateStopped = true; - if (typeof data.event.stopImmediatePropagation === "function") data.event.stopImmediatePropagation(); - }, - get bubbles() { - return Boolean(pd(this).event.bubbles); - }, - get cancelable() { - return Boolean(pd(this).event.cancelable); - }, - preventDefault() { - setCancelFlag(pd(this)); - }, - get defaultPrevented() { - return pd(this).canceled; - }, - get composed() { - return Boolean(pd(this).event.composed); - }, - get timeStamp() { - return pd(this).timeStamp; - }, - get srcElement() { - return pd(this).eventTarget; - }, - get cancelBubble() { - return pd(this).stopped; - }, - set cancelBubble(value) { - if (!value) return; - const data = pd(this); - data.stopped = true; - if (typeof data.event.cancelBubble === "boolean") data.event.cancelBubble = true; - }, - get returnValue() { - return !pd(this).canceled; - }, - set returnValue(value) { - if (!value) setCancelFlag(pd(this)); - }, - initEvent() {} - }; - Object.defineProperty(Event.prototype, "constructor", { - value: Event, - configurable: true, - writable: true - }); - if (typeof window !== "undefined" && typeof window.Event !== "undefined") { - Object.setPrototypeOf(Event.prototype, window.Event.prototype); - wrappers.set(window.Event.prototype, Event); - } - /** - * Get the property descriptor to redirect a given property. - * @param {string} key Property name to define property descriptor. - * @returns {PropertyDescriptor} The property descriptor to redirect the property. - * @private - */ - function defineRedirectDescriptor(key$1) { - return { - get() { - return pd(this).event[key$1]; - }, - set(value) { - pd(this).event[key$1] = value; - }, - configurable: true, - enumerable: true - }; - } - /** - * Get the property descriptor to call a given method property. - * @param {string} key Property name to define property descriptor. - * @returns {PropertyDescriptor} The property descriptor to call the method property. - * @private - */ - function defineCallDescriptor(key$1) { - return { - value() { - const event = pd(this).event; - return event[key$1].apply(event, arguments); - }, - configurable: true, - enumerable: true - }; - } - /** - * Define new wrapper class. - * @param {Function} BaseEvent The base wrapper class. - * @param {Object} proto The prototype of the original event. - * @returns {Function} The defined wrapper class. - * @private - */ - function defineWrapper(BaseEvent, proto) { - const keys = Object.keys(proto); - if (keys.length === 0) return BaseEvent; - /** CustomEvent */ - function CustomEvent(eventTarget, event) { - BaseEvent.call(this, eventTarget, event); - } - CustomEvent.prototype = Object.create(BaseEvent.prototype, { constructor: { - value: CustomEvent, - configurable: true, - writable: true - } }); - for (let i$4 = 0; i$4 < keys.length; ++i$4) { - const key$1 = keys[i$4]; - if (!(key$1 in BaseEvent.prototype)) { - const descriptor = Object.getOwnPropertyDescriptor(proto, key$1); - const isFunc = typeof descriptor.value === "function"; - Object.defineProperty(CustomEvent.prototype, key$1, isFunc ? defineCallDescriptor(key$1) : defineRedirectDescriptor(key$1)); - } - } - return CustomEvent; - } - /** - * Get the wrapper class of a given prototype. - * @param {Object} proto The prototype of the original event to get its wrapper. - * @returns {Function} The wrapper class. - * @private - */ - function getWrapper(proto) { - if (proto == null || proto === Object.prototype) return Event; - let wrapper = wrappers.get(proto); - if (wrapper == null) { - wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto); - wrappers.set(proto, wrapper); - } - return wrapper; - } - /** - * Wrap a given event to management a dispatching. - * @param {EventTarget} eventTarget The event target of this dispatching. - * @param {Object} event The event to wrap. - * @returns {Event} The wrapper instance. - * @private - */ - function wrapEvent(eventTarget, event) { - const Wrapper = getWrapper(Object.getPrototypeOf(event)); - return new Wrapper(eventTarget, event); - } - /** - * Get the immediateStopped flag of a given event. - * @param {Event} event The event to get. - * @returns {boolean} The flag to stop propagation immediately. - * @private - */ - function isStopped(event) { - return pd(event).immediateStopped; - } - /** - * Set the current event phase of a given event. - * @param {Event} event The event to set current target. - * @param {number} eventPhase New event phase. - * @returns {void} - * @private - */ - function setEventPhase(event, eventPhase) { - pd(event).eventPhase = eventPhase; - } - /** - * Set the current target of a given event. - * @param {Event} event The event to set current target. - * @param {EventTarget|null} currentTarget New current target. - * @returns {void} - * @private - */ - function setCurrentTarget(event, currentTarget) { - pd(event).currentTarget = currentTarget; - } - /** - * Set a passive listener of a given event. - * @param {Event} event The event to set current target. - * @param {Function|null} passiveListener New passive listener. - * @returns {void} - * @private - */ - function setPassiveListener(event, passiveListener) { - pd(event).passiveListener = passiveListener; - } - /** - * @typedef {object} ListenerNode - * @property {Function} listener - * @property {1|2|3} listenerType - * @property {boolean} passive - * @property {boolean} once - * @property {ListenerNode|null} next - * @private - */ - /** - * @type {WeakMap>} - * @private - */ - const listenersMap = /* @__PURE__ */ new WeakMap(); - const CAPTURE = 1; - const BUBBLE = 2; - const ATTRIBUTE = 3; - /** - * Check whether a given value is an object or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is an object. - */ - function isObject(x) { - return x !== null && typeof x === "object"; - } - /** - * Get listeners. - * @param {EventTarget} eventTarget The event target to get. - * @returns {Map} The listeners. - * @private - */ - function getListeners(eventTarget) { - const listeners = listenersMap.get(eventTarget); - if (listeners == null) throw new TypeError("'this' is expected an EventTarget object, but got another value."); - return listeners; - } - /** - * Get the property descriptor for the event attribute of a given event. - * @param {string} eventName The event name to get property descriptor. - * @returns {PropertyDescriptor} The property descriptor. - * @private - */ - function defineEventAttributeDescriptor(eventName) { - return { - get() { - const listeners = getListeners(this); - let node = listeners.get(eventName); - while (node != null) { - if (node.listenerType === ATTRIBUTE) return node.listener; - node = node.next; - } - return null; - }, - set(listener) { - if (typeof listener !== "function" && !isObject(listener)) listener = null; - const listeners = getListeners(this); - let prev = null; - let node = listeners.get(eventName); - while (node != null) { - if (node.listenerType === ATTRIBUTE) if (prev !== null) prev.next = node.next; - else if (node.next !== null) listeners.set(eventName, node.next); - else listeners.delete(eventName); - else prev = node; - node = node.next; - } - if (listener !== null) { - const newNode = { - listener, - listenerType: ATTRIBUTE, - passive: false, - once: false, - next: null - }; - if (prev === null) listeners.set(eventName, newNode); - else prev.next = newNode; - } - }, - configurable: true, - enumerable: true - }; - } - /** - * Define an event attribute (e.g. `eventTarget.onclick`). - * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite. - * @param {string} eventName The event name to define. - * @returns {void} - */ - function defineEventAttribute(eventTargetPrototype, eventName) { - Object.defineProperty(eventTargetPrototype, `on${eventName}`, defineEventAttributeDescriptor(eventName)); - } - /** - * Define a custom EventTarget with event attributes. - * @param {string[]} eventNames Event names for event attributes. - * @returns {EventTarget} The custom EventTarget. - * @private - */ - function defineCustomEventTarget(eventNames) { - /** CustomEventTarget */ - function CustomEventTarget() { - EventTarget.call(this); - } - CustomEventTarget.prototype = Object.create(EventTarget.prototype, { constructor: { - value: CustomEventTarget, - configurable: true, - writable: true - } }); - for (let i$4 = 0; i$4 < eventNames.length; ++i$4) defineEventAttribute(CustomEventTarget.prototype, eventNames[i$4]); - return CustomEventTarget; - } - /** - * EventTarget. - * - * - This is constructor if no arguments. - * - This is a function which returns a CustomEventTarget constructor if there are arguments. - * - * For example: - * - * class A extends EventTarget {} - * class B extends EventTarget("message") {} - * class C extends EventTarget("message", "error") {} - * class D extends EventTarget(["message", "error"]) {} - */ - function EventTarget() { - if (this instanceof EventTarget) { - listenersMap.set(this, /* @__PURE__ */ new Map()); - return; - } - if (arguments.length === 1 && Array.isArray(arguments[0])) return defineCustomEventTarget(arguments[0]); - if (arguments.length > 0) { - const types = new Array(arguments.length); - for (let i$4 = 0; i$4 < arguments.length; ++i$4) types[i$4] = arguments[i$4]; - return defineCustomEventTarget(types); - } - throw new TypeError("Cannot call a class as a function"); - } - EventTarget.prototype = { - addEventListener(eventName, listener, options) { - if (listener == null) return; - if (typeof listener !== "function" && !isObject(listener)) throw new TypeError("'listener' should be a function or an object."); - const listeners = getListeners(this); - const optionsIsObj = isObject(options); - const capture = optionsIsObj ? Boolean(options.capture) : Boolean(options); - const listenerType = capture ? CAPTURE : BUBBLE; - const newNode = { - listener, - listenerType, - passive: optionsIsObj && Boolean(options.passive), - once: optionsIsObj && Boolean(options.once), - next: null - }; - let node = listeners.get(eventName); - if (node === void 0) { - listeners.set(eventName, newNode); - return; - } - let prev = null; - while (node != null) { - if (node.listener === listener && node.listenerType === listenerType) return; - prev = node; - node = node.next; - } - prev.next = newNode; - }, - removeEventListener(eventName, listener, options) { - if (listener == null) return; - const listeners = getListeners(this); - const capture = isObject(options) ? Boolean(options.capture) : Boolean(options); - const listenerType = capture ? CAPTURE : BUBBLE; - let prev = null; - let node = listeners.get(eventName); - while (node != null) { - if (node.listener === listener && node.listenerType === listenerType) { - if (prev !== null) prev.next = node.next; - else if (node.next !== null) listeners.set(eventName, node.next); - else listeners.delete(eventName); - return; - } - prev = node; - node = node.next; - } - }, - dispatchEvent(event) { - if (event == null || typeof event.type !== "string") throw new TypeError("\"event.type\" should be a string."); - const listeners = getListeners(this); - const eventName = event.type; - let node = listeners.get(eventName); - if (node == null) return true; - const wrappedEvent = wrapEvent(this, event); - let prev = null; - while (node != null) { - if (node.once) if (prev !== null) prev.next = node.next; - else if (node.next !== null) listeners.set(eventName, node.next); - else listeners.delete(eventName); - else prev = node; - setPassiveListener(wrappedEvent, node.passive ? node.listener : null); - if (typeof node.listener === "function") try { - node.listener.call(this, wrappedEvent); - } catch (err) { - if (typeof console !== "undefined" && typeof console.error === "function") console.error(err); - } - else if (node.listenerType !== ATTRIBUTE && typeof node.listener.handleEvent === "function") node.listener.handleEvent(wrappedEvent); - if (isStopped(wrappedEvent)) break; - node = node.next; - } - setPassiveListener(wrappedEvent, null); - setEventPhase(wrappedEvent, 0); - setCurrentTarget(wrappedEvent, null); - return !wrappedEvent.defaultPrevented; - } - }; - Object.defineProperty(EventTarget.prototype, "constructor", { - value: EventTarget, - configurable: true, - writable: true - }); - if (typeof window !== "undefined" && typeof window.EventTarget !== "undefined") Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype); - exports.defineEventAttribute = defineEventAttribute; - exports.EventTarget = EventTarget; - exports.default = EventTarget; - module.exports = EventTarget; - module.exports.EventTarget = module.exports["default"] = EventTarget; - module.exports.defineEventAttribute = defineEventAttribute; -} }); - -//#endregion -//#region node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js -var require_abort_controller = __commonJS({ "node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js"(exports, module) { - Object.defineProperty(exports, "__esModule", { value: true }); - var eventTargetShim = require_event_target_shim(); - /** - * The signal class. - * @see https://dom.spec.whatwg.org/#abortsignal - */ - var AbortSignal$1 = class extends eventTargetShim.EventTarget { - /** - * AbortSignal cannot be constructed directly. - */ - constructor() { - super(); - throw new TypeError("AbortSignal cannot be constructed directly"); - } - /** - * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. - */ - get aborted() { - const aborted = abortedFlags.get(this); - if (typeof aborted !== "boolean") throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); - return aborted; - } - }; - eventTargetShim.defineEventAttribute(AbortSignal$1.prototype, "abort"); - /** - * Create an AbortSignal object. - */ - function createAbortSignal() { - const signal = Object.create(AbortSignal$1.prototype); - eventTargetShim.EventTarget.call(signal); - abortedFlags.set(signal, false); - return signal; - } - /** - * Abort a given signal. - */ - function abortSignal(signal) { - if (abortedFlags.get(signal) !== false) return; - abortedFlags.set(signal, true); - signal.dispatchEvent({ type: "abort" }); - } - /** - * Aborted flag for each instances. - */ - const abortedFlags = /* @__PURE__ */ new WeakMap(); - Object.defineProperties(AbortSignal$1.prototype, { aborted: { enumerable: true } }); - if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") Object.defineProperty(AbortSignal$1.prototype, Symbol.toStringTag, { - configurable: true, - value: "AbortSignal" - }); - /** - * The AbortController. - * @see https://dom.spec.whatwg.org/#abortcontroller - */ - var AbortController$1 = class { - /** - * Initialize this controller. - */ - constructor() { - signals.set(this, createAbortSignal()); - } - /** - * Returns the `AbortSignal` object associated with this object. - */ - get signal() { - return getSignal(this); - } - /** - * Abort and signal to any observers that the associated activity is to be aborted. - */ - abort() { - abortSignal(getSignal(this)); - } - }; - /** - * Associated signals. - */ - const signals = /* @__PURE__ */ new WeakMap(); - /** - * Get the associated signal of a given controller. - */ - function getSignal(controller) { - const signal = signals.get(controller); - if (signal == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); - return signal; - } - Object.defineProperties(AbortController$1.prototype, { - signal: { enumerable: true }, - abort: { enumerable: true } - }); - if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") Object.defineProperty(AbortController$1.prototype, Symbol.toStringTag, { - configurable: true, - value: "AbortController" - }); - exports.AbortController = AbortController$1; - exports.AbortSignal = AbortSignal$1; - exports.default = AbortController$1; - module.exports = AbortController$1; - module.exports.AbortController = module.exports["default"] = AbortController$1; - module.exports.AbortSignal = AbortSignal$1; -} }); - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/createBoundary.js -const alphabet = "abcdefghijklmnopqrstuvwxyz0123456789"; -function createBoundary() { - let size = 16; - let res = ""; - while (size--) res += alphabet[Math.random() * alphabet.length << 0]; - return res; -} -var createBoundary_default = createBoundary; - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/isPlainObject.js -const getType = (value) => Object.prototype.toString.call(value).slice(8, -1).toLowerCase(); -function isPlainObject(value) { - if (getType(value) !== "object") return false; - const pp = Object.getPrototypeOf(value); - if (pp === null || pp === void 0) return true; - const Ctor = pp.constructor && pp.constructor.toString(); - return Ctor === Object.toString(); -} -var isPlainObject_default = isPlainObject; - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/normalizeValue.js -const normalizeValue = (value) => String(value).replace(/\r|\n/g, (match, i$4, str$1) => { - if (match === "\r" && str$1[i$4 + 1] !== "\n" || match === "\n" && str$1[i$4 - 1] !== "\r") return "\r\n"; - return match; -}); -var normalizeValue_default = normalizeValue; - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/escapeName.js -const escapeName = (name) => String(name).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22"); -var escapeName_default = escapeName; - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/isFunction.js -const isFunction$1 = (value) => typeof value === "function"; -var isFunction_default = isFunction$1; - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/isFileLike.js -const isFileLike$1 = (value) => Boolean(value && typeof value === "object" && isFunction_default(value.constructor) && value[Symbol.toStringTag] === "File" && isFunction_default(value.stream) && value.name != null && value.size != null && value.lastModified != null); - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/util/isFormData.js -const isFormData = (value) => Boolean(value && isFunction_default(value.constructor) && value[Symbol.toStringTag] === "FormData" && isFunction_default(value.append) && isFunction_default(value.getAll) && isFunction_default(value.entries) && isFunction_default(value[Symbol.iterator])); - -//#endregion -//#region node_modules/.pnpm/form-data-encoder@1.7.2/node_modules/form-data-encoder/lib/esm/FormDataEncoder.js -var __classPrivateFieldSet$6 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var __classPrivateFieldGet$7 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _FormDataEncoder_instances, _FormDataEncoder_CRLF, _FormDataEncoder_CRLF_BYTES, _FormDataEncoder_CRLF_BYTES_LENGTH, _FormDataEncoder_DASHES, _FormDataEncoder_encoder, _FormDataEncoder_footer, _FormDataEncoder_form, _FormDataEncoder_options, _FormDataEncoder_getFieldHeader; -const defaultOptions$1 = { enableAdditionalHeaders: false }; -var FormDataEncoder = class { - constructor(form, boundaryOrOptions, options) { - _FormDataEncoder_instances.add(this); - _FormDataEncoder_CRLF.set(this, "\r\n"); - _FormDataEncoder_CRLF_BYTES.set(this, void 0); - _FormDataEncoder_CRLF_BYTES_LENGTH.set(this, void 0); - _FormDataEncoder_DASHES.set(this, "-".repeat(2)); - _FormDataEncoder_encoder.set(this, new TextEncoder()); - _FormDataEncoder_footer.set(this, void 0); - _FormDataEncoder_form.set(this, void 0); - _FormDataEncoder_options.set(this, void 0); - if (!isFormData(form)) throw new TypeError("Expected first argument to be a FormData instance."); - let boundary; - if (isPlainObject_default(boundaryOrOptions)) options = boundaryOrOptions; - else boundary = boundaryOrOptions; - if (!boundary) boundary = createBoundary_default(); - if (typeof boundary !== "string") throw new TypeError("Expected boundary argument to be a string."); - if (options && !isPlainObject_default(options)) throw new TypeError("Expected options argument to be an object."); - __classPrivateFieldSet$6(this, _FormDataEncoder_form, form, "f"); - __classPrivateFieldSet$6(this, _FormDataEncoder_options, { - ...defaultOptions$1, - ...options - }, "f"); - __classPrivateFieldSet$6(this, _FormDataEncoder_CRLF_BYTES, __classPrivateFieldGet$7(this, _FormDataEncoder_encoder, "f").encode(__classPrivateFieldGet$7(this, _FormDataEncoder_CRLF, "f")), "f"); - __classPrivateFieldSet$6(this, _FormDataEncoder_CRLF_BYTES_LENGTH, __classPrivateFieldGet$7(this, _FormDataEncoder_CRLF_BYTES, "f").byteLength, "f"); - this.boundary = `form-data-boundary-${boundary}`; - this.contentType = `multipart/form-data; boundary=${this.boundary}`; - __classPrivateFieldSet$6(this, _FormDataEncoder_footer, __classPrivateFieldGet$7(this, _FormDataEncoder_encoder, "f").encode(`${__classPrivateFieldGet$7(this, _FormDataEncoder_DASHES, "f")}${this.boundary}${__classPrivateFieldGet$7(this, _FormDataEncoder_DASHES, "f")}${__classPrivateFieldGet$7(this, _FormDataEncoder_CRLF, "f").repeat(2)}`), "f"); - this.contentLength = String(this.getContentLength()); - this.headers = Object.freeze({ - "Content-Type": this.contentType, - "Content-Length": this.contentLength - }); - Object.defineProperties(this, { - boundary: { - writable: false, - configurable: false - }, - contentType: { - writable: false, - configurable: false - }, - contentLength: { - writable: false, - configurable: false - }, - headers: { - writable: false, - configurable: false - } - }); - } - getContentLength() { - let length = 0; - for (const [name, raw] of __classPrivateFieldGet$7(this, _FormDataEncoder_form, "f")) { - const value = isFileLike$1(raw) ? raw : __classPrivateFieldGet$7(this, _FormDataEncoder_encoder, "f").encode(normalizeValue_default(raw)); - length += __classPrivateFieldGet$7(this, _FormDataEncoder_instances, "m", _FormDataEncoder_getFieldHeader).call(this, name, value).byteLength; - length += isFileLike$1(value) ? value.size : value.byteLength; - length += __classPrivateFieldGet$7(this, _FormDataEncoder_CRLF_BYTES_LENGTH, "f"); - } - return length + __classPrivateFieldGet$7(this, _FormDataEncoder_footer, "f").byteLength; - } - *values() { - for (const [name, raw] of __classPrivateFieldGet$7(this, _FormDataEncoder_form, "f").entries()) { - const value = isFileLike$1(raw) ? raw : __classPrivateFieldGet$7(this, _FormDataEncoder_encoder, "f").encode(normalizeValue_default(raw)); - yield __classPrivateFieldGet$7(this, _FormDataEncoder_instances, "m", _FormDataEncoder_getFieldHeader).call(this, name, value); - yield value; - yield __classPrivateFieldGet$7(this, _FormDataEncoder_CRLF_BYTES, "f"); - } - yield __classPrivateFieldGet$7(this, _FormDataEncoder_footer, "f"); - } - async *encode() { - for (const part of this.values()) if (isFileLike$1(part)) yield* part.stream(); - else yield part; - } - [(_FormDataEncoder_CRLF = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_CRLF_BYTES = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_CRLF_BYTES_LENGTH = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_DASHES = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_encoder = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_footer = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_form = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_options = /* @__PURE__ */ new WeakMap(), _FormDataEncoder_instances = /* @__PURE__ */ new WeakSet(), _FormDataEncoder_getFieldHeader = function _FormDataEncoder_getFieldHeader$1(name, value) { - let header = ""; - header += `${__classPrivateFieldGet$7(this, _FormDataEncoder_DASHES, "f")}${this.boundary}${__classPrivateFieldGet$7(this, _FormDataEncoder_CRLF, "f")}`; - header += `Content-Disposition: form-data; name="${escapeName_default(name)}"`; - if (isFileLike$1(value)) { - header += `; filename="${escapeName_default(value.name)}"${__classPrivateFieldGet$7(this, _FormDataEncoder_CRLF, "f")}`; - header += `Content-Type: ${value.type || "application/octet-stream"}`; - } - if (__classPrivateFieldGet$7(this, _FormDataEncoder_options, "f").enableAdditionalHeaders === true) header += `${__classPrivateFieldGet$7(this, _FormDataEncoder_CRLF, "f")}Content-Length: ${isFileLike$1(value) ? value.size : value.byteLength}`; - return __classPrivateFieldGet$7(this, _FormDataEncoder_encoder, "f").encode(`${header}${__classPrivateFieldGet$7(this, _FormDataEncoder_CRLF, "f").repeat(2)}`); - }, Symbol.iterator)]() { - return this.values(); - } - [Symbol.asyncIterator]() { - return this.encode(); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_shims/MultipartBody.mjs -/** -* Disclaimer: modules in _shims aren't intended to be imported by SDK users. -*/ -var MultipartBody = class { - constructor(body) { - this.body = body; - } - get [Symbol.toStringTag]() { - return "MultipartBody"; - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_shims/node-runtime.mjs -var import_lib = __toESM(require_lib(), 1); -var import_agentkeepalive = __toESM(require_agentkeepalive(), 1); -var import_abort_controller = __toESM(require_abort_controller(), 1); -let fileFromPathWarned = false; -async function fileFromPath$1(path, ...args) { - const { fileFromPath: _fileFromPath } = await import("./fileFromPath-Dg7PGDJc.mjs"); - if (!fileFromPathWarned) { - console.warn(`fileFromPath is deprecated; use fs.createReadStream(${JSON.stringify(path)}) instead`); - fileFromPathWarned = true; - } - return await _fileFromPath(path, ...args); -} -const defaultHttpAgent = new import_agentkeepalive.default({ - keepAlive: true, - timeout: 5 * 60 * 1e3 -}); -const defaultHttpsAgent = new import_agentkeepalive.default.HttpsAgent({ - keepAlive: true, - timeout: 5 * 60 * 1e3 -}); -async function getMultipartRequestOptions$1(form, opts) { - const encoder = new FormDataEncoder(form); - const readable = Readable.from(encoder); - const body = new MultipartBody(readable); - const headers = { - ...opts.headers, - ...encoder.headers, - "Content-Length": encoder.contentLength - }; - return { - ...opts, - body, - headers - }; -} -function getRuntime() { - if (typeof AbortController === "undefined") globalThis.AbortController = import_abort_controller.AbortController; - return { - kind: "node", - fetch: import_lib.default, - Request: import_lib.Request, - Response: import_lib.Response, - Headers: import_lib.Headers, - FormData: FormData$1, - Blob, - File, - ReadableStream: ReadableStream$1, - getMultipartRequestOptions: getMultipartRequestOptions$1, - getDefaultAgent: (url) => url.startsWith("https") ? defaultHttpsAgent : defaultHttpAgent, - fileFromPath: fileFromPath$1, - isFsReadStream: (value) => value instanceof ReadStream - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_shims/index.mjs -const init = () => { - if (!kind) setShims(getRuntime(), { auto: true }); -}; -init(); - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/error.mjs -var OpenAIError = class extends Error {}; -var APIError = class APIError extends OpenAIError { - constructor(status, error, message, headers) { - super(`${APIError.makeMessage(status, error, message)}`); - this.status = status; - this.headers = headers; - this.request_id = headers?.["x-request-id"]; - this.error = error; - const data = error; - this.code = data?.["code"]; - this.param = data?.["param"]; - this.type = data?.["type"]; - } - static makeMessage(status, error, message) { - const msg = error?.message ? typeof error.message === "string" ? error.message : JSON.stringify(error.message) : error ? JSON.stringify(error) : message; - if (status && msg) return `${status} ${msg}`; - if (status) return `${status} status code (no body)`; - if (msg) return msg; - return "(no status code or body)"; - } - static generate(status, errorResponse, message, headers) { - if (!status || !headers) return new APIConnectionError({ - message, - cause: castToError(errorResponse) - }); - const error = errorResponse?.["error"]; - if (status === 400) return new BadRequestError(status, error, message, headers); - if (status === 401) return new AuthenticationError(status, error, message, headers); - if (status === 403) return new PermissionDeniedError(status, error, message, headers); - if (status === 404) return new NotFoundError(status, error, message, headers); - if (status === 409) return new ConflictError(status, error, message, headers); - if (status === 422) return new UnprocessableEntityError(status, error, message, headers); - if (status === 429) return new RateLimitError(status, error, message, headers); - if (status >= 500) return new InternalServerError(status, error, message, headers); - return new APIError(status, error, message, headers); - } -}; -var APIUserAbortError = class extends APIError { - constructor({ message } = {}) { - super(void 0, void 0, message || "Request was aborted.", void 0); - } -}; -var APIConnectionError = class extends APIError { - constructor({ message, cause }) { - super(void 0, void 0, message || "Connection error.", void 0); - if (cause) this.cause = cause; - } -}; -var APIConnectionTimeoutError = class extends APIConnectionError { - constructor({ message } = {}) { - super({ message: message ?? "Request timed out." }); - } -}; -var BadRequestError = class extends APIError {}; -var AuthenticationError = class extends APIError {}; -var PermissionDeniedError = class extends APIError {}; -var NotFoundError = class extends APIError {}; -var ConflictError = class extends APIError {}; -var UnprocessableEntityError = class extends APIError {}; -var RateLimitError = class extends APIError {}; -var InternalServerError = class extends APIError {}; -var LengthFinishReasonError = class extends OpenAIError { - constructor() { - super(`Could not parse response content as the length limit was reached`); - } -}; -var ContentFilterFinishReasonError = class extends OpenAIError { - constructor() { - super(`Could not parse response content as the request was rejected by the content filter`); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/internal/decoders/line.mjs -var __classPrivateFieldSet$5 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var __classPrivateFieldGet$6 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _LineDecoder_carriageReturnIndex; -/** -* A re-implementation of httpx's `LineDecoder` in Python that handles incrementally -* reading lines from text. -* -* https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258 -*/ -var LineDecoder = class { - constructor() { - _LineDecoder_carriageReturnIndex.set(this, void 0); - this.buffer = new Uint8Array(); - __classPrivateFieldSet$5(this, _LineDecoder_carriageReturnIndex, null, "f"); - } - decode(chunk) { - if (chunk == null) return []; - const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk) : typeof chunk === "string" ? new TextEncoder().encode(chunk) : chunk; - let newData = new Uint8Array(this.buffer.length + binaryChunk.length); - newData.set(this.buffer); - newData.set(binaryChunk, this.buffer.length); - this.buffer = newData; - const lines = []; - let patternIndex; - while ((patternIndex = findNewlineIndex(this.buffer, __classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f"))) != null) { - if (patternIndex.carriage && __classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f") == null) { - __classPrivateFieldSet$5(this, _LineDecoder_carriageReturnIndex, patternIndex.index, "f"); - continue; - } - if (__classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f") != null && (patternIndex.index !== __classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f") + 1 || patternIndex.carriage)) { - lines.push(this.decodeText(this.buffer.slice(0, __classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f") - 1))); - this.buffer = this.buffer.slice(__classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f")); - __classPrivateFieldSet$5(this, _LineDecoder_carriageReturnIndex, null, "f"); - continue; - } - const endIndex = __classPrivateFieldGet$6(this, _LineDecoder_carriageReturnIndex, "f") !== null ? patternIndex.preceding - 1 : patternIndex.preceding; - const line = this.decodeText(this.buffer.slice(0, endIndex)); - lines.push(line); - this.buffer = this.buffer.slice(patternIndex.index); - __classPrivateFieldSet$5(this, _LineDecoder_carriageReturnIndex, null, "f"); - } - return lines; - } - decodeText(bytes) { - if (bytes == null) return ""; - if (typeof bytes === "string") return bytes; - if (typeof Buffer !== "undefined") { - if (bytes instanceof Buffer) return bytes.toString(); - if (bytes instanceof Uint8Array) return Buffer.from(bytes).toString(); - throw new OpenAIError(`Unexpected: received non-Uint8Array (${bytes.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`); - } - if (typeof TextDecoder !== "undefined") { - if (bytes instanceof Uint8Array || bytes instanceof ArrayBuffer) { - this.textDecoder ?? (this.textDecoder = new TextDecoder("utf8")); - return this.textDecoder.decode(bytes); - } - throw new OpenAIError(`Unexpected: received non-Uint8Array/ArrayBuffer (${bytes.constructor.name}) in a web platform. Please report this error.`); - } - throw new OpenAIError(`Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.`); - } - flush() { - if (!this.buffer.length) return []; - return this.decode("\n"); - } -}; -_LineDecoder_carriageReturnIndex = /* @__PURE__ */ new WeakMap(); -LineDecoder.NEWLINE_CHARS = new Set(["\n", "\r"]); -LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g; -/** -* This function searches the buffer for the end patterns, (\r or \n) -* and returns an object with the index preceding the matched newline and the -* index after the newline char. `null` is returned if no new line is found. -* -* ```ts -* findNewLineIndex('abc\ndef') -> { preceding: 2, index: 3 } -* ``` -*/ -function findNewlineIndex(buffer$1, startIndex) { - const newline = 10; - const carriage = 13; - for (let i$4 = startIndex ?? 0; i$4 < buffer$1.length; i$4++) { - if (buffer$1[i$4] === newline) return { - preceding: i$4, - index: i$4 + 1, - carriage: false - }; - if (buffer$1[i$4] === carriage) return { - preceding: i$4, - index: i$4 + 1, - carriage: true - }; - } - return null; -} -function findDoubleNewlineIndex(buffer$1) { - const newline = 10; - const carriage = 13; - for (let i$4 = 0; i$4 < buffer$1.length - 1; i$4++) { - if (buffer$1[i$4] === newline && buffer$1[i$4 + 1] === newline) return i$4 + 2; - if (buffer$1[i$4] === carriage && buffer$1[i$4 + 1] === carriage) return i$4 + 2; - if (buffer$1[i$4] === carriage && buffer$1[i$4 + 1] === newline && i$4 + 3 < buffer$1.length && buffer$1[i$4 + 2] === carriage && buffer$1[i$4 + 3] === newline) return i$4 + 4; - } - return -1; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/internal/stream-utils.mjs -/** -* Most browsers don't yet have async iterable support for ReadableStream, -* and Node has a very different way of reading bytes from its "ReadableStream". -* -* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490 -*/ -function ReadableStreamToAsyncIterable(stream) { - if (stream[Symbol.asyncIterator]) return stream; - const reader = stream.getReader(); - return { - async next() { - try { - const result = await reader.read(); - if (result?.done) reader.releaseLock(); - return result; - } catch (e) { - reader.releaseLock(); - throw e; - } - }, - async return() { - const cancelPromise = reader.cancel(); - reader.releaseLock(); - await cancelPromise; - return { - done: true, - value: void 0 - }; - }, - [Symbol.asyncIterator]() { - return this; - } - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/streaming.mjs -var Stream = class Stream { - constructor(iterator, controller) { - this.iterator = iterator; - this.controller = controller; - } - static fromSSEResponse(response, controller) { - let consumed = false; - async function* iterator() { - if (consumed) throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream."); - consumed = true; - let done = false; - try { - for await (const sse of _iterSSEMessages(response, controller)) { - if (done) continue; - if (sse.data.startsWith("[DONE]")) { - done = true; - continue; - } - if (sse.event === null || sse.event.startsWith("response.") || sse.event.startsWith("transcript.")) { - let data; - try { - data = JSON.parse(sse.data); - } catch (e) { - console.error(`Could not parse message into JSON:`, sse.data); - console.error(`From chunk:`, sse.raw); - throw e; - } - if (data && data.error) throw new APIError(void 0, data.error, void 0, createResponseHeaders(response.headers)); - yield data; - } else { - let data; - try { - data = JSON.parse(sse.data); - } catch (e) { - console.error(`Could not parse message into JSON:`, sse.data); - console.error(`From chunk:`, sse.raw); - throw e; - } - if (sse.event == "error") throw new APIError(void 0, data.error, data.message, void 0); - yield { - event: sse.event, - data - }; - } - } - done = true; - } catch (e) { - if (e instanceof Error && e.name === "AbortError") return; - throw e; - } finally { - if (!done) controller.abort(); - } - } - return new Stream(iterator, controller); - } - /** - * Generates a Stream from a newline-separated ReadableStream - * where each item is a JSON value. - */ - static fromReadableStream(readableStream, controller) { - let consumed = false; - async function* iterLines() { - const lineDecoder = new LineDecoder(); - const iter = ReadableStreamToAsyncIterable(readableStream); - for await (const chunk of iter) for (const line of lineDecoder.decode(chunk)) yield line; - for (const line of lineDecoder.flush()) yield line; - } - async function* iterator() { - if (consumed) throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream."); - consumed = true; - let done = false; - try { - for await (const line of iterLines()) { - if (done) continue; - if (line) yield JSON.parse(line); - } - done = true; - } catch (e) { - if (e instanceof Error && e.name === "AbortError") return; - throw e; - } finally { - if (!done) controller.abort(); - } - } - return new Stream(iterator, controller); - } - [Symbol.asyncIterator]() { - return this.iterator(); - } - /** - * Splits the stream into two streams which can be - * independently read from at different speeds. - */ - tee() { - const left = []; - const right = []; - const iterator = this.iterator(); - const teeIterator = (queue) => { - return { next: () => { - if (queue.length === 0) { - const result = iterator.next(); - left.push(result); - right.push(result); - } - return queue.shift(); - } }; - }; - return [new Stream(() => teeIterator(left), this.controller), new Stream(() => teeIterator(right), this.controller)]; - } - /** - * Converts this stream to a newline-separated ReadableStream of - * JSON stringified values in the stream - * which can be turned back into a Stream with `Stream.fromReadableStream()`. - */ - toReadableStream() { - const self$1 = this; - let iter; - const encoder = new TextEncoder(); - return new ReadableStream$2({ - async start() { - iter = self$1[Symbol.asyncIterator](); - }, - async pull(ctrl) { - try { - const { value, done } = await iter.next(); - if (done) return ctrl.close(); - const bytes = encoder.encode(JSON.stringify(value) + "\n"); - ctrl.enqueue(bytes); - } catch (err) { - ctrl.error(err); - } - }, - async cancel() { - await iter.return?.(); - } - }); - } -}; -async function* _iterSSEMessages(response, controller) { - if (!response.body) { - controller.abort(); - throw new OpenAIError(`Attempted to iterate over a response with no body`); - } - const sseDecoder = new SSEDecoder(); - const lineDecoder = new LineDecoder(); - const iter = ReadableStreamToAsyncIterable(response.body); - for await (const sseChunk of iterSSEChunks(iter)) for (const line of lineDecoder.decode(sseChunk)) { - const sse = sseDecoder.decode(line); - if (sse) yield sse; - } - for (const line of lineDecoder.flush()) { - const sse = sseDecoder.decode(line); - if (sse) yield sse; - } -} -/** -* Given an async iterable iterator, iterates over it and yields full -* SSE chunks, i.e. yields when a double new-line is encountered. -*/ -async function* iterSSEChunks(iterator) { - let data = new Uint8Array(); - for await (const chunk of iterator) { - if (chunk == null) continue; - const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk) : typeof chunk === "string" ? new TextEncoder().encode(chunk) : chunk; - let newData = new Uint8Array(data.length + binaryChunk.length); - newData.set(data); - newData.set(binaryChunk, data.length); - data = newData; - let patternIndex; - while ((patternIndex = findDoubleNewlineIndex(data)) !== -1) { - yield data.slice(0, patternIndex); - data = data.slice(patternIndex); - } - } - if (data.length > 0) yield data; -} -var SSEDecoder = class { - constructor() { - this.event = null; - this.data = []; - this.chunks = []; - } - decode(line) { - if (line.endsWith("\r")) line = line.substring(0, line.length - 1); - if (!line) { - if (!this.event && !this.data.length) return null; - const sse = { - event: this.event, - data: this.data.join("\n"), - raw: this.chunks - }; - this.event = null; - this.data = []; - this.chunks = []; - return sse; - } - this.chunks.push(line); - if (line.startsWith(":")) return null; - let [fieldname, _, value] = partition(line, ":"); - if (value.startsWith(" ")) value = value.substring(1); - if (fieldname === "event") this.event = value; - else if (fieldname === "data") this.data.push(value); - return null; - } -}; -function partition(str$1, delimiter) { - const index = str$1.indexOf(delimiter); - if (index !== -1) return [ - str$1.substring(0, index), - delimiter, - str$1.substring(index + delimiter.length) - ]; - return [ - str$1, - "", - "" - ]; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/uploads.mjs -const isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function"; -const isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value); -/** -* The BlobLike type omits arrayBuffer() because @types/node-fetch@^2.6.4 lacks it; but this check -* adds the arrayBuffer() method type because it is available and used at runtime -*/ -const isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function"; -const isUploadable = (value) => { - return isFileLike(value) || isResponseLike(value) || isFsReadStream(value); -}; -/** -* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats -* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s -* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible -* @param {Object=} options additional properties -* @param {string=} options.type the MIME type of the content -* @param {number=} options.lastModified the last modified timestamp -* @returns a {@link File} with the given properties -*/ -async function toFile(value, name, options) { - value = await value; - if (isFileLike(value)) return value; - if (isResponseLike(value)) { - const blob = await value.blob(); - name || (name = new URL(value.url).pathname.split(/[\\/]/).pop() ?? "unknown_file"); - const data = isBlobLike(blob) ? [await blob.arrayBuffer()] : [blob]; - return new File$1(data, name, options); - } - const bits = await getBytes(value); - name || (name = getName(value) ?? "unknown_file"); - if (!options?.type) { - const type = bits[0]?.type; - if (typeof type === "string") options = { - ...options, - type - }; - } - return new File$1(bits, name, options); -} -async function getBytes(value) { - let parts = []; - if (typeof value === "string" || ArrayBuffer.isView(value) || value instanceof ArrayBuffer) parts.push(value); - else if (isBlobLike(value)) parts.push(await value.arrayBuffer()); - else if (isAsyncIterableIterator(value)) for await (const chunk of value) parts.push(chunk); - else throw new Error(`Unexpected data type: ${typeof value}; constructor: ${value?.constructor?.name}; props: ${propsForError(value)}`); - return parts; -} -function propsForError(value) { - const props = Object.getOwnPropertyNames(value); - return `[${props.map((p) => `"${p}"`).join(", ")}]`; -} -function getName(value) { - return getStringFromMaybeBuffer(value.name) || getStringFromMaybeBuffer(value.filename) || getStringFromMaybeBuffer(value.path)?.split(/[\\/]/).pop(); -} -const getStringFromMaybeBuffer = (x) => { - if (typeof x === "string") return x; - if (typeof Buffer !== "undefined" && x instanceof Buffer) return String(x); - return void 0; -}; -const isAsyncIterableIterator = (value) => value != null && typeof value === "object" && typeof value[Symbol.asyncIterator] === "function"; -const isMultipartBody = (body) => body && typeof body === "object" && body.body && body[Symbol.toStringTag] === "MultipartBody"; -const multipartFormRequestOptions = async (opts) => { - const form = await createForm(opts.body); - return getMultipartRequestOptions(form, opts); -}; -const createForm = async (body) => { - const form = new FormData(); - await Promise.all(Object.entries(body || {}).map(([key$1, value]) => addFormValue(form, key$1, value))); - return form; -}; -const addFormValue = async (form, key$1, value) => { - if (value === void 0) return; - if (value == null) throw new TypeError(`Received null for "${key$1}"; to pass null in FormData, you must use the string 'null'`); - if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") form.append(key$1, String(value)); - else if (isUploadable(value)) { - const file = await toFile(value); - form.append(key$1, file); - } else if (Array.isArray(value)) await Promise.all(value.map((entry) => addFormValue(form, key$1 + "[]", entry))); - else if (typeof value === "object") await Promise.all(Object.entries(value).map(([name, prop]) => addFormValue(form, `${key$1}[${name}]`, prop))); - else throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`); -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/core.mjs -var __classPrivateFieldSet$4 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var __classPrivateFieldGet$5 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _AbstractPage_client; -init(); -async function defaultParseResponse(props) { - const { response } = props; - if (props.options.stream) { - debug("response", response.status, response.url, response.headers, response.body); - if (props.options.__streamClass) return props.options.__streamClass.fromSSEResponse(response, props.controller); - return Stream.fromSSEResponse(response, props.controller); - } - if (response.status === 204) return null; - if (props.options.__binaryResponse) return response; - const contentType = response.headers.get("content-type"); - const mediaType = contentType?.split(";")[0]?.trim(); - const isJSON = mediaType?.includes("application/json") || mediaType?.endsWith("+json"); - if (isJSON) { - const json = await response.json(); - debug("response", response.status, response.url, response.headers, json); - return _addRequestID(json, response); - } - const text = await response.text(); - debug("response", response.status, response.url, response.headers, text); - return text; -} -function _addRequestID(value, response) { - if (!value || typeof value !== "object" || Array.isArray(value)) return value; - return Object.defineProperty(value, "_request_id", { - value: response.headers.get("x-request-id"), - enumerable: false - }); -} -/** -* A subclass of `Promise` providing additional helper methods -* for interacting with the SDK. -*/ -var APIPromise = class APIPromise extends Promise { - constructor(responsePromise, parseResponse$1 = defaultParseResponse) { - super((resolve) => { - resolve(null); - }); - this.responsePromise = responsePromise; - this.parseResponse = parseResponse$1; - } - _thenUnwrap(transform) { - return new APIPromise(this.responsePromise, async (props) => _addRequestID(transform(await this.parseResponse(props), props), props.response)); - } - /** - * Gets the raw `Response` instance instead of parsing the response - * data. - * - * If you want to parse the response body but still get the `Response` - * instance, you can use {@link withResponse()}. - * - * 👋 Getting the wrong TypeScript type for `Response`? - * Try setting `"moduleResolution": "NodeNext"` if you can, - * or add one of these imports before your first `import … from 'openai'`: - * - `import 'openai/shims/node'` (if you're running on Node) - * - `import 'openai/shims/web'` (otherwise) - */ - asResponse() { - return this.responsePromise.then((p) => p.response); - } - /** - * Gets the parsed response data, the raw `Response` instance and the ID of the request, - * returned via the X-Request-ID header which is useful for debugging requests and reporting - * issues to OpenAI. - * - * If you just want to get the raw `Response` instance without parsing it, - * you can use {@link asResponse()}. - * - * - * 👋 Getting the wrong TypeScript type for `Response`? - * Try setting `"moduleResolution": "NodeNext"` if you can, - * or add one of these imports before your first `import … from 'openai'`: - * - `import 'openai/shims/node'` (if you're running on Node) - * - `import 'openai/shims/web'` (otherwise) - */ - async withResponse() { - const [data, response] = await Promise.all([this.parse(), this.asResponse()]); - return { - data, - response, - request_id: response.headers.get("x-request-id") - }; - } - parse() { - if (!this.parsedPromise) this.parsedPromise = this.responsePromise.then(this.parseResponse); - return this.parsedPromise; - } - then(onfulfilled, onrejected) { - return this.parse().then(onfulfilled, onrejected); - } - catch(onrejected) { - return this.parse().catch(onrejected); - } - finally(onfinally) { - return this.parse().finally(onfinally); - } -}; -var APIClient = class { - constructor({ baseURL, maxRetries = 2, timeout = 6e5, httpAgent, fetch: overriddenFetch }) { - this.baseURL = baseURL; - this.maxRetries = validatePositiveInteger("maxRetries", maxRetries); - this.timeout = validatePositiveInteger("timeout", timeout); - this.httpAgent = httpAgent; - this.fetch = overriddenFetch ?? fetch$1; - } - authHeaders(opts) { - return {}; - } - /** - * Override this to add your own default headers, for example: - * - * { - * ...super.defaultHeaders(), - * Authorization: 'Bearer 123', - * } - */ - defaultHeaders(opts) { - return { - Accept: "application/json", - "Content-Type": "application/json", - "User-Agent": this.getUserAgent(), - ...getPlatformHeaders(), - ...this.authHeaders(opts) - }; - } - /** - * Override this to add your own headers validation: - */ - validateHeaders(headers, customHeaders) {} - defaultIdempotencyKey() { - return `stainless-node-retry-${uuid4()}`; - } - get(path, opts) { - return this.methodRequest("get", path, opts); - } - post(path, opts) { - return this.methodRequest("post", path, opts); - } - patch(path, opts) { - return this.methodRequest("patch", path, opts); - } - put(path, opts) { - return this.methodRequest("put", path, opts); - } - delete(path, opts) { - return this.methodRequest("delete", path, opts); - } - methodRequest(method, path, opts) { - return this.request(Promise.resolve(opts).then(async (opts$1) => { - const body = opts$1 && isBlobLike(opts$1?.body) ? new DataView(await opts$1.body.arrayBuffer()) : opts$1?.body instanceof DataView ? opts$1.body : opts$1?.body instanceof ArrayBuffer ? new DataView(opts$1.body) : opts$1 && ArrayBuffer.isView(opts$1?.body) ? new DataView(opts$1.body.buffer) : opts$1?.body; - return { - method, - path, - ...opts$1, - body - }; - })); - } - getAPIList(path, Page$1, opts) { - return this.requestAPIList(Page$1, { - method: "get", - path, - ...opts - }); - } - calculateContentLength(body) { - if (typeof body === "string") { - if (typeof Buffer !== "undefined") return Buffer.byteLength(body, "utf8").toString(); - if (typeof TextEncoder !== "undefined") { - const encoder = new TextEncoder(); - const encoded = encoder.encode(body); - return encoded.length.toString(); - } - } else if (ArrayBuffer.isView(body)) return body.byteLength.toString(); - return null; - } - buildRequest(inputOptions, { retryCount = 0 } = {}) { - const options = { ...inputOptions }; - const { method, path, query, headers = {} } = options; - const body = ArrayBuffer.isView(options.body) || options.__binaryRequest && typeof options.body === "string" ? options.body : isMultipartBody(options.body) ? options.body.body : options.body ? JSON.stringify(options.body, null, 2) : null; - const contentLength = this.calculateContentLength(body); - const url = this.buildURL(path, query); - if ("timeout" in options) validatePositiveInteger("timeout", options.timeout); - options.timeout = options.timeout ?? this.timeout; - const httpAgent = options.httpAgent ?? this.httpAgent ?? getDefaultAgent(url); - const minAgentTimeout = options.timeout + 1e3; - if (typeof httpAgent?.options?.timeout === "number" && minAgentTimeout > (httpAgent.options.timeout ?? 0)) httpAgent.options.timeout = minAgentTimeout; - if (this.idempotencyHeader && method !== "get") { - if (!inputOptions.idempotencyKey) inputOptions.idempotencyKey = this.defaultIdempotencyKey(); - headers[this.idempotencyHeader] = inputOptions.idempotencyKey; - } - const reqHeaders = this.buildHeaders({ - options, - headers, - contentLength, - retryCount - }); - const req = { - method, - ...body && { body }, - headers: reqHeaders, - ...httpAgent && { agent: httpAgent }, - signal: options.signal ?? null - }; - return { - req, - url, - timeout: options.timeout - }; - } - buildHeaders({ options, headers, contentLength, retryCount }) { - const reqHeaders = {}; - if (contentLength) reqHeaders["content-length"] = contentLength; - const defaultHeaders = this.defaultHeaders(options); - applyHeadersMut(reqHeaders, defaultHeaders); - applyHeadersMut(reqHeaders, headers); - if (isMultipartBody(options.body) && kind !== "node") delete reqHeaders["content-type"]; - if (getHeader(defaultHeaders, "x-stainless-retry-count") === void 0 && getHeader(headers, "x-stainless-retry-count") === void 0) reqHeaders["x-stainless-retry-count"] = String(retryCount); - if (getHeader(defaultHeaders, "x-stainless-timeout") === void 0 && getHeader(headers, "x-stainless-timeout") === void 0 && options.timeout) reqHeaders["x-stainless-timeout"] = String(Math.trunc(options.timeout / 1e3)); - this.validateHeaders(reqHeaders, headers); - return reqHeaders; - } - /** - * Used as a callback for mutating the given `FinalRequestOptions` object. - */ - async prepareOptions(options) {} - /** - * Used as a callback for mutating the given `RequestInit` object. - * - * This is useful for cases where you want to add certain headers based off of - * the request properties, e.g. `method` or `url`. - */ - async prepareRequest(request, { url, options }) {} - parseHeaders(headers) { - return !headers ? {} : Symbol.iterator in headers ? Object.fromEntries(Array.from(headers).map((header) => [...header])) : { ...headers }; - } - makeStatusError(status, error, message, headers) { - return APIError.generate(status, error, message, headers); - } - request(options, remainingRetries = null) { - return new APIPromise(this.makeRequest(options, remainingRetries)); - } - async makeRequest(optionsInput, retriesRemaining) { - const options = await optionsInput; - const maxRetries = options.maxRetries ?? this.maxRetries; - if (retriesRemaining == null) retriesRemaining = maxRetries; - await this.prepareOptions(options); - const { req, url, timeout } = this.buildRequest(options, { retryCount: maxRetries - retriesRemaining }); - await this.prepareRequest(req, { - url, - options - }); - debug("request", url, options, req.headers); - if (options.signal?.aborted) throw new APIUserAbortError(); - const controller = new AbortController(); - const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError); - if (response instanceof Error) { - if (options.signal?.aborted) throw new APIUserAbortError(); - if (retriesRemaining) return this.retryRequest(options, retriesRemaining); - if (response.name === "AbortError") throw new APIConnectionTimeoutError(); - throw new APIConnectionError({ cause: response }); - } - const responseHeaders = createResponseHeaders(response.headers); - if (!response.ok) { - if (retriesRemaining && this.shouldRetry(response)) { - const retryMessage$1 = `retrying, ${retriesRemaining} attempts remaining`; - debug(`response (error; ${retryMessage$1})`, response.status, url, responseHeaders); - return this.retryRequest(options, retriesRemaining, responseHeaders); - } - const errText = await response.text().catch((e) => castToError(e).message); - const errJSON = safeJSON(errText); - const errMessage = errJSON ? void 0 : errText; - const retryMessage = retriesRemaining ? `(error; no more retries left)` : `(error; not retryable)`; - debug(`response (error; ${retryMessage})`, response.status, url, responseHeaders, errMessage); - const err = this.makeStatusError(response.status, errJSON, errMessage, responseHeaders); - throw err; - } - return { - response, - options, - controller - }; - } - requestAPIList(Page$1, options) { - const request = this.makeRequest(options, null); - return new PagePromise(this, request, Page$1); - } - buildURL(path, query) { - const url = isAbsoluteURL(path) ? new URL(path) : new URL(this.baseURL + (this.baseURL.endsWith("/") && path.startsWith("/") ? path.slice(1) : path)); - const defaultQuery = this.defaultQuery(); - if (!isEmptyObj$1(defaultQuery)) query = { - ...defaultQuery, - ...query - }; - if (typeof query === "object" && query && !Array.isArray(query)) url.search = this.stringifyQuery(query); - return url.toString(); - } - stringifyQuery(query) { - return Object.entries(query).filter(([_, value]) => typeof value !== "undefined").map(([key$1, value]) => { - if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return `${encodeURIComponent(key$1)}=${encodeURIComponent(value)}`; - if (value === null) return `${encodeURIComponent(key$1)}=`; - throw new OpenAIError(`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`); - }).join("&"); - } - async fetchWithTimeout(url, init$1, ms$2, controller) { - const { signal,...options } = init$1 || {}; - if (signal) signal.addEventListener("abort", () => controller.abort()); - const timeout = setTimeout(() => controller.abort(), ms$2); - const fetchOptions = { - signal: controller.signal, - ...options - }; - if (fetchOptions.method) fetchOptions.method = fetchOptions.method.toUpperCase(); - return this.fetch.call(void 0, url, fetchOptions).finally(() => { - clearTimeout(timeout); - }); - } - shouldRetry(response) { - const shouldRetryHeader = response.headers.get("x-should-retry"); - if (shouldRetryHeader === "true") return true; - if (shouldRetryHeader === "false") return false; - if (response.status === 408) return true; - if (response.status === 409) return true; - if (response.status === 429) return true; - if (response.status >= 500) return true; - return false; - } - async retryRequest(options, retriesRemaining, responseHeaders) { - let timeoutMillis; - const retryAfterMillisHeader = responseHeaders?.["retry-after-ms"]; - if (retryAfterMillisHeader) { - const timeoutMs = parseFloat(retryAfterMillisHeader); - if (!Number.isNaN(timeoutMs)) timeoutMillis = timeoutMs; - } - const retryAfterHeader = responseHeaders?.["retry-after"]; - if (retryAfterHeader && !timeoutMillis) { - const timeoutSeconds = parseFloat(retryAfterHeader); - if (!Number.isNaN(timeoutSeconds)) timeoutMillis = timeoutSeconds * 1e3; - else timeoutMillis = Date.parse(retryAfterHeader) - Date.now(); - } - if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1e3)) { - const maxRetries = options.maxRetries ?? this.maxRetries; - timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries); - } - await sleep(timeoutMillis); - return this.makeRequest(options, retriesRemaining - 1); - } - calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries) { - const initialRetryDelay = .5; - const maxRetryDelay = 8; - const numRetries = maxRetries - retriesRemaining; - const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay); - const jitter = 1 - Math.random() * .25; - return sleepSeconds * jitter * 1e3; - } - getUserAgent() { - return `${this.constructor.name}/JS ${VERSION}`; - } -}; -var AbstractPage = class { - constructor(client, response, body, options) { - _AbstractPage_client.set(this, void 0); - __classPrivateFieldSet$4(this, _AbstractPage_client, client, "f"); - this.options = options; - this.response = response; - this.body = body; - } - hasNextPage() { - const items = this.getPaginatedItems(); - if (!items.length) return false; - return this.nextPageInfo() != null; - } - async getNextPage() { - const nextInfo = this.nextPageInfo(); - if (!nextInfo) throw new OpenAIError("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`."); - const nextOptions = { ...this.options }; - if ("params" in nextInfo && typeof nextOptions.query === "object") nextOptions.query = { - ...nextOptions.query, - ...nextInfo.params - }; - else if ("url" in nextInfo) { - const params = [...Object.entries(nextOptions.query || {}), ...nextInfo.url.searchParams.entries()]; - for (const [key$1, value] of params) nextInfo.url.searchParams.set(key$1, value); - nextOptions.query = void 0; - nextOptions.path = nextInfo.url.toString(); - } - return await __classPrivateFieldGet$5(this, _AbstractPage_client, "f").requestAPIList(this.constructor, nextOptions); - } - async *iterPages() { - let page = this; - yield page; - while (page.hasNextPage()) { - page = await page.getNextPage(); - yield page; - } - } - async *[(_AbstractPage_client = /* @__PURE__ */ new WeakMap(), Symbol.asyncIterator)]() { - for await (const page of this.iterPages()) for (const item of page.getPaginatedItems()) yield item; - } -}; -/** -* This subclass of Promise will resolve to an instantiated Page once the request completes. -* -* It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg: -* -* for await (const item of client.items.list()) { -* console.log(item) -* } -*/ -var PagePromise = class extends APIPromise { - constructor(client, request, Page$1) { - super(request, async (props) => new Page$1(client, props.response, await defaultParseResponse(props), props.options)); - } - /** - * Allow auto-paginating iteration on an unawaited list call, eg: - * - * for await (const item of client.items.list()) { - * console.log(item) - * } - */ - async *[Symbol.asyncIterator]() { - const page = await this; - for await (const item of page) yield item; - } -}; -const createResponseHeaders = (headers) => { - return new Proxy(Object.fromEntries(headers.entries()), { get(target, name) { - const key$1 = name.toString(); - return target[key$1.toLowerCase()] || target[key$1]; - } }); -}; -const requestOptionsKeys = { - method: true, - path: true, - query: true, - body: true, - headers: true, - maxRetries: true, - stream: true, - timeout: true, - httpAgent: true, - signal: true, - idempotencyKey: true, - __metadata: true, - __binaryRequest: true, - __binaryResponse: true, - __streamClass: true -}; -const isRequestOptions = (obj) => { - return typeof obj === "object" && obj !== null && !isEmptyObj$1(obj) && Object.keys(obj).every((k) => hasOwn(requestOptionsKeys, k)); -}; -const getPlatformProperties = () => { - if (typeof Deno !== "undefined" && Deno.build != null) return { - "X-Stainless-Lang": "js", - "X-Stainless-Package-Version": VERSION, - "X-Stainless-OS": normalizePlatform(Deno.build.os), - "X-Stainless-Arch": normalizeArch(Deno.build.arch), - "X-Stainless-Runtime": "deno", - "X-Stainless-Runtime-Version": typeof Deno.version === "string" ? Deno.version : Deno.version?.deno ?? "unknown" - }; - if (typeof EdgeRuntime !== "undefined") return { - "X-Stainless-Lang": "js", - "X-Stainless-Package-Version": VERSION, - "X-Stainless-OS": "Unknown", - "X-Stainless-Arch": `other:${EdgeRuntime}`, - "X-Stainless-Runtime": "edge", - "X-Stainless-Runtime-Version": process.version - }; - if (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]") return { - "X-Stainless-Lang": "js", - "X-Stainless-Package-Version": VERSION, - "X-Stainless-OS": normalizePlatform(process.platform), - "X-Stainless-Arch": normalizeArch(process.arch), - "X-Stainless-Runtime": "node", - "X-Stainless-Runtime-Version": process.version - }; - const browserInfo = getBrowserInfo(); - if (browserInfo) return { - "X-Stainless-Lang": "js", - "X-Stainless-Package-Version": VERSION, - "X-Stainless-OS": "Unknown", - "X-Stainless-Arch": "unknown", - "X-Stainless-Runtime": `browser:${browserInfo.browser}`, - "X-Stainless-Runtime-Version": browserInfo.version - }; - return { - "X-Stainless-Lang": "js", - "X-Stainless-Package-Version": VERSION, - "X-Stainless-OS": "Unknown", - "X-Stainless-Arch": "unknown", - "X-Stainless-Runtime": "unknown", - "X-Stainless-Runtime-Version": "unknown" - }; -}; -function getBrowserInfo() { - if (typeof navigator === "undefined" || !navigator) return null; - const browserPatterns = [ - { - key: "edge", - pattern: /Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ - }, - { - key: "ie", - pattern: /MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ - }, - { - key: "ie", - pattern: /Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/ - }, - { - key: "chrome", - pattern: /Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ - }, - { - key: "firefox", - pattern: /Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ - }, - { - key: "safari", - pattern: /(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/ - } - ]; - for (const { key: key$1, pattern } of browserPatterns) { - const match = pattern.exec(navigator.userAgent); - if (match) { - const major = match[1] || 0; - const minor = match[2] || 0; - const patch = match[3] || 0; - return { - browser: key$1, - version: `${major}.${minor}.${patch}` - }; - } - } - return null; -} -const normalizeArch = (arch) => { - if (arch === "x32") return "x32"; - if (arch === "x86_64" || arch === "x64") return "x64"; - if (arch === "arm") return "arm"; - if (arch === "aarch64" || arch === "arm64") return "arm64"; - if (arch) return `other:${arch}`; - return "unknown"; -}; -const normalizePlatform = (platform) => { - platform = platform.toLowerCase(); - if (platform.includes("ios")) return "iOS"; - if (platform === "android") return "Android"; - if (platform === "darwin") return "MacOS"; - if (platform === "win32") return "Windows"; - if (platform === "freebsd") return "FreeBSD"; - if (platform === "openbsd") return "OpenBSD"; - if (platform === "linux") return "Linux"; - if (platform) return `Other:${platform}`; - return "Unknown"; -}; -let _platformHeaders; -const getPlatformHeaders = () => { - return _platformHeaders ?? (_platformHeaders = getPlatformProperties()); -}; -const safeJSON = (text) => { - try { - return JSON.parse(text); - } catch (err) { - return void 0; - } -}; -const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i; -const isAbsoluteURL = (url) => { - return startsWithSchemeRegexp.test(url); -}; -const sleep = (ms$2) => new Promise((resolve) => setTimeout(resolve, ms$2)); -const validatePositiveInteger = (name, n) => { - if (typeof n !== "number" || !Number.isInteger(n)) throw new OpenAIError(`${name} must be an integer`); - if (n < 0) throw new OpenAIError(`${name} must be a positive integer`); - return n; -}; -const castToError = (err) => { - if (err instanceof Error) return err; - if (typeof err === "object" && err !== null) try { - return new Error(JSON.stringify(err)); - } catch {} - return new Error(err); -}; -/** -* Read an environment variable. -* -* Trims beginning and trailing whitespace. -* -* Will return undefined if the environment variable doesn't exist or cannot be accessed. -*/ -const readEnv = (env) => { - if (typeof process !== "undefined") return process.env?.[env]?.trim() ?? void 0; - if (typeof Deno !== "undefined") return Deno.env?.get?.(env)?.trim(); - return void 0; -}; -function isEmptyObj$1(obj) { - if (!obj) return true; - for (const _k in obj) return false; - return true; -} -function hasOwn(obj, key$1) { - return Object.prototype.hasOwnProperty.call(obj, key$1); -} -/** -* Copies headers from "newHeaders" onto "targetHeaders", -* using lower-case for all properties, -* ignoring any keys with undefined values, -* and deleting any keys with null values. -*/ -function applyHeadersMut(targetHeaders, newHeaders) { - for (const k in newHeaders) { - if (!hasOwn(newHeaders, k)) continue; - const lowerKey = k.toLowerCase(); - if (!lowerKey) continue; - const val = newHeaders[k]; - if (val === null) delete targetHeaders[lowerKey]; - else if (val !== void 0) targetHeaders[lowerKey] = val; - } -} -const SENSITIVE_HEADERS = new Set(["authorization", "api-key"]); -function debug(action, ...args) { - if (typeof process !== "undefined" && process?.env?.["DEBUG"] === "true") { - const modifiedArgs = args.map((arg) => { - if (!arg) return arg; - if (arg["headers"]) { - const modifiedArg$1 = { - ...arg, - headers: { ...arg["headers"] } - }; - for (const header in arg["headers"]) if (SENSITIVE_HEADERS.has(header.toLowerCase())) modifiedArg$1["headers"][header] = "REDACTED"; - return modifiedArg$1; - } - let modifiedArg = null; - for (const header in arg) if (SENSITIVE_HEADERS.has(header.toLowerCase())) { - modifiedArg ?? (modifiedArg = { ...arg }); - modifiedArg[header] = "REDACTED"; - } - return modifiedArg ?? arg; - }); - console.log(`OpenAI:DEBUG:${action}`, ...modifiedArgs); - } -} -/** -* https://stackoverflow.com/a/2117523 -*/ -const uuid4 = () => { - return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => { - const r = Math.random() * 16 | 0; - const v = c === "x" ? r : r & 3 | 8; - return v.toString(16); - }); -}; -const isRunningInBrowser = () => { - return typeof window !== "undefined" && typeof window.document !== "undefined" && typeof navigator !== "undefined"; -}; -const isHeadersProtocol = (headers) => { - return typeof headers?.get === "function"; -}; -const getHeader = (headers, header) => { - const lowerCasedHeader = header.toLowerCase(); - if (isHeadersProtocol(headers)) { - const intercapsHeader = header[0]?.toUpperCase() + header.substring(1).replace(/([^\w])(\w)/g, (_m, g1, g2) => g1 + g2.toUpperCase()); - for (const key$1 of [ - header, - lowerCasedHeader, - header.toUpperCase(), - intercapsHeader - ]) { - const value = headers.get(key$1); - if (value) return value; - } - } - for (const [key$1, value] of Object.entries(headers)) if (key$1.toLowerCase() === lowerCasedHeader) { - if (Array.isArray(value)) { - if (value.length <= 1) return value[0]; - console.warn(`Received ${value.length} entries for the ${header} header, using the first entry.`); - return value[0]; - } - return value; - } - return void 0; -}; -/** -* Converts a Base64 encoded string to a Float32Array. -* @param base64Str - The Base64 encoded string. -* @returns An Array of numbers interpreted as Float32 values. -*/ -const toFloat32Array = (base64Str) => { - if (typeof Buffer !== "undefined") { - const buf = Buffer.from(base64Str, "base64"); - return Array.from(new Float32Array(buf.buffer, buf.byteOffset, buf.length / Float32Array.BYTES_PER_ELEMENT)); - } else { - const binaryStr = atob(base64Str); - const len$1 = binaryStr.length; - const bytes = new Uint8Array(len$1); - for (let i$4 = 0; i$4 < len$1; i$4++) bytes[i$4] = binaryStr.charCodeAt(i$4); - return Array.from(new Float32Array(bytes.buffer)); - } -}; -function isObj(obj) { - return obj != null && typeof obj === "object" && !Array.isArray(obj); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/pagination.mjs -/** -* Note: no pagination actually occurs yet, this is for forwards-compatibility. -*/ -var Page = class extends AbstractPage { - constructor(client, response, body, options) { - super(client, response, body, options); - this.data = body.data || []; - this.object = body.object; - } - getPaginatedItems() { - return this.data ?? []; - } - /** - * This page represents a response that isn't actually paginated at the API level - * so there will never be any next page params. - */ - nextPageParams() { - return null; - } - nextPageInfo() { - return null; - } -}; -var CursorPage = class extends AbstractPage { - constructor(client, response, body, options) { - super(client, response, body, options); - this.data = body.data || []; - this.has_more = body.has_more || false; - } - getPaginatedItems() { - return this.data ?? []; - } - hasNextPage() { - if (this.has_more === false) return false; - return super.hasNextPage(); - } - nextPageParams() { - const info = this.nextPageInfo(); - if (!info) return null; - if ("params" in info) return info.params; - const params = Object.fromEntries(info.url.searchParams); - if (!Object.keys(params).length) return null; - return params; - } - nextPageInfo() { - const data = this.getPaginatedItems(); - if (!data.length) return null; - const id = data[data.length - 1]?.id; - if (!id) return null; - return { params: { after: id } }; - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resource.mjs -var APIResource = class { - constructor(client) { - this._client = client; - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/chat/completions/messages.mjs -var Messages$1 = class extends APIResource { - list(completionId, query = {}, options) { - if (isRequestOptions(query)) return this.list(completionId, {}, query); - return this._client.getAPIList(`/chat/completions/${completionId}/messages`, ChatCompletionStoreMessagesPage, { - query, - ...options - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/chat/completions/completions.mjs -var Completions$2 = class extends APIResource { - constructor() { - super(...arguments); - this.messages = new Messages$1(this._client); - } - create(body, options) { - return this._client.post("/chat/completions", { - body, - ...options, - stream: body.stream ?? false - }); - } - /** - * Get a stored chat completion. Only Chat Completions that have been created with - * the `store` parameter set to `true` will be returned. - * - * @example - * ```ts - * const chatCompletion = - * await client.chat.completions.retrieve('completion_id'); - * ``` - */ - retrieve(completionId, options) { - return this._client.get(`/chat/completions/${completionId}`, options); - } - /** - * Modify a stored chat completion. Only Chat Completions that have been created - * with the `store` parameter set to `true` can be modified. Currently, the only - * supported modification is to update the `metadata` field. - * - * @example - * ```ts - * const chatCompletion = await client.chat.completions.update( - * 'completion_id', - * { metadata: { foo: 'string' } }, - * ); - * ``` - */ - update(completionId, body, options) { - return this._client.post(`/chat/completions/${completionId}`, { - body, - ...options - }); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/chat/completions", ChatCompletionsPage, { - query, - ...options - }); - } - /** - * Delete a stored chat completion. Only Chat Completions that have been created - * with the `store` parameter set to `true` can be deleted. - * - * @example - * ```ts - * const chatCompletionDeleted = - * await client.chat.completions.del('completion_id'); - * ``` - */ - del(completionId, options) { - return this._client.delete(`/chat/completions/${completionId}`, options); - } -}; -var ChatCompletionsPage = class extends CursorPage {}; -var ChatCompletionStoreMessagesPage = class extends CursorPage {}; -Completions$2.ChatCompletionsPage = ChatCompletionsPage; -Completions$2.Messages = Messages$1; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/chat/chat.mjs -var Chat = class extends APIResource { - constructor() { - super(...arguments); - this.completions = new Completions$2(this._client); - } -}; -Chat.Completions = Completions$2; -Chat.ChatCompletionsPage = ChatCompletionsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/audio/speech.mjs -var Speech = class extends APIResource { - /** - * Generates audio from the input text. - * - * @example - * ```ts - * const speech = await client.audio.speech.create({ - * input: 'input', - * model: 'string', - * voice: 'ash', - * }); - * - * const content = await speech.blob(); - * console.log(content); - * ``` - */ - create(body, options) { - return this._client.post("/audio/speech", { - body, - ...options, - headers: { - Accept: "application/octet-stream", - ...options?.headers - }, - __binaryResponse: true - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/audio/transcriptions.mjs -var Transcriptions = class extends APIResource { - create(body, options) { - return this._client.post("/audio/transcriptions", multipartFormRequestOptions({ - body, - ...options, - stream: body.stream ?? false, - __metadata: { model: body.model } - })); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/audio/translations.mjs -var Translations = class extends APIResource { - create(body, options) { - return this._client.post("/audio/translations", multipartFormRequestOptions({ - body, - ...options, - __metadata: { model: body.model } - })); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/audio/audio.mjs -var Audio = class extends APIResource { - constructor() { - super(...arguments); - this.transcriptions = new Transcriptions(this._client); - this.translations = new Translations(this._client); - this.speech = new Speech(this._client); - } -}; -Audio.Transcriptions = Transcriptions; -Audio.Translations = Translations; -Audio.Speech = Speech; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/batches.mjs -var Batches = class extends APIResource { - /** - * Creates and executes a batch from an uploaded file of requests - */ - create(body, options) { - return this._client.post("/batches", { - body, - ...options - }); - } - /** - * Retrieves a batch. - */ - retrieve(batchId, options) { - return this._client.get(`/batches/${batchId}`, options); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/batches", BatchesPage, { - query, - ...options - }); - } - /** - * Cancels an in-progress batch. The batch will be in status `cancelling` for up to - * 10 minutes, before changing to `cancelled`, where it will have partial results - * (if any) available in the output file. - */ - cancel(batchId, options) { - return this._client.post(`/batches/${batchId}/cancel`, options); - } -}; -var BatchesPage = class extends CursorPage {}; -Batches.BatchesPage = BatchesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/EventStream.mjs -var __classPrivateFieldSet$3 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var __classPrivateFieldGet$4 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _EventStream_instances, _EventStream_connectedPromise, _EventStream_resolveConnectedPromise, _EventStream_rejectConnectedPromise, _EventStream_endPromise, _EventStream_resolveEndPromise, _EventStream_rejectEndPromise, _EventStream_listeners, _EventStream_ended, _EventStream_errored, _EventStream_aborted, _EventStream_catchingPromiseCreated, _EventStream_handleError; -var EventStream = class { - constructor() { - _EventStream_instances.add(this); - this.controller = new AbortController(); - _EventStream_connectedPromise.set(this, void 0); - _EventStream_resolveConnectedPromise.set(this, () => {}); - _EventStream_rejectConnectedPromise.set(this, () => {}); - _EventStream_endPromise.set(this, void 0); - _EventStream_resolveEndPromise.set(this, () => {}); - _EventStream_rejectEndPromise.set(this, () => {}); - _EventStream_listeners.set(this, {}); - _EventStream_ended.set(this, false); - _EventStream_errored.set(this, false); - _EventStream_aborted.set(this, false); - _EventStream_catchingPromiseCreated.set(this, false); - __classPrivateFieldSet$3(this, _EventStream_connectedPromise, new Promise((resolve, reject) => { - __classPrivateFieldSet$3(this, _EventStream_resolveConnectedPromise, resolve, "f"); - __classPrivateFieldSet$3(this, _EventStream_rejectConnectedPromise, reject, "f"); - }), "f"); - __classPrivateFieldSet$3(this, _EventStream_endPromise, new Promise((resolve, reject) => { - __classPrivateFieldSet$3(this, _EventStream_resolveEndPromise, resolve, "f"); - __classPrivateFieldSet$3(this, _EventStream_rejectEndPromise, reject, "f"); - }), "f"); - __classPrivateFieldGet$4(this, _EventStream_connectedPromise, "f").catch(() => {}); - __classPrivateFieldGet$4(this, _EventStream_endPromise, "f").catch(() => {}); - } - _run(executor) { - setTimeout(() => { - executor().then(() => { - this._emitFinal(); - this._emit("end"); - }, __classPrivateFieldGet$4(this, _EventStream_instances, "m", _EventStream_handleError).bind(this)); - }, 0); - } - _connected() { - if (this.ended) return; - __classPrivateFieldGet$4(this, _EventStream_resolveConnectedPromise, "f").call(this); - this._emit("connect"); - } - get ended() { - return __classPrivateFieldGet$4(this, _EventStream_ended, "f"); - } - get errored() { - return __classPrivateFieldGet$4(this, _EventStream_errored, "f"); - } - get aborted() { - return __classPrivateFieldGet$4(this, _EventStream_aborted, "f"); - } - abort() { - this.controller.abort(); - } - /** - * Adds the listener function to the end of the listeners array for the event. - * No checks are made to see if the listener has already been added. Multiple calls passing - * the same combination of event and listener will result in the listener being added, and - * called, multiple times. - * @returns this ChatCompletionStream, so that calls can be chained - */ - on(event, listener) { - const listeners = __classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event] || (__classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event] = []); - listeners.push({ listener }); - return this; - } - /** - * Removes the specified listener from the listener array for the event. - * off() will remove, at most, one instance of a listener from the listener array. If any single - * listener has been added multiple times to the listener array for the specified event, then - * off() must be called multiple times to remove each instance. - * @returns this ChatCompletionStream, so that calls can be chained - */ - off(event, listener) { - const listeners = __classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event]; - if (!listeners) return this; - const index = listeners.findIndex((l) => l.listener === listener); - if (index >= 0) listeners.splice(index, 1); - return this; - } - /** - * Adds a one-time listener function for the event. The next time the event is triggered, - * this listener is removed and then invoked. - * @returns this ChatCompletionStream, so that calls can be chained - */ - once(event, listener) { - const listeners = __classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event] || (__classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event] = []); - listeners.push({ - listener, - once: true - }); - return this; - } - /** - * This is similar to `.once()`, but returns a Promise that resolves the next time - * the event is triggered, instead of calling a listener callback. - * @returns a Promise that resolves the next time given event is triggered, - * or rejects if an error is emitted. (If you request the 'error' event, - * returns a promise that resolves with the error). - * - * Example: - * - * const message = await stream.emitted('message') // rejects if the stream errors - */ - emitted(event) { - return new Promise((resolve, reject) => { - __classPrivateFieldSet$3(this, _EventStream_catchingPromiseCreated, true, "f"); - if (event !== "error") this.once("error", reject); - this.once(event, resolve); - }); - } - async done() { - __classPrivateFieldSet$3(this, _EventStream_catchingPromiseCreated, true, "f"); - await __classPrivateFieldGet$4(this, _EventStream_endPromise, "f"); - } - _emit(event, ...args) { - if (__classPrivateFieldGet$4(this, _EventStream_ended, "f")) return; - if (event === "end") { - __classPrivateFieldSet$3(this, _EventStream_ended, true, "f"); - __classPrivateFieldGet$4(this, _EventStream_resolveEndPromise, "f").call(this); - } - const listeners = __classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event]; - if (listeners) { - __classPrivateFieldGet$4(this, _EventStream_listeners, "f")[event] = listeners.filter((l) => !l.once); - listeners.forEach(({ listener }) => listener(...args)); - } - if (event === "abort") { - const error = args[0]; - if (!__classPrivateFieldGet$4(this, _EventStream_catchingPromiseCreated, "f") && !listeners?.length) Promise.reject(error); - __classPrivateFieldGet$4(this, _EventStream_rejectConnectedPromise, "f").call(this, error); - __classPrivateFieldGet$4(this, _EventStream_rejectEndPromise, "f").call(this, error); - this._emit("end"); - return; - } - if (event === "error") { - const error = args[0]; - if (!__classPrivateFieldGet$4(this, _EventStream_catchingPromiseCreated, "f") && !listeners?.length) Promise.reject(error); - __classPrivateFieldGet$4(this, _EventStream_rejectConnectedPromise, "f").call(this, error); - __classPrivateFieldGet$4(this, _EventStream_rejectEndPromise, "f").call(this, error); - this._emit("end"); - } - } - _emitFinal() {} -}; -_EventStream_connectedPromise = /* @__PURE__ */ new WeakMap(), _EventStream_resolveConnectedPromise = /* @__PURE__ */ new WeakMap(), _EventStream_rejectConnectedPromise = /* @__PURE__ */ new WeakMap(), _EventStream_endPromise = /* @__PURE__ */ new WeakMap(), _EventStream_resolveEndPromise = /* @__PURE__ */ new WeakMap(), _EventStream_rejectEndPromise = /* @__PURE__ */ new WeakMap(), _EventStream_listeners = /* @__PURE__ */ new WeakMap(), _EventStream_ended = /* @__PURE__ */ new WeakMap(), _EventStream_errored = /* @__PURE__ */ new WeakMap(), _EventStream_aborted = /* @__PURE__ */ new WeakMap(), _EventStream_catchingPromiseCreated = /* @__PURE__ */ new WeakMap(), _EventStream_instances = /* @__PURE__ */ new WeakSet(), _EventStream_handleError = function _EventStream_handleError$1(error) { - __classPrivateFieldSet$3(this, _EventStream_errored, true, "f"); - if (error instanceof Error && error.name === "AbortError") error = new APIUserAbortError(); - if (error instanceof APIUserAbortError) { - __classPrivateFieldSet$3(this, _EventStream_aborted, true, "f"); - return this._emit("abort", error); - } - if (error instanceof OpenAIError) return this._emit("error", error); - if (error instanceof Error) { - const openAIError = new OpenAIError(error.message); - openAIError.cause = error; - return this._emit("error", openAIError); - } - return this._emit("error", new OpenAIError(String(error))); -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/AssistantStream.mjs -var __classPrivateFieldGet$3 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var __classPrivateFieldSet$2 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var _AssistantStream_instances, _AssistantStream_events, _AssistantStream_runStepSnapshots, _AssistantStream_messageSnapshots, _AssistantStream_messageSnapshot, _AssistantStream_finalRun, _AssistantStream_currentContentIndex, _AssistantStream_currentContent, _AssistantStream_currentToolCallIndex, _AssistantStream_currentToolCall, _AssistantStream_currentEvent, _AssistantStream_currentRunSnapshot, _AssistantStream_currentRunStepSnapshot, _AssistantStream_addEvent, _AssistantStream_endRequest, _AssistantStream_handleMessage, _AssistantStream_handleRunStep, _AssistantStream_handleEvent, _AssistantStream_accumulateRunStep, _AssistantStream_accumulateMessage, _AssistantStream_accumulateContent, _AssistantStream_handleRun; -var AssistantStream = class AssistantStream extends EventStream { - constructor() { - super(...arguments); - _AssistantStream_instances.add(this); - _AssistantStream_events.set(this, []); - _AssistantStream_runStepSnapshots.set(this, {}); - _AssistantStream_messageSnapshots.set(this, {}); - _AssistantStream_messageSnapshot.set(this, void 0); - _AssistantStream_finalRun.set(this, void 0); - _AssistantStream_currentContentIndex.set(this, void 0); - _AssistantStream_currentContent.set(this, void 0); - _AssistantStream_currentToolCallIndex.set(this, void 0); - _AssistantStream_currentToolCall.set(this, void 0); - _AssistantStream_currentEvent.set(this, void 0); - _AssistantStream_currentRunSnapshot.set(this, void 0); - _AssistantStream_currentRunStepSnapshot.set(this, void 0); - } - [(_AssistantStream_events = /* @__PURE__ */ new WeakMap(), _AssistantStream_runStepSnapshots = /* @__PURE__ */ new WeakMap(), _AssistantStream_messageSnapshots = /* @__PURE__ */ new WeakMap(), _AssistantStream_messageSnapshot = /* @__PURE__ */ new WeakMap(), _AssistantStream_finalRun = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentContentIndex = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentContent = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentToolCallIndex = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentToolCall = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentEvent = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentRunSnapshot = /* @__PURE__ */ new WeakMap(), _AssistantStream_currentRunStepSnapshot = /* @__PURE__ */ new WeakMap(), _AssistantStream_instances = /* @__PURE__ */ new WeakSet(), Symbol.asyncIterator)]() { - const pushQueue = []; - const readQueue = []; - let done = false; - this.on("event", (event) => { - const reader = readQueue.shift(); - if (reader) reader.resolve(event); - else pushQueue.push(event); - }); - this.on("end", () => { - done = true; - for (const reader of readQueue) reader.resolve(void 0); - readQueue.length = 0; - }); - this.on("abort", (err) => { - done = true; - for (const reader of readQueue) reader.reject(err); - readQueue.length = 0; - }); - this.on("error", (err) => { - done = true; - for (const reader of readQueue) reader.reject(err); - readQueue.length = 0; - }); - return { - next: async () => { - if (!pushQueue.length) { - if (done) return { - value: void 0, - done: true - }; - return new Promise((resolve, reject) => readQueue.push({ - resolve, - reject - })).then((chunk$1) => chunk$1 ? { - value: chunk$1, - done: false - } : { - value: void 0, - done: true - }); - } - const chunk = pushQueue.shift(); - return { - value: chunk, - done: false - }; - }, - return: async () => { - this.abort(); - return { - value: void 0, - done: true - }; - } - }; - } - static fromReadableStream(stream) { - const runner = new AssistantStream(); - runner._run(() => runner._fromReadableStream(stream)); - return runner; - } - async _fromReadableStream(readableStream, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - this._connected(); - const stream = Stream.fromReadableStream(readableStream, this.controller); - for await (const event of stream) __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return this._addRun(__classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); - } - toReadableStream() { - const stream = new Stream(this[Symbol.asyncIterator].bind(this), this.controller); - return stream.toReadableStream(); - } - static createToolAssistantStream(threadId, runId, runs, params, options) { - const runner = new AssistantStream(); - runner._run(() => runner._runToolAssistantStream(threadId, runId, runs, params, { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "stream" - } - })); - return runner; - } - async _createToolAssistantStream(run, threadId, runId, params, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - const body = { - ...params, - stream: true - }; - const stream = await run.submitToolOutputs(threadId, runId, body, { - ...options, - signal: this.controller.signal - }); - this._connected(); - for await (const event of stream) __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return this._addRun(__classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); - } - static createThreadAssistantStream(params, thread, options) { - const runner = new AssistantStream(); - runner._run(() => runner._threadAssistantStream(params, thread, { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "stream" - } - })); - return runner; - } - static createAssistantStream(threadId, runs, params, options) { - const runner = new AssistantStream(); - runner._run(() => runner._runAssistantStream(threadId, runs, params, { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "stream" - } - })); - return runner; - } - currentEvent() { - return __classPrivateFieldGet$3(this, _AssistantStream_currentEvent, "f"); - } - currentRun() { - return __classPrivateFieldGet$3(this, _AssistantStream_currentRunSnapshot, "f"); - } - currentMessageSnapshot() { - return __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f"); - } - currentRunStepSnapshot() { - return __classPrivateFieldGet$3(this, _AssistantStream_currentRunStepSnapshot, "f"); - } - async finalRunSteps() { - await this.done(); - return Object.values(__classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")); - } - async finalMessages() { - await this.done(); - return Object.values(__classPrivateFieldGet$3(this, _AssistantStream_messageSnapshots, "f")); - } - async finalRun() { - await this.done(); - if (!__classPrivateFieldGet$3(this, _AssistantStream_finalRun, "f")) throw Error("Final run was not received."); - return __classPrivateFieldGet$3(this, _AssistantStream_finalRun, "f"); - } - async _createThreadAssistantStream(thread, params, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - const body = { - ...params, - stream: true - }; - const stream = await thread.createAndRun(body, { - ...options, - signal: this.controller.signal - }); - this._connected(); - for await (const event of stream) __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return this._addRun(__classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); - } - async _createAssistantStream(run, threadId, params, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - const body = { - ...params, - stream: true - }; - const stream = await run.create(threadId, body, { - ...options, - signal: this.controller.signal - }); - this._connected(); - for await (const event of stream) __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_addEvent).call(this, event); - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return this._addRun(__classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_endRequest).call(this)); - } - static accumulateDelta(acc, delta) { - for (const [key$1, deltaValue] of Object.entries(delta)) { - if (!acc.hasOwnProperty(key$1)) { - acc[key$1] = deltaValue; - continue; - } - let accValue = acc[key$1]; - if (accValue === null || accValue === void 0) { - acc[key$1] = deltaValue; - continue; - } - if (key$1 === "index" || key$1 === "type") { - acc[key$1] = deltaValue; - continue; - } - if (typeof accValue === "string" && typeof deltaValue === "string") accValue += deltaValue; - else if (typeof accValue === "number" && typeof deltaValue === "number") accValue += deltaValue; - else if (isObj(accValue) && isObj(deltaValue)) accValue = this.accumulateDelta(accValue, deltaValue); - else if (Array.isArray(accValue) && Array.isArray(deltaValue)) { - if (accValue.every((x) => typeof x === "string" || typeof x === "number")) { - accValue.push(...deltaValue); - continue; - } - for (const deltaEntry of deltaValue) { - if (!isObj(deltaEntry)) throw new Error(`Expected array delta entry to be an object but got: ${deltaEntry}`); - const index = deltaEntry["index"]; - if (index == null) { - console.error(deltaEntry); - throw new Error("Expected array delta entry to have an `index` property"); - } - if (typeof index !== "number") throw new Error(`Expected array delta entry \`index\` property to be a number but got ${index}`); - const accEntry = accValue[index]; - if (accEntry == null) accValue.push(deltaEntry); - else accValue[index] = this.accumulateDelta(accEntry, deltaEntry); - } - continue; - } else throw Error(`Unhandled record type: ${key$1}, deltaValue: ${deltaValue}, accValue: ${accValue}`); - acc[key$1] = accValue; - } - return acc; - } - _addRun(run) { - return run; - } - async _threadAssistantStream(params, thread, options) { - return await this._createThreadAssistantStream(thread, params, options); - } - async _runAssistantStream(threadId, runs, params, options) { - return await this._createAssistantStream(runs, threadId, params, options); - } - async _runToolAssistantStream(threadId, runId, runs, params, options) { - return await this._createToolAssistantStream(runs, threadId, runId, params, options); - } -}; -_AssistantStream_addEvent = function _AssistantStream_addEvent$1(event) { - if (this.ended) return; - __classPrivateFieldSet$2(this, _AssistantStream_currentEvent, event, "f"); - __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_handleEvent).call(this, event); - switch (event.event) { - case "thread.created": break; - case "thread.run.created": - case "thread.run.queued": - case "thread.run.in_progress": - case "thread.run.requires_action": - case "thread.run.completed": - case "thread.run.incomplete": - case "thread.run.failed": - case "thread.run.cancelling": - case "thread.run.cancelled": - case "thread.run.expired": - __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_handleRun).call(this, event); - break; - case "thread.run.step.created": - case "thread.run.step.in_progress": - case "thread.run.step.delta": - case "thread.run.step.completed": - case "thread.run.step.failed": - case "thread.run.step.cancelled": - case "thread.run.step.expired": - __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_handleRunStep).call(this, event); - break; - case "thread.message.created": - case "thread.message.in_progress": - case "thread.message.delta": - case "thread.message.completed": - case "thread.message.incomplete": - __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_handleMessage).call(this, event); - break; - case "error": throw new Error("Encountered an error event in event processing - errors should be processed earlier"); - default: assertNever$1(event); - } -}, _AssistantStream_endRequest = function _AssistantStream_endRequest$1() { - if (this.ended) throw new OpenAIError(`stream has ended, this shouldn't happen`); - if (!__classPrivateFieldGet$3(this, _AssistantStream_finalRun, "f")) throw Error("Final run has not been received"); - return __classPrivateFieldGet$3(this, _AssistantStream_finalRun, "f"); -}, _AssistantStream_handleMessage = function _AssistantStream_handleMessage$1(event) { - const [accumulatedMessage, newContent] = __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_accumulateMessage).call(this, event, __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f")); - __classPrivateFieldSet$2(this, _AssistantStream_messageSnapshot, accumulatedMessage, "f"); - __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshots, "f")[accumulatedMessage.id] = accumulatedMessage; - for (const content of newContent) { - const snapshotContent = accumulatedMessage.content[content.index]; - if (snapshotContent?.type == "text") this._emit("textCreated", snapshotContent.text); - } - switch (event.event) { - case "thread.message.created": - this._emit("messageCreated", event.data); - break; - case "thread.message.in_progress": break; - case "thread.message.delta": - this._emit("messageDelta", event.data.delta, accumulatedMessage); - if (event.data.delta.content) for (const content of event.data.delta.content) { - if (content.type == "text" && content.text) { - let textDelta = content.text; - let snapshot = accumulatedMessage.content[content.index]; - if (snapshot && snapshot.type == "text") this._emit("textDelta", textDelta, snapshot.text); - else throw Error("The snapshot associated with this text delta is not text or missing"); - } - if (content.index != __classPrivateFieldGet$3(this, _AssistantStream_currentContentIndex, "f")) { - if (__classPrivateFieldGet$3(this, _AssistantStream_currentContent, "f")) switch (__classPrivateFieldGet$3(this, _AssistantStream_currentContent, "f").type) { - case "text": - this._emit("textDone", __classPrivateFieldGet$3(this, _AssistantStream_currentContent, "f").text, __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f")); - break; - case "image_file": - this._emit("imageFileDone", __classPrivateFieldGet$3(this, _AssistantStream_currentContent, "f").image_file, __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f")); - break; - } - __classPrivateFieldSet$2(this, _AssistantStream_currentContentIndex, content.index, "f"); - } - __classPrivateFieldSet$2(this, _AssistantStream_currentContent, accumulatedMessage.content[content.index], "f"); - } - break; - case "thread.message.completed": - case "thread.message.incomplete": - if (__classPrivateFieldGet$3(this, _AssistantStream_currentContentIndex, "f") !== void 0) { - const currentContent = event.data.content[__classPrivateFieldGet$3(this, _AssistantStream_currentContentIndex, "f")]; - if (currentContent) switch (currentContent.type) { - case "image_file": - this._emit("imageFileDone", currentContent.image_file, __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f")); - break; - case "text": - this._emit("textDone", currentContent.text, __classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f")); - break; - } - } - if (__classPrivateFieldGet$3(this, _AssistantStream_messageSnapshot, "f")) this._emit("messageDone", event.data); - __classPrivateFieldSet$2(this, _AssistantStream_messageSnapshot, void 0, "f"); - } -}, _AssistantStream_handleRunStep = function _AssistantStream_handleRunStep$1(event) { - const accumulatedRunStep = __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_accumulateRunStep).call(this, event); - __classPrivateFieldSet$2(this, _AssistantStream_currentRunStepSnapshot, accumulatedRunStep, "f"); - switch (event.event) { - case "thread.run.step.created": - this._emit("runStepCreated", event.data); - break; - case "thread.run.step.delta": - const delta = event.data.delta; - if (delta.step_details && delta.step_details.type == "tool_calls" && delta.step_details.tool_calls && accumulatedRunStep.step_details.type == "tool_calls") for (const toolCall of delta.step_details.tool_calls) if (toolCall.index == __classPrivateFieldGet$3(this, _AssistantStream_currentToolCallIndex, "f")) this._emit("toolCallDelta", toolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index]); - else { - if (__classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")) this._emit("toolCallDone", __classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")); - __classPrivateFieldSet$2(this, _AssistantStream_currentToolCallIndex, toolCall.index, "f"); - __classPrivateFieldSet$2(this, _AssistantStream_currentToolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index], "f"); - if (__classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")) this._emit("toolCallCreated", __classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")); - } - this._emit("runStepDelta", event.data.delta, accumulatedRunStep); - break; - case "thread.run.step.completed": - case "thread.run.step.failed": - case "thread.run.step.cancelled": - case "thread.run.step.expired": - __classPrivateFieldSet$2(this, _AssistantStream_currentRunStepSnapshot, void 0, "f"); - const details = event.data.step_details; - if (details.type == "tool_calls") { - if (__classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")) { - this._emit("toolCallDone", __classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")); - __classPrivateFieldSet$2(this, _AssistantStream_currentToolCall, void 0, "f"); - } - } - this._emit("runStepDone", event.data, accumulatedRunStep); - break; - case "thread.run.step.in_progress": break; - } -}, _AssistantStream_handleEvent = function _AssistantStream_handleEvent$1(event) { - __classPrivateFieldGet$3(this, _AssistantStream_events, "f").push(event); - this._emit("event", event); -}, _AssistantStream_accumulateRunStep = function _AssistantStream_accumulateRunStep$1(event) { - switch (event.event) { - case "thread.run.step.created": - __classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = event.data; - return event.data; - case "thread.run.step.delta": - let snapshot = __classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; - if (!snapshot) throw Error("Received a RunStepDelta before creation of a snapshot"); - let data = event.data; - if (data.delta) { - const accumulated = AssistantStream.accumulateDelta(snapshot, data.delta); - __classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = accumulated; - } - return __classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; - case "thread.run.step.completed": - case "thread.run.step.failed": - case "thread.run.step.cancelled": - case "thread.run.step.expired": - case "thread.run.step.in_progress": - __classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id] = event.data; - break; - } - if (__classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]) return __classPrivateFieldGet$3(this, _AssistantStream_runStepSnapshots, "f")[event.data.id]; - throw new Error("No snapshot available"); -}, _AssistantStream_accumulateMessage = function _AssistantStream_accumulateMessage$1(event, snapshot) { - let newContent = []; - switch (event.event) { - case "thread.message.created": return [event.data, newContent]; - case "thread.message.delta": - if (!snapshot) throw Error("Received a delta with no existing snapshot (there should be one from message creation)"); - let data = event.data; - if (data.delta.content) for (const contentElement of data.delta.content) if (contentElement.index in snapshot.content) { - let currentContent = snapshot.content[contentElement.index]; - snapshot.content[contentElement.index] = __classPrivateFieldGet$3(this, _AssistantStream_instances, "m", _AssistantStream_accumulateContent).call(this, contentElement, currentContent); - } else { - snapshot.content[contentElement.index] = contentElement; - newContent.push(contentElement); - } - return [snapshot, newContent]; - case "thread.message.in_progress": - case "thread.message.completed": - case "thread.message.incomplete": if (snapshot) return [snapshot, newContent]; - else throw Error("Received thread message event with no existing snapshot"); - } - throw Error("Tried to accumulate a non-message event"); -}, _AssistantStream_accumulateContent = function _AssistantStream_accumulateContent$1(contentElement, currentContent) { - return AssistantStream.accumulateDelta(currentContent, contentElement); -}, _AssistantStream_handleRun = function _AssistantStream_handleRun$1(event) { - __classPrivateFieldSet$2(this, _AssistantStream_currentRunSnapshot, event.data, "f"); - switch (event.event) { - case "thread.run.created": break; - case "thread.run.queued": break; - case "thread.run.in_progress": break; - case "thread.run.requires_action": - case "thread.run.cancelled": - case "thread.run.failed": - case "thread.run.completed": - case "thread.run.expired": - __classPrivateFieldSet$2(this, _AssistantStream_finalRun, event.data, "f"); - if (__classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")) { - this._emit("toolCallDone", __classPrivateFieldGet$3(this, _AssistantStream_currentToolCall, "f")); - __classPrivateFieldSet$2(this, _AssistantStream_currentToolCall, void 0, "f"); - } - break; - case "thread.run.cancelling": break; - } -}; -function assertNever$1(_x) {} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/assistants.mjs -var Assistants = class extends APIResource { - /** - * Create an assistant with a model and instructions. - * - * @example - * ```ts - * const assistant = await client.beta.assistants.create({ - * model: 'gpt-4o', - * }); - * ``` - */ - create(body, options) { - return this._client.post("/assistants", { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Retrieves an assistant. - * - * @example - * ```ts - * const assistant = await client.beta.assistants.retrieve( - * 'assistant_id', - * ); - * ``` - */ - retrieve(assistantId, options) { - return this._client.get(`/assistants/${assistantId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Modifies an assistant. - * - * @example - * ```ts - * const assistant = await client.beta.assistants.update( - * 'assistant_id', - * ); - * ``` - */ - update(assistantId, body, options) { - return this._client.post(`/assistants/${assistantId}`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/assistants", AssistantsPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Delete an assistant. - * - * @example - * ```ts - * const assistantDeleted = await client.beta.assistants.del( - * 'assistant_id', - * ); - * ``` - */ - del(assistantId, options) { - return this._client.delete(`/assistants/${assistantId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; -var AssistantsPage = class extends CursorPage {}; -Assistants.AssistantsPage = AssistantsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/RunnableFunction.mjs -function isRunnableFunctionWithParse(fn) { - return typeof fn.parse === "function"; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/chatCompletionUtils.mjs -const isAssistantMessage = (message) => { - return message?.role === "assistant"; -}; -const isFunctionMessage = (message) => { - return message?.role === "function"; -}; -const isToolMessage$1 = (message) => { - return message?.role === "tool"; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/parser.mjs -function makeParseableResponseFormat(response_format, parser) { - const obj = { ...response_format }; - Object.defineProperties(obj, { - $brand: { - value: "auto-parseable-response-format", - enumerable: false - }, - $parseRaw: { - value: parser, - enumerable: false - } - }); - return obj; -} -function isAutoParsableResponseFormat(response_format) { - return response_format?.["$brand"] === "auto-parseable-response-format"; -} -function isAutoParsableTool$1(tool$1) { - return tool$1?.["$brand"] === "auto-parseable-tool"; -} -function maybeParseChatCompletion(completion, params) { - if (!params || !hasAutoParseableInput$1(params)) return { - ...completion, - choices: completion.choices.map((choice) => ({ - ...choice, - message: { - ...choice.message, - parsed: null, - ...choice.message.tool_calls ? { tool_calls: choice.message.tool_calls } : void 0 - } - })) - }; - return parseChatCompletion(completion, params); -} -function parseChatCompletion(completion, params) { - const choices = completion.choices.map((choice) => { - if (choice.finish_reason === "length") throw new LengthFinishReasonError(); - if (choice.finish_reason === "content_filter") throw new ContentFilterFinishReasonError(); - return { - ...choice, - message: { - ...choice.message, - ...choice.message.tool_calls ? { tool_calls: choice.message.tool_calls?.map((toolCall) => parseToolCall$2(params, toolCall)) ?? void 0 } : void 0, - parsed: choice.message.content && !choice.message.refusal ? parseResponseFormat(params, choice.message.content) : null - } - }; - }); - return { - ...completion, - choices - }; -} -function parseResponseFormat(params, content) { - if (params.response_format?.type !== "json_schema") return null; - if (params.response_format?.type === "json_schema") { - if ("$parseRaw" in params.response_format) { - const response_format = params.response_format; - return response_format.$parseRaw(content); - } - return JSON.parse(content); - } - return null; -} -function parseToolCall$2(params, toolCall) { - const inputTool = params.tools?.find((inputTool$1) => inputTool$1.function?.name === toolCall.function.name); - return { - ...toolCall, - function: { - ...toolCall.function, - parsed_arguments: isAutoParsableTool$1(inputTool) ? inputTool.$parseRaw(toolCall.function.arguments) : inputTool?.function.strict ? JSON.parse(toolCall.function.arguments) : null - } - }; -} -function shouldParseToolCall(params, toolCall) { - if (!params) return false; - const inputTool = params.tools?.find((inputTool$1) => inputTool$1.function?.name === toolCall.function.name); - return isAutoParsableTool$1(inputTool) || inputTool?.function.strict || false; -} -function hasAutoParseableInput$1(params) { - if (isAutoParsableResponseFormat(params.response_format)) return true; - return params.tools?.some((t) => isAutoParsableTool$1(t) || t.type === "function" && t.function.strict === true) ?? false; -} -function validateInputTools(tools) { - for (const tool$1 of tools ?? []) { - if (tool$1.type !== "function") throw new OpenAIError(`Currently only \`function\` tool types support auto-parsing; Received \`${tool$1.type}\``); - if (tool$1.function.strict !== true) throw new OpenAIError(`The \`${tool$1.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`); - } -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/AbstractChatCompletionRunner.mjs -var __classPrivateFieldGet$2 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _AbstractChatCompletionRunner_instances, _AbstractChatCompletionRunner_getFinalContent, _AbstractChatCompletionRunner_getFinalMessage, _AbstractChatCompletionRunner_getFinalFunctionCall, _AbstractChatCompletionRunner_getFinalFunctionCallResult, _AbstractChatCompletionRunner_calculateTotalUsage, _AbstractChatCompletionRunner_validateParams, _AbstractChatCompletionRunner_stringifyFunctionCallResult; -const DEFAULT_MAX_CHAT_COMPLETIONS = 10; -var AbstractChatCompletionRunner = class extends EventStream { - constructor() { - super(...arguments); - _AbstractChatCompletionRunner_instances.add(this); - this._chatCompletions = []; - this.messages = []; - } - _addChatCompletion(chatCompletion) { - this._chatCompletions.push(chatCompletion); - this._emit("chatCompletion", chatCompletion); - const message = chatCompletion.choices[0]?.message; - if (message) this._addMessage(message); - return chatCompletion; - } - _addMessage(message, emit = true) { - if (!("content" in message)) message.content = null; - this.messages.push(message); - if (emit) { - this._emit("message", message); - if ((isFunctionMessage(message) || isToolMessage$1(message)) && message.content) this._emit("functionCallResult", message.content); - else if (isAssistantMessage(message) && message.function_call) this._emit("functionCall", message.function_call); - else if (isAssistantMessage(message) && message.tool_calls) { - for (const tool_call of message.tool_calls) if (tool_call.type === "function") this._emit("functionCall", tool_call.function); - } - } - } - /** - * @returns a promise that resolves with the final ChatCompletion, or rejects - * if an error occurred or the stream ended prematurely without producing a ChatCompletion. - */ - async finalChatCompletion() { - await this.done(); - const completion = this._chatCompletions[this._chatCompletions.length - 1]; - if (!completion) throw new OpenAIError("stream ended without producing a ChatCompletion"); - return completion; - } - /** - * @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects - * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. - */ - async finalContent() { - await this.done(); - return __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalContent).call(this); - } - /** - * @returns a promise that resolves with the the final assistant ChatCompletionMessage response, - * or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. - */ - async finalMessage() { - await this.done(); - return __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this); - } - /** - * @returns a promise that resolves with the content of the final FunctionCall, or rejects - * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. - */ - async finalFunctionCall() { - await this.done(); - return __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionCall).call(this); - } - async finalFunctionCallResult() { - await this.done(); - return __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionCallResult).call(this); - } - async totalUsage() { - await this.done(); - return __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this); - } - allChatCompletions() { - return [...this._chatCompletions]; - } - _emitFinal() { - const completion = this._chatCompletions[this._chatCompletions.length - 1]; - if (completion) this._emit("finalChatCompletion", completion); - const finalMessage = __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this); - if (finalMessage) this._emit("finalMessage", finalMessage); - const finalContent = __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalContent).call(this); - if (finalContent) this._emit("finalContent", finalContent); - const finalFunctionCall = __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionCall).call(this); - if (finalFunctionCall) this._emit("finalFunctionCall", finalFunctionCall); - const finalFunctionCallResult = __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalFunctionCallResult).call(this); - if (finalFunctionCallResult != null) this._emit("finalFunctionCallResult", finalFunctionCallResult); - if (this._chatCompletions.some((c) => c.usage)) this._emit("totalUsage", __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_calculateTotalUsage).call(this)); - } - async _createChatCompletion(client, params, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_validateParams).call(this, params); - const chatCompletion = await client.chat.completions.create({ - ...params, - stream: false - }, { - ...options, - signal: this.controller.signal - }); - this._connected(); - return this._addChatCompletion(parseChatCompletion(chatCompletion, params)); - } - async _runChatCompletion(client, params, options) { - for (const message of params.messages) this._addMessage(message, false); - return await this._createChatCompletion(client, params, options); - } - async _runFunctions(client, params, options) { - const role = "function"; - const { function_call = "auto", stream,...restParams } = params; - const singleFunctionToCall = typeof function_call !== "string" && function_call?.name; - const { maxChatCompletions = DEFAULT_MAX_CHAT_COMPLETIONS } = options || {}; - const functionsByName = {}; - for (const f of params.functions) functionsByName[f.name || f.function.name] = f; - const functions = params.functions.map((f) => ({ - name: f.name || f.function.name, - parameters: f.parameters, - description: f.description - })); - for (const message of params.messages) this._addMessage(message, false); - for (let i$4 = 0; i$4 < maxChatCompletions; ++i$4) { - const chatCompletion = await this._createChatCompletion(client, { - ...restParams, - function_call, - functions, - messages: [...this.messages] - }, options); - const message = chatCompletion.choices[0]?.message; - if (!message) throw new OpenAIError(`missing message in ChatCompletion response`); - if (!message.function_call) return; - const { name, arguments: args } = message.function_call; - const fn = functionsByName[name]; - if (!fn) { - const content$1 = `Invalid function_call: ${JSON.stringify(name)}. Available options are: ${functions.map((f) => JSON.stringify(f.name)).join(", ")}. Please try again`; - this._addMessage({ - role, - name, - content: content$1 - }); - continue; - } else if (singleFunctionToCall && singleFunctionToCall !== name) { - const content$1 = `Invalid function_call: ${JSON.stringify(name)}. ${JSON.stringify(singleFunctionToCall)} requested. Please try again`; - this._addMessage({ - role, - name, - content: content$1 - }); - continue; - } - let parsed; - try { - parsed = isRunnableFunctionWithParse(fn) ? await fn.parse(args) : args; - } catch (error) { - this._addMessage({ - role, - name, - content: error instanceof Error ? error.message : String(error) - }); - continue; - } - const rawContent = await fn.function(parsed, this); - const content = __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_stringifyFunctionCallResult).call(this, rawContent); - this._addMessage({ - role, - name, - content - }); - if (singleFunctionToCall) return; - } - } - async _runTools(client, params, options) { - const role = "tool"; - const { tool_choice = "auto", stream,...restParams } = params; - const singleFunctionToCall = typeof tool_choice !== "string" && tool_choice?.function?.name; - const { maxChatCompletions = DEFAULT_MAX_CHAT_COMPLETIONS } = options || {}; - const inputTools = params.tools.map((tool$1) => { - if (isAutoParsableTool$1(tool$1)) { - if (!tool$1.$callback) throw new OpenAIError("Tool given to `.runTools()` that does not have an associated function"); - return { - type: "function", - function: { - function: tool$1.$callback, - name: tool$1.function.name, - description: tool$1.function.description || "", - parameters: tool$1.function.parameters, - parse: tool$1.$parseRaw, - strict: true - } - }; - } - return tool$1; - }); - const functionsByName = {}; - for (const f of inputTools) if (f.type === "function") functionsByName[f.function.name || f.function.function.name] = f.function; - const tools = "tools" in params ? inputTools.map((t) => t.type === "function" ? { - type: "function", - function: { - name: t.function.name || t.function.function.name, - parameters: t.function.parameters, - description: t.function.description, - strict: t.function.strict - } - } : t) : void 0; - for (const message of params.messages) this._addMessage(message, false); - for (let i$4 = 0; i$4 < maxChatCompletions; ++i$4) { - const chatCompletion = await this._createChatCompletion(client, { - ...restParams, - tool_choice, - tools, - messages: [...this.messages] - }, options); - const message = chatCompletion.choices[0]?.message; - if (!message) throw new OpenAIError(`missing message in ChatCompletion response`); - if (!message.tool_calls?.length) return; - for (const tool_call of message.tool_calls) { - if (tool_call.type !== "function") continue; - const tool_call_id = tool_call.id; - const { name, arguments: args } = tool_call.function; - const fn = functionsByName[name]; - if (!fn) { - const content$1 = `Invalid tool_call: ${JSON.stringify(name)}. Available options are: ${Object.keys(functionsByName).map((name$1) => JSON.stringify(name$1)).join(", ")}. Please try again`; - this._addMessage({ - role, - tool_call_id, - content: content$1 - }); - continue; - } else if (singleFunctionToCall && singleFunctionToCall !== name) { - const content$1 = `Invalid tool_call: ${JSON.stringify(name)}. ${JSON.stringify(singleFunctionToCall)} requested. Please try again`; - this._addMessage({ - role, - tool_call_id, - content: content$1 - }); - continue; - } - let parsed; - try { - parsed = isRunnableFunctionWithParse(fn) ? await fn.parse(args) : args; - } catch (error) { - const content$1 = error instanceof Error ? error.message : String(error); - this._addMessage({ - role, - tool_call_id, - content: content$1 - }); - continue; - } - const rawContent = await fn.function(parsed, this); - const content = __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_stringifyFunctionCallResult).call(this, rawContent); - this._addMessage({ - role, - tool_call_id, - content - }); - if (singleFunctionToCall) return; - } - } - return; - } -}; -_AbstractChatCompletionRunner_instances = /* @__PURE__ */ new WeakSet(), _AbstractChatCompletionRunner_getFinalContent = function _AbstractChatCompletionRunner_getFinalContent$1() { - return __classPrivateFieldGet$2(this, _AbstractChatCompletionRunner_instances, "m", _AbstractChatCompletionRunner_getFinalMessage).call(this).content ?? null; -}, _AbstractChatCompletionRunner_getFinalMessage = function _AbstractChatCompletionRunner_getFinalMessage$1() { - let i$4 = this.messages.length; - while (i$4-- > 0) { - const message = this.messages[i$4]; - if (isAssistantMessage(message)) { - const { function_call,...rest } = message; - const ret = { - ...rest, - content: message.content ?? null, - refusal: message.refusal ?? null - }; - if (function_call) ret.function_call = function_call; - return ret; - } - } - throw new OpenAIError("stream ended without producing a ChatCompletionMessage with role=assistant"); -}, _AbstractChatCompletionRunner_getFinalFunctionCall = function _AbstractChatCompletionRunner_getFinalFunctionCall$1() { - for (let i$4 = this.messages.length - 1; i$4 >= 0; i$4--) { - const message = this.messages[i$4]; - if (isAssistantMessage(message) && message?.function_call) return message.function_call; - if (isAssistantMessage(message) && message?.tool_calls?.length) return message.tool_calls.at(-1)?.function; - } - return; -}, _AbstractChatCompletionRunner_getFinalFunctionCallResult = function _AbstractChatCompletionRunner_getFinalFunctionCallResult$1() { - for (let i$4 = this.messages.length - 1; i$4 >= 0; i$4--) { - const message = this.messages[i$4]; - if (isFunctionMessage(message) && message.content != null) return message.content; - if (isToolMessage$1(message) && message.content != null && typeof message.content === "string" && this.messages.some((x) => x.role === "assistant" && x.tool_calls?.some((y$1) => y$1.type === "function" && y$1.id === message.tool_call_id))) return message.content; - } - return; -}, _AbstractChatCompletionRunner_calculateTotalUsage = function _AbstractChatCompletionRunner_calculateTotalUsage$1() { - const total = { - completion_tokens: 0, - prompt_tokens: 0, - total_tokens: 0 - }; - for (const { usage } of this._chatCompletions) if (usage) { - total.completion_tokens += usage.completion_tokens; - total.prompt_tokens += usage.prompt_tokens; - total.total_tokens += usage.total_tokens; - } - return total; -}, _AbstractChatCompletionRunner_validateParams = function _AbstractChatCompletionRunner_validateParams$1(params) { - if (params.n != null && params.n > 1) throw new OpenAIError("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly."); -}, _AbstractChatCompletionRunner_stringifyFunctionCallResult = function _AbstractChatCompletionRunner_stringifyFunctionCallResult$1(rawContent) { - return typeof rawContent === "string" ? rawContent : rawContent === void 0 ? "undefined" : JSON.stringify(rawContent); -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/ChatCompletionRunner.mjs -var ChatCompletionRunner = class ChatCompletionRunner extends AbstractChatCompletionRunner { - /** @deprecated - please use `runTools` instead. */ - static runFunctions(client, params, options) { - const runner = new ChatCompletionRunner(); - const opts = { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "runFunctions" - } - }; - runner._run(() => runner._runFunctions(client, params, opts)); - return runner; - } - static runTools(client, params, options) { - const runner = new ChatCompletionRunner(); - const opts = { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "runTools" - } - }; - runner._run(() => runner._runTools(client, params, opts)); - return runner; - } - _addMessage(message, emit = true) { - super._addMessage(message, emit); - if (isAssistantMessage(message) && message.content) this._emit("content", message.content); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/partial-json-parser/parser.mjs -const STR = 1; -const NUM = 2; -const ARR = 4; -const OBJ = 8; -const NULL = 16; -const BOOL = 32; -const NAN = 64; -const INFINITY = 128; -const MINUS_INFINITY = 256; -const INF = INFINITY | MINUS_INFINITY; -const SPECIAL = NULL | BOOL | INF | NAN; -const ATOM = STR | NUM | SPECIAL; -const COLLECTION = ARR | OBJ; -const ALL = ATOM | COLLECTION; -const Allow = { - STR, - NUM, - ARR, - OBJ, - NULL, - BOOL, - NAN, - INFINITY, - MINUS_INFINITY, - INF, - SPECIAL, - ATOM, - COLLECTION, - ALL -}; -var PartialJSON = class extends Error {}; -var MalformedJSON = class extends Error {}; -/** -* Parse incomplete JSON -* @param {string} jsonString Partial JSON to be parsed -* @param {number} allowPartial Specify what types are allowed to be partial, see {@link Allow} for details -* @returns The parsed JSON -* @throws {PartialJSON} If the JSON is incomplete (related to the `allow` parameter) -* @throws {MalformedJSON} If the JSON is malformed -*/ -function parseJSON(jsonString, allowPartial = Allow.ALL) { - if (typeof jsonString !== "string") throw new TypeError(`expecting str, got ${typeof jsonString}`); - if (!jsonString.trim()) throw new Error(`${jsonString} is empty`); - return _parseJSON(jsonString.trim(), allowPartial); -} -const _parseJSON = (jsonString, allow) => { - const length = jsonString.length; - let index = 0; - const markPartialJSON = (msg) => { - throw new PartialJSON(`${msg} at position ${index}`); - }; - const throwMalformedError = (msg) => { - throw new MalformedJSON(`${msg} at position ${index}`); - }; - const parseAny = () => { - skipBlank(); - if (index >= length) markPartialJSON("Unexpected end of input"); - if (jsonString[index] === "\"") return parseStr(); - if (jsonString[index] === "{") return parseObj(); - if (jsonString[index] === "[") return parseArr(); - if (jsonString.substring(index, index + 4) === "null" || Allow.NULL & allow && length - index < 4 && "null".startsWith(jsonString.substring(index))) { - index += 4; - return null; - } - if (jsonString.substring(index, index + 4) === "true" || Allow.BOOL & allow && length - index < 4 && "true".startsWith(jsonString.substring(index))) { - index += 4; - return true; - } - if (jsonString.substring(index, index + 5) === "false" || Allow.BOOL & allow && length - index < 5 && "false".startsWith(jsonString.substring(index))) { - index += 5; - return false; - } - if (jsonString.substring(index, index + 8) === "Infinity" || Allow.INFINITY & allow && length - index < 8 && "Infinity".startsWith(jsonString.substring(index))) { - index += 8; - return Infinity; - } - if (jsonString.substring(index, index + 9) === "-Infinity" || Allow.MINUS_INFINITY & allow && 1 < length - index && length - index < 9 && "-Infinity".startsWith(jsonString.substring(index))) { - index += 9; - return -Infinity; - } - if (jsonString.substring(index, index + 3) === "NaN" || Allow.NAN & allow && length - index < 3 && "NaN".startsWith(jsonString.substring(index))) { - index += 3; - return NaN; - } - return parseNum(); - }; - const parseStr = () => { - const start = index; - let escape$1 = false; - index++; - while (index < length && (jsonString[index] !== "\"" || escape$1 && jsonString[index - 1] === "\\")) { - escape$1 = jsonString[index] === "\\" ? !escape$1 : false; - index++; - } - if (jsonString.charAt(index) == "\"") try { - return JSON.parse(jsonString.substring(start, ++index - Number(escape$1))); - } catch (e) { - throwMalformedError(String(e)); - } - else if (Allow.STR & allow) try { - return JSON.parse(jsonString.substring(start, index - Number(escape$1)) + "\""); - } catch (e) { - return JSON.parse(jsonString.substring(start, jsonString.lastIndexOf("\\")) + "\""); - } - markPartialJSON("Unterminated string literal"); - }; - const parseObj = () => { - index++; - skipBlank(); - const obj = {}; - try { - while (jsonString[index] !== "}") { - skipBlank(); - if (index >= length && Allow.OBJ & allow) return obj; - const key$1 = parseStr(); - skipBlank(); - index++; - try { - const value = parseAny(); - Object.defineProperty(obj, key$1, { - value, - writable: true, - enumerable: true, - configurable: true - }); - } catch (e) { - if (Allow.OBJ & allow) return obj; - else throw e; - } - skipBlank(); - if (jsonString[index] === ",") index++; - } - } catch (e) { - if (Allow.OBJ & allow) return obj; - else markPartialJSON("Expected '}' at end of object"); - } - index++; - return obj; - }; - const parseArr = () => { - index++; - const arr$1 = []; - try { - while (jsonString[index] !== "]") { - arr$1.push(parseAny()); - skipBlank(); - if (jsonString[index] === ",") index++; - } - } catch (e) { - if (Allow.ARR & allow) return arr$1; - markPartialJSON("Expected ']' at end of array"); - } - index++; - return arr$1; - }; - const parseNum = () => { - if (index === 0) { - if (jsonString === "-" && Allow.NUM & allow) markPartialJSON("Not sure what '-' is"); - try { - return JSON.parse(jsonString); - } catch (e) { - if (Allow.NUM & allow) try { - if ("." === jsonString[jsonString.length - 1]) return JSON.parse(jsonString.substring(0, jsonString.lastIndexOf("."))); - return JSON.parse(jsonString.substring(0, jsonString.lastIndexOf("e"))); - } catch (e$1) {} - throwMalformedError(String(e)); - } - } - const start = index; - if (jsonString[index] === "-") index++; - while (jsonString[index] && !",]}".includes(jsonString[index])) index++; - if (index == length && !(Allow.NUM & allow)) markPartialJSON("Unterminated number literal"); - try { - return JSON.parse(jsonString.substring(start, index)); - } catch (e) { - if (jsonString.substring(start, index) === "-" && Allow.NUM & allow) markPartialJSON("Not sure what '-' is"); - try { - return JSON.parse(jsonString.substring(start, jsonString.lastIndexOf("e"))); - } catch (e$1) { - throwMalformedError(String(e$1)); - } - } - }; - const skipBlank = () => { - while (index < length && " \n\r ".includes(jsonString[index])) index++; - }; - return parseAny(); -}; -const partialParse = (input) => parseJSON(input, Allow.ALL ^ Allow.NUM); - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/ChatCompletionStream.mjs -var __classPrivateFieldSet$1 = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var __classPrivateFieldGet$1 = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ChatCompletionStream_instances, _ChatCompletionStream_params, _ChatCompletionStream_choiceEventStates, _ChatCompletionStream_currentChatCompletionSnapshot, _ChatCompletionStream_beginRequest, _ChatCompletionStream_getChoiceEventState, _ChatCompletionStream_addChunk, _ChatCompletionStream_emitToolCallDoneEvent, _ChatCompletionStream_emitContentDoneEvents, _ChatCompletionStream_endRequest, _ChatCompletionStream_getAutoParseableResponseFormat, _ChatCompletionStream_accumulateChatCompletion; -var ChatCompletionStream = class ChatCompletionStream extends AbstractChatCompletionRunner { - constructor(params) { - super(); - _ChatCompletionStream_instances.add(this); - _ChatCompletionStream_params.set(this, void 0); - _ChatCompletionStream_choiceEventStates.set(this, void 0); - _ChatCompletionStream_currentChatCompletionSnapshot.set(this, void 0); - __classPrivateFieldSet$1(this, _ChatCompletionStream_params, params, "f"); - __classPrivateFieldSet$1(this, _ChatCompletionStream_choiceEventStates, [], "f"); - } - get currentChatCompletionSnapshot() { - return __classPrivateFieldGet$1(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); - } - /** - * Intended for use on the frontend, consuming a stream produced with - * `.toReadableStream()` on the backend. - * - * Note that messages sent to the model do not appear in `.on('message')` - * in this context. - */ - static fromReadableStream(stream) { - const runner = new ChatCompletionStream(null); - runner._run(() => runner._fromReadableStream(stream)); - return runner; - } - static createChatCompletion(client, params, options) { - const runner = new ChatCompletionStream(params); - runner._run(() => runner._runChatCompletion(client, { - ...params, - stream: true - }, { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "stream" - } - })); - return runner; - } - async _createChatCompletion(client, params, options) { - super._createChatCompletion; - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_beginRequest).call(this); - const stream = await client.chat.completions.create({ - ...params, - stream: true - }, { - ...options, - signal: this.controller.signal - }); - this._connected(); - for await (const chunk of stream) __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_addChunk).call(this, chunk); - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return this._addChatCompletion(__classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); - } - async _fromReadableStream(readableStream, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_beginRequest).call(this); - this._connected(); - const stream = Stream.fromReadableStream(readableStream, this.controller); - let chatId; - for await (const chunk of stream) { - if (chatId && chatId !== chunk.id) this._addChatCompletion(__classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); - __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_addChunk).call(this, chunk); - chatId = chunk.id; - } - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return this._addChatCompletion(__classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_endRequest).call(this)); - } - [(_ChatCompletionStream_params = /* @__PURE__ */ new WeakMap(), _ChatCompletionStream_choiceEventStates = /* @__PURE__ */ new WeakMap(), _ChatCompletionStream_currentChatCompletionSnapshot = /* @__PURE__ */ new WeakMap(), _ChatCompletionStream_instances = /* @__PURE__ */ new WeakSet(), _ChatCompletionStream_beginRequest = function _ChatCompletionStream_beginRequest$1() { - if (this.ended) return; - __classPrivateFieldSet$1(this, _ChatCompletionStream_currentChatCompletionSnapshot, void 0, "f"); - }, _ChatCompletionStream_getChoiceEventState = function _ChatCompletionStream_getChoiceEventState$1(choice) { - let state = __classPrivateFieldGet$1(this, _ChatCompletionStream_choiceEventStates, "f")[choice.index]; - if (state) return state; - state = { - content_done: false, - refusal_done: false, - logprobs_content_done: false, - logprobs_refusal_done: false, - done_tool_calls: /* @__PURE__ */ new Set(), - current_tool_call_index: null - }; - __classPrivateFieldGet$1(this, _ChatCompletionStream_choiceEventStates, "f")[choice.index] = state; - return state; - }, _ChatCompletionStream_addChunk = function _ChatCompletionStream_addChunk$1(chunk) { - if (this.ended) return; - const completion = __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_accumulateChatCompletion).call(this, chunk); - this._emit("chunk", chunk, completion); - for (const choice of chunk.choices) { - const choiceSnapshot = completion.choices[choice.index]; - if (choice.delta.content != null && choiceSnapshot.message?.role === "assistant" && choiceSnapshot.message?.content) { - this._emit("content", choice.delta.content, choiceSnapshot.message.content); - this._emit("content.delta", { - delta: choice.delta.content, - snapshot: choiceSnapshot.message.content, - parsed: choiceSnapshot.message.parsed - }); - } - if (choice.delta.refusal != null && choiceSnapshot.message?.role === "assistant" && choiceSnapshot.message?.refusal) this._emit("refusal.delta", { - delta: choice.delta.refusal, - snapshot: choiceSnapshot.message.refusal - }); - if (choice.logprobs?.content != null && choiceSnapshot.message?.role === "assistant") this._emit("logprobs.content.delta", { - content: choice.logprobs?.content, - snapshot: choiceSnapshot.logprobs?.content ?? [] - }); - if (choice.logprobs?.refusal != null && choiceSnapshot.message?.role === "assistant") this._emit("logprobs.refusal.delta", { - refusal: choice.logprobs?.refusal, - snapshot: choiceSnapshot.logprobs?.refusal ?? [] - }); - const state = __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); - if (choiceSnapshot.finish_reason) { - __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitContentDoneEvents).call(this, choiceSnapshot); - if (state.current_tool_call_index != null) __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitToolCallDoneEvent).call(this, choiceSnapshot, state.current_tool_call_index); - } - for (const toolCall of choice.delta.tool_calls ?? []) { - if (state.current_tool_call_index !== toolCall.index) { - __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitContentDoneEvents).call(this, choiceSnapshot); - if (state.current_tool_call_index != null) __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_emitToolCallDoneEvent).call(this, choiceSnapshot, state.current_tool_call_index); - } - state.current_tool_call_index = toolCall.index; - } - for (const toolCallDelta of choice.delta.tool_calls ?? []) { - const toolCallSnapshot = choiceSnapshot.message.tool_calls?.[toolCallDelta.index]; - if (!toolCallSnapshot?.type) continue; - if (toolCallSnapshot?.type === "function") this._emit("tool_calls.function.arguments.delta", { - name: toolCallSnapshot.function?.name, - index: toolCallDelta.index, - arguments: toolCallSnapshot.function.arguments, - parsed_arguments: toolCallSnapshot.function.parsed_arguments, - arguments_delta: toolCallDelta.function?.arguments ?? "" - }); - else assertNever(toolCallSnapshot?.type); - } - } - }, _ChatCompletionStream_emitToolCallDoneEvent = function _ChatCompletionStream_emitToolCallDoneEvent$1(choiceSnapshot, toolCallIndex) { - const state = __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); - if (state.done_tool_calls.has(toolCallIndex)) return; - const toolCallSnapshot = choiceSnapshot.message.tool_calls?.[toolCallIndex]; - if (!toolCallSnapshot) throw new Error("no tool call snapshot"); - if (!toolCallSnapshot.type) throw new Error("tool call snapshot missing `type`"); - if (toolCallSnapshot.type === "function") { - const inputTool = __classPrivateFieldGet$1(this, _ChatCompletionStream_params, "f")?.tools?.find((tool$1) => tool$1.type === "function" && tool$1.function.name === toolCallSnapshot.function.name); - this._emit("tool_calls.function.arguments.done", { - name: toolCallSnapshot.function.name, - index: toolCallIndex, - arguments: toolCallSnapshot.function.arguments, - parsed_arguments: isAutoParsableTool$1(inputTool) ? inputTool.$parseRaw(toolCallSnapshot.function.arguments) : inputTool?.function.strict ? JSON.parse(toolCallSnapshot.function.arguments) : null - }); - } else assertNever(toolCallSnapshot.type); - }, _ChatCompletionStream_emitContentDoneEvents = function _ChatCompletionStream_emitContentDoneEvents$1(choiceSnapshot) { - const state = __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getChoiceEventState).call(this, choiceSnapshot); - if (choiceSnapshot.message.content && !state.content_done) { - state.content_done = true; - const responseFormat = __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getAutoParseableResponseFormat).call(this); - this._emit("content.done", { - content: choiceSnapshot.message.content, - parsed: responseFormat ? responseFormat.$parseRaw(choiceSnapshot.message.content) : null - }); - } - if (choiceSnapshot.message.refusal && !state.refusal_done) { - state.refusal_done = true; - this._emit("refusal.done", { refusal: choiceSnapshot.message.refusal }); - } - if (choiceSnapshot.logprobs?.content && !state.logprobs_content_done) { - state.logprobs_content_done = true; - this._emit("logprobs.content.done", { content: choiceSnapshot.logprobs.content }); - } - if (choiceSnapshot.logprobs?.refusal && !state.logprobs_refusal_done) { - state.logprobs_refusal_done = true; - this._emit("logprobs.refusal.done", { refusal: choiceSnapshot.logprobs.refusal }); - } - }, _ChatCompletionStream_endRequest = function _ChatCompletionStream_endRequest$1() { - if (this.ended) throw new OpenAIError(`stream has ended, this shouldn't happen`); - const snapshot = __classPrivateFieldGet$1(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); - if (!snapshot) throw new OpenAIError(`request ended without sending any chunks`); - __classPrivateFieldSet$1(this, _ChatCompletionStream_currentChatCompletionSnapshot, void 0, "f"); - __classPrivateFieldSet$1(this, _ChatCompletionStream_choiceEventStates, [], "f"); - return finalizeChatCompletion(snapshot, __classPrivateFieldGet$1(this, _ChatCompletionStream_params, "f")); - }, _ChatCompletionStream_getAutoParseableResponseFormat = function _ChatCompletionStream_getAutoParseableResponseFormat$1() { - const responseFormat = __classPrivateFieldGet$1(this, _ChatCompletionStream_params, "f")?.response_format; - if (isAutoParsableResponseFormat(responseFormat)) return responseFormat; - return null; - }, _ChatCompletionStream_accumulateChatCompletion = function _ChatCompletionStream_accumulateChatCompletion$1(chunk) { - var _a$1, _b, _c, _d; - let snapshot = __classPrivateFieldGet$1(this, _ChatCompletionStream_currentChatCompletionSnapshot, "f"); - const { choices,...rest } = chunk; - if (!snapshot) snapshot = __classPrivateFieldSet$1(this, _ChatCompletionStream_currentChatCompletionSnapshot, { - ...rest, - choices: [] - }, "f"); - else Object.assign(snapshot, rest); - for (const { delta, finish_reason, index, logprobs = null,...other } of chunk.choices) { - let choice = snapshot.choices[index]; - if (!choice) choice = snapshot.choices[index] = { - finish_reason, - index, - message: {}, - logprobs, - ...other - }; - if (logprobs) if (!choice.logprobs) choice.logprobs = Object.assign({}, logprobs); - else { - const { content: content$1, refusal: refusal$1,...rest$2 } = logprobs; - assertIsEmpty(rest$2); - Object.assign(choice.logprobs, rest$2); - if (content$1) { - (_a$1 = choice.logprobs).content ?? (_a$1.content = []); - choice.logprobs.content.push(...content$1); - } - if (refusal$1) { - (_b = choice.logprobs).refusal ?? (_b.refusal = []); - choice.logprobs.refusal.push(...refusal$1); - } - } - if (finish_reason) { - choice.finish_reason = finish_reason; - if (__classPrivateFieldGet$1(this, _ChatCompletionStream_params, "f") && hasAutoParseableInput$1(__classPrivateFieldGet$1(this, _ChatCompletionStream_params, "f"))) { - if (finish_reason === "length") throw new LengthFinishReasonError(); - if (finish_reason === "content_filter") throw new ContentFilterFinishReasonError(); - } - } - Object.assign(choice, other); - if (!delta) continue; - const { content, refusal, function_call, role, tool_calls,...rest$1 } = delta; - assertIsEmpty(rest$1); - Object.assign(choice.message, rest$1); - if (refusal) choice.message.refusal = (choice.message.refusal || "") + refusal; - if (role) choice.message.role = role; - if (function_call) if (!choice.message.function_call) choice.message.function_call = function_call; - else { - if (function_call.name) choice.message.function_call.name = function_call.name; - if (function_call.arguments) { - (_c = choice.message.function_call).arguments ?? (_c.arguments = ""); - choice.message.function_call.arguments += function_call.arguments; - } - } - if (content) { - choice.message.content = (choice.message.content || "") + content; - if (!choice.message.refusal && __classPrivateFieldGet$1(this, _ChatCompletionStream_instances, "m", _ChatCompletionStream_getAutoParseableResponseFormat).call(this)) choice.message.parsed = partialParse(choice.message.content); - } - if (tool_calls) { - if (!choice.message.tool_calls) choice.message.tool_calls = []; - for (const { index: index$1, id, type, function: fn,...rest$2 } of tool_calls) { - const tool_call = (_d = choice.message.tool_calls)[index$1] ?? (_d[index$1] = {}); - Object.assign(tool_call, rest$2); - if (id) tool_call.id = id; - if (type) tool_call.type = type; - if (fn) tool_call.function ?? (tool_call.function = { - name: fn.name ?? "", - arguments: "" - }); - if (fn?.name) tool_call.function.name = fn.name; - if (fn?.arguments) { - tool_call.function.arguments += fn.arguments; - if (shouldParseToolCall(__classPrivateFieldGet$1(this, _ChatCompletionStream_params, "f"), tool_call)) tool_call.function.parsed_arguments = partialParse(tool_call.function.arguments); - } - } - } - } - return snapshot; - }, Symbol.asyncIterator)]() { - const pushQueue = []; - const readQueue = []; - let done = false; - this.on("chunk", (chunk) => { - const reader = readQueue.shift(); - if (reader) reader.resolve(chunk); - else pushQueue.push(chunk); - }); - this.on("end", () => { - done = true; - for (const reader of readQueue) reader.resolve(void 0); - readQueue.length = 0; - }); - this.on("abort", (err) => { - done = true; - for (const reader of readQueue) reader.reject(err); - readQueue.length = 0; - }); - this.on("error", (err) => { - done = true; - for (const reader of readQueue) reader.reject(err); - readQueue.length = 0; - }); - return { - next: async () => { - if (!pushQueue.length) { - if (done) return { - value: void 0, - done: true - }; - return new Promise((resolve, reject) => readQueue.push({ - resolve, - reject - })).then((chunk$1) => chunk$1 ? { - value: chunk$1, - done: false - } : { - value: void 0, - done: true - }); - } - const chunk = pushQueue.shift(); - return { - value: chunk, - done: false - }; - }, - return: async () => { - this.abort(); - return { - value: void 0, - done: true - }; - } - }; - } - toReadableStream() { - const stream = new Stream(this[Symbol.asyncIterator].bind(this), this.controller); - return stream.toReadableStream(); - } -}; -function finalizeChatCompletion(snapshot, params) { - const { id, choices, created, model, system_fingerprint,...rest } = snapshot; - const completion = { - ...rest, - id, - choices: choices.map(({ message, finish_reason, index, logprobs,...choiceRest }) => { - if (!finish_reason) throw new OpenAIError(`missing finish_reason for choice ${index}`); - const { content = null, function_call, tool_calls,...messageRest } = message; - const role = message.role; - if (!role) throw new OpenAIError(`missing role for choice ${index}`); - if (function_call) { - const { arguments: args, name } = function_call; - if (args == null) throw new OpenAIError(`missing function_call.arguments for choice ${index}`); - if (!name) throw new OpenAIError(`missing function_call.name for choice ${index}`); - return { - ...choiceRest, - message: { - content, - function_call: { - arguments: args, - name - }, - role, - refusal: message.refusal ?? null - }, - finish_reason, - index, - logprobs - }; - } - if (tool_calls) return { - ...choiceRest, - index, - finish_reason, - logprobs, - message: { - ...messageRest, - role, - content, - refusal: message.refusal ?? null, - tool_calls: tool_calls.map((tool_call, i$4) => { - const { function: fn, type, id: id$1,...toolRest } = tool_call; - const { arguments: args, name,...fnRest } = fn || {}; - if (id$1 == null) throw new OpenAIError(`missing choices[${index}].tool_calls[${i$4}].id\n${str(snapshot)}`); - if (type == null) throw new OpenAIError(`missing choices[${index}].tool_calls[${i$4}].type\n${str(snapshot)}`); - if (name == null) throw new OpenAIError(`missing choices[${index}].tool_calls[${i$4}].function.name\n${str(snapshot)}`); - if (args == null) throw new OpenAIError(`missing choices[${index}].tool_calls[${i$4}].function.arguments\n${str(snapshot)}`); - return { - ...toolRest, - id: id$1, - type, - function: { - ...fnRest, - name, - arguments: args - } - }; - }) - } - }; - return { - ...choiceRest, - message: { - ...messageRest, - content, - role, - refusal: message.refusal ?? null - }, - finish_reason, - index, - logprobs - }; - }), - created, - model, - object: "chat.completion", - ...system_fingerprint ? { system_fingerprint } : {} - }; - return maybeParseChatCompletion(completion, params); -} -function str(x) { - return JSON.stringify(x); -} -/** -* Ensures the given argument is an empty object, useful for -* asserting that all known properties on an object have been -* destructured. -*/ -function assertIsEmpty(obj) { - return; -} -function assertNever(_x) {} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs -var ChatCompletionStreamingRunner = class ChatCompletionStreamingRunner extends ChatCompletionStream { - static fromReadableStream(stream) { - const runner = new ChatCompletionStreamingRunner(null); - runner._run(() => runner._fromReadableStream(stream)); - return runner; - } - /** @deprecated - please use `runTools` instead. */ - static runFunctions(client, params, options) { - const runner = new ChatCompletionStreamingRunner(null); - const opts = { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "runFunctions" - } - }; - runner._run(() => runner._runFunctions(client, params, opts)); - return runner; - } - static runTools(client, params, options) { - const runner = new ChatCompletionStreamingRunner(params); - const opts = { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "runTools" - } - }; - runner._run(() => runner._runTools(client, params, opts)); - return runner; - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/chat/completions.mjs -var Completions$1 = class extends APIResource { - parse(body, options) { - validateInputTools(body.tools); - return this._client.chat.completions.create(body, { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "beta.chat.completions.parse" - } - })._thenUnwrap((completion) => parseChatCompletion(completion, body)); - } - runFunctions(body, options) { - if (body.stream) return ChatCompletionStreamingRunner.runFunctions(this._client, body, options); - return ChatCompletionRunner.runFunctions(this._client, body, options); - } - runTools(body, options) { - if (body.stream) return ChatCompletionStreamingRunner.runTools(this._client, body, options); - return ChatCompletionRunner.runTools(this._client, body, options); - } - /** - * Creates a chat completion stream - */ - stream(body, options) { - return ChatCompletionStream.createChatCompletion(this._client, body, options); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/chat/chat.mjs -var Chat$1 = class extends APIResource { - constructor() { - super(...arguments); - this.completions = new Completions$1(this._client); - } -}; -(function(Chat$2) { - Chat$2.Completions = Completions$1; -})(Chat$1 || (Chat$1 = {})); - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/realtime/sessions.mjs -var Sessions = class extends APIResource { - /** - * Create an ephemeral API token for use in client-side applications with the - * Realtime API. Can be configured with the same session parameters as the - * `session.update` client event. - * - * It responds with a session object, plus a `client_secret` key which contains a - * usable ephemeral API token that can be used to authenticate browser clients for - * the Realtime API. - * - * @example - * ```ts - * const session = - * await client.beta.realtime.sessions.create(); - * ``` - */ - create(body, options) { - return this._client.post("/realtime/sessions", { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs -var TranscriptionSessions = class extends APIResource { - /** - * Create an ephemeral API token for use in client-side applications with the - * Realtime API specifically for realtime transcriptions. Can be configured with - * the same session parameters as the `transcription_session.update` client event. - * - * It responds with a session object, plus a `client_secret` key which contains a - * usable ephemeral API token that can be used to authenticate browser clients for - * the Realtime API. - * - * @example - * ```ts - * const transcriptionSession = - * await client.beta.realtime.transcriptionSessions.create(); - * ``` - */ - create(body, options) { - return this._client.post("/realtime/transcription_sessions", { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/realtime/realtime.mjs -var Realtime = class extends APIResource { - constructor() { - super(...arguments); - this.sessions = new Sessions(this._client); - this.transcriptionSessions = new TranscriptionSessions(this._client); - } -}; -Realtime.Sessions = Sessions; -Realtime.TranscriptionSessions = TranscriptionSessions; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/threads/messages.mjs -/** -* @deprecated The Assistants API is deprecated in favor of the Responses API -*/ -var Messages = class extends APIResource { - /** - * Create a message. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - create(threadId, body, options) { - return this._client.post(`/threads/${threadId}/messages`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Retrieve a message. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - retrieve(threadId, messageId, options) { - return this._client.get(`/threads/${threadId}/messages/${messageId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Modifies a message. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - update(threadId, messageId, body, options) { - return this._client.post(`/threads/${threadId}/messages/${messageId}`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - list(threadId, query = {}, options) { - if (isRequestOptions(query)) return this.list(threadId, {}, query); - return this._client.getAPIList(`/threads/${threadId}/messages`, MessagesPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Deletes a message. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - del(threadId, messageId, options) { - return this._client.delete(`/threads/${threadId}/messages/${messageId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; -var MessagesPage = class extends CursorPage {}; -Messages.MessagesPage = MessagesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/threads/runs/steps.mjs -/** -* @deprecated The Assistants API is deprecated in favor of the Responses API -*/ -var Steps = class extends APIResource { - retrieve(threadId, runId, stepId, query = {}, options) { - if (isRequestOptions(query)) return this.retrieve(threadId, runId, stepId, {}, query); - return this._client.get(`/threads/${threadId}/runs/${runId}/steps/${stepId}`, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - list(threadId, runId, query = {}, options) { - if (isRequestOptions(query)) return this.list(threadId, runId, {}, query); - return this._client.getAPIList(`/threads/${threadId}/runs/${runId}/steps`, RunStepsPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; -var RunStepsPage = class extends CursorPage {}; -Steps.RunStepsPage = RunStepsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/threads/runs/runs.mjs -/** -* @deprecated The Assistants API is deprecated in favor of the Responses API -*/ -var Runs$1 = class extends APIResource { - constructor() { - super(...arguments); - this.steps = new Steps(this._client); - } - create(threadId, params, options) { - const { include,...body } = params; - return this._client.post(`/threads/${threadId}/runs`, { - query: { include }, - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - }, - stream: params.stream ?? false - }); - } - /** - * Retrieves a run. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - retrieve(threadId, runId, options) { - return this._client.get(`/threads/${threadId}/runs/${runId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Modifies a run. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - update(threadId, runId, body, options) { - return this._client.post(`/threads/${threadId}/runs/${runId}`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - list(threadId, query = {}, options) { - if (isRequestOptions(query)) return this.list(threadId, {}, query); - return this._client.getAPIList(`/threads/${threadId}/runs`, RunsPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Cancels a run that is `in_progress`. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - cancel(threadId, runId, options) { - return this._client.post(`/threads/${threadId}/runs/${runId}/cancel`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * A helper to create a run an poll for a terminal state. More information on Run - * lifecycles can be found here: - * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps - */ - async createAndPoll(threadId, body, options) { - const run = await this.create(threadId, body, options); - return await this.poll(threadId, run.id, options); - } - /** - * Create a Run stream - * - * @deprecated use `stream` instead - */ - createAndStream(threadId, body, options) { - return AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options); - } - /** - * A helper to poll a run status until it reaches a terminal state. More - * information on Run lifecycles can be found here: - * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps - */ - async poll(threadId, runId, options) { - const headers = { - ...options?.headers, - "X-Stainless-Poll-Helper": "true" - }; - if (options?.pollIntervalMs) headers["X-Stainless-Custom-Poll-Interval"] = options.pollIntervalMs.toString(); - while (true) { - const { data: run, response } = await this.retrieve(threadId, runId, { - ...options, - headers: { - ...options?.headers, - ...headers - } - }).withResponse(); - switch (run.status) { - case "queued": - case "in_progress": - case "cancelling": - let sleepInterval = 5e3; - if (options?.pollIntervalMs) sleepInterval = options.pollIntervalMs; - else { - const headerInterval = response.headers.get("openai-poll-after-ms"); - if (headerInterval) { - const headerIntervalMs = parseInt(headerInterval); - if (!isNaN(headerIntervalMs)) sleepInterval = headerIntervalMs; - } - } - await sleep(sleepInterval); - break; - case "requires_action": - case "incomplete": - case "cancelled": - case "completed": - case "failed": - case "expired": return run; - } - } - } - /** - * Create a Run stream - */ - stream(threadId, body, options) { - return AssistantStream.createAssistantStream(threadId, this._client.beta.threads.runs, body, options); - } - submitToolOutputs(threadId, runId, body, options) { - return this._client.post(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - }, - stream: body.stream ?? false - }); - } - /** - * A helper to submit a tool output to a run and poll for a terminal run state. - * More information on Run lifecycles can be found here: - * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps - */ - async submitToolOutputsAndPoll(threadId, runId, body, options) { - const run = await this.submitToolOutputs(threadId, runId, body, options); - return await this.poll(threadId, run.id, options); - } - /** - * Submit the tool outputs from a previous run and stream the run to a terminal - * state. More information on Run lifecycles can be found here: - * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps - */ - submitToolOutputsStream(threadId, runId, body, options) { - return AssistantStream.createToolAssistantStream(threadId, runId, this._client.beta.threads.runs, body, options); - } -}; -var RunsPage = class extends CursorPage {}; -Runs$1.RunsPage = RunsPage; -Runs$1.Steps = Steps; -Runs$1.RunStepsPage = RunStepsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/threads/threads.mjs -/** -* @deprecated The Assistants API is deprecated in favor of the Responses API -*/ -var Threads = class extends APIResource { - constructor() { - super(...arguments); - this.runs = new Runs$1(this._client); - this.messages = new Messages(this._client); - } - create(body = {}, options) { - if (isRequestOptions(body)) return this.create({}, body); - return this._client.post("/threads", { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Retrieves a thread. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - retrieve(threadId, options) { - return this._client.get(`/threads/${threadId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Modifies a thread. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - update(threadId, body, options) { - return this._client.post(`/threads/${threadId}`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Delete a thread. - * - * @deprecated The Assistants API is deprecated in favor of the Responses API - */ - del(threadId, options) { - return this._client.delete(`/threads/${threadId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - createAndRun(body, options) { - return this._client.post("/threads/runs", { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - }, - stream: body.stream ?? false - }); - } - /** - * A helper to create a thread, start a run and then poll for a terminal state. - * More information on Run lifecycles can be found here: - * https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps - */ - async createAndRunPoll(body, options) { - const run = await this.createAndRun(body, options); - return await this.runs.poll(run.thread_id, run.id, options); - } - /** - * Create a thread and stream the run back - */ - createAndRunStream(body, options) { - return AssistantStream.createThreadAssistantStream(body, this._client.beta.threads, options); - } -}; -Threads.Runs = Runs$1; -Threads.RunsPage = RunsPage; -Threads.Messages = Messages; -Threads.MessagesPage = MessagesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/beta/beta.mjs -var Beta = class extends APIResource { - constructor() { - super(...arguments); - this.realtime = new Realtime(this._client); - this.chat = new Chat$1(this._client); - this.assistants = new Assistants(this._client); - this.threads = new Threads(this._client); - } -}; -Beta.Realtime = Realtime; -Beta.Assistants = Assistants; -Beta.AssistantsPage = AssistantsPage; -Beta.Threads = Threads; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/completions.mjs -var Completions = class extends APIResource { - create(body, options) { - return this._client.post("/completions", { - body, - ...options, - stream: body.stream ?? false - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/containers/files/content.mjs -var Content = class extends APIResource { - /** - * Retrieve Container File Content - */ - retrieve(containerId, fileId, options) { - return this._client.get(`/containers/${containerId}/files/${fileId}/content`, { - ...options, - headers: { - Accept: "application/binary", - ...options?.headers - }, - __binaryResponse: true - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/containers/files/files.mjs -var Files$2 = class extends APIResource { - constructor() { - super(...arguments); - this.content = new Content(this._client); - } - /** - * Create a Container File - * - * You can send either a multipart/form-data request with the raw file content, or - * a JSON request with a file ID. - */ - create(containerId, body, options) { - return this._client.post(`/containers/${containerId}/files`, multipartFormRequestOptions({ - body, - ...options - })); - } - /** - * Retrieve Container File - */ - retrieve(containerId, fileId, options) { - return this._client.get(`/containers/${containerId}/files/${fileId}`, options); - } - list(containerId, query = {}, options) { - if (isRequestOptions(query)) return this.list(containerId, {}, query); - return this._client.getAPIList(`/containers/${containerId}/files`, FileListResponsesPage, { - query, - ...options - }); - } - /** - * Delete Container File - */ - del(containerId, fileId, options) { - return this._client.delete(`/containers/${containerId}/files/${fileId}`, { - ...options, - headers: { - Accept: "*/*", - ...options?.headers - } - }); - } -}; -var FileListResponsesPage = class extends CursorPage {}; -Files$2.FileListResponsesPage = FileListResponsesPage; -Files$2.Content = Content; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/containers/containers.mjs -var Containers = class extends APIResource { - constructor() { - super(...arguments); - this.files = new Files$2(this._client); - } - /** - * Create Container - */ - create(body, options) { - return this._client.post("/containers", { - body, - ...options - }); - } - /** - * Retrieve Container - */ - retrieve(containerId, options) { - return this._client.get(`/containers/${containerId}`, options); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/containers", ContainerListResponsesPage, { - query, - ...options - }); - } - /** - * Delete Container - */ - del(containerId, options) { - return this._client.delete(`/containers/${containerId}`, { - ...options, - headers: { - Accept: "*/*", - ...options?.headers - } - }); - } -}; -var ContainerListResponsesPage = class extends CursorPage {}; -Containers.ContainerListResponsesPage = ContainerListResponsesPage; -Containers.Files = Files$2; -Containers.FileListResponsesPage = FileListResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/embeddings.mjs -var Embeddings = class extends APIResource { - /** - * Creates an embedding vector representing the input text. - * - * @example - * ```ts - * const createEmbeddingResponse = - * await client.embeddings.create({ - * input: 'The quick brown fox jumped over the lazy dog', - * model: 'text-embedding-3-small', - * }); - * ``` - */ - create(body, options) { - const hasUserProvidedEncodingFormat = !!body.encoding_format; - let encoding_format = hasUserProvidedEncodingFormat ? body.encoding_format : "base64"; - if (hasUserProvidedEncodingFormat) debug("Request", "User defined encoding_format:", body.encoding_format); - const response = this._client.post("/embeddings", { - body: { - ...body, - encoding_format - }, - ...options - }); - if (hasUserProvidedEncodingFormat) return response; - debug("response", "Decoding base64 embeddings to float32 array"); - return response._thenUnwrap((response$1) => { - if (response$1 && response$1.data) response$1.data.forEach((embeddingBase64Obj) => { - const embeddingBase64Str = embeddingBase64Obj.embedding; - embeddingBase64Obj.embedding = toFloat32Array(embeddingBase64Str); - }); - return response$1; - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/evals/runs/output-items.mjs -var OutputItems = class extends APIResource { - /** - * Get an evaluation run output item by ID. - */ - retrieve(evalId, runId, outputItemId, options) { - return this._client.get(`/evals/${evalId}/runs/${runId}/output_items/${outputItemId}`, options); - } - list(evalId, runId, query = {}, options) { - if (isRequestOptions(query)) return this.list(evalId, runId, {}, query); - return this._client.getAPIList(`/evals/${evalId}/runs/${runId}/output_items`, OutputItemListResponsesPage, { - query, - ...options - }); - } -}; -var OutputItemListResponsesPage = class extends CursorPage {}; -OutputItems.OutputItemListResponsesPage = OutputItemListResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/evals/runs/runs.mjs -var Runs = class extends APIResource { - constructor() { - super(...arguments); - this.outputItems = new OutputItems(this._client); - } - /** - * Kicks off a new run for a given evaluation, specifying the data source, and what - * model configuration to use to test. The datasource will be validated against the - * schema specified in the config of the evaluation. - */ - create(evalId, body, options) { - return this._client.post(`/evals/${evalId}/runs`, { - body, - ...options - }); - } - /** - * Get an evaluation run by ID. - */ - retrieve(evalId, runId, options) { - return this._client.get(`/evals/${evalId}/runs/${runId}`, options); - } - list(evalId, query = {}, options) { - if (isRequestOptions(query)) return this.list(evalId, {}, query); - return this._client.getAPIList(`/evals/${evalId}/runs`, RunListResponsesPage, { - query, - ...options - }); - } - /** - * Delete an eval run. - */ - del(evalId, runId, options) { - return this._client.delete(`/evals/${evalId}/runs/${runId}`, options); - } - /** - * Cancel an ongoing evaluation run. - */ - cancel(evalId, runId, options) { - return this._client.post(`/evals/${evalId}/runs/${runId}`, options); - } -}; -var RunListResponsesPage = class extends CursorPage {}; -Runs.RunListResponsesPage = RunListResponsesPage; -Runs.OutputItems = OutputItems; -Runs.OutputItemListResponsesPage = OutputItemListResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/evals/evals.mjs -var Evals = class extends APIResource { - constructor() { - super(...arguments); - this.runs = new Runs(this._client); - } - /** - * Create the structure of an evaluation that can be used to test a model's - * performance. An evaluation is a set of testing criteria and the config for a - * data source, which dictates the schema of the data used in the evaluation. After - * creating an evaluation, you can run it on different models and model parameters. - * We support several types of graders and datasources. For more information, see - * the [Evals guide](https://platform.openai.com/docs/guides/evals). - */ - create(body, options) { - return this._client.post("/evals", { - body, - ...options - }); - } - /** - * Get an evaluation by ID. - */ - retrieve(evalId, options) { - return this._client.get(`/evals/${evalId}`, options); - } - /** - * Update certain properties of an evaluation. - */ - update(evalId, body, options) { - return this._client.post(`/evals/${evalId}`, { - body, - ...options - }); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/evals", EvalListResponsesPage, { - query, - ...options - }); - } - /** - * Delete an evaluation. - */ - del(evalId, options) { - return this._client.delete(`/evals/${evalId}`, options); - } -}; -var EvalListResponsesPage = class extends CursorPage {}; -Evals.EvalListResponsesPage = EvalListResponsesPage; -Evals.Runs = Runs; -Evals.RunListResponsesPage = RunListResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/files.mjs -var Files = class extends APIResource { - /** - * Upload a file that can be used across various endpoints. Individual files can be - * up to 512 MB, and the size of all files uploaded by one organization can be up - * to 100 GB. - * - * The Assistants API supports files up to 2 million tokens and of specific file - * types. See the - * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for - * details. - * - * The Fine-tuning API only supports `.jsonl` files. The input also has certain - * required formats for fine-tuning - * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or - * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) - * models. - * - * The Batch API only supports `.jsonl` files up to 200 MB in size. The input also - * has a specific required - * [format](https://platform.openai.com/docs/api-reference/batch/request-input). - * - * Please [contact us](https://help.openai.com/) if you need to increase these - * storage limits. - */ - create(body, options) { - return this._client.post("/files", multipartFormRequestOptions({ - body, - ...options - })); - } - /** - * Returns information about a specific file. - */ - retrieve(fileId, options) { - return this._client.get(`/files/${fileId}`, options); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/files", FileObjectsPage, { - query, - ...options - }); - } - /** - * Delete a file. - */ - del(fileId, options) { - return this._client.delete(`/files/${fileId}`, options); - } - /** - * Returns the contents of the specified file. - */ - content(fileId, options) { - return this._client.get(`/files/${fileId}/content`, { - ...options, - headers: { - Accept: "application/binary", - ...options?.headers - }, - __binaryResponse: true - }); - } - /** - * Returns the contents of the specified file. - * - * @deprecated The `.content()` method should be used instead - */ - retrieveContent(fileId, options) { - return this._client.get(`/files/${fileId}/content`, options); - } - /** - * Waits for the given file to be processed, default timeout is 30 mins. - */ - async waitForProcessing(id, { pollInterval = 5e3, maxWait = 30 * 60 * 1e3 } = {}) { - const TERMINAL_STATES = new Set([ - "processed", - "error", - "deleted" - ]); - const start = Date.now(); - let file = await this.retrieve(id); - while (!file.status || !TERMINAL_STATES.has(file.status)) { - await sleep(pollInterval); - file = await this.retrieve(id); - if (Date.now() - start > maxWait) throw new APIConnectionTimeoutError({ message: `Giving up on waiting for file ${id} to finish processing after ${maxWait} milliseconds.` }); - } - return file; - } -}; -var FileObjectsPage = class extends CursorPage {}; -Files.FileObjectsPage = FileObjectsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/methods.mjs -var Methods = class extends APIResource {}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/alpha/graders.mjs -var Graders$1 = class extends APIResource { - /** - * Run a grader. - * - * @example - * ```ts - * const response = await client.fineTuning.alpha.graders.run({ - * grader: { - * input: 'input', - * name: 'name', - * operation: 'eq', - * reference: 'reference', - * type: 'string_check', - * }, - * model_sample: 'model_sample', - * reference_answer: 'string', - * }); - * ``` - */ - run(body, options) { - return this._client.post("/fine_tuning/alpha/graders/run", { - body, - ...options - }); - } - /** - * Validate a grader. - * - * @example - * ```ts - * const response = - * await client.fineTuning.alpha.graders.validate({ - * grader: { - * input: 'input', - * name: 'name', - * operation: 'eq', - * reference: 'reference', - * type: 'string_check', - * }, - * }); - * ``` - */ - validate(body, options) { - return this._client.post("/fine_tuning/alpha/graders/validate", { - body, - ...options - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs -var Alpha = class extends APIResource { - constructor() { - super(...arguments); - this.graders = new Graders$1(this._client); - } -}; -Alpha.Graders = Graders$1; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs -var Permissions = class extends APIResource { - /** - * **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys). - * - * This enables organization owners to share fine-tuned models with other projects - * in their organization. - * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const permissionCreateResponse of client.fineTuning.checkpoints.permissions.create( - * 'ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd', - * { project_ids: ['string'] }, - * )) { - * // ... - * } - * ``` - */ - create(fineTunedModelCheckpoint, body, options) { - return this._client.getAPIList(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, PermissionCreateResponsesPage, { - body, - method: "post", - ...options - }); - } - retrieve(fineTunedModelCheckpoint, query = {}, options) { - if (isRequestOptions(query)) return this.retrieve(fineTunedModelCheckpoint, {}, query); - return this._client.get(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, { - query, - ...options - }); - } - /** - * **NOTE:** This endpoint requires an [admin API key](../admin-api-keys). - * - * Organization owners can use this endpoint to delete a permission for a - * fine-tuned model checkpoint. - * - * @example - * ```ts - * const permission = - * await client.fineTuning.checkpoints.permissions.del( - * 'ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd', - * 'cp_zc4Q7MP6XxulcVzj4MZdwsAB', - * ); - * ``` - */ - del(fineTunedModelCheckpoint, permissionId, options) { - return this._client.delete(`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions/${permissionId}`, options); - } -}; -/** -* Note: no pagination actually occurs yet, this is for forwards-compatibility. -*/ -var PermissionCreateResponsesPage = class extends Page {}; -Permissions.PermissionCreateResponsesPage = PermissionCreateResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs -var Checkpoints = class extends APIResource { - constructor() { - super(...arguments); - this.permissions = new Permissions(this._client); - } -}; -Checkpoints.Permissions = Permissions; -Checkpoints.PermissionCreateResponsesPage = PermissionCreateResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs -var Checkpoints$1 = class extends APIResource { - list(fineTuningJobId, query = {}, options) { - if (isRequestOptions(query)) return this.list(fineTuningJobId, {}, query); - return this._client.getAPIList(`/fine_tuning/jobs/${fineTuningJobId}/checkpoints`, FineTuningJobCheckpointsPage, { - query, - ...options - }); - } -}; -var FineTuningJobCheckpointsPage = class extends CursorPage {}; -Checkpoints$1.FineTuningJobCheckpointsPage = FineTuningJobCheckpointsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs -var Jobs = class extends APIResource { - constructor() { - super(...arguments); - this.checkpoints = new Checkpoints$1(this._client); - } - /** - * Creates a fine-tuning job which begins the process of creating a new model from - * a given dataset. - * - * Response includes details of the enqueued job including job status and the name - * of the fine-tuned models once complete. - * - * [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning) - * - * @example - * ```ts - * const fineTuningJob = await client.fineTuning.jobs.create({ - * model: 'gpt-4o-mini', - * training_file: 'file-abc123', - * }); - * ``` - */ - create(body, options) { - return this._client.post("/fine_tuning/jobs", { - body, - ...options - }); - } - /** - * Get info about a fine-tuning job. - * - * [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning) - * - * @example - * ```ts - * const fineTuningJob = await client.fineTuning.jobs.retrieve( - * 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', - * ); - * ``` - */ - retrieve(fineTuningJobId, options) { - return this._client.get(`/fine_tuning/jobs/${fineTuningJobId}`, options); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/fine_tuning/jobs", FineTuningJobsPage, { - query, - ...options - }); - } - /** - * Immediately cancel a fine-tune job. - * - * @example - * ```ts - * const fineTuningJob = await client.fineTuning.jobs.cancel( - * 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', - * ); - * ``` - */ - cancel(fineTuningJobId, options) { - return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/cancel`, options); - } - listEvents(fineTuningJobId, query = {}, options) { - if (isRequestOptions(query)) return this.listEvents(fineTuningJobId, {}, query); - return this._client.getAPIList(`/fine_tuning/jobs/${fineTuningJobId}/events`, FineTuningJobEventsPage, { - query, - ...options - }); - } - /** - * Pause a fine-tune job. - * - * @example - * ```ts - * const fineTuningJob = await client.fineTuning.jobs.pause( - * 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', - * ); - * ``` - */ - pause(fineTuningJobId, options) { - return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/pause`, options); - } - /** - * Resume a fine-tune job. - * - * @example - * ```ts - * const fineTuningJob = await client.fineTuning.jobs.resume( - * 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', - * ); - * ``` - */ - resume(fineTuningJobId, options) { - return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/resume`, options); - } -}; -var FineTuningJobsPage = class extends CursorPage {}; -var FineTuningJobEventsPage = class extends CursorPage {}; -Jobs.FineTuningJobsPage = FineTuningJobsPage; -Jobs.FineTuningJobEventsPage = FineTuningJobEventsPage; -Jobs.Checkpoints = Checkpoints$1; -Jobs.FineTuningJobCheckpointsPage = FineTuningJobCheckpointsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/fine-tuning/fine-tuning.mjs -var FineTuning = class extends APIResource { - constructor() { - super(...arguments); - this.methods = new Methods(this._client); - this.jobs = new Jobs(this._client); - this.checkpoints = new Checkpoints(this._client); - this.alpha = new Alpha(this._client); - } -}; -FineTuning.Methods = Methods; -FineTuning.Jobs = Jobs; -FineTuning.FineTuningJobsPage = FineTuningJobsPage; -FineTuning.FineTuningJobEventsPage = FineTuningJobEventsPage; -FineTuning.Checkpoints = Checkpoints; -FineTuning.Alpha = Alpha; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/graders/grader-models.mjs -var GraderModels = class extends APIResource {}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/graders/graders.mjs -var Graders = class extends APIResource { - constructor() { - super(...arguments); - this.graderModels = new GraderModels(this._client); - } -}; -Graders.GraderModels = GraderModels; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/images.mjs -var Images = class extends APIResource { - /** - * Creates a variation of a given image. This endpoint only supports `dall-e-2`. - * - * @example - * ```ts - * const imagesResponse = await client.images.createVariation({ - * image: fs.createReadStream('otter.png'), - * }); - * ``` - */ - createVariation(body, options) { - return this._client.post("/images/variations", multipartFormRequestOptions({ - body, - ...options - })); - } - /** - * Creates an edited or extended image given one or more source images and a - * prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`. - * - * @example - * ```ts - * const imagesResponse = await client.images.edit({ - * image: fs.createReadStream('path/to/file'), - * prompt: 'A cute baby sea otter wearing a beret', - * }); - * ``` - */ - edit(body, options) { - return this._client.post("/images/edits", multipartFormRequestOptions({ - body, - ...options - })); - } - /** - * Creates an image given a prompt. - * [Learn more](https://platform.openai.com/docs/guides/images). - * - * @example - * ```ts - * const imagesResponse = await client.images.generate({ - * prompt: 'A cute baby sea otter', - * }); - * ``` - */ - generate(body, options) { - return this._client.post("/images/generations", { - body, - ...options - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/models.mjs -var Models = class extends APIResource { - /** - * Retrieves a model instance, providing basic information about the model such as - * the owner and permissioning. - */ - retrieve(model, options) { - return this._client.get(`/models/${model}`, options); - } - /** - * Lists the currently available models, and provides basic information about each - * one such as the owner and availability. - */ - list(options) { - return this._client.getAPIList("/models", ModelsPage, options); - } - /** - * Delete a fine-tuned model. You must have the Owner role in your organization to - * delete a model. - */ - del(model, options) { - return this._client.delete(`/models/${model}`, options); - } -}; -/** -* Note: no pagination actually occurs yet, this is for forwards-compatibility. -*/ -var ModelsPage = class extends Page {}; -Models.ModelsPage = ModelsPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/moderations.mjs -var Moderations = class extends APIResource { - /** - * Classifies if text and/or image inputs are potentially harmful. Learn more in - * the [moderation guide](https://platform.openai.com/docs/guides/moderation). - */ - create(body, options) { - return this._client.post("/moderations", { - body, - ...options - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/ResponsesParser.mjs -function maybeParseResponse(response, params) { - if (!params || !hasAutoParseableInput(params)) return { - ...response, - output_parsed: null, - output: response.output.map((item) => { - if (item.type === "function_call") return { - ...item, - parsed_arguments: null - }; - if (item.type === "message") return { - ...item, - content: item.content.map((content) => ({ - ...content, - parsed: null - })) - }; - else return item; - }) - }; - return parseResponse(response, params); -} -function parseResponse(response, params) { - const output = response.output.map((item) => { - if (item.type === "function_call") return { - ...item, - parsed_arguments: parseToolCall$1(params, item) - }; - if (item.type === "message") { - const content = item.content.map((content$1) => { - if (content$1.type === "output_text") return { - ...content$1, - parsed: parseTextFormat(params, content$1.text) - }; - return content$1; - }); - return { - ...item, - content - }; - } - return item; - }); - const parsed = Object.assign({}, response, { output }); - if (!Object.getOwnPropertyDescriptor(response, "output_text")) addOutputText(parsed); - Object.defineProperty(parsed, "output_parsed", { - enumerable: true, - get() { - for (const output$1 of parsed.output) { - if (output$1.type !== "message") continue; - for (const content of output$1.content) if (content.type === "output_text" && content.parsed !== null) return content.parsed; - } - return null; - } - }); - return parsed; -} -function parseTextFormat(params, content) { - if (params.text?.format?.type !== "json_schema") return null; - if ("$parseRaw" in params.text?.format) { - const text_format = params.text?.format; - return text_format.$parseRaw(content); - } - return JSON.parse(content); -} -function hasAutoParseableInput(params) { - if (isAutoParsableResponseFormat(params.text?.format)) return true; - return false; -} -function isAutoParsableTool(tool$1) { - return tool$1?.["$brand"] === "auto-parseable-tool"; -} -function getInputToolByName(input_tools, name) { - return input_tools.find((tool$1) => tool$1.type === "function" && tool$1.name === name); -} -function parseToolCall$1(params, toolCall) { - const inputTool = getInputToolByName(params.tools ?? [], toolCall.name); - return { - ...toolCall, - ...toolCall, - parsed_arguments: isAutoParsableTool(inputTool) ? inputTool.$parseRaw(toolCall.arguments) : inputTool?.strict ? JSON.parse(toolCall.arguments) : null - }; -} -function addOutputText(rsp) { - const texts = []; - for (const output of rsp.output) { - if (output.type !== "message") continue; - for (const content of output.content) if (content.type === "output_text") texts.push(content.text); - } - rsp.output_text = texts.join(""); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/responses/input-items.mjs -var InputItems = class extends APIResource { - list(responseId, query = {}, options) { - if (isRequestOptions(query)) return this.list(responseId, {}, query); - return this._client.getAPIList(`/responses/${responseId}/input_items`, ResponseItemsPage, { - query, - ...options - }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/responses/ResponseStream.mjs -var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind$1, f) { - if (kind$1 === "m") throw new TypeError("Private method is not writable"); - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - 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"); - return kind$1 === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -}; -var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind$1, f) { - if (kind$1 === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - 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"); - return kind$1 === "m" ? f : kind$1 === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ResponseStream_instances, _ResponseStream_params, _ResponseStream_currentResponseSnapshot, _ResponseStream_finalResponse, _ResponseStream_beginRequest, _ResponseStream_addEvent, _ResponseStream_endRequest, _ResponseStream_accumulateResponse; -var ResponseStream = class ResponseStream extends EventStream { - constructor(params) { - super(); - _ResponseStream_instances.add(this); - _ResponseStream_params.set(this, void 0); - _ResponseStream_currentResponseSnapshot.set(this, void 0); - _ResponseStream_finalResponse.set(this, void 0); - __classPrivateFieldSet(this, _ResponseStream_params, params, "f"); - } - static createResponse(client, params, options) { - const runner = new ResponseStream(params); - runner._run(() => runner._createOrRetrieveResponse(client, params, { - ...options, - headers: { - ...options?.headers, - "X-Stainless-Helper-Method": "stream" - } - })); - return runner; - } - async _createOrRetrieveResponse(client, params, options) { - const signal = options?.signal; - if (signal) { - if (signal.aborted) this.controller.abort(); - signal.addEventListener("abort", () => this.controller.abort()); - } - __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_beginRequest).call(this); - let stream; - let starting_after = null; - if ("response_id" in params) { - stream = await client.responses.retrieve(params.response_id, { stream: true }, { - ...options, - signal: this.controller.signal, - stream: true - }); - starting_after = params.starting_after ?? null; - } else stream = await client.responses.create({ - ...params, - stream: true - }, { - ...options, - signal: this.controller.signal - }); - this._connected(); - for await (const event of stream) __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_addEvent).call(this, event, starting_after); - if (stream.controller.signal?.aborted) throw new APIUserAbortError(); - return __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_endRequest).call(this); - } - [(_ResponseStream_params = /* @__PURE__ */ new WeakMap(), _ResponseStream_currentResponseSnapshot = /* @__PURE__ */ new WeakMap(), _ResponseStream_finalResponse = /* @__PURE__ */ new WeakMap(), _ResponseStream_instances = /* @__PURE__ */ new WeakSet(), _ResponseStream_beginRequest = function _ResponseStream_beginRequest$1() { - if (this.ended) return; - __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, void 0, "f"); - }, _ResponseStream_addEvent = function _ResponseStream_addEvent$1(event, starting_after) { - if (this.ended) return; - const maybeEmit = (name, event$1) => { - if (starting_after == null || event$1.sequence_number > starting_after) this._emit(name, event$1); - }; - const response = __classPrivateFieldGet(this, _ResponseStream_instances, "m", _ResponseStream_accumulateResponse).call(this, event); - maybeEmit("event", event); - switch (event.type) { - case "response.output_text.delta": { - const output = response.output[event.output_index]; - if (!output) throw new OpenAIError(`missing output at index ${event.output_index}`); - if (output.type === "message") { - const content = output.content[event.content_index]; - if (!content) throw new OpenAIError(`missing content at index ${event.content_index}`); - if (content.type !== "output_text") throw new OpenAIError(`expected content to be 'output_text', got ${content.type}`); - maybeEmit("response.output_text.delta", { - ...event, - snapshot: content.text - }); - } - break; - } - case "response.function_call_arguments.delta": { - const output = response.output[event.output_index]; - if (!output) throw new OpenAIError(`missing output at index ${event.output_index}`); - if (output.type === "function_call") maybeEmit("response.function_call_arguments.delta", { - ...event, - snapshot: output.arguments - }); - break; - } - default: - maybeEmit(event.type, event); - break; - } - }, _ResponseStream_endRequest = function _ResponseStream_endRequest$1() { - if (this.ended) throw new OpenAIError(`stream has ended, this shouldn't happen`); - const snapshot = __classPrivateFieldGet(this, _ResponseStream_currentResponseSnapshot, "f"); - if (!snapshot) throw new OpenAIError(`request ended without sending any events`); - __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, void 0, "f"); - const parsedResponse = finalizeResponse(snapshot, __classPrivateFieldGet(this, _ResponseStream_params, "f")); - __classPrivateFieldSet(this, _ResponseStream_finalResponse, parsedResponse, "f"); - return parsedResponse; - }, _ResponseStream_accumulateResponse = function _ResponseStream_accumulateResponse$1(event) { - let snapshot = __classPrivateFieldGet(this, _ResponseStream_currentResponseSnapshot, "f"); - if (!snapshot) { - if (event.type !== "response.created") throw new OpenAIError(`When snapshot hasn't been set yet, expected 'response.created' event, got ${event.type}`); - snapshot = __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, event.response, "f"); - return snapshot; - } - switch (event.type) { - case "response.output_item.added": { - snapshot.output.push(event.item); - break; - } - case "response.content_part.added": { - const output = snapshot.output[event.output_index]; - if (!output) throw new OpenAIError(`missing output at index ${event.output_index}`); - if (output.type === "message") output.content.push(event.part); - break; - } - case "response.output_text.delta": { - const output = snapshot.output[event.output_index]; - if (!output) throw new OpenAIError(`missing output at index ${event.output_index}`); - if (output.type === "message") { - const content = output.content[event.content_index]; - if (!content) throw new OpenAIError(`missing content at index ${event.content_index}`); - if (content.type !== "output_text") throw new OpenAIError(`expected content to be 'output_text', got ${content.type}`); - content.text += event.delta; - } - break; - } - case "response.function_call_arguments.delta": { - const output = snapshot.output[event.output_index]; - if (!output) throw new OpenAIError(`missing output at index ${event.output_index}`); - if (output.type === "function_call") output.arguments += event.delta; - break; - } - case "response.completed": { - __classPrivateFieldSet(this, _ResponseStream_currentResponseSnapshot, event.response, "f"); - break; - } - } - return snapshot; - }, Symbol.asyncIterator)]() { - const pushQueue = []; - const readQueue = []; - let done = false; - this.on("event", (event) => { - const reader = readQueue.shift(); - if (reader) reader.resolve(event); - else pushQueue.push(event); - }); - this.on("end", () => { - done = true; - for (const reader of readQueue) reader.resolve(void 0); - readQueue.length = 0; - }); - this.on("abort", (err) => { - done = true; - for (const reader of readQueue) reader.reject(err); - readQueue.length = 0; - }); - this.on("error", (err) => { - done = true; - for (const reader of readQueue) reader.reject(err); - readQueue.length = 0; - }); - return { - next: async () => { - if (!pushQueue.length) { - if (done) return { - value: void 0, - done: true - }; - return new Promise((resolve, reject) => readQueue.push({ - resolve, - reject - })).then((event$1) => event$1 ? { - value: event$1, - done: false - } : { - value: void 0, - done: true - }); - } - const event = pushQueue.shift(); - return { - value: event, - done: false - }; - }, - return: async () => { - this.abort(); - return { - value: void 0, - done: true - }; - } - }; - } - /** - * @returns a promise that resolves with the final Response, or rejects - * if an error occurred or the stream ended prematurely without producing a REsponse. - */ - async finalResponse() { - await this.done(); - const response = __classPrivateFieldGet(this, _ResponseStream_finalResponse, "f"); - if (!response) throw new OpenAIError("stream ended without producing a ChatCompletion"); - return response; - } -}; -function finalizeResponse(snapshot, params) { - return maybeParseResponse(snapshot, params); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/responses/responses.mjs -var Responses = class extends APIResource { - constructor() { - super(...arguments); - this.inputItems = new InputItems(this._client); - } - create(body, options) { - return this._client.post("/responses", { - body, - ...options, - stream: body.stream ?? false - })._thenUnwrap((rsp) => { - if ("object" in rsp && rsp.object === "response") addOutputText(rsp); - return rsp; - }); - } - retrieve(responseId, query = {}, options) { - return this._client.get(`/responses/${responseId}`, { - query, - ...options, - stream: query?.stream ?? false - }); - } - /** - * Deletes a model response with the given ID. - * - * @example - * ```ts - * await client.responses.del( - * 'resp_677efb5139a88190b512bc3fef8e535d', - * ); - * ``` - */ - del(responseId, options) { - return this._client.delete(`/responses/${responseId}`, { - ...options, - headers: { - Accept: "*/*", - ...options?.headers - } - }); - } - parse(body, options) { - return this._client.responses.create(body, options)._thenUnwrap((response) => parseResponse(response, body)); - } - /** - * Creates a model response stream - */ - stream(body, options) { - return ResponseStream.createResponse(this._client, body, options); - } - /** - * Cancels a model response with the given ID. Only responses created with the - * `background` parameter set to `true` can be cancelled. - * [Learn more](https://platform.openai.com/docs/guides/background). - * - * @example - * ```ts - * await client.responses.cancel( - * 'resp_677efb5139a88190b512bc3fef8e535d', - * ); - * ``` - */ - cancel(responseId, options) { - return this._client.post(`/responses/${responseId}/cancel`, { - ...options, - headers: { - Accept: "*/*", - ...options?.headers - } - }); - } -}; -var ResponseItemsPage = class extends CursorPage {}; -Responses.InputItems = InputItems; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/uploads/parts.mjs -var Parts = class extends APIResource { - /** - * Adds a - * [Part](https://platform.openai.com/docs/api-reference/uploads/part-object) to an - * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object. - * A Part represents a chunk of bytes from the file you are trying to upload. - * - * Each Part can be at most 64 MB, and you can add Parts until you hit the Upload - * maximum of 8 GB. - * - * It is possible to add multiple Parts in parallel. You can decide the intended - * order of the Parts when you - * [complete the Upload](https://platform.openai.com/docs/api-reference/uploads/complete). - */ - create(uploadId, body, options) { - return this._client.post(`/uploads/${uploadId}/parts`, multipartFormRequestOptions({ - body, - ...options - })); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/uploads/uploads.mjs -var Uploads = class extends APIResource { - constructor() { - super(...arguments); - this.parts = new Parts(this._client); - } - /** - * Creates an intermediate - * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object - * that you can add - * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to. - * Currently, an Upload can accept at most 8 GB in total and expires after an hour - * after you create it. - * - * Once you complete the Upload, we will create a - * [File](https://platform.openai.com/docs/api-reference/files/object) object that - * contains all the parts you uploaded. This File is usable in the rest of our - * platform as a regular File object. - * - * For certain `purpose` values, the correct `mime_type` must be specified. Please - * refer to documentation for the - * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files). - * - * For guidance on the proper filename extensions for each purpose, please follow - * the documentation on - * [creating a File](https://platform.openai.com/docs/api-reference/files/create). - */ - create(body, options) { - return this._client.post("/uploads", { - body, - ...options - }); - } - /** - * Cancels the Upload. No Parts may be added after an Upload is cancelled. - */ - cancel(uploadId, options) { - return this._client.post(`/uploads/${uploadId}/cancel`, options); - } - /** - * Completes the - * [Upload](https://platform.openai.com/docs/api-reference/uploads/object). - * - * Within the returned Upload object, there is a nested - * [File](https://platform.openai.com/docs/api-reference/files/object) object that - * is ready to use in the rest of the platform. - * - * You can specify the order of the Parts by passing in an ordered list of the Part - * IDs. - * - * The number of bytes uploaded upon completion must match the number of bytes - * initially specified when creating the Upload object. No Parts may be added after - * an Upload is completed. - */ - complete(uploadId, body, options) { - return this._client.post(`/uploads/${uploadId}/complete`, { - body, - ...options - }); - } -}; -Uploads.Parts = Parts; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/lib/Util.mjs -/** -* Like `Promise.allSettled()` but throws an error if any promises are rejected. -*/ -const allSettledWithThrow = async (promises) => { - const results = await Promise.allSettled(promises); - const rejected = results.filter((result) => result.status === "rejected"); - if (rejected.length) { - for (const result of rejected) console.error(result.reason); - throw new Error(`${rejected.length} promise(s) failed - see the above errors`); - } - const values = []; - for (const result of results) if (result.status === "fulfilled") values.push(result.value); - return values; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/vector-stores/files.mjs -var Files$1 = class extends APIResource { - /** - * Create a vector store file by attaching a - * [File](https://platform.openai.com/docs/api-reference/files) to a - * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object). - */ - create(vectorStoreId, body, options) { - return this._client.post(`/vector_stores/${vectorStoreId}/files`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Retrieves a vector store file. - */ - retrieve(vectorStoreId, fileId, options) { - return this._client.get(`/vector_stores/${vectorStoreId}/files/${fileId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Update attributes on a vector store file. - */ - update(vectorStoreId, fileId, body, options) { - return this._client.post(`/vector_stores/${vectorStoreId}/files/${fileId}`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - list(vectorStoreId, query = {}, options) { - if (isRequestOptions(query)) return this.list(vectorStoreId, {}, query); - return this._client.getAPIList(`/vector_stores/${vectorStoreId}/files`, VectorStoreFilesPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Delete a vector store file. This will remove the file from the vector store but - * the file itself will not be deleted. To delete the file, use the - * [delete file](https://platform.openai.com/docs/api-reference/files/delete) - * endpoint. - */ - del(vectorStoreId, fileId, options) { - return this._client.delete(`/vector_stores/${vectorStoreId}/files/${fileId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Attach a file to the given vector store and wait for it to be processed. - */ - async createAndPoll(vectorStoreId, body, options) { - const file = await this.create(vectorStoreId, body, options); - return await this.poll(vectorStoreId, file.id, options); - } - /** - * Wait for the vector store file to finish processing. - * - * Note: this will return even if the file failed to process, you need to check - * file.last_error and file.status to handle these cases - */ - async poll(vectorStoreId, fileId, options) { - const headers = { - ...options?.headers, - "X-Stainless-Poll-Helper": "true" - }; - if (options?.pollIntervalMs) headers["X-Stainless-Custom-Poll-Interval"] = options.pollIntervalMs.toString(); - while (true) { - const fileResponse = await this.retrieve(vectorStoreId, fileId, { - ...options, - headers - }).withResponse(); - const file = fileResponse.data; - switch (file.status) { - case "in_progress": - let sleepInterval = 5e3; - if (options?.pollIntervalMs) sleepInterval = options.pollIntervalMs; - else { - const headerInterval = fileResponse.response.headers.get("openai-poll-after-ms"); - if (headerInterval) { - const headerIntervalMs = parseInt(headerInterval); - if (!isNaN(headerIntervalMs)) sleepInterval = headerIntervalMs; - } - } - await sleep(sleepInterval); - break; - case "failed": - case "completed": return file; - } - } - } - /** - * Upload a file to the `files` API and then attach it to the given vector store. - * - * Note the file will be asynchronously processed (you can use the alternative - * polling helper method to wait for processing to complete). - */ - async upload(vectorStoreId, file, options) { - const fileInfo = await this._client.files.create({ - file, - purpose: "assistants" - }, options); - return this.create(vectorStoreId, { file_id: fileInfo.id }, options); - } - /** - * Add a file to a vector store and poll until processing is complete. - */ - async uploadAndPoll(vectorStoreId, file, options) { - const fileInfo = await this.upload(vectorStoreId, file, options); - return await this.poll(vectorStoreId, fileInfo.id, options); - } - /** - * Retrieve the parsed contents of a vector store file. - */ - content(vectorStoreId, fileId, options) { - return this._client.getAPIList(`/vector_stores/${vectorStoreId}/files/${fileId}/content`, FileContentResponsesPage, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; -var VectorStoreFilesPage = class extends CursorPage {}; -/** -* Note: no pagination actually occurs yet, this is for forwards-compatibility. -*/ -var FileContentResponsesPage = class extends Page {}; -Files$1.VectorStoreFilesPage = VectorStoreFilesPage; -Files$1.FileContentResponsesPage = FileContentResponsesPage; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/vector-stores/file-batches.mjs -var FileBatches = class extends APIResource { - /** - * Create a vector store file batch. - */ - create(vectorStoreId, body, options) { - return this._client.post(`/vector_stores/${vectorStoreId}/file_batches`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Retrieves a vector store file batch. - */ - retrieve(vectorStoreId, batchId, options) { - return this._client.get(`/vector_stores/${vectorStoreId}/file_batches/${batchId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Cancel a vector store file batch. This attempts to cancel the processing of - * files in this batch as soon as possible. - */ - cancel(vectorStoreId, batchId, options) { - return this._client.post(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Create a vector store batch and poll until all files have been processed. - */ - async createAndPoll(vectorStoreId, body, options) { - const batch = await this.create(vectorStoreId, body); - return await this.poll(vectorStoreId, batch.id, options); - } - listFiles(vectorStoreId, batchId, query = {}, options) { - if (isRequestOptions(query)) return this.listFiles(vectorStoreId, batchId, {}, query); - return this._client.getAPIList(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`, VectorStoreFilesPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Wait for the given file batch to be processed. - * - * Note: this will return even if one of the files failed to process, you need to - * check batch.file_counts.failed_count to handle this case. - */ - async poll(vectorStoreId, batchId, options) { - const headers = { - ...options?.headers, - "X-Stainless-Poll-Helper": "true" - }; - if (options?.pollIntervalMs) headers["X-Stainless-Custom-Poll-Interval"] = options.pollIntervalMs.toString(); - while (true) { - const { data: batch, response } = await this.retrieve(vectorStoreId, batchId, { - ...options, - headers - }).withResponse(); - switch (batch.status) { - case "in_progress": - let sleepInterval = 5e3; - if (options?.pollIntervalMs) sleepInterval = options.pollIntervalMs; - else { - const headerInterval = response.headers.get("openai-poll-after-ms"); - if (headerInterval) { - const headerIntervalMs = parseInt(headerInterval); - if (!isNaN(headerIntervalMs)) sleepInterval = headerIntervalMs; - } - } - await sleep(sleepInterval); - break; - case "failed": - case "cancelled": - case "completed": return batch; - } - } - } - /** - * Uploads the given files concurrently and then creates a vector store file batch. - * - * The concurrency limit is configurable using the `maxConcurrency` parameter. - */ - async uploadAndPoll(vectorStoreId, { files, fileIds = [] }, options) { - if (files == null || files.length == 0) throw new Error(`No \`files\` provided to process. If you've already uploaded files you should use \`.createAndPoll()\` instead`); - const configuredConcurrency = options?.maxConcurrency ?? 5; - const concurrencyLimit = Math.min(configuredConcurrency, files.length); - const client = this._client; - const fileIterator = files.values(); - const allFileIds = [...fileIds]; - async function processFiles(iterator) { - for (let item of iterator) { - const fileObj = await client.files.create({ - file: item, - purpose: "assistants" - }, options); - allFileIds.push(fileObj.id); - } - } - const workers = Array(concurrencyLimit).fill(fileIterator).map(processFiles); - await allSettledWithThrow(workers); - return await this.createAndPoll(vectorStoreId, { file_ids: allFileIds }); - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/resources/vector-stores/vector-stores.mjs -var VectorStores = class extends APIResource { - constructor() { - super(...arguments); - this.files = new Files$1(this._client); - this.fileBatches = new FileBatches(this._client); - } - /** - * Create a vector store. - */ - create(body, options) { - return this._client.post("/vector_stores", { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Retrieves a vector store. - */ - retrieve(vectorStoreId, options) { - return this._client.get(`/vector_stores/${vectorStoreId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Modifies a vector store. - */ - update(vectorStoreId, body, options) { - return this._client.post(`/vector_stores/${vectorStoreId}`, { - body, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - list(query = {}, options) { - if (isRequestOptions(query)) return this.list({}, query); - return this._client.getAPIList("/vector_stores", VectorStoresPage, { - query, - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Delete a vector store. - */ - del(vectorStoreId, options) { - return this._client.delete(`/vector_stores/${vectorStoreId}`, { - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } - /** - * Search a vector store for relevant chunks based on a query and file attributes - * filter. - */ - search(vectorStoreId, body, options) { - return this._client.getAPIList(`/vector_stores/${vectorStoreId}/search`, VectorStoreSearchResponsesPage, { - body, - method: "post", - ...options, - headers: { - "OpenAI-Beta": "assistants=v2", - ...options?.headers - } - }); - } -}; -var VectorStoresPage = class extends CursorPage {}; -/** -* Note: no pagination actually occurs yet, this is for forwards-compatibility. -*/ -var VectorStoreSearchResponsesPage = class extends Page {}; -VectorStores.VectorStoresPage = VectorStoresPage; -VectorStores.VectorStoreSearchResponsesPage = VectorStoreSearchResponsesPage; -VectorStores.Files = Files$1; -VectorStores.VectorStoreFilesPage = VectorStoreFilesPage; -VectorStores.FileContentResponsesPage = FileContentResponsesPage; -VectorStores.FileBatches = FileBatches; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/index.mjs -var _a; -/** -* API Client for interfacing with the OpenAI API. -*/ -var OpenAI = class extends APIClient { - /** - * API Client for interfacing with the OpenAI API. - * - * @param {string | undefined} [opts.apiKey=process.env['OPENAI_API_KEY'] ?? undefined] - * @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null] - * @param {string | null | undefined} [opts.project=process.env['OPENAI_PROJECT_ID'] ?? null] - * @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL'] ?? https://api.openai.com/v1] - Override the default base URL for the API. - * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. - * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections. - * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. - * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request. - * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API. - * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API. - * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers. - */ - constructor({ baseURL = readEnv("OPENAI_BASE_URL"), apiKey = readEnv("OPENAI_API_KEY"), organization = readEnv("OPENAI_ORG_ID") ?? null, project = readEnv("OPENAI_PROJECT_ID") ?? null,...opts } = {}) { - if (apiKey === void 0) throw new OpenAIError("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' })."); - const options = { - apiKey, - organization, - project, - ...opts, - baseURL: baseURL || `https://api.openai.com/v1` - }; - if (!options.dangerouslyAllowBrowser && isRunningInBrowser()) throw new OpenAIError("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n"); - super({ - baseURL: options.baseURL, - timeout: options.timeout ?? 6e5, - httpAgent: options.httpAgent, - maxRetries: options.maxRetries, - fetch: options.fetch - }); - this.completions = new Completions(this); - this.chat = new Chat(this); - this.embeddings = new Embeddings(this); - this.files = new Files(this); - this.images = new Images(this); - this.audio = new Audio(this); - this.moderations = new Moderations(this); - this.models = new Models(this); - this.fineTuning = new FineTuning(this); - this.graders = new Graders(this); - this.vectorStores = new VectorStores(this); - this.beta = new Beta(this); - this.batches = new Batches(this); - this.uploads = new Uploads(this); - this.responses = new Responses(this); - this.evals = new Evals(this); - this.containers = new Containers(this); - this._options = options; - this.apiKey = apiKey; - this.organization = organization; - this.project = project; - } - defaultQuery() { - return this._options.defaultQuery; - } - defaultHeaders(opts) { - return { - ...super.defaultHeaders(opts), - "OpenAI-Organization": this.organization, - "OpenAI-Project": this.project, - ...this._options.defaultHeaders - }; - } - authHeaders(opts) { - return { Authorization: `Bearer ${this.apiKey}` }; - } - stringifyQuery(query) { - return stringify(query, { arrayFormat: "brackets" }); - } -}; -_a = OpenAI; -OpenAI.OpenAI = _a; -OpenAI.DEFAULT_TIMEOUT = 6e5; -OpenAI.OpenAIError = OpenAIError; -OpenAI.APIError = APIError; -OpenAI.APIConnectionError = APIConnectionError; -OpenAI.APIConnectionTimeoutError = APIConnectionTimeoutError; -OpenAI.APIUserAbortError = APIUserAbortError; -OpenAI.NotFoundError = NotFoundError; -OpenAI.ConflictError = ConflictError; -OpenAI.RateLimitError = RateLimitError; -OpenAI.BadRequestError = BadRequestError; -OpenAI.AuthenticationError = AuthenticationError; -OpenAI.InternalServerError = InternalServerError; -OpenAI.PermissionDeniedError = PermissionDeniedError; -OpenAI.UnprocessableEntityError = UnprocessableEntityError; -OpenAI.toFile = toFile; -OpenAI.fileFromPath = fileFromPath; -OpenAI.Completions = Completions; -OpenAI.Chat = Chat; -OpenAI.ChatCompletionsPage = ChatCompletionsPage; -OpenAI.Embeddings = Embeddings; -OpenAI.Files = Files; -OpenAI.FileObjectsPage = FileObjectsPage; -OpenAI.Images = Images; -OpenAI.Audio = Audio; -OpenAI.Moderations = Moderations; -OpenAI.Models = Models; -OpenAI.ModelsPage = ModelsPage; -OpenAI.FineTuning = FineTuning; -OpenAI.Graders = Graders; -OpenAI.VectorStores = VectorStores; -OpenAI.VectorStoresPage = VectorStoresPage; -OpenAI.VectorStoreSearchResponsesPage = VectorStoreSearchResponsesPage; -OpenAI.Beta = Beta; -OpenAI.Batches = Batches; -OpenAI.BatchesPage = BatchesPage; -OpenAI.Uploads = Uploads; -OpenAI.Responses = Responses; -OpenAI.Evals = Evals; -OpenAI.EvalListResponsesPage = EvalListResponsesPage; -OpenAI.Containers = Containers; -OpenAI.ContainerListResponsesPage = ContainerListResponsesPage; - -//#endregion -//#region node_modules/.pnpm/@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57_/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.js -function parseToolCall(rawToolCall, options) { - if (rawToolCall.function === void 0) return void 0; - let functionArgs; - if (options?.partial) try { - functionArgs = parsePartialJson(rawToolCall.function.arguments ?? "{}"); - } catch (e) { - return void 0; - } - else try { - functionArgs = JSON.parse(rawToolCall.function.arguments); - } catch (e) { - throw new OutputParserException([ - `Function "${rawToolCall.function.name}" arguments:`, - ``, - rawToolCall.function.arguments, - ``, - `are not valid JSON.`, - `Error: ${e.message}` - ].join("\n")); - } - const parsedToolCall = { - name: rawToolCall.function.name, - args: functionArgs, - type: "tool_call" - }; - if (options?.returnId) parsedToolCall.id = rawToolCall.id; - return parsedToolCall; -} -function convertLangChainToolCallToOpenAI(toolCall) { - if (toolCall.id === void 0) throw new Error(`All OpenAI tool calls must have an "id" field.`); - return { - id: toolCall.id, - type: "function", - function: { - name: toolCall.name, - arguments: JSON.stringify(toolCall.args) - } - }; -} -function makeInvalidToolCall(rawToolCall, errorMsg) { - return { - name: rawToolCall.function?.name, - args: rawToolCall.function?.arguments, - id: rawToolCall.id, - error: errorMsg, - type: "invalid_tool_call" - }; -} -/** -* Class for parsing the output of a tool-calling LLM into a JSON object. -*/ -var JsonOutputToolsParser = class extends BaseCumulativeTransformOutputParser { - static lc_name() { - return "JsonOutputToolsParser"; - } - constructor(fields) { - super(fields); - Object.defineProperty(this, "returnId", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "output_parsers", - "openai_tools" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - this.returnId = fields?.returnId ?? this.returnId; - } - _diff() { - throw new Error("Not supported."); - } - async parse() { - throw new Error("Not implemented."); - } - async parseResult(generations) { - const result = await this.parsePartialResult(generations, false); - return result; - } - /** - * Parses the output and returns a JSON object. If `argsOnly` is true, - * only the arguments of the function call are returned. - * @param generations The output of the LLM to parse. - * @returns A JSON object representation of the function call or its arguments. - */ - async parsePartialResult(generations, partial = true) { - const message = generations[0].message; - let toolCalls; - if (isAIMessage(message) && message.tool_calls?.length) toolCalls = message.tool_calls.map((toolCall) => { - const { id,...rest } = toolCall; - if (!this.returnId) return rest; - return { - id, - ...rest - }; - }); - else if (message.additional_kwargs.tool_calls !== void 0) { - const rawToolCalls = JSON.parse(JSON.stringify(message.additional_kwargs.tool_calls)); - toolCalls = rawToolCalls.map((rawToolCall) => { - return parseToolCall(rawToolCall, { - returnId: this.returnId, - partial - }); - }); - } - if (!toolCalls) return []; - const parsedToolCalls = []; - for (const toolCall of toolCalls) if (toolCall !== void 0) { - const backwardsCompatibleToolCall = { - type: toolCall.name, - args: toolCall.args, - id: toolCall.id - }; - parsedToolCalls.push(backwardsCompatibleToolCall); - } - return parsedToolCalls; - } -}; -/** -* Class for parsing the output of a tool-calling LLM into a JSON object if you are -* expecting only a single tool to be called. -*/ -var JsonOutputKeyToolsParser = class extends JsonOutputToolsParser { - static lc_name() { - return "JsonOutputKeyToolsParser"; - } - constructor(params) { - super(params); - Object.defineProperty(this, "lc_namespace", { - enumerable: true, - configurable: true, - writable: true, - value: [ - "langchain", - "output_parsers", - "openai_tools" - ] - }); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "returnId", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - /** The type of tool calls to return. */ - Object.defineProperty(this, "keyName", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** Whether to return only the first tool call. */ - Object.defineProperty(this, "returnSingle", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "zodSchema", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.keyName = params.keyName; - this.returnSingle = params.returnSingle ?? this.returnSingle; - this.zodSchema = params.zodSchema; - } - async _validateResult(result) { - if (this.zodSchema === void 0) return result; - const zodParsedResult = await this.zodSchema.safeParseAsync(result); - if (zodParsedResult.success) return zodParsedResult.data; - else throw new OutputParserException(`Failed to parse. Text: "${JSON.stringify(result, null, 2)}". Error: ${JSON.stringify(zodParsedResult.error.errors)}`, JSON.stringify(result, null, 2)); - } - async parsePartialResult(generations) { - const results = await super.parsePartialResult(generations); - const matchingResults = results.filter((result) => result.type === this.keyName); - let returnedValues = matchingResults; - if (!matchingResults.length) return void 0; - if (!this.returnId) returnedValues = matchingResults.map((result) => result.args); - if (this.returnSingle) return returnedValues[0]; - return returnedValues; - } - async parseResult(generations) { - const results = await super.parsePartialResult(generations, false); - const matchingResults = results.filter((result) => result.type === this.keyName); - let returnedValues = matchingResults; - if (!matchingResults.length) return void 0; - if (!this.returnId) returnedValues = matchingResults.map((result) => result.args); - if (this.returnSingle) return this._validateResult(returnedValues[0]); - const toolCallResults = await Promise.all(returnedValues.map((value) => this._validateResult(value))); - return toolCallResults; - } -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/Options.mjs -const ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use"); -const defaultOptions = { - name: void 0, - $refStrategy: "root", - effectStrategy: "input", - pipeStrategy: "all", - dateStrategy: "format:date-time", - mapStrategy: "entries", - nullableStrategy: "from-target", - removeAdditionalStrategy: "passthrough", - definitionPath: "definitions", - target: "jsonSchema7", - strictUnions: false, - errorMessages: false, - markdownDescription: false, - patternStrategy: "escape", - applyRegexFlags: false, - emailStrategy: "format:email", - base64Strategy: "contentEncoding:base64", - nameStrategy: "ref" -}; -const getDefaultOptions = (options) => { - return typeof options === "string" ? { - ...defaultOptions, - basePath: ["#"], - definitions: {}, - name: options - } : { - ...defaultOptions, - basePath: ["#"], - definitions: {}, - ...options - }; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/util.mjs -const zodDef = (zodSchema) => { - return "_def" in zodSchema ? zodSchema._def : zodSchema; -}; -function isEmptyObj(obj) { - if (!obj) return true; - for (const _k in obj) return false; - return true; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/Refs.mjs -const getRefs = (options) => { - const _options = getDefaultOptions(options); - const currentPath = _options.name !== void 0 ? [ - ..._options.basePath, - _options.definitionPath, - _options.name - ] : _options.basePath; - return { - ..._options, - currentPath, - propertyPath: void 0, - seenRefs: /* @__PURE__ */ new Set(), - seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [zodDef(def), { - def: zodDef(def), - path: [ - ..._options.basePath, - _options.definitionPath, - name - ], - jsonSchema: void 0 - }])) - }; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.mjs -function addErrorMessage(res, key$1, errorMessage, refs) { - if (!refs?.errorMessages) return; - if (errorMessage) res.errorMessage = { - ...res.errorMessage, - [key$1]: errorMessage - }; -} -function setResponseValueAndErrors(res, key$1, value, errorMessage, refs) { - res[key$1] = value; - addErrorMessage(res, key$1, errorMessage, refs); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.mjs -function parseAnyDef() { - return {}; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs -function parseArrayDef(def, refs) { - const res = { type: "array" }; - if (def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) res.items = parseDef(def.type._def, { - ...refs, - currentPath: [...refs.currentPath, "items"] - }); - if (def.minLength) setResponseValueAndErrors(res, "minItems", def.minLength.value, def.minLength.message, refs); - if (def.maxLength) setResponseValueAndErrors(res, "maxItems", def.maxLength.value, def.maxLength.message, refs); - if (def.exactLength) { - setResponseValueAndErrors(res, "minItems", def.exactLength.value, def.exactLength.message, refs); - setResponseValueAndErrors(res, "maxItems", def.exactLength.value, def.exactLength.message, refs); - } - return res; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs -function parseBigintDef(def, refs) { - const res = { - type: "integer", - format: "int64" - }; - if (!def.checks) return res; - for (const check of def.checks) switch (check.kind) { - case "min": - if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); - else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs); - else { - if (!check.inclusive) res.exclusiveMinimum = true; - setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); - } - break; - case "max": - if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); - else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs); - else { - if (!check.inclusive) res.exclusiveMaximum = true; - setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); - } - break; - case "multipleOf": - setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs); - break; - } - return res; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.mjs -function parseBooleanDef() { - return { type: "boolean" }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs -function parseBrandedDef(_def, refs) { - return parseDef(_def.type._def, refs); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs -const parseCatchDef = (def, refs) => { - return parseDef(def.innerType._def, refs); -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs -function parseDateDef(def, refs, overrideDateStrategy) { - const strategy = overrideDateStrategy ?? refs.dateStrategy; - if (Array.isArray(strategy)) return { anyOf: strategy.map((item, i$4) => parseDateDef(def, refs, item)) }; - switch (strategy) { - case "string": - case "format:date-time": return { - type: "string", - format: "date-time" - }; - case "format:date": return { - type: "string", - format: "date" - }; - case "integer": return integerDateParser(def, refs); - } -} -const integerDateParser = (def, refs) => { - const res = { - type: "integer", - format: "unix-time" - }; - if (refs.target === "openApi3") return res; - for (const check of def.checks) switch (check.kind) { - case "min": - setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); - break; - case "max": - setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); - break; - } - return res; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs -function parseDefaultDef(_def, refs) { - return { - ...parseDef(_def.innerType._def, refs), - default: _def.defaultValue() - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.mjs -function parseEffectsDef(_def, refs, forceResolution) { - return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs, forceResolution) : {}; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.mjs -function parseEnumDef(def) { - return { - type: "string", - enum: [...def.values] - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs -const isJsonSchema7AllOfType = (type) => { - if ("type" in type && type.type === "string") return false; - return "allOf" in type; -}; -function parseIntersectionDef(def, refs) { - const allOf = [parseDef(def.left._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "allOf", - "0" - ] - }), parseDef(def.right._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "allOf", - "1" - ] - })].filter((x) => !!x); - let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0; - const mergedAllOf = []; - allOf.forEach((schema) => { - if (isJsonSchema7AllOfType(schema)) { - mergedAllOf.push(...schema.allOf); - if (schema.unevaluatedProperties === void 0) unevaluatedProperties = void 0; - } else { - let nestedSchema = schema; - if ("additionalProperties" in schema && schema.additionalProperties === false) { - const { additionalProperties,...rest } = schema; - nestedSchema = rest; - } else unevaluatedProperties = void 0; - mergedAllOf.push(nestedSchema); - } - }); - return mergedAllOf.length ? { - allOf: mergedAllOf, - ...unevaluatedProperties - } : void 0; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs -function parseLiteralDef(def, refs) { - const parsedType = typeof def.value; - if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") return { type: Array.isArray(def.value) ? "array" : "object" }; - if (refs.target === "openApi3") return { - type: parsedType === "bigint" ? "integer" : parsedType, - enum: [def.value] - }; - return { - type: parsedType === "bigint" ? "integer" : parsedType, - const: def.value - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.mjs -let emojiRegex; -/** -* Generated from the regular expressions found here as of 2024-05-22: -* https://github.com/colinhacks/zod/blob/master/src/types.ts. -* -* Expressions with /i flag have been changed accordingly. -*/ -const zodPatterns = { - cuid: /^[cC][^\s-]{8,}$/, - cuid2: /^[0-9a-z]+$/, - ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/, - email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/, - emoji: () => { - if (emojiRegex === void 0) emojiRegex = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u"); - return emojiRegex; - }, - uuid: /^[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}$/, - ipv4: /^(?:(?: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])$/, - 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})))$/, - base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, - nanoid: /^[a-zA-Z0-9_-]{21}$/ -}; -function parseStringDef(def, refs) { - const res = { type: "string" }; - function processPattern(value) { - return refs.patternStrategy === "escape" ? escapeNonAlphaNumeric(value) : value; - } - if (def.checks) for (const check of def.checks) switch (check.kind) { - case "min": - setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number" ? Math.max(res.minLength, check.value) : check.value, check.message, refs); - break; - case "max": - setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number" ? Math.min(res.maxLength, check.value) : check.value, check.message, refs); - break; - case "email": - switch (refs.emailStrategy) { - case "format:email": - addFormat(res, "email", check.message, refs); - break; - case "format:idn-email": - addFormat(res, "idn-email", check.message, refs); - break; - case "pattern:zod": - addPattern(res, zodPatterns.email, check.message, refs); - break; - } - break; - case "url": - addFormat(res, "uri", check.message, refs); - break; - case "uuid": - addFormat(res, "uuid", check.message, refs); - break; - case "regex": - addPattern(res, check.regex, check.message, refs); - break; - case "cuid": - addPattern(res, zodPatterns.cuid, check.message, refs); - break; - case "cuid2": - addPattern(res, zodPatterns.cuid2, check.message, refs); - break; - case "startsWith": - addPattern(res, RegExp(`^${processPattern(check.value)}`), check.message, refs); - break; - case "endsWith": - addPattern(res, RegExp(`${processPattern(check.value)}$`), check.message, refs); - break; - case "datetime": - addFormat(res, "date-time", check.message, refs); - break; - case "date": - addFormat(res, "date", check.message, refs); - break; - case "time": - addFormat(res, "time", check.message, refs); - break; - case "duration": - addFormat(res, "duration", check.message, refs); - break; - case "length": - setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number" ? Math.max(res.minLength, check.value) : check.value, check.message, refs); - setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number" ? Math.min(res.maxLength, check.value) : check.value, check.message, refs); - break; - case "includes": { - addPattern(res, RegExp(processPattern(check.value)), check.message, refs); - break; - } - case "ip": { - if (check.version !== "v6") addFormat(res, "ipv4", check.message, refs); - if (check.version !== "v4") addFormat(res, "ipv6", check.message, refs); - break; - } - case "emoji": - addPattern(res, zodPatterns.emoji, check.message, refs); - break; - case "ulid": { - addPattern(res, zodPatterns.ulid, check.message, refs); - break; - } - case "base64": { - switch (refs.base64Strategy) { - case "format:binary": { - addFormat(res, "binary", check.message, refs); - break; - } - case "contentEncoding:base64": { - setResponseValueAndErrors(res, "contentEncoding", "base64", check.message, refs); - break; - } - case "pattern:zod": { - addPattern(res, zodPatterns.base64, check.message, refs); - break; - } - } - break; - } - case "nanoid": addPattern(res, zodPatterns.nanoid, check.message, refs); - case "toLowerCase": - case "toUpperCase": - case "trim": break; - default: ((_) => {})(check); - } - return res; -} -const escapeNonAlphaNumeric = (value) => Array.from(value).map((c) => /[a-zA-Z0-9]/.test(c) ? c : `\\${c}`).join(""); -const addFormat = (schema, value, message, refs) => { - if (schema.format || schema.anyOf?.some((x) => x.format)) { - if (!schema.anyOf) schema.anyOf = []; - if (schema.format) { - schema.anyOf.push({ - format: schema.format, - ...schema.errorMessage && refs.errorMessages && { errorMessage: { format: schema.errorMessage.format } } - }); - delete schema.format; - if (schema.errorMessage) { - delete schema.errorMessage.format; - if (Object.keys(schema.errorMessage).length === 0) delete schema.errorMessage; - } - } - schema.anyOf.push({ - format: value, - ...message && refs.errorMessages && { errorMessage: { format: message } } - }); - } else setResponseValueAndErrors(schema, "format", value, message, refs); -}; -const addPattern = (schema, regex$1, message, refs) => { - if (schema.pattern || schema.allOf?.some((x) => x.pattern)) { - if (!schema.allOf) schema.allOf = []; - if (schema.pattern) { - schema.allOf.push({ - pattern: schema.pattern, - ...schema.errorMessage && refs.errorMessages && { errorMessage: { pattern: schema.errorMessage.pattern } } - }); - delete schema.pattern; - if (schema.errorMessage) { - delete schema.errorMessage.pattern; - if (Object.keys(schema.errorMessage).length === 0) delete schema.errorMessage; - } - } - schema.allOf.push({ - pattern: processRegExp(regex$1, refs), - ...message && refs.errorMessages && { errorMessage: { pattern: message } } - }); - } else setResponseValueAndErrors(schema, "pattern", processRegExp(regex$1, refs), message, refs); -}; -const processRegExp = (regexOrFunction, refs) => { - const regex$1 = typeof regexOrFunction === "function" ? regexOrFunction() : regexOrFunction; - if (!refs.applyRegexFlags || !regex$1.flags) return regex$1.source; - const flags = { - i: regex$1.flags.includes("i"), - m: regex$1.flags.includes("m"), - s: regex$1.flags.includes("s") - }; - const source = flags.i ? regex$1.source.toLowerCase() : regex$1.source; - let pattern = ""; - let isEscaped = false; - let inCharGroup = false; - let inCharRange = false; - for (let i$4 = 0; i$4 < source.length; i$4++) { - if (isEscaped) { - pattern += source[i$4]; - isEscaped = false; - continue; - } - if (flags.i) { - if (inCharGroup) { - if (source[i$4].match(/[a-z]/)) { - if (inCharRange) { - pattern += source[i$4]; - pattern += `${source[i$4 - 2]}-${source[i$4]}`.toUpperCase(); - inCharRange = false; - } else if (source[i$4 + 1] === "-" && source[i$4 + 2]?.match(/[a-z]/)) { - pattern += source[i$4]; - inCharRange = true; - } else pattern += `${source[i$4]}${source[i$4].toUpperCase()}`; - continue; - } - } else if (source[i$4].match(/[a-z]/)) { - pattern += `[${source[i$4]}${source[i$4].toUpperCase()}]`; - continue; - } - } - if (flags.m) { - if (source[i$4] === "^") { - pattern += `(^|(?<=[\r\n]))`; - continue; - } else if (source[i$4] === "$") { - pattern += `($|(?=[\r\n]))`; - continue; - } - } - if (flags.s && source[i$4] === ".") { - pattern += inCharGroup ? `${source[i$4]}\r\n` : `[${source[i$4]}\r\n]`; - continue; - } - pattern += source[i$4]; - if (source[i$4] === "\\") isEscaped = true; - else if (inCharGroup && source[i$4] === "]") inCharGroup = false; - else if (!inCharGroup && source[i$4] === "[") inCharGroup = true; - } - try { - const regexTest = new RegExp(pattern); - } catch { - console.warn(`Could not convert regex pattern at ${refs.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`); - return regex$1.source; - } - return pattern; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.mjs -function parseRecordDef(def, refs) { - if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) return { - type: "object", - required: def.keyType._def.values, - properties: def.keyType._def.values.reduce((acc, key$1) => ({ - ...acc, - [key$1]: parseDef(def.valueType._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "properties", - key$1 - ] - }) ?? {} - }), {}), - additionalProperties: false - }; - const schema = { - type: "object", - additionalProperties: parseDef(def.valueType._def, { - ...refs, - currentPath: [...refs.currentPath, "additionalProperties"] - }) ?? {} - }; - if (refs.target === "openApi3") return schema; - if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodString && def.keyType._def.checks?.length) { - const keyType = Object.entries(parseStringDef(def.keyType._def, refs)).reduce((acc, [key$1, value]) => key$1 === "type" ? acc : { - ...acc, - [key$1]: value - }, {}); - return { - ...schema, - propertyNames: keyType - }; - } else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) return { - ...schema, - propertyNames: { enum: def.keyType._def.values } - }; - return schema; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.mjs -function parseMapDef(def, refs) { - if (refs.mapStrategy === "record") return parseRecordDef(def, refs); - const keys = parseDef(def.keyType._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "items", - "items", - "0" - ] - }) || {}; - const values = parseDef(def.valueType._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "items", - "items", - "1" - ] - }) || {}; - return { - type: "array", - maxItems: 125, - items: { - type: "array", - items: [keys, values], - minItems: 2, - maxItems: 2 - } - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs -function parseNativeEnumDef(def) { - const object = def.values; - const actualKeys = Object.keys(def.values).filter((key$1) => { - return typeof object[object[key$1]] !== "number"; - }); - const actualValues = actualKeys.map((key$1) => object[key$1]); - const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values))); - return { - type: parsedTypes.length === 1 ? parsedTypes[0] === "string" ? "string" : "number" : ["string", "number"], - enum: actualValues - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.mjs -function parseNeverDef() { - return { not: {} }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs -function parseNullDef(refs) { - return refs.target === "openApi3" ? { - enum: ["null"], - nullable: true - } : { type: "null" }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.mjs -const primitiveMappings = { - ZodString: "string", - ZodNumber: "number", - ZodBigInt: "integer", - ZodBoolean: "boolean", - ZodNull: "null" -}; -function parseUnionDef(def, refs) { - if (refs.target === "openApi3") return asAnyOf(def, refs); - const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options; - if (options.every((x) => x._def.typeName in primitiveMappings && (!x._def.checks || !x._def.checks.length))) { - const types = options.reduce((types$1, x) => { - const type = primitiveMappings[x._def.typeName]; - return type && !types$1.includes(type) ? [...types$1, type] : types$1; - }, []); - return { type: types.length > 1 ? types : types[0] }; - } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) { - const types = options.reduce((acc, x) => { - const type = typeof x._def.value; - switch (type) { - case "string": - case "number": - case "boolean": return [...acc, type]; - case "bigint": return [...acc, "integer"]; - case "object": if (x._def.value === null) return [...acc, "null"]; - case "symbol": - case "undefined": - case "function": - default: return acc; - } - }, []); - if (types.length === options.length) { - const uniqueTypes = types.filter((x, i$4, a) => a.indexOf(x) === i$4); - return { - type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0], - enum: options.reduce((acc, x) => { - return acc.includes(x._def.value) ? acc : [...acc, x._def.value]; - }, []) - }; - } - } else if (options.every((x) => x._def.typeName === "ZodEnum")) return { - type: "string", - enum: options.reduce((acc, x) => [...acc, ...x._def.values.filter((x$1) => !acc.includes(x$1))], []) - }; - return asAnyOf(def, refs); -} -const asAnyOf = (def, refs) => { - const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x, i$4) => parseDef(x._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "anyOf", - `${i$4}` - ] - })).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)); - return anyOf.length ? { anyOf } : void 0; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.mjs -function parseNullableDef(def, refs) { - if ([ - "ZodString", - "ZodNumber", - "ZodBigInt", - "ZodBoolean", - "ZodNull" - ].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) { - if (refs.target === "openApi3" || refs.nullableStrategy === "property") return { - type: primitiveMappings[def.innerType._def.typeName], - nullable: true - }; - return { type: [primitiveMappings[def.innerType._def.typeName], "null"] }; - } - if (refs.target === "openApi3") { - const base$1 = parseDef(def.innerType._def, { - ...refs, - currentPath: [...refs.currentPath] - }); - if (base$1 && "$ref" in base$1) return { - allOf: [base$1], - nullable: true - }; - return base$1 && { - ...base$1, - nullable: true - }; - } - const base = parseDef(def.innerType._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "anyOf", - "0" - ] - }); - return base && { anyOf: [base, { type: "null" }] }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.mjs -function parseNumberDef(def, refs) { - const res = { type: "number" }; - if (!def.checks) return res; - for (const check of def.checks) switch (check.kind) { - case "int": - res.type = "integer"; - addErrorMessage(res, "type", check.message, refs); - break; - case "min": - if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); - else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs); - else { - if (!check.inclusive) res.exclusiveMinimum = true; - setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); - } - break; - case "max": - if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); - else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs); - else { - if (!check.inclusive) res.exclusiveMaximum = true; - setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); - } - break; - case "multipleOf": - setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs); - break; - } - return res; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.mjs -function decideAdditionalProperties(def, refs) { - if (refs.removeAdditionalStrategy === "strict") return def.catchall._def.typeName === "ZodNever" ? def.unknownKeys !== "strict" : parseDef(def.catchall._def, { - ...refs, - currentPath: [...refs.currentPath, "additionalProperties"] - }) ?? true; - else return def.catchall._def.typeName === "ZodNever" ? def.unknownKeys === "passthrough" : parseDef(def.catchall._def, { - ...refs, - currentPath: [...refs.currentPath, "additionalProperties"] - }) ?? true; -} -function parseObjectDef(def, refs) { - const result = { - type: "object", - ...Object.entries(def.shape()).reduce((acc, [propName, propDef]) => { - if (propDef === void 0 || propDef._def === void 0) return acc; - const propertyPath = [ - ...refs.currentPath, - "properties", - propName - ]; - const parsedDef = parseDef(propDef._def, { - ...refs, - currentPath: propertyPath, - propertyPath - }); - if (parsedDef === void 0) return acc; - if (refs.openaiStrictMode && propDef.isOptional() && !propDef.isNullable()) console.warn(`Zod field at \`${propertyPath.join("/")}\` uses \`.optional()\` without \`.nullable()\` which is not supported by the API. See: https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#all-fields-must-be-required\nThis will become an error in a future version of the SDK.`); - return { - properties: { - ...acc.properties, - [propName]: parsedDef - }, - required: propDef.isOptional() && !refs.openaiStrictMode ? acc.required : [...acc.required, propName] - }; - }, { - properties: {}, - required: [] - }), - additionalProperties: decideAdditionalProperties(def, refs) - }; - if (!result.required.length) delete result.required; - return result; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.mjs -const parseOptionalDef = (def, refs) => { - if (refs.currentPath.toString() === refs.propertyPath?.toString()) return parseDef(def.innerType._def, refs); - const innerSchema = parseDef(def.innerType._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "anyOf", - "1" - ] - }); - return innerSchema ? { anyOf: [{ not: {} }, innerSchema] } : {}; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.mjs -const parsePipelineDef = (def, refs) => { - if (refs.pipeStrategy === "input") return parseDef(def.in._def, refs); - else if (refs.pipeStrategy === "output") return parseDef(def.out._def, refs); - const a = parseDef(def.in._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "allOf", - "0" - ] - }); - const b = parseDef(def.out._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "allOf", - a ? "1" : "0" - ] - }); - return { allOf: [a, b].filter((x) => x !== void 0) }; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.mjs -function parsePromiseDef(def, refs) { - return parseDef(def.type._def, refs); -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.mjs -function parseSetDef(def, refs) { - const items = parseDef(def.valueType._def, { - ...refs, - currentPath: [...refs.currentPath, "items"] - }); - const schema = { - type: "array", - uniqueItems: true, - items - }; - if (def.minSize) setResponseValueAndErrors(schema, "minItems", def.minSize.value, def.minSize.message, refs); - if (def.maxSize) setResponseValueAndErrors(schema, "maxItems", def.maxSize.value, def.maxSize.message, refs); - return schema; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.mjs -function parseTupleDef(def, refs) { - if (def.rest) return { - type: "array", - minItems: def.items.length, - items: def.items.map((x, i$4) => parseDef(x._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "items", - `${i$4}` - ] - })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []), - additionalItems: parseDef(def.rest._def, { - ...refs, - currentPath: [...refs.currentPath, "additionalItems"] - }) - }; - else return { - type: "array", - minItems: def.items.length, - maxItems: def.items.length, - items: def.items.map((x, i$4) => parseDef(x._def, { - ...refs, - currentPath: [ - ...refs.currentPath, - "items", - `${i$4}` - ] - })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []) - }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.mjs -function parseUndefinedDef() { - return { not: {} }; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.mjs -function parseUnknownDef() { - return {}; -} - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.mjs -const parseReadonlyDef = (def, refs) => { - return parseDef(def.innerType._def, refs); -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/parseDef.mjs -function parseDef(def, refs, forceResolution = false) { - const seenItem = refs.seen.get(def); - if (refs.override) { - const overrideResult = refs.override?.(def, refs, seenItem, forceResolution); - if (overrideResult !== ignoreOverride) return overrideResult; - } - if (seenItem && !forceResolution) { - const seenSchema = get$ref(seenItem, refs); - if (seenSchema !== void 0) { - if ("$ref" in seenSchema) refs.seenRefs.add(seenSchema.$ref); - return seenSchema; - } - } - const newItem = { - def, - path: refs.currentPath, - jsonSchema: void 0 - }; - refs.seen.set(def, newItem); - const jsonSchema = selectParser(def, def.typeName, refs, forceResolution); - if (jsonSchema) addMeta(def, refs, jsonSchema); - newItem.jsonSchema = jsonSchema; - return jsonSchema; -} -const get$ref = (item, refs) => { - switch (refs.$refStrategy) { - case "root": return { $ref: item.path.join("/") }; - case "extract-to-root": - const name = item.path.slice(refs.basePath.length + 1).join("_"); - if (name !== refs.name && refs.nameStrategy === "duplicate-ref") refs.definitions[name] = item.def; - return { $ref: [ - ...refs.basePath, - refs.definitionPath, - name - ].join("/") }; - case "relative": return { $ref: getRelativePath(refs.currentPath, item.path) }; - case "none": - case "seen": { - if (item.path.length < refs.currentPath.length && item.path.every((value, index) => refs.currentPath[index] === value)) { - console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`); - return {}; - } - return refs.$refStrategy === "seen" ? {} : void 0; - } - } -}; -const getRelativePath = (pathA, pathB) => { - let i$4 = 0; - for (; i$4 < pathA.length && i$4 < pathB.length; i$4++) if (pathA[i$4] !== pathB[i$4]) break; - return [(pathA.length - i$4).toString(), ...pathB.slice(i$4)].join("/"); -}; -const selectParser = (def, typeName, refs, forceResolution) => { - switch (typeName) { - case ZodFirstPartyTypeKind.ZodString: return parseStringDef(def, refs); - case ZodFirstPartyTypeKind.ZodNumber: return parseNumberDef(def, refs); - case ZodFirstPartyTypeKind.ZodObject: return parseObjectDef(def, refs); - case ZodFirstPartyTypeKind.ZodBigInt: return parseBigintDef(def, refs); - case ZodFirstPartyTypeKind.ZodBoolean: return parseBooleanDef(); - case ZodFirstPartyTypeKind.ZodDate: return parseDateDef(def, refs); - case ZodFirstPartyTypeKind.ZodUndefined: return parseUndefinedDef(); - case ZodFirstPartyTypeKind.ZodNull: return parseNullDef(refs); - case ZodFirstPartyTypeKind.ZodArray: return parseArrayDef(def, refs); - case ZodFirstPartyTypeKind.ZodUnion: - case ZodFirstPartyTypeKind.ZodDiscriminatedUnion: return parseUnionDef(def, refs); - case ZodFirstPartyTypeKind.ZodIntersection: return parseIntersectionDef(def, refs); - case ZodFirstPartyTypeKind.ZodTuple: return parseTupleDef(def, refs); - case ZodFirstPartyTypeKind.ZodRecord: return parseRecordDef(def, refs); - case ZodFirstPartyTypeKind.ZodLiteral: return parseLiteralDef(def, refs); - case ZodFirstPartyTypeKind.ZodEnum: return parseEnumDef(def); - case ZodFirstPartyTypeKind.ZodNativeEnum: return parseNativeEnumDef(def); - case ZodFirstPartyTypeKind.ZodNullable: return parseNullableDef(def, refs); - case ZodFirstPartyTypeKind.ZodOptional: return parseOptionalDef(def, refs); - case ZodFirstPartyTypeKind.ZodMap: return parseMapDef(def, refs); - case ZodFirstPartyTypeKind.ZodSet: return parseSetDef(def, refs); - case ZodFirstPartyTypeKind.ZodLazy: return parseDef(def.getter()._def, refs); - case ZodFirstPartyTypeKind.ZodPromise: return parsePromiseDef(def, refs); - case ZodFirstPartyTypeKind.ZodNaN: - case ZodFirstPartyTypeKind.ZodNever: return parseNeverDef(); - case ZodFirstPartyTypeKind.ZodEffects: return parseEffectsDef(def, refs, forceResolution); - case ZodFirstPartyTypeKind.ZodAny: return parseAnyDef(); - case ZodFirstPartyTypeKind.ZodUnknown: return parseUnknownDef(); - case ZodFirstPartyTypeKind.ZodDefault: return parseDefaultDef(def, refs); - case ZodFirstPartyTypeKind.ZodBranded: return parseBrandedDef(def, refs); - case ZodFirstPartyTypeKind.ZodReadonly: return parseReadonlyDef(def, refs); - case ZodFirstPartyTypeKind.ZodCatch: return parseCatchDef(def, refs); - case ZodFirstPartyTypeKind.ZodPipeline: return parsePipelineDef(def, refs); - case ZodFirstPartyTypeKind.ZodFunction: - case ZodFirstPartyTypeKind.ZodVoid: - case ZodFirstPartyTypeKind.ZodSymbol: return void 0; - default: return ((_) => void 0)(typeName); - } -}; -const addMeta = (def, refs, jsonSchema) => { - if (def.description) { - jsonSchema.description = def.description; - if (refs.markdownDescription) jsonSchema.markdownDescription = def.description; - } - return jsonSchema; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.mjs -const zodToJsonSchema$1 = (schema, options) => { - const refs = getRefs(options); - const name = typeof options === "string" ? options : options?.nameStrategy === "title" ? void 0 : options?.name; - const main = parseDef(schema._def, name === void 0 ? refs : { - ...refs, - currentPath: [ - ...refs.basePath, - refs.definitionPath, - name - ] - }, false) ?? {}; - const title = typeof options === "object" && options.name !== void 0 && options.nameStrategy === "title" ? options.name : void 0; - if (title !== void 0) main.title = title; - const definitions = (() => { - if (isEmptyObj(refs.definitions)) return void 0; - const definitions$1 = {}; - const processedDefinitions = /* @__PURE__ */ new Set(); - for (let i$4 = 0; i$4 < 500; i$4++) { - const newDefinitions = Object.entries(refs.definitions).filter(([key$1]) => !processedDefinitions.has(key$1)); - if (newDefinitions.length === 0) break; - for (const [key$1, schema$1] of newDefinitions) { - definitions$1[key$1] = parseDef(zodDef(schema$1), { - ...refs, - currentPath: [ - ...refs.basePath, - refs.definitionPath, - key$1 - ] - }, true) ?? {}; - processedDefinitions.add(key$1); - } - } - return definitions$1; - })(); - const combined = name === void 0 ? definitions ? { - ...main, - [refs.definitionPath]: definitions - } : main : refs.nameStrategy === "duplicate-ref" ? { - ...main, - ...definitions || refs.seenRefs.size ? { [refs.definitionPath]: { - ...definitions, - ...refs.seenRefs.size ? { [name]: main } : void 0 - } } : void 0 - } : { - $ref: [ - ...refs.$refStrategy === "relative" ? [] : refs.basePath, - refs.definitionPath, - name - ].join("/"), - [refs.definitionPath]: { - ...definitions, - [name]: main - } - }; - if (refs.target === "jsonSchema7") combined.$schema = "http://json-schema.org/draft-07/schema#"; - else if (refs.target === "jsonSchema2019-09") combined.$schema = "https://json-schema.org/draft/2019-09/schema#"; - return combined; -}; - -//#endregion -//#region node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.2_zod@3.25.57/node_modules/openai/helpers/zod.mjs -function zodToJsonSchema$2(schema, options) { - return zodToJsonSchema$1(schema, { - openaiStrictMode: true, - name: options.name, - nameStrategy: "duplicate-ref", - $refStrategy: "extract-to-root", - nullableStrategy: "property" - }); -} -/** -* Creates a chat completion `JSONSchema` response format object from -* the given Zod schema. -* -* If this is passed to the `.parse()`, `.stream()` or `.runTools()` -* chat completion methods then the response message will contain a -* `.parsed` property that is the result of parsing the content with -* the given Zod object. -* -* ```ts -* const completion = await client.beta.chat.completions.parse({ -* model: 'gpt-4o-2024-08-06', -* messages: [ -* { role: 'system', content: 'You are a helpful math tutor.' }, -* { role: 'user', content: 'solve 8x + 31 = 2' }, -* ], -* response_format: zodResponseFormat( -* z.object({ -* steps: z.array(z.object({ -* explanation: z.string(), -* answer: z.string(), -* })), -* final_answer: z.string(), -* }), -* 'math_answer', -* ), -* }); -* const message = completion.choices[0]?.message; -* if (message?.parsed) { -* console.log(message.parsed); -* console.log(message.parsed.final_answer); -* } -* ``` -* -* This can be passed directly to the `.create()` method but will not -* result in any automatic parsing, you'll have to parse the response yourself. -*/ -function zodResponseFormat(zodObject, name, props) { - return makeParseableResponseFormat({ - type: "json_schema", - json_schema: { - ...props, - name, - strict: true, - schema: zodToJsonSchema$2(zodObject, { name }) - } - }, (content) => zodObject.parse(JSON.parse(content))); -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/utils/azure.js -/** -* This function generates an endpoint URL for (Azure) OpenAI -* based on the configuration parameters provided. -* -* @param {OpenAIEndpointConfig} config - The configuration object for the (Azure) endpoint. -* -* @property {string} config.azureOpenAIApiDeploymentName - The deployment name of Azure OpenAI. -* @property {string} config.azureOpenAIApiInstanceName - The instance name of Azure OpenAI, e.g. `example-resource`. -* @property {string} config.azureOpenAIApiKey - The API Key for Azure OpenAI. -* @property {string} config.azureOpenAIBasePath - The base path for Azure OpenAI, e.g. `https://example-resource.azure.openai.com/openai/deployments/`. -* @property {string} config.baseURL - Some other custom base path URL. -* @property {string} config.azureOpenAIEndpoint - The endpoint for the Azure OpenAI instance, e.g. `https://example-resource.azure.openai.com/`. -* -* The function operates as follows: -* - If both `azureOpenAIBasePath` and `azureOpenAIApiDeploymentName` (plus `azureOpenAIApiKey`) are provided, it returns an URL combining these two parameters (`${azureOpenAIBasePath}/${azureOpenAIApiDeploymentName}`). -* - If both `azureOpenAIEndpoint` and `azureOpenAIApiDeploymentName` (plus `azureOpenAIApiKey`) are provided, it returns an URL combining these two parameters (`${azureOpenAIEndpoint}/openai/deployments/${azureOpenAIApiDeploymentName}`). -* - If `azureOpenAIApiKey` is provided, it checks for `azureOpenAIApiInstanceName` and `azureOpenAIApiDeploymentName` and throws an error if any of these is missing. If both are provided, it generates an URL incorporating these parameters. -* - If none of the above conditions are met, return any custom `baseURL`. -* - The function returns the generated URL as a string, or undefined if no custom paths are specified. -* -* @throws Will throw an error if the necessary parameters for generating the URL are missing. -* -* @returns {string | undefined} The generated (Azure) OpenAI endpoint URL. -*/ -function getEndpoint(config) { - const { azureOpenAIApiDeploymentName, azureOpenAIApiInstanceName, azureOpenAIApiKey, azureOpenAIBasePath, baseURL, azureADTokenProvider, azureOpenAIEndpoint } = config; - if ((azureOpenAIApiKey || azureADTokenProvider) && azureOpenAIBasePath && azureOpenAIApiDeploymentName) return `${azureOpenAIBasePath}/${azureOpenAIApiDeploymentName}`; - if ((azureOpenAIApiKey || azureADTokenProvider) && azureOpenAIEndpoint && azureOpenAIApiDeploymentName) return `${azureOpenAIEndpoint}/openai/deployments/${azureOpenAIApiDeploymentName}`; - if (azureOpenAIApiKey || azureADTokenProvider) { - if (!azureOpenAIApiInstanceName) throw new Error("azureOpenAIApiInstanceName is required when using azureOpenAIApiKey"); - if (!azureOpenAIApiDeploymentName) throw new Error("azureOpenAIApiDeploymentName is a required parameter when using azureOpenAIApiKey"); - return `https://${azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${azureOpenAIApiDeploymentName}`; - } - return baseURL; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/utils/errors.js -function addLangChainErrorFields$1(error, lc_error_code) { - error.lc_error_code = lc_error_code; - error.message = `${error.message}\n\nTroubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/${lc_error_code}/\n`; - return error; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/utils/openai.js -function wrapOpenAIClientError(e) { - let error; - if (e.constructor.name === APIConnectionTimeoutError.name) { - error = new Error(e.message); - error.name = "TimeoutError"; - } else if (e.constructor.name === APIUserAbortError.name) { - error = new Error(e.message); - error.name = "AbortError"; - } else if (e.status === 400 && e.message.includes("tool_calls")) error = addLangChainErrorFields$1(e, "INVALID_TOOL_RESULTS"); - else if (e.status === 401) error = addLangChainErrorFields$1(e, "MODEL_AUTHENTICATION"); - else if (e.status === 429) error = addLangChainErrorFields$1(e, "MODEL_RATE_LIMIT"); - else if (e.status === 404) error = addLangChainErrorFields$1(e, "MODEL_NOT_FOUND"); - else error = e; - return error; -} -function formatToOpenAIToolChoice(toolChoice) { - if (!toolChoice) return void 0; - else if (toolChoice === "any" || toolChoice === "required") return "required"; - else if (toolChoice === "auto") return "auto"; - else if (toolChoice === "none") return "none"; - else if (typeof toolChoice === "string") return { - type: "function", - function: { name: toolChoice } - }; - else return toolChoice; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/utils/openai-format-fndef.js -function isAnyOfProp(prop) { - return prop.anyOf !== void 0 && Array.isArray(prop.anyOf); -} -function formatFunctionDefinitions(functions) { - const lines = ["namespace functions {", ""]; - for (const f of functions) { - if (f.description) lines.push(`// ${f.description}`); - if (Object.keys(f.parameters.properties ?? {}).length > 0) { - lines.push(`type ${f.name} = (_: {`); - lines.push(formatObjectProperties(f.parameters, 0)); - lines.push("}) => any;"); - } else lines.push(`type ${f.name} = () => any;`); - lines.push(""); - } - lines.push("} // namespace functions"); - return lines.join("\n"); -} -function formatObjectProperties(obj, indent) { - const lines = []; - for (const [name, param] of Object.entries(obj.properties ?? {})) { - if (param.description && indent < 2) lines.push(`// ${param.description}`); - if (obj.required?.includes(name)) lines.push(`${name}: ${formatType(param, indent)},`); - else lines.push(`${name}?: ${formatType(param, indent)},`); - } - return lines.map((line) => " ".repeat(indent) + line).join("\n"); -} -function formatType(param, indent) { - if (isAnyOfProp(param)) return param.anyOf.map((v) => formatType(v, indent)).join(" | "); - switch (param.type) { - case "string": - if (param.enum) return param.enum.map((v) => `"${v}"`).join(" | "); - return "string"; - case "number": - if (param.enum) return param.enum.map((v) => `${v}`).join(" | "); - return "number"; - case "integer": - if (param.enum) return param.enum.map((v) => `${v}`).join(" | "); - return "number"; - case "boolean": return "boolean"; - case "null": return "null"; - case "object": return [ - "{", - formatObjectProperties(param, indent + 2), - "}" - ].join("\n"); - case "array": - if (param.items) return `${formatType(param.items, indent)}[]`; - return "any[]"; - default: return ""; - } -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/utils/tools.js -/** -* Formats a tool in either OpenAI format, or LangChain structured tool format -* into an OpenAI tool format. If the tool is already in OpenAI format, return without -* any changes. If it is in LangChain structured tool format, convert it to OpenAI tool format -* using OpenAI's `zodFunction` util, falling back to `convertToOpenAIFunction` if the parameters -* returned from the `zodFunction` util are not defined. -* -* @param {BindToolsInput} tool The tool to convert to an OpenAI tool. -* @param {Object} [fields] Additional fields to add to the OpenAI tool. -* @returns {ToolDefinition} The inputted tool in OpenAI tool format. -*/ -function _convertToOpenAITool(tool$1, fields) { - let toolDef; - if (isLangChainTool(tool$1)) toolDef = convertToOpenAITool(tool$1); - else toolDef = tool$1; - if (fields?.strict !== void 0) toolDef.function.strict = fields.strict; - return toolDef; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/chat_models.js -function extractGenericMessageCustomRole(message) { - if (message.role !== "system" && message.role !== "developer" && message.role !== "assistant" && message.role !== "user" && message.role !== "function" && message.role !== "tool") console.warn(`Unknown message role: ${message.role}`); - return message.role; -} -function messageToOpenAIRole(message) { - const type = message._getType(); - switch (type) { - case "system": return "system"; - case "ai": return "assistant"; - case "human": return "user"; - case "function": return "function"; - case "tool": return "tool"; - case "generic": { - if (!ChatMessage.isInstance(message)) throw new Error("Invalid generic chat message"); - return extractGenericMessageCustomRole(message); - } - default: throw new Error(`Unknown message type: ${type}`); - } -} -const completionsApiContentBlockConverter = { - providerName: "ChatOpenAI", - fromStandardTextBlock(block) { - return { - type: "text", - text: block.text - }; - }, - fromStandardImageBlock(block) { - if (block.source_type === "url") return { - type: "image_url", - image_url: { - url: block.url, - ...block.metadata?.detail ? { detail: block.metadata.detail } : {} - } - }; - if (block.source_type === "base64") { - const url = `data:${block.mime_type ?? ""};base64,${block.data}`; - return { - type: "image_url", - image_url: { - url, - ...block.metadata?.detail ? { detail: block.metadata.detail } : {} - } - }; - } - throw new Error(`Image content blocks with source_type ${block.source_type} are not supported for ChatOpenAI`); - }, - fromStandardAudioBlock(block) { - if (block.source_type === "url") { - const data = parseBase64DataUrl({ dataUrl: block.url }); - if (!data) throw new Error(`URL audio blocks with source_type ${block.source_type} must be formatted as a data URL for ChatOpenAI`); - const rawMimeType = data.mime_type || block.mime_type || ""; - let mimeType; - try { - mimeType = parseMimeType(rawMimeType); - } catch { - throw new Error(`Audio blocks with source_type ${block.source_type} must have mime type of audio/wav or audio/mp3`); - } - if (mimeType.type !== "audio" || mimeType.subtype !== "wav" && mimeType.subtype !== "mp3") throw new Error(`Audio blocks with source_type ${block.source_type} must have mime type of audio/wav or audio/mp3`); - return { - type: "input_audio", - input_audio: { - format: mimeType.subtype, - data: data.data - } - }; - } - if (block.source_type === "base64") { - let mimeType; - try { - mimeType = parseMimeType(block.mime_type ?? ""); - } catch { - throw new Error(`Audio blocks with source_type ${block.source_type} must have mime type of audio/wav or audio/mp3`); - } - if (mimeType.type !== "audio" || mimeType.subtype !== "wav" && mimeType.subtype !== "mp3") throw new Error(`Audio blocks with source_type ${block.source_type} must have mime type of audio/wav or audio/mp3`); - return { - type: "input_audio", - input_audio: { - format: mimeType.subtype, - data: block.data - } - }; - } - throw new Error(`Audio content blocks with source_type ${block.source_type} are not supported for ChatOpenAI`); - }, - fromStandardFileBlock(block) { - if (block.source_type === "url") { - const data = parseBase64DataUrl({ dataUrl: block.url }); - if (!data) throw new Error(`URL file blocks with source_type ${block.source_type} must be formatted as a data URL for ChatOpenAI`); - return { - type: "file", - file: { - file_data: block.url, - ...block.metadata?.filename || block.metadata?.name ? { filename: block.metadata?.filename || block.metadata?.name } : {} - } - }; - } - if (block.source_type === "base64") return { - type: "file", - file: { - file_data: `data:${block.mime_type ?? ""};base64,${block.data}`, - ...block.metadata?.filename || block.metadata?.name || block.metadata?.title ? { filename: block.metadata?.filename || block.metadata?.name || block.metadata?.title } : {} - } - }; - if (block.source_type === "id") return { - type: "file", - file: { file_id: block.id } - }; - throw new Error(`File content blocks with source_type ${block.source_type} are not supported for ChatOpenAI`); - } -}; -function _convertMessagesToOpenAIParams(messages, model) { - return messages.flatMap((message) => { - let role = messageToOpenAIRole(message); - if (role === "system" && isReasoningModel(model)) role = "developer"; - const content = typeof message.content === "string" ? message.content : message.content.map((m$1) => { - if (isDataContentBlock(m$1)) return convertToProviderContentBlock(m$1, completionsApiContentBlockConverter); - return m$1; - }); - const completionParam = { - role, - content - }; - if (message.name != null) completionParam.name = message.name; - if (message.additional_kwargs.function_call != null) { - completionParam.function_call = message.additional_kwargs.function_call; - completionParam.content = ""; - } - if (isAIMessage(message) && !!message.tool_calls?.length) { - completionParam.tool_calls = message.tool_calls.map(convertLangChainToolCallToOpenAI); - completionParam.content = ""; - } else { - if (message.additional_kwargs.tool_calls != null) completionParam.tool_calls = message.additional_kwargs.tool_calls; - if (message.tool_call_id != null) completionParam.tool_call_id = message.tool_call_id; - } - if (message.additional_kwargs.audio && typeof message.additional_kwargs.audio === "object" && "id" in message.additional_kwargs.audio) { - const audioMessage = { - role: "assistant", - audio: { id: message.additional_kwargs.audio.id } - }; - return [completionParam, audioMessage]; - } - return completionParam; - }); -} -const _FUNCTION_CALL_IDS_MAP_KEY = "__openai_function_call_ids__"; -function _convertReasoningSummaryToOpenAIResponsesParams(reasoning) { - const summary = (reasoning.summary.length > 1 ? reasoning.summary.reduce((acc, curr) => { - const last = acc.at(-1); - if (last.index === curr.index) last.text += curr.text; - else acc.push(curr); - return acc; - }, [{ ...reasoning.summary[0] }]) : reasoning.summary).map((s$1) => Object.fromEntries(Object.entries(s$1).filter(([k]) => k !== "index"))); - return { - ...reasoning, - summary - }; -} -function _convertMessagesToOpenAIResponsesParams(messages, model, zdrEnabled) { - const lastAIMessage = messages.filter((m$1) => isAIMessage(m$1)).pop(); - const lastAIMessageId = lastAIMessage?.response_metadata?.id; - const newMessages = lastAIMessageId && lastAIMessageId.startsWith("resp_") && !zdrEnabled ? messages.slice(messages.indexOf(lastAIMessage) + 1) : messages; - return newMessages.flatMap((lcMsg) => { - let role = messageToOpenAIRole(lcMsg); - if (role === "system" && isReasoningModel(model)) role = "developer"; - if (role === "function") throw new Error("Function messages are not supported in Responses API"); - if (role === "tool") { - const toolMessage = lcMsg; - if (toolMessage.additional_kwargs?.type === "computer_call_output") { - const output = (() => { - if (typeof toolMessage.content === "string") return { - type: "computer_screenshot", - image_url: toolMessage.content - }; - if (Array.isArray(toolMessage.content)) { - const oaiScreenshot = toolMessage.content.find((i$4) => i$4.type === "computer_screenshot"); - if (oaiScreenshot) return oaiScreenshot; - const lcImage = toolMessage.content.find((i$4) => i$4.type === "image_url"); - if (lcImage) return { - type: "computer_screenshot", - image_url: typeof lcImage.image_url === "string" ? lcImage.image_url : lcImage.image_url.url - }; - } - throw new Error("Invalid computer call output"); - })(); - return { - type: "computer_call_output", - output, - call_id: toolMessage.tool_call_id - }; - } - return { - type: "function_call_output", - call_id: toolMessage.tool_call_id, - id: toolMessage.id?.startsWith("fc_") ? toolMessage.id : void 0, - output: typeof toolMessage.content !== "string" ? JSON.stringify(toolMessage.content) : toolMessage.content - }; - } - if (role === "assistant") { - if (!zdrEnabled && lcMsg.response_metadata.output != null && Array.isArray(lcMsg.response_metadata.output) && lcMsg.response_metadata.output.length > 0 && lcMsg.response_metadata.output.every((item) => "type" in item)) return lcMsg.response_metadata.output; - const input = []; - if (!zdrEnabled && lcMsg.additional_kwargs.reasoning != null) { - const isReasoningItem = (item) => typeof item === "object" && item != null && "type" in item && item.type === "reasoning"; - if (isReasoningItem(lcMsg.additional_kwargs.reasoning)) { - const reasoningItem = _convertReasoningSummaryToOpenAIResponsesParams(lcMsg.additional_kwargs.reasoning); - input.push(reasoningItem); - } - } - let { content: content$1 } = lcMsg; - if (lcMsg.additional_kwargs.refusal != null) { - if (typeof content$1 === "string") content$1 = [{ - type: "output_text", - text: content$1, - annotations: [] - }]; - content$1 = [...content$1, { - type: "refusal", - refusal: lcMsg.additional_kwargs.refusal - }]; - } - input.push({ - type: "message", - role: "assistant", - ...lcMsg.id && !zdrEnabled ? { id: lcMsg.id } : {}, - content: typeof content$1 === "string" ? content$1 : content$1.flatMap((item) => { - if (item.type === "text") return { - type: "output_text", - text: item.text, - annotations: item.annotations ?? [] - }; - if (item.type === "output_text" || item.type === "refusal") return item; - return []; - }) - }); - const functionCallIds = lcMsg.additional_kwargs[_FUNCTION_CALL_IDS_MAP_KEY]; - if (isAIMessage(lcMsg) && !!lcMsg.tool_calls?.length) input.push(...lcMsg.tool_calls.map((toolCall) => ({ - type: "function_call", - name: toolCall.name, - arguments: JSON.stringify(toolCall.args), - call_id: toolCall.id, - ...zdrEnabled ? { id: functionCallIds?.[toolCall.id] } : {} - }))); - else if (lcMsg.additional_kwargs.tool_calls != null) input.push(...lcMsg.additional_kwargs.tool_calls.map((toolCall) => ({ - type: "function_call", - name: toolCall.function.name, - call_id: toolCall.id, - ...zdrEnabled ? { id: functionCallIds?.[toolCall.id] } : {}, - arguments: toolCall.function.arguments - }))); - const toolOutputs = lcMsg.response_metadata.output?.length ? lcMsg.response_metadata.output : lcMsg.additional_kwargs.tool_outputs; - let computerCalls = []; - if (toolOutputs != null) { - const castToolOutputs = toolOutputs; - computerCalls = castToolOutputs?.filter((item) => item.type === "computer_call"); - if (computerCalls.length > 0) input.push(...computerCalls); - } - return input; - } - const content = typeof lcMsg.content === "string" ? lcMsg.content : lcMsg.content.flatMap((item) => { - if (isDataContentBlock(item)) return convertToProviderContentBlock(item, completionsApiContentBlockConverter); - if (item.type === "text") return { - type: "input_text", - text: item.text - }; - if (item.type === "image_url") { - const image_url = typeof item.image_url === "string" ? item.image_url : item.image_url.url; - const detail = typeof item.image_url === "string" ? "auto" : item.image_url.detail; - return { - type: "input_image", - image_url, - detail - }; - } - if (item.type === "input_text" || item.type === "input_image" || item.type === "input_file") return item; - return []; - }); - if (role === "user" || role === "system" || role === "developer") return { - type: "message", - role, - content - }; - console.warn(`Unsupported role found when converting to OpenAI Responses API: ${role}`); - return []; - }); -} -function _convertOpenAIResponsesMessageToBaseMessage(response) { - if (response.error) { - const error = new Error(response.error.message); - error.name = response.error.code; - throw error; - } - let messageId; - const content = []; - const tool_calls = []; - const invalid_tool_calls = []; - const response_metadata = { - model: response.model, - created_at: response.created_at, - id: response.id, - incomplete_details: response.incomplete_details, - metadata: response.metadata, - object: response.object, - status: response.status, - user: response.user, - model_name: response.model - }; - const additional_kwargs = {}; - for (const item of response.output) if (item.type === "message") { - messageId = item.id; - content.push(...item.content.flatMap((part) => { - if (part.type === "output_text") { - if ("parsed" in part && part.parsed != null) additional_kwargs.parsed = part.parsed; - return { - type: "text", - text: part.text, - annotations: part.annotations - }; - } - if (part.type === "refusal") { - additional_kwargs.refusal = part.refusal; - return []; - } - return part; - })); - } else if (item.type === "function_call") { - const fnAdapter = { - function: { - name: item.name, - arguments: item.arguments - }, - id: item.call_id - }; - try { - tool_calls.push(parseToolCall(fnAdapter, { returnId: true })); - } catch (e) { - let errMessage; - if (typeof e === "object" && e != null && "message" in e && typeof e.message === "string") errMessage = e.message; - invalid_tool_calls.push(makeInvalidToolCall(fnAdapter, errMessage)); - } - additional_kwargs[_FUNCTION_CALL_IDS_MAP_KEY] ??= {}; - if (item.id) additional_kwargs[_FUNCTION_CALL_IDS_MAP_KEY][item.call_id] = item.id; - } else if (item.type === "reasoning") additional_kwargs.reasoning = item; - else { - additional_kwargs.tool_outputs ??= []; - additional_kwargs.tool_outputs.push(item); - } - return new AIMessage({ - id: messageId, - content, - tool_calls, - invalid_tool_calls, - usage_metadata: response.usage, - additional_kwargs, - response_metadata - }); -} -function _convertOpenAIResponsesDeltaToBaseMessageChunk(chunk) { - const content = []; - let generationInfo = {}; - let usage_metadata; - const tool_call_chunks = []; - const response_metadata = {}; - const additional_kwargs = {}; - let id; - if (chunk.type === "response.output_text.delta") content.push({ - type: "text", - text: chunk.delta, - index: chunk.content_index - }); - else if (chunk.type === "response.output_text.annotation.added") content.push({ - type: "text", - text: "", - annotations: [chunk.annotation], - index: chunk.content_index - }); - else if (chunk.type === "response.output_item.added" && chunk.item.type === "message") id = chunk.item.id; - else if (chunk.type === "response.output_item.added" && chunk.item.type === "function_call") { - tool_call_chunks.push({ - type: "tool_call_chunk", - name: chunk.item.name, - args: chunk.item.arguments, - id: chunk.item.call_id, - index: chunk.output_index - }); - additional_kwargs[_FUNCTION_CALL_IDS_MAP_KEY] = { [chunk.item.call_id]: chunk.item.id }; - } else if (chunk.type === "response.output_item.done" && (chunk.item.type === "web_search_call" || chunk.item.type === "file_search_call" || chunk.item.type === "computer_call")) additional_kwargs.tool_outputs = [chunk.item]; - else if (chunk.type === "response.created") { - response_metadata.id = chunk.response.id; - response_metadata.model_name = chunk.response.model; - response_metadata.model = chunk.response.model; - } else if (chunk.type === "response.completed") { - const msg = _convertOpenAIResponsesMessageToBaseMessage(chunk.response); - usage_metadata = chunk.response.usage; - if (chunk.response.text?.format?.type === "json_schema") additional_kwargs.parsed ??= JSON.parse(msg.text); - for (const [key$1, value] of Object.entries(chunk.response)) if (key$1 !== "id") response_metadata[key$1] = value; - } else if (chunk.type === "response.function_call_arguments.delta") tool_call_chunks.push({ - type: "tool_call_chunk", - args: chunk.delta, - index: chunk.output_index - }); - else if (chunk.type === "response.web_search_call.completed" || chunk.type === "response.file_search_call.completed") generationInfo = { tool_outputs: { - id: chunk.item_id, - type: chunk.type.replace("response.", "").replace(".completed", ""), - status: "completed" - } }; - else if (chunk.type === "response.refusal.done") additional_kwargs.refusal = chunk.refusal; - else if (chunk.type === "response.output_item.added" && "item" in chunk && chunk.item.type === "reasoning") { - const summary = chunk.item.summary ? chunk.item.summary.map((s$1, index) => ({ - ...s$1, - index - })) : void 0; - additional_kwargs.reasoning = { - id: chunk.item.id, - type: chunk.item.type, - ...summary ? { summary } : {} - }; - } else if (chunk.type === "response.reasoning_summary_part.added") additional_kwargs.reasoning = { - type: "reasoning", - summary: [{ - ...chunk.part, - index: chunk.summary_index - }] - }; - else if (chunk.type === "response.reasoning_summary_text.delta") additional_kwargs.reasoning = { - type: "reasoning", - summary: [{ - text: chunk.delta, - type: "summary_text", - index: chunk.summary_index - }] - }; - else return null; - return new ChatGenerationChunk({ - text: content.map((part) => part.text).join(""), - message: new AIMessageChunk({ - id, - content, - tool_call_chunks, - usage_metadata, - additional_kwargs, - response_metadata - }), - generationInfo - }); -} -function isBuiltInTool(tool$1) { - return "type" in tool$1 && tool$1.type !== "function"; -} -function isBuiltInToolChoice(tool_choice) { - return tool_choice != null && typeof tool_choice === "object" && "type" in tool_choice && tool_choice.type !== "function"; -} -function _convertChatOpenAIToolTypeToOpenAITool(tool$1, fields) { - if (isOpenAITool(tool$1)) { - if (fields?.strict !== void 0) return { - ...tool$1, - function: { - ...tool$1.function, - strict: fields.strict - } - }; - return tool$1; - } - return _convertToOpenAITool(tool$1, fields); -} -function isReasoningModel(model) { - return model && /^o\d/.test(model); -} -/** -* OpenAI chat model integration. -* -* To use with Azure, import the `AzureChatOpenAI` class. -* -* Setup: -* Install `@langchain/openai` and set an environment variable named `OPENAI_API_KEY`. -* -* ```bash -* npm install @langchain/openai -* export OPENAI_API_KEY="your-api-key" -* ``` -* -* ## [Constructor args](https://api.js.langchain.com/classes/langchain_openai.ChatOpenAI.html#constructor) -* -* ## [Runtime args](https://api.js.langchain.com/interfaces/langchain_openai.ChatOpenAICallOptions.html) -* -* Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc. -* They can also be passed via `.withConfig`, or the second arg in `.bindTools`, like shown in the examples below: -* -* ```typescript -* // When calling `.withConfig`, call options should be passed via the first argument -* const llmWithArgsBound = llm.withConfig({ -* stop: ["\n"], -* tools: [...], -* }); -* -* // When calling `.bindTools`, call options should be passed via the second argument -* const llmWithTools = llm.bindTools( -* [...], -* { -* tool_choice: "auto", -* } -* ); -* ``` -* -* ## Examples -* -*
-* Instantiate -* -* ```typescript -* import { ChatOpenAI } from '@langchain/openai'; -* -* const llm = new ChatOpenAI({ -* model: "gpt-4o", -* temperature: 0, -* maxTokens: undefined, -* timeout: undefined, -* maxRetries: 2, -* // apiKey: "...", -* // baseUrl: "...", -* // organization: "...", -* // other params... -* }); -* ``` -*
-* -*
-* -*
-* Invoking -* -* ```typescript -* const input = `Translate "I love programming" into French.`; -* -* // Models also accept a list of chat messages or a formatted prompt -* const result = await llm.invoke(input); -* console.log(result); -* ``` -* -* ```txt -* AIMessage { -* "id": "chatcmpl-9u4Mpu44CbPjwYFkTbeoZgvzB00Tz", -* "content": "J'adore la programmation.", -* "response_metadata": { -* "tokenUsage": { -* "completionTokens": 5, -* "promptTokens": 28, -* "totalTokens": 33 -* }, -* "finish_reason": "stop", -* "system_fingerprint": "fp_3aa7262c27" -* }, -* "usage_metadata": { -* "input_tokens": 28, -* "output_tokens": 5, -* "total_tokens": 33 -* } -* } -* ``` -*
-* -*
-* -*
-* Streaming Chunks -* -* ```typescript -* for await (const chunk of await llm.stream(input)) { -* console.log(chunk); -* } -* ``` -* -* ```txt -* AIMessageChunk { -* "id": "chatcmpl-9u4NWB7yUeHCKdLr6jP3HpaOYHTqs", -* "content": "" -* } -* AIMessageChunk { -* "content": "J" -* } -* AIMessageChunk { -* "content": "'adore" -* } -* AIMessageChunk { -* "content": " la" -* } -* AIMessageChunk { -* "content": " programmation",, -* } -* AIMessageChunk { -* "content": ".",, -* } -* AIMessageChunk { -* "content": "", -* "response_metadata": { -* "finish_reason": "stop", -* "system_fingerprint": "fp_c9aa9c0491" -* }, -* } -* AIMessageChunk { -* "content": "", -* "usage_metadata": { -* "input_tokens": 28, -* "output_tokens": 5, -* "total_tokens": 33 -* } -* } -* ``` -*
-* -*
-* -*
-* Aggregate Streamed Chunks -* -* ```typescript -* import { AIMessageChunk } from '@langchain/core/messages'; -* import { concat } from '@langchain/core/utils/stream'; -* -* const stream = await llm.stream(input); -* let full: AIMessageChunk | undefined; -* for await (const chunk of stream) { -* full = !full ? chunk : concat(full, chunk); -* } -* console.log(full); -* ``` -* -* ```txt -* AIMessageChunk { -* "id": "chatcmpl-9u4PnX6Fy7OmK46DASy0bH6cxn5Xu", -* "content": "J'adore la programmation.", -* "response_metadata": { -* "prompt": 0, -* "completion": 0, -* "finish_reason": "stop", -* }, -* "usage_metadata": { -* "input_tokens": 28, -* "output_tokens": 5, -* "total_tokens": 33 -* } -* } -* ``` -*
-* -*
-* -*
-* Bind tools -* -* ```typescript -* import { z } from 'zod'; -* -* const GetWeather = { -* name: "GetWeather", -* description: "Get the current weather in a given location", -* schema: z.object({ -* location: z.string().describe("The city and state, e.g. San Francisco, CA") -* }), -* } -* -* const GetPopulation = { -* name: "GetPopulation", -* description: "Get the current population in a given location", -* schema: z.object({ -* location: z.string().describe("The city and state, e.g. San Francisco, CA") -* }), -* } -* -* const llmWithTools = llm.bindTools( -* [GetWeather, GetPopulation], -* { -* // strict: true // enforce tool args schema is respected -* } -* ); -* const aiMsg = await llmWithTools.invoke( -* "Which city is hotter today and which is bigger: LA or NY?" -* ); -* console.log(aiMsg.tool_calls); -* ``` -* -* ```txt -* [ -* { -* name: 'GetWeather', -* args: { location: 'Los Angeles, CA' }, -* type: 'tool_call', -* id: 'call_uPU4FiFzoKAtMxfmPnfQL6UK' -* }, -* { -* name: 'GetWeather', -* args: { location: 'New York, NY' }, -* type: 'tool_call', -* id: 'call_UNkEwuQsHrGYqgDQuH9nPAtX' -* }, -* { -* name: 'GetPopulation', -* args: { location: 'Los Angeles, CA' }, -* type: 'tool_call', -* id: 'call_kL3OXxaq9OjIKqRTpvjaCH14' -* }, -* { -* name: 'GetPopulation', -* args: { location: 'New York, NY' }, -* type: 'tool_call', -* id: 'call_s9KQB1UWj45LLGaEnjz0179q' -* } -* ] -* ``` -*
-* -*
-* -*
-* Structured Output -* -* ```typescript -* import { z } from 'zod'; -* -* const Joke = z.object({ -* setup: z.string().describe("The setup of the joke"), -* punchline: z.string().describe("The punchline to the joke"), -* rating: z.number().nullable().describe("How funny the joke is, from 1 to 10") -* }).describe('Joke to tell user.'); -* -* const structuredLlm = llm.withStructuredOutput(Joke, { -* name: "Joke", -* strict: true, // Optionally enable OpenAI structured outputs -* }); -* const jokeResult = await structuredLlm.invoke("Tell me a joke about cats"); -* console.log(jokeResult); -* ``` -* -* ```txt -* { -* setup: 'Why was the cat sitting on the computer?', -* punchline: 'Because it wanted to keep an eye on the mouse!', -* rating: 7 -* } -* ``` -*
-* -*
-* -*
-* JSON Object Response Format -* -* ```typescript -* const jsonLlm = llm.withConfig({ response_format: { type: "json_object" } }); -* const jsonLlmAiMsg = await jsonLlm.invoke( -* "Return a JSON object with key 'randomInts' and a value of 10 random ints in [0-99]" -* ); -* console.log(jsonLlmAiMsg.content); -* ``` -* -* ```txt -* { -* "randomInts": [23, 87, 45, 12, 78, 34, 56, 90, 11, 67] -* } -* ``` -*
-* -*
-* -*
-* Multimodal -* -* ```typescript -* import { HumanMessage } from '@langchain/core/messages'; -* -* const imageUrl = "https://example.com/image.jpg"; -* const imageData = await fetch(imageUrl).then(res => res.arrayBuffer()); -* const base64Image = Buffer.from(imageData).toString('base64'); -* -* const message = new HumanMessage({ -* content: [ -* { type: "text", text: "describe the weather in this image" }, -* { -* type: "image_url", -* image_url: { url: `data:image/jpeg;base64,${base64Image}` }, -* }, -* ] -* }); -* -* const imageDescriptionAiMsg = await llm.invoke([message]); -* console.log(imageDescriptionAiMsg.content); -* ``` -* -* ```txt -* The weather in the image appears to be clear and sunny. The sky is mostly blue with a few scattered white clouds, indicating fair weather. The bright sunlight is casting shadows on the green, grassy hill, suggesting it is a pleasant day with good visibility. There are no signs of rain or stormy conditions. -* ``` -*
-* -*
-* -*
-* Usage Metadata -* -* ```typescript -* const aiMsgForMetadata = await llm.invoke(input); -* console.log(aiMsgForMetadata.usage_metadata); -* ``` -* -* ```txt -* { input_tokens: 28, output_tokens: 5, total_tokens: 33 } -* ``` -*
-* -*
-* -*
-* Logprobs -* -* ```typescript -* const logprobsLlm = new ChatOpenAI({ logprobs: true }); -* const aiMsgForLogprobs = await logprobsLlm.invoke(input); -* console.log(aiMsgForLogprobs.response_metadata.logprobs); -* ``` -* -* ```txt -* { -* content: [ -* { -* token: 'J', -* logprob: -0.000050616763, -* bytes: [Array], -* top_logprobs: [] -* }, -* { -* token: "'", -* logprob: -0.01868736, -* bytes: [Array], -* top_logprobs: [] -* }, -* { -* token: 'ad', -* logprob: -0.0000030545007, -* bytes: [Array], -* top_logprobs: [] -* }, -* { token: 'ore', logprob: 0, bytes: [Array], top_logprobs: [] }, -* { -* token: ' la', -* logprob: -0.515404, -* bytes: [Array], -* top_logprobs: [] -* }, -* { -* token: ' programm', -* logprob: -0.0000118755715, -* bytes: [Array], -* top_logprobs: [] -* }, -* { token: 'ation', logprob: 0, bytes: [Array], top_logprobs: [] }, -* { -* token: '.', -* logprob: -0.0000037697225, -* bytes: [Array], -* top_logprobs: [] -* } -* ], -* refusal: null -* } -* ``` -*
-* -*
-* -*
-* Response Metadata -* -* ```typescript -* const aiMsgForResponseMetadata = await llm.invoke(input); -* console.log(aiMsgForResponseMetadata.response_metadata); -* ``` -* -* ```txt -* { -* tokenUsage: { completionTokens: 5, promptTokens: 28, totalTokens: 33 }, -* finish_reason: 'stop', -* system_fingerprint: 'fp_3aa7262c27' -* } -* ``` -*
-* -*
-* -*
-* JSON Schema Structured Output -* -* ```typescript -* const llmForJsonSchema = new ChatOpenAI({ -* model: "gpt-4o-2024-08-06", -* }).withStructuredOutput( -* z.object({ -* command: z.string().describe("The command to execute"), -* expectedOutput: z.string().describe("The expected output of the command"), -* options: z -* .array(z.string()) -* .describe("The options you can pass to the command"), -* }), -* { -* method: "jsonSchema", -* strict: true, // Optional when using the `jsonSchema` method -* } -* ); -* -* const jsonSchemaRes = await llmForJsonSchema.invoke( -* "What is the command to list files in a directory?" -* ); -* console.log(jsonSchemaRes); -* ``` -* -* ```txt -* { -* command: 'ls', -* expectedOutput: 'A list of files and subdirectories within the specified directory.', -* options: [ -* '-a: include directory entries whose names begin with a dot (.).', -* '-l: use a long listing format.', -* '-h: with -l, print sizes in human readable format (e.g., 1K, 234M, 2G).', -* '-t: sort by time, newest first.', -* '-r: reverse order while sorting.', -* '-S: sort by file size, largest first.', -* '-R: list subdirectories recursively.' -* ] -* } -* ``` -*
-* -*
-* -*
-* Audio Outputs -* -* ```typescript -* import { ChatOpenAI } from "@langchain/openai"; -* -* const modelWithAudioOutput = new ChatOpenAI({ -* model: "gpt-4o-audio-preview", -* // You may also pass these fields to `.withConfig` as a call argument. -* modalities: ["text", "audio"], // Specifies that the model should output audio. -* audio: { -* voice: "alloy", -* format: "wav", -* }, -* }); -* -* const audioOutputResult = await modelWithAudioOutput.invoke("Tell me a joke about cats."); -* const castMessageContent = audioOutputResult.content[0] as Record; -* -* console.log({ -* ...castMessageContent, -* data: castMessageContent.data.slice(0, 100) // Sliced for brevity -* }) -* ``` -* -* ```txt -* { -* id: 'audio_67117718c6008190a3afad3e3054b9b6', -* data: 'UklGRqYwBgBXQVZFZm10IBAAAAABAAEAwF0AAIC7AAACABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNTguMjkuMTAwAGRhdGFg', -* expires_at: 1729201448, -* transcript: 'Sure! Why did the cat sit on the computer? Because it wanted to keep an eye on the mouse!' -* } -* ``` -*
-* -*
-* -*
-* Audio Outputs -* -* ```typescript -* import { ChatOpenAI } from "@langchain/openai"; -* -* const modelWithAudioOutput = new ChatOpenAI({ -* model: "gpt-4o-audio-preview", -* // You may also pass these fields to `.withConfig` as a call argument. -* modalities: ["text", "audio"], // Specifies that the model should output audio. -* audio: { -* voice: "alloy", -* format: "wav", -* }, -* }); -* -* const audioOutputResult = await modelWithAudioOutput.invoke("Tell me a joke about cats."); -* const castAudioContent = audioOutputResult.additional_kwargs.audio as Record; -* -* console.log({ -* ...castAudioContent, -* data: castAudioContent.data.slice(0, 100) // Sliced for brevity -* }) -* ``` -* -* ```txt -* { -* id: 'audio_67117718c6008190a3afad3e3054b9b6', -* data: 'UklGRqYwBgBXQVZFZm10IBAAAAABAAEAwF0AAIC7AAACABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNTguMjkuMTAwAGRhdGFg', -* expires_at: 1729201448, -* transcript: 'Sure! Why did the cat sit on the computer? Because it wanted to keep an eye on the mouse!' -* } -* ``` -*
-* -*
-*/ -var ChatOpenAI = class extends BaseChatModel { - static lc_name() { - return "ChatOpenAI"; - } - get callKeys() { - return [ - ...super.callKeys, - "options", - "function_call", - "functions", - "tools", - "tool_choice", - "promptIndex", - "response_format", - "seed", - "reasoning_effort" - ]; - } - get lc_secrets() { - return { - openAIApiKey: "OPENAI_API_KEY", - apiKey: "OPENAI_API_KEY", - organization: "OPENAI_ORGANIZATION" - }; - } - get lc_aliases() { - return { - modelName: "model", - openAIApiKey: "openai_api_key", - apiKey: "openai_api_key" - }; - } - get lc_serializable_keys() { - return [ - "configuration", - "logprobs", - "topLogprobs", - "prefixMessages", - "supportsStrictToolCalling", - "modalities", - "audio", - "reasoningEffort", - "temperature", - "maxTokens", - "topP", - "frequencyPenalty", - "presencePenalty", - "n", - "logitBias", - "user", - "streaming", - "streamUsage", - "modelName", - "model", - "modelKwargs", - "stop", - "stopSequences", - "timeout", - "openAIApiKey", - "apiKey", - "cache", - "maxConcurrency", - "maxRetries", - "verbose", - "callbacks", - "tags", - "metadata", - "disableStreaming", - "useResponsesApi", - "zdrEnabled", - "reasoning" - ]; - } - constructor(fields) { - super(fields ?? {}); - Object.defineProperty(this, "lc_serializable", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "temperature", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "topP", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "frequencyPenalty", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "presencePenalty", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "n", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "logitBias", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** @deprecated Use "model" instead */ - Object.defineProperty(this, "modelName", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "model", { - enumerable: true, - configurable: true, - writable: true, - value: "gpt-3.5-turbo" - }); - Object.defineProperty(this, "modelKwargs", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "stop", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "stopSequences", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "user", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "timeout", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "streaming", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - Object.defineProperty(this, "streamUsage", { - enumerable: true, - configurable: true, - writable: true, - value: true - }); - Object.defineProperty(this, "maxTokens", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "logprobs", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "topLogprobs", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "openAIApiKey", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "apiKey", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "organization", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "__includeRawResponse", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "client", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "clientConfig", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Whether the model supports the `strict` argument when passing in tools. - * If `undefined` the `strict` argument will not be passed to OpenAI. - */ - Object.defineProperty(this, "supportsStrictToolCalling", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "audio", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "modalities", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * @deprecated Use {@link reasoning} object instead. - */ - Object.defineProperty(this, "reasoningEffort", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Options for reasoning models. - */ - Object.defineProperty(this, "reasoning", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - /** - * Whether to use the responses API for all requests. If `false` the responses API will be used - * only when required in order to fulfill the request. - */ - Object.defineProperty(this, "useResponsesApi", { - enumerable: true, - configurable: true, - writable: true, - value: false - }); - /** - * Must be set to `true` in tenancies with Zero Data Retention. Setting to `true` will disable - * output storage in the Responses API, but this DOES NOT enable Zero Data Retention in your - * OpenAI organization or project. This must be configured directly with OpenAI. - * - * See: - * https://help.openai.com/en/articles/10503543-data-residency-for-the-openai-api - * https://platform.openai.com/docs/api-reference/responses/create#responses-create-store - * - * @default false - */ - Object.defineProperty(this, "zdrEnabled", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - this.openAIApiKey = fields?.apiKey ?? fields?.openAIApiKey ?? fields?.configuration?.apiKey ?? getEnvironmentVariable("OPENAI_API_KEY"); - this.apiKey = this.openAIApiKey; - this.organization = fields?.configuration?.organization ?? getEnvironmentVariable("OPENAI_ORGANIZATION"); - this.model = fields?.model ?? fields?.modelName ?? this.model; - this.modelName = this.model; - this.modelKwargs = fields?.modelKwargs ?? {}; - this.timeout = fields?.timeout; - this.temperature = fields?.temperature ?? this.temperature; - this.topP = fields?.topP ?? this.topP; - this.frequencyPenalty = fields?.frequencyPenalty ?? this.frequencyPenalty; - this.presencePenalty = fields?.presencePenalty ?? this.presencePenalty; - this.logprobs = fields?.logprobs; - this.topLogprobs = fields?.topLogprobs; - this.n = fields?.n ?? this.n; - this.logitBias = fields?.logitBias; - this.stop = fields?.stopSequences ?? fields?.stop; - this.stopSequences = this.stop; - this.user = fields?.user; - this.__includeRawResponse = fields?.__includeRawResponse; - this.audio = fields?.audio; - this.modalities = fields?.modalities; - this.reasoningEffort = fields?.reasoningEffort ?? fields?.reasoning?.effort; - this.reasoning = fields?.reasoning ?? (fields?.reasoningEffort ? { effort: fields.reasoningEffort } : void 0); - this.maxTokens = fields?.maxCompletionTokens ?? fields?.maxTokens; - this.useResponsesApi = fields?.useResponsesApi ?? this.useResponsesApi; - this.disableStreaming = fields?.disableStreaming ?? this.disableStreaming; - this.streaming = fields?.streaming ?? false; - if (this.disableStreaming) this.streaming = false; - this.streamUsage = fields?.streamUsage ?? this.streamUsage; - if (this.disableStreaming) this.streamUsage = false; - this.clientConfig = { - apiKey: this.apiKey, - organization: this.organization, - dangerouslyAllowBrowser: true, - ...fields?.configuration - }; - if (fields?.supportsStrictToolCalling !== void 0) this.supportsStrictToolCalling = fields.supportsStrictToolCalling; - this.zdrEnabled = fields?.zdrEnabled ?? false; - } - getLsParams(options) { - const params = this.invocationParams(options); - return { - ls_provider: "openai", - ls_model_name: this.model, - ls_model_type: "chat", - ls_temperature: params.temperature ?? void 0, - ls_max_tokens: params.max_tokens ?? void 0, - ls_stop: options.stop - }; - } - bindTools(tools, kwargs) { - let strict; - if (kwargs?.strict !== void 0) strict = kwargs.strict; - else if (this.supportsStrictToolCalling !== void 0) strict = this.supportsStrictToolCalling; - return this.withConfig({ - tools: tools.map((tool$1) => isBuiltInTool(tool$1) ? tool$1 : _convertChatOpenAIToolTypeToOpenAITool(tool$1, { strict })), - ...kwargs - }); - } - createResponseFormat(resFormat) { - if (resFormat && resFormat.type === "json_schema" && resFormat.json_schema.schema && isZodSchema(resFormat.json_schema.schema)) return zodResponseFormat(resFormat.json_schema.schema, resFormat.json_schema.name, { description: resFormat.json_schema.description }); - return resFormat; - } - getReasoningParams(options) { - if (!isReasoningModel(this.model)) return; - let reasoning; - if (this.reasoningEffort !== void 0) reasoning = { effort: this.reasoningEffort }; - if (this.reasoning !== void 0) reasoning = { - ...reasoning, - ...this.reasoning - }; - if (options?.reasoning_effort !== void 0) reasoning = { - ...reasoning, - effort: options.reasoning_effort - }; - if (options?.reasoning !== void 0) reasoning = { - ...reasoning, - ...options.reasoning - }; - return reasoning; - } - /** - * Get the parameters used to invoke the model - */ - invocationParams(options, extra) { - let strict; - if (options?.strict !== void 0) strict = options.strict; - else if (this.supportsStrictToolCalling !== void 0) strict = this.supportsStrictToolCalling; - if (this._useResponseApi(options)) { - const params$1 = { - model: this.model, - temperature: this.temperature, - top_p: this.topP, - user: this.user, - stream: this.streaming, - previous_response_id: options?.previous_response_id, - truncation: options?.truncation, - include: options?.include, - tools: options?.tools?.length ? options.tools.map((tool$1) => { - if (isBuiltInTool(tool$1)) return tool$1; - else if (isOpenAITool(tool$1)) return { - type: "function", - name: tool$1.function.name, - parameters: tool$1.function.parameters, - description: tool$1.function.description, - strict - }; - else return null; - }).filter((tool$1) => tool$1 !== null) : void 0, - tool_choice: isBuiltInToolChoice(options?.tool_choice) ? options?.tool_choice : (() => { - const formatted = formatToOpenAIToolChoice(options?.tool_choice); - if (typeof formatted === "object" && "type" in formatted) return { - type: "function", - name: formatted.function.name - }; - else return void 0; - })(), - text: (() => { - if (options?.text) return options.text; - const format$1 = this.createResponseFormat(options?.response_format); - if (format$1?.type === "json_schema") { - if (format$1.json_schema.schema != null) return { format: { - type: "json_schema", - schema: format$1.json_schema.schema, - description: format$1.json_schema.description, - name: format$1.json_schema.name, - strict: format$1.json_schema.strict - } }; - return void 0; - } - return { format: format$1 }; - })(), - parallel_tool_calls: options?.parallel_tool_calls, - max_output_tokens: this.maxTokens === -1 ? void 0 : this.maxTokens, - ...this.zdrEnabled ? { store: false } : {}, - ...this.modelKwargs - }; - const reasoning$1 = this.getReasoningParams(options); - if (reasoning$1 !== void 0) params$1.reasoning = reasoning$1; - return params$1; - } - let streamOptionsConfig = {}; - if (options?.stream_options !== void 0) streamOptionsConfig = { stream_options: options.stream_options }; - else if (this.streamUsage && (this.streaming || extra?.streaming)) streamOptionsConfig = { stream_options: { include_usage: true } }; - const params = { - model: this.model, - temperature: this.temperature, - top_p: this.topP, - frequency_penalty: this.frequencyPenalty, - presence_penalty: this.presencePenalty, - logprobs: this.logprobs, - top_logprobs: this.topLogprobs, - n: this.n, - logit_bias: this.logitBias, - stop: options?.stop ?? this.stopSequences, - user: this.user, - stream: this.streaming, - functions: options?.functions, - function_call: options?.function_call, - tools: options?.tools?.length ? options.tools.map((tool$1) => _convertChatOpenAIToolTypeToOpenAITool(tool$1, { strict })) : void 0, - tool_choice: formatToOpenAIToolChoice(options?.tool_choice), - response_format: this.createResponseFormat(options?.response_format), - seed: options?.seed, - ...streamOptionsConfig, - parallel_tool_calls: options?.parallel_tool_calls, - ...this.audio || options?.audio ? { audio: this.audio || options?.audio } : {}, - ...this.modalities || options?.modalities ? { modalities: this.modalities || options?.modalities } : {}, - ...this.modelKwargs - }; - if (options?.prediction !== void 0) params.prediction = options.prediction; - const reasoning = this.getReasoningParams(options); - if (reasoning !== void 0 && reasoning.effort !== void 0) params.reasoning_effort = reasoning.effort; - if (isReasoningModel(params.model)) params.max_completion_tokens = this.maxTokens === -1 ? void 0 : this.maxTokens; - else params.max_tokens = this.maxTokens === -1 ? void 0 : this.maxTokens; - return params; - } - _convertOpenAIChatCompletionMessageToBaseMessage(message, rawResponse) { - const rawToolCalls = message.tool_calls; - switch (message.role) { - case "assistant": { - const toolCalls = []; - const invalidToolCalls = []; - for (const rawToolCall of rawToolCalls ?? []) try { - toolCalls.push(parseToolCall(rawToolCall, { returnId: true })); - } catch (e) { - invalidToolCalls.push(makeInvalidToolCall(rawToolCall, e.message)); - } - const additional_kwargs = { - function_call: message.function_call, - tool_calls: rawToolCalls - }; - if (this.__includeRawResponse !== void 0) additional_kwargs.__raw_response = rawResponse; - const response_metadata = { - model_name: rawResponse.model, - ...rawResponse.system_fingerprint ? { - usage: { ...rawResponse.usage }, - system_fingerprint: rawResponse.system_fingerprint - } : {} - }; - if (message.audio) additional_kwargs.audio = message.audio; - return new AIMessage({ - content: message.content || "", - tool_calls: toolCalls, - invalid_tool_calls: invalidToolCalls, - additional_kwargs, - response_metadata, - id: rawResponse.id - }); - } - default: return new ChatMessage(message.content || "", message.role ?? "unknown"); - } - } - _convertOpenAIDeltaToBaseMessageChunk(delta, rawResponse, defaultRole) { - const role = delta.role ?? defaultRole; - const content = delta.content ?? ""; - let additional_kwargs; - if (delta.function_call) additional_kwargs = { function_call: delta.function_call }; - else if (delta.tool_calls) additional_kwargs = { tool_calls: delta.tool_calls }; - else additional_kwargs = {}; - if (this.__includeRawResponse) additional_kwargs.__raw_response = rawResponse; - if (delta.audio) additional_kwargs.audio = { - ...delta.audio, - index: rawResponse.choices[0].index - }; - const response_metadata = { usage: { ...rawResponse.usage } }; - if (role === "user") return new HumanMessageChunk({ - content, - response_metadata - }); - else if (role === "assistant") { - const toolCallChunks = []; - if (Array.isArray(delta.tool_calls)) for (const rawToolCall of delta.tool_calls) toolCallChunks.push({ - name: rawToolCall.function?.name, - args: rawToolCall.function?.arguments, - id: rawToolCall.id, - index: rawToolCall.index, - type: "tool_call_chunk" - }); - return new AIMessageChunk({ - content, - tool_call_chunks: toolCallChunks, - additional_kwargs, - id: rawResponse.id, - response_metadata - }); - } else if (role === "system") return new SystemMessageChunk({ - content, - response_metadata - }); - else if (role === "developer") return new SystemMessageChunk({ - content, - response_metadata, - additional_kwargs: { __openai_role__: "developer" } - }); - else if (role === "function") return new FunctionMessageChunk({ - content, - additional_kwargs, - name: delta.name, - response_metadata - }); - else if (role === "tool") return new ToolMessageChunk({ - content, - additional_kwargs, - tool_call_id: delta.tool_call_id, - response_metadata - }); - else return new ChatMessageChunk({ - content, - role, - response_metadata - }); - } - /** @ignore */ - _identifyingParams() { - return { - model_name: this.model, - ...this.invocationParams(), - ...this.clientConfig - }; - } - async *_streamResponseChunks(messages, options, runManager) { - if (this._useResponseApi(options)) { - const lastAIMessage = messages.filter((m$1) => isAIMessage(m$1)).pop(); - const lastAIMessageId = lastAIMessage?.response_metadata?.id; - const streamIterable$1 = await this.responseApiWithRetry({ - ...this.invocationParams(options, { streaming: true }), - input: _convertMessagesToOpenAIResponsesParams(messages, this.model, this.zdrEnabled), - stream: true, - ...lastAIMessageId && lastAIMessageId.startsWith("resp_") && !this.zdrEnabled ? { previous_response_id: lastAIMessageId } : {} - }, options); - for await (const data of streamIterable$1) { - const chunk = _convertOpenAIResponsesDeltaToBaseMessageChunk(data); - if (chunk == null) continue; - yield chunk; - } - return; - } - const messagesMapped = _convertMessagesToOpenAIParams(messages, this.model); - const params = { - ...this.invocationParams(options, { streaming: true }), - messages: messagesMapped, - stream: true - }; - let defaultRole; - const streamIterable = await this.completionWithRetry(params, options); - let usage; - for await (const data of streamIterable) { - const choice = data?.choices?.[0]; - if (data.usage) usage = data.usage; - if (!choice) continue; - const { delta } = choice; - if (!delta) continue; - const chunk = this._convertOpenAIDeltaToBaseMessageChunk(delta, data, defaultRole); - defaultRole = delta.role ?? defaultRole; - const newTokenIndices = { - prompt: options.promptIndex ?? 0, - completion: choice.index ?? 0 - }; - if (typeof chunk.content !== "string") { - console.log("[WARNING]: Received non-string content from OpenAI. This is currently not supported."); - continue; - } - const generationInfo = { ...newTokenIndices }; - if (choice.finish_reason != null) { - generationInfo.finish_reason = choice.finish_reason; - generationInfo.system_fingerprint = data.system_fingerprint; - generationInfo.model_name = data.model; - } - if (this.logprobs) generationInfo.logprobs = choice.logprobs; - const generationChunk = new ChatGenerationChunk({ - message: chunk, - text: chunk.content, - generationInfo - }); - yield generationChunk; - await runManager?.handleLLMNewToken(generationChunk.text ?? "", newTokenIndices, void 0, void 0, void 0, { chunk: generationChunk }); - } - if (usage) { - const inputTokenDetails = { - ...usage.prompt_tokens_details?.audio_tokens !== null && { audio: usage.prompt_tokens_details?.audio_tokens }, - ...usage.prompt_tokens_details?.cached_tokens !== null && { cache_read: usage.prompt_tokens_details?.cached_tokens } - }; - const outputTokenDetails = { - ...usage.completion_tokens_details?.audio_tokens !== null && { audio: usage.completion_tokens_details?.audio_tokens }, - ...usage.completion_tokens_details?.reasoning_tokens !== null && { reasoning: usage.completion_tokens_details?.reasoning_tokens } - }; - const generationChunk = new ChatGenerationChunk({ - message: new AIMessageChunk({ - content: "", - response_metadata: { usage: { ...usage } }, - usage_metadata: { - input_tokens: usage.prompt_tokens, - output_tokens: usage.completion_tokens, - total_tokens: usage.total_tokens, - ...Object.keys(inputTokenDetails).length > 0 && { input_token_details: inputTokenDetails }, - ...Object.keys(outputTokenDetails).length > 0 && { output_token_details: outputTokenDetails } - } - }), - text: "" - }); - yield generationChunk; - } - if (options.signal?.aborted) throw new Error("AbortError"); - } - /** - * Get the identifying parameters for the model - * - */ - identifyingParams() { - return this._identifyingParams(); - } - /** @ignore */ - async _responseApiGenerate(messages, options, runManager) { - const invocationParams = this.invocationParams(options); - if (invocationParams.stream) { - const stream = this._streamResponseChunks(messages, options, runManager); - let finalChunk; - for await (const chunk of stream) { - chunk.message.response_metadata = { - ...chunk.generationInfo, - ...chunk.message.response_metadata - }; - finalChunk = finalChunk?.concat(chunk) ?? chunk; - } - return { - generations: finalChunk ? [finalChunk] : [], - llmOutput: { estimatedTokenUsage: finalChunk?.message?.usage_metadata } - }; - } - const lastAIMessage = messages.filter((m$1) => isAIMessage(m$1)).pop(); - const lastAIMessageId = lastAIMessage?.response_metadata?.id; - const input = _convertMessagesToOpenAIResponsesParams(messages, this.model, this.zdrEnabled); - const data = await this.responseApiWithRetry({ - input, - ...invocationParams, - ...lastAIMessageId && lastAIMessageId.startsWith("resp_") && !this.zdrEnabled ? { previous_response_id: lastAIMessageId } : {} - }, { - signal: options?.signal, - ...options?.options - }); - return { - generations: [{ - text: data.output_text, - message: _convertOpenAIResponsesMessageToBaseMessage(data) - }], - llmOutput: { - id: data.id, - estimatedTokenUsage: data.usage ? { - promptTokens: data.usage.input_tokens, - completionTokens: data.usage.output_tokens, - totalTokens: data.usage.total_tokens - } : void 0 - } - }; - } - /** - * Determines whether the responses API should be used for the given request. - * - * @internal - * - * @param options The parsed call options for the request. - * @returns `true` if the responses API should be used, either because it is explicitly enabled, - * or because the request requires it. - */ - _useResponseApi(options) { - const usesBuiltInTools = options?.tools?.some(isBuiltInTool); - const hasResponsesOnlyKwargs = options?.previous_response_id != null || options?.text != null || options?.truncation != null || options?.include != null || options?.reasoning?.summary != null || this.reasoning?.summary != null; - return this.useResponsesApi || usesBuiltInTools || hasResponsesOnlyKwargs; - } - /** @ignore */ - async _generate(messages, options, runManager) { - if (this._useResponseApi(options)) return this._responseApiGenerate(messages, options, runManager); - const usageMetadata = {}; - const params = this.invocationParams(options); - const messagesMapped = _convertMessagesToOpenAIParams(messages, this.model); - if (params.stream) { - const stream = this._streamResponseChunks(messages, options, runManager); - const finalChunks = {}; - for await (const chunk of stream) { - chunk.message.response_metadata = { - ...chunk.generationInfo, - ...chunk.message.response_metadata - }; - const index = chunk.generationInfo?.completion ?? 0; - if (finalChunks[index] === void 0) finalChunks[index] = chunk; - else finalChunks[index] = finalChunks[index].concat(chunk); - } - const generations = Object.entries(finalChunks).sort(([aKey], [bKey]) => parseInt(aKey, 10) - parseInt(bKey, 10)).map(([_, value]) => value); - const { functions, function_call } = this.invocationParams(options); - const promptTokenUsage = await this.getEstimatedTokenCountFromPrompt(messages, functions, function_call); - const completionTokenUsage = await this.getNumTokensFromGenerations(generations); - usageMetadata.input_tokens = promptTokenUsage; - usageMetadata.output_tokens = completionTokenUsage; - usageMetadata.total_tokens = promptTokenUsage + completionTokenUsage; - return { - generations, - llmOutput: { estimatedTokenUsage: { - promptTokens: usageMetadata.input_tokens, - completionTokens: usageMetadata.output_tokens, - totalTokens: usageMetadata.total_tokens - } } - }; - } else { - let data; - if (options.response_format && options.response_format.type === "json_schema") data = await this.betaParsedCompletionWithRetry({ - ...params, - stream: false, - messages: messagesMapped - }, { - signal: options?.signal, - ...options?.options - }); - else data = await this.completionWithRetry({ - ...params, - stream: false, - messages: messagesMapped - }, { - signal: options?.signal, - ...options?.options - }); - const { completion_tokens: completionTokens, prompt_tokens: promptTokens, total_tokens: totalTokens, prompt_tokens_details: promptTokensDetails, completion_tokens_details: completionTokensDetails } = data?.usage ?? {}; - if (completionTokens) usageMetadata.output_tokens = (usageMetadata.output_tokens ?? 0) + completionTokens; - if (promptTokens) usageMetadata.input_tokens = (usageMetadata.input_tokens ?? 0) + promptTokens; - if (totalTokens) usageMetadata.total_tokens = (usageMetadata.total_tokens ?? 0) + totalTokens; - if (promptTokensDetails?.audio_tokens !== null || promptTokensDetails?.cached_tokens !== null) usageMetadata.input_token_details = { - ...promptTokensDetails?.audio_tokens !== null && { audio: promptTokensDetails?.audio_tokens }, - ...promptTokensDetails?.cached_tokens !== null && { cache_read: promptTokensDetails?.cached_tokens } - }; - if (completionTokensDetails?.audio_tokens !== null || completionTokensDetails?.reasoning_tokens !== null) usageMetadata.output_token_details = { - ...completionTokensDetails?.audio_tokens !== null && { audio: completionTokensDetails?.audio_tokens }, - ...completionTokensDetails?.reasoning_tokens !== null && { reasoning: completionTokensDetails?.reasoning_tokens } - }; - const generations = []; - for (const part of data?.choices ?? []) { - const text = part.message?.content ?? ""; - const generation = { - text, - message: this._convertOpenAIChatCompletionMessageToBaseMessage(part.message ?? { role: "assistant" }, data) - }; - generation.generationInfo = { - ...part.finish_reason ? { finish_reason: part.finish_reason } : {}, - ...part.logprobs ? { logprobs: part.logprobs } : {} - }; - if (isAIMessage(generation.message)) generation.message.usage_metadata = usageMetadata; - generation.message = new AIMessage(Object.fromEntries(Object.entries(generation.message).filter(([key$1]) => !key$1.startsWith("lc_")))); - generations.push(generation); - } - return { - generations, - llmOutput: { tokenUsage: { - promptTokens: usageMetadata.input_tokens, - completionTokens: usageMetadata.output_tokens, - totalTokens: usageMetadata.total_tokens - } } - }; - } - } - /** - * Estimate the number of tokens a prompt will use. - * Modified from: https://github.com/hmarr/openai-chat-tokens/blob/main/src/index.ts - */ - async getEstimatedTokenCountFromPrompt(messages, functions, function_call) { - let tokens = (await this.getNumTokensFromMessages(messages)).totalCount; - if (functions && function_call !== "auto") { - const promptDefinitions = formatFunctionDefinitions(functions); - tokens += await this.getNumTokens(promptDefinitions); - tokens += 9; - } - if (functions && messages.find((m$1) => m$1._getType() === "system")) tokens -= 4; - if (function_call === "none") tokens += 1; - else if (typeof function_call === "object") tokens += await this.getNumTokens(function_call.name) + 4; - return tokens; - } - /** - * Estimate the number of tokens an array of generations have used. - */ - async getNumTokensFromGenerations(generations) { - const generationUsages = await Promise.all(generations.map(async (generation) => { - if (generation.message.additional_kwargs?.function_call) return (await this.getNumTokensFromMessages([generation.message])).countPerMessage[0]; - else return await this.getNumTokens(generation.message.content); - })); - return generationUsages.reduce((a, b) => a + b, 0); - } - async getNumTokensFromMessages(messages) { - let totalCount = 0; - let tokensPerMessage = 0; - let tokensPerName = 0; - if (this.model === "gpt-3.5-turbo-0301") { - tokensPerMessage = 4; - tokensPerName = -1; - } else { - tokensPerMessage = 3; - tokensPerName = 1; - } - const countPerMessage = await Promise.all(messages.map(async (message) => { - const textCount = await this.getNumTokens(message.content); - const roleCount = await this.getNumTokens(messageToOpenAIRole(message)); - const nameCount = message.name !== void 0 ? tokensPerName + await this.getNumTokens(message.name) : 0; - let count = textCount + tokensPerMessage + roleCount + nameCount; - const openAIMessage = message; - if (openAIMessage._getType() === "function") count -= 2; - if (openAIMessage.additional_kwargs?.function_call) count += 3; - if (openAIMessage?.additional_kwargs.function_call?.name) count += await this.getNumTokens(openAIMessage.additional_kwargs.function_call?.name); - if (openAIMessage.additional_kwargs.function_call?.arguments) try { - count += await this.getNumTokens(JSON.stringify(JSON.parse(openAIMessage.additional_kwargs.function_call?.arguments))); - } catch (error) { - console.error("Error parsing function arguments", error, JSON.stringify(openAIMessage.additional_kwargs.function_call)); - count += await this.getNumTokens(openAIMessage.additional_kwargs.function_call?.arguments); - } - totalCount += count; - return count; - })); - totalCount += 3; - return { - totalCount, - countPerMessage - }; - } - async completionWithRetry(request, options) { - const requestOptions = this._getClientOptions(options); - return this.caller.call(async () => { - try { - const res = await this.client.chat.completions.create(request, requestOptions); - return res; - } catch (e) { - const error = wrapOpenAIClientError(e); - throw error; - } - }); - } - async responseApiWithRetry(request, options) { - return this.caller.call(async () => { - const requestOptions = this._getClientOptions(options); - try { - if (request.text?.format?.type === "json_schema" && !request.stream) return await this.client.responses.parse(request, requestOptions); - return await this.client.responses.create(request, requestOptions); - } catch (e) { - const error = wrapOpenAIClientError(e); - throw error; - } - }); - } - /** - * Call the beta chat completions parse endpoint. This should only be called if - * response_format is set to "json_object". - * @param {OpenAIClient.Chat.ChatCompletionCreateParamsNonStreaming} request - * @param {OpenAICoreRequestOptions | undefined} options - */ - async betaParsedCompletionWithRetry(request, options) { - const requestOptions = this._getClientOptions(options); - return this.caller.call(async () => { - try { - const res = await this.client.beta.chat.completions.parse(request, requestOptions); - return res; - } catch (e) { - const error = wrapOpenAIClientError(e); - throw error; - } - }); - } - _getClientOptions(options) { - if (!this.client) { - const openAIEndpointConfig = { baseURL: this.clientConfig.baseURL }; - const endpoint = getEndpoint(openAIEndpointConfig); - const params = { - ...this.clientConfig, - baseURL: endpoint, - timeout: this.timeout, - maxRetries: 0 - }; - if (!params.baseURL) delete params.baseURL; - this.client = new OpenAI(params); - } - const requestOptions = { - ...this.clientConfig, - ...options - }; - return requestOptions; - } - _llmType() { - return "openai"; - } - /** @ignore */ - _combineLLMOutput(...llmOutputs) { - return llmOutputs.reduce((acc, llmOutput) => { - if (llmOutput && llmOutput.tokenUsage) { - acc.tokenUsage.completionTokens += llmOutput.tokenUsage.completionTokens ?? 0; - acc.tokenUsage.promptTokens += llmOutput.tokenUsage.promptTokens ?? 0; - acc.tokenUsage.totalTokens += llmOutput.tokenUsage.totalTokens ?? 0; - } - return acc; - }, { tokenUsage: { - completionTokens: 0, - promptTokens: 0, - totalTokens: 0 - } }); - } - withStructuredOutput(outputSchema, config) { - let schema; - let name; - let method; - let includeRaw; - if (isStructuredOutputMethodParams(outputSchema)) { - schema = outputSchema.schema; - name = outputSchema.name; - method = outputSchema.method; - includeRaw = outputSchema.includeRaw; - } else { - schema = outputSchema; - name = config?.name; - method = config?.method; - includeRaw = config?.includeRaw; - } - let llm; - let outputParser; - if (config?.strict !== void 0 && method === "jsonMode") throw new Error("Argument `strict` is only supported for `method` = 'function_calling'"); - if (!this.model.startsWith("gpt-3") && !this.model.startsWith("gpt-4-") && this.model !== "gpt-4") { - if (method === void 0) method = "jsonSchema"; - } else if (method === "jsonSchema") console.warn(`[WARNING]: JSON Schema is not supported for model "${this.model}". Falling back to tool calling.`); - if (method === "jsonMode") { - llm = this.withConfig({ response_format: { type: "json_object" } }); - if (isZodSchema(schema)) outputParser = StructuredOutputParser.fromZodSchema(schema); - else outputParser = new JsonOutputParser(); - } else if (method === "jsonSchema") { - llm = this.withConfig({ response_format: { - type: "json_schema", - json_schema: { - name: name ?? "extract", - description: schema.description, - schema, - strict: config?.strict - } - } }); - if (isZodSchema(schema)) { - const altParser = StructuredOutputParser.fromZodSchema(schema); - outputParser = RunnableLambda.from((aiMessage) => { - if ("parsed" in aiMessage.additional_kwargs) return aiMessage.additional_kwargs.parsed; - return altParser; - }); - } else outputParser = new JsonOutputParser(); - } else { - let functionName = name ?? "extract"; - if (isZodSchema(schema)) { - const asJsonSchema = zodToJsonSchema(schema); - llm = this.withConfig({ - tools: [{ - type: "function", - function: { - name: functionName, - description: asJsonSchema.description, - parameters: asJsonSchema - } - }], - tool_choice: { - type: "function", - function: { name: functionName } - }, - ...config?.strict !== void 0 ? { strict: config.strict } : {} - }); - outputParser = new JsonOutputKeyToolsParser({ - returnSingle: true, - keyName: functionName, - zodSchema: schema - }); - } else { - let openAIFunctionDefinition; - if (typeof schema.name === "string" && typeof schema.parameters === "object" && schema.parameters != null) { - openAIFunctionDefinition = schema; - functionName = schema.name; - } else { - functionName = schema.title ?? functionName; - openAIFunctionDefinition = { - name: functionName, - description: schema.description ?? "", - parameters: schema - }; - } - llm = this.withConfig({ - tools: [{ - type: "function", - function: openAIFunctionDefinition - }], - tool_choice: { - type: "function", - function: { name: functionName } - }, - ...config?.strict !== void 0 ? { strict: config.strict } : {} - }); - outputParser = new JsonOutputKeyToolsParser({ - returnSingle: true, - keyName: functionName - }); - } - } - if (!includeRaw) return llm.pipe(outputParser); - const parserAssign = RunnablePassthrough.assign({ parsed: (input, config$1) => outputParser.invoke(input.raw, config$1) }); - const parserNone = RunnablePassthrough.assign({ parsed: () => null }); - const parsedWithFallback = parserAssign.withFallbacks({ fallbacks: [parserNone] }); - return RunnableSequence.from([{ raw: llm }, parsedWithFallback]); - } -}; -function isZodSchema(input) { - return typeof input?.parse === "function"; -} -function isStructuredOutputMethodParams(x) { - return x !== void 0 && typeof x.schema === "object"; -} - -//#endregion -//#region node_modules/.pnpm/@langchain+openai@0.5.12_@langchain+core@0.3.57_openai@5.3.0_ws@8.18.2_zod@3.25.57___encoding@0.1.13_ws@8.18.2/node_modules/@langchain/openai/dist/tools/dalle.js -/** -* A tool for generating images with Open AIs Dall-E 2 or 3 API. -*/ -var DallEAPIWrapper = class extends Tool { - static lc_name() { - return "DallEAPIWrapper"; - } - constructor(fields) { - if (fields?.responseFormat !== void 0 && ["url", "b64_json"].includes(fields.responseFormat)) { - fields.dallEResponseFormat = fields.responseFormat; - fields.responseFormat = "content"; - } - super(fields); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "dalle_api_wrapper" - }); - Object.defineProperty(this, "description", { - enumerable: true, - configurable: true, - writable: true, - value: "A wrapper around OpenAI DALL-E API. Useful for when you need to generate images from a text description. Input should be an image description." - }); - Object.defineProperty(this, "client", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - Object.defineProperty(this, "model", { - enumerable: true, - configurable: true, - writable: true, - value: "dall-e-3" - }); - Object.defineProperty(this, "style", { - enumerable: true, - configurable: true, - writable: true, - value: "vivid" - }); - Object.defineProperty(this, "quality", { - enumerable: true, - configurable: true, - writable: true, - value: "standard" - }); - Object.defineProperty(this, "n", { - enumerable: true, - configurable: true, - writable: true, - value: 1 - }); - Object.defineProperty(this, "size", { - enumerable: true, - configurable: true, - writable: true, - value: "1024x1024" - }); - Object.defineProperty(this, "dallEResponseFormat", { - enumerable: true, - configurable: true, - writable: true, - value: "url" - }); - Object.defineProperty(this, "user", { - enumerable: true, - configurable: true, - writable: true, - value: void 0 - }); - const openAIApiKey = fields?.apiKey ?? fields?.openAIApiKey ?? getEnvironmentVariable("OPENAI_API_KEY"); - const organization = fields?.organization ?? getEnvironmentVariable("OPENAI_ORGANIZATION"); - const clientConfig = { - apiKey: openAIApiKey, - organization, - dangerouslyAllowBrowser: true, - baseURL: fields?.baseUrl - }; - this.client = new OpenAI(clientConfig); - this.model = fields?.model ?? fields?.modelName ?? this.model; - this.style = fields?.style ?? this.style; - this.quality = fields?.quality ?? this.quality; - this.n = fields?.n ?? this.n; - this.size = fields?.size ?? this.size; - this.dallEResponseFormat = fields?.dallEResponseFormat ?? this.dallEResponseFormat; - this.user = fields?.user; - } - /** - * Processes the API response if multiple images are generated. - * Returns a list of MessageContentImageUrl objects. If the response - * format is `url`, then the `image_url` field will contain the URL. - * If it is `b64_json`, then the `image_url` field will contain an object - * with a `url` field with the base64 encoded image. - * - * @param {OpenAIClient.Images.ImagesResponse[]} response The API response - * @returns {MessageContentImageUrl[]} - */ - processMultipleGeneratedUrls(response) { - if (this.dallEResponseFormat === "url") return response.flatMap((res) => { - const imageUrlContent = res.data?.flatMap((item) => { - if (!item.url) return []; - return { - type: "image_url", - image_url: item.url - }; - }).filter((item) => item !== void 0 && item.type === "image_url" && typeof item.image_url === "string" && item.image_url !== void 0) ?? []; - return imageUrlContent; - }); - else return response.flatMap((res) => { - const b64Content = res.data?.flatMap((item) => { - if (!item.b64_json) return []; - return { - type: "image_url", - image_url: { url: item.b64_json } - }; - }).filter((item) => item !== void 0 && item.type === "image_url" && typeof item.image_url === "object" && "url" in item.image_url && typeof item.image_url.url === "string" && item.image_url.url !== void 0) ?? []; - return b64Content; - }); - } - /** @ignore */ - async _call(input) { - const generateImageFields = { - model: this.model, - prompt: input, - n: 1, - size: this.size, - response_format: this.dallEResponseFormat, - style: this.style, - quality: this.quality, - user: this.user - }; - if (this.n > 1) { - const results = await Promise.all(Array.from({ length: this.n }).map(() => this.client.images.generate(generateImageFields))); - return this.processMultipleGeneratedUrls(results); - } - const response = await this.client.images.generate(generateImageFields); - let data = ""; - if (this.dallEResponseFormat === "url") [data] = response.data?.map((item) => item.url).filter((url) => url !== "undefined") ?? []; - else [data] = response.data?.map((item) => item.b64_json).filter((b64_json) => b64_json !== "undefined") ?? []; - return data; - } -}; -Object.defineProperty(DallEAPIWrapper, "toolName", { - enumerable: true, - configurable: true, - writable: true, - value: "dalle_api_wrapper" -}); - -//#endregion -//#region apps/web/src/agent/langgraph/model.ts -function getModel(_state) { - /** - * Get OpenAI model for Auto-Anime workflow. - */ - console.log("Using OpenAI GPT-4o model"); - return new ChatOpenAI({ - temperature: .7, - model: "gpt-4o", - apiKey: process.env.OPENAI_API_KEY - }); -} - -//#endregion -//#region apps/web/src/agent/langgraph/tools/ui.ts -const SetCurrentStep = tool(() => {}, { - name: "setCurrentStep", - description: "Sets the current step in the video creation process.", - schema: objectType({ step: stringType().describe("The step to set as current. Must be one of the valid step names.") }) -}); - -//#endregion -//#region apps/web/src/agent/langgraph/nodes/storyboard.ts -const sampleImages = [ - "https://assets.lummi.ai/assets/QmVQpR9kUDEiFupgWrzaUYVii2TLa5zE7h9XDU7okBFdyc?auto=format&w=450", - "https://assets.lummi.ai/assets/QmXFtkNH6GJy581VwChHZeQF6qfQM9bkLhF2kDh1px5qKB?auto=format&w=1500", - "https://www.lummi.ai/api/pro/image/a06ede0d-63fb-4d99-be4c-9ba0840cf779?asset=original&cb=1nK52A&auto=format&w=1500", - "https://assets.lummi.ai/assets/QmPdy3qFqQF8gDQ6KuuUrRaqez3cbdeaYw3GMrxBynLfGd?auto=format&w=1500", - "https://ferf1mheo22r9ira.public.blob.vercel-storage.com/profile-mjss82WnWBRO86MHHGxvJ2TVZuyrDv.jpeg" -]; -const shotSchema = objectType({ - shotType: stringType().describe("The type of shot (e.g., wide, close-up)."), - prompt: stringType().describe("A detailed, vivid prompt for an AI image generator to create the visual for this shot. This should describe the characters, setting, action, and mood."), - character: stringType().optional().describe("Character in the shot."), - composition: stringType().optional().describe("Composition of the shot."), - lighting: stringType().optional().describe("Lighting for the shot."), - camera: stringType().optional().describe("Camera angle and movement.") -}); -const sceneSchema = objectType({ - title: stringType().describe("The title of the scene."), - description: stringType().describe("A brief description of the scene."), - shots: arrayType(shotSchema).describe("An array of shots that make up the scene.") -}); -const GenerateStoryboard = tool(() => {}, { - name: "GenerateStoryboard", - description: "Generate a storyboard with a sequence of scenes and shots based on the storylines and characters.", - schema: objectType({ storyboard: arrayType(sceneSchema).describe("An array of scenes for the storyboard.") }) -}); -function storyboard_node(state) { - const lastMessage = state.messages[state.messages.length - 1]; - if (!lastMessage || !lastMessage.tool_calls) throw new Error("No tool calls found in the last message."); - const toolCall = lastMessage.tool_calls.find((call$4) => call$4.name === "GenerateStoryboard"); - if (!toolCall) throw new Error("GenerateStoryboard tool call not found."); - let shotCounter = 1; - const processedStoryboard = toolCall.args.storyboard.map((scene) => ({ - ...scene, - id: ulid(), - shots: scene.shots.map((shot) => ({ - ...shot, - id: ulid(), - number: shotCounter++, - image: sampleImages[Math.floor(Math.random() * sampleImages.length)] - })) - })); - return { - storyboard: processedStoryboard, - messages: [new ToolMessage({ - tool_call_id: toolCall.id, - content: "Storyboard generated successfully.", - name: "GenerateStoryboard" - })] - }; -} - -//#endregion -//#region apps/web/src/agent/langgraph/nodes/storyline.ts -const GenerateStoryline = tool(() => {}, { - name: "GenerateStoryline", - description: "Generate one or more storyline variations based on the video concept.", - schema: objectType({ storylines: arrayType(objectType({ - title: stringType().describe("The title of the storyline."), - content: stringType().describe("The detailed content of the storyline."), - tags: arrayType(stringType()).describe("Relevant tags for the storyline.") - })).describe("An array of 1-3 storyline variations.") }) -}); -function storyline_node(state) { - const lastMessage = state.messages[state.messages.length - 1]; - if (!lastMessage || !lastMessage.tool_calls) throw new Error("No tool calls found in the last message."); - const toolCall = lastMessage.tool_calls.find((call$4) => call$4.name === "GenerateStoryline"); - if (!toolCall) throw new Error("GenerateStoryline tool call not found."); - const storylinesWithIds = toolCall.args.storylines.map((storyline) => ({ - ...storyline, - id: crypto.randomUUID() - })); - return { - storylines: storylinesWithIds, - messages: [new ToolMessage({ - tool_call_id: toolCall.id, - content: "Storylines generated successfully.", - name: "GenerateStoryline" - })] - }; -} - -//#endregion -//#region apps/web/src/agent/langgraph/nodes/router.ts -const systemPromptTemplate = `You are an AI assistant specialized in creating anime-style video concepts. Your goal is to help the user through a multi-step creation process. - -You have access to the following tools: -- GenerateConcept: Use this in the 'conceptSetting' step to create the initial video concept. -- GenerateStoryline: Use this in the 'storyline' step to create storylines based on the concept. -- GenerateCharacters: Use this in the 'characterDesign' step to create character profiles. -- GenerateStoryboard: Use this in the 'storyboard' step to create a sequence of shots. -- setCurrentStep: Use this to switch the user's UI to the correct step after a generation task is complete. - -Core Instructions: -1. **Generate Content**: Based on the user's request and the current step, call the appropriate generation tool (e.g., GenerateConcept). -2. **Switch UI Tab**: After the generation tool returns its result, you MUST immediately call the 'setCurrentStep' tool to switch the UI to the relevant tab. For example, after 'GenerateStoryboard' is finished, call 'setCurrentStep' with '3.storyboard'. - -Current step: {current_step} -{context} -`; -function buildContext(state) { - let context = "Context:\n"; - if (state.concept) context += `- Current Concept Title: ${state.concept.title}\n`; - else context += "- No concept has been generated yet.\n"; - if (state.storylines) context += `- ${state.storylines.length} storylines available.\n`; - if (state.characters) context += `- ${state.characters.length} characters available.\n`; - return context; -} -async function router_node(state, config) { - const customConfig = copilotkitCustomizeConfig(config, {}); - state.current_step = state.current_step || "0.conceptSetting"; - const model = getModel(state); - const context = buildContext(state); - const filledPrompt = systemPromptTemplate.replace("{current_step}", state.current_step).replace("{context}", context); - const response = await model.bindTools([ - GenerateConcept, - GenerateStoryline, - GenerateCharacters, - GenerateStoryboard, - SetCurrentStep - ]).invoke([new SystemMessage(filledPrompt), ...state.messages], customConfig); - return { messages: [response] }; -} - -//#endregion -//#region apps/web/src/agent/langgraph/state.ts -const ConceptAnnotation = Annotation.Root({ - title: Annotation, - conceptBody: Annotation, - genre: Annotation, - tone: Annotation, - format: Annotation, - specialRequests: Annotation, - productService: Annotation, - targetAudience: Annotation, - mainMessage: Annotation, - callToAction: Annotation, - addVoiceover: Annotation -}); -const StorylineAnnotation = Annotation.Root({ - id: Annotation, - title: Annotation, - content: Annotation, - tags: Annotation -}); -const CharacterAnnotation = Annotation.Root({ - name: Annotation, - description: Annotation, - appearance: Annotation, - personality: Annotation, - role: Annotation -}); -const ShotAnnotation = Annotation.Root({ - id: Annotation, - shotType: Annotation, - cameraAngle: Annotation, - description: Annotation, - dialogue: Annotation, - visualNotes: Annotation -}); -const AgentStateAnnotation = Annotation.Root({ - concept: Annotation, - storylines: Annotation, - characters: Annotation, - storyboard: Annotation, - current_step: Annotation, - ...CopilotKitStateAnnotation.spec -}); - -//#endregion -//#region apps/web/src/agent/langgraph/agent.ts -function route_to_tool(state) { - const lastMessage = state.messages[state.messages.length - 1]; - if (!lastMessage.tool_calls || lastMessage.tool_calls.length === 0) return END; - const toolName = lastMessage.tool_calls[0].name; - console.log(`Routing to: ${toolName}`); - switch (toolName) { - case "GenerateConcept": return "concept_node"; - case "GenerateStoryline": return "storyline_node"; - case "GenerateCharacters": return "characterDesign_node"; - case "GenerateStoryboard": return "storyboard_node"; - default: return END; - } -} -const workflow = new StateGraph(AgentStateAnnotation).addNode("router", router_node).addNode("concept_node", concept_node).addNode("storyline_node", storyline_node).addNode("characterDesign_node", characterDesign_node).addNode("storyboard_node", storyboard_node).setEntryPoint("router").addConditionalEdges("router", route_to_tool, { - concept_node: "concept_node", - storyline_node: "storyline_node", - characterDesign_node: "characterDesign_node", - storyboard_node: "storyboard_node", - __end__: END -}).addEdge("concept_node", "router").addEdge("storyline_node", "router").addEdge("characterDesign_node", "router").addEdge("storyboard_node", "router"); -const graph = workflow.compile({ interruptAfter: [ - "concept_node", - "storyline_node", - "characterDesign_node", - "storyboard_node" -] }); - -//#endregion -export { graph }; \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:9a53c617ca5aa4e70f104f436d879334aebfc9f5b41d96e84e6cebc195be6173 +size 2001620