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AAwB,iBAAV,GAAgC,OAAV,GAAkB,QAAS,GAA8B,iBAAd,EAAM,KAAkC,OAAd,EAAM,KAAgB,OAAO,QAAQ,EAAM,KAAK,OAAM,EAAE,EAAK,KAA4B,iBAAR,GAAuC,iBAAZ,GAAoC,OAAZ,GAC9O,EAKA,EAAa,YAHb,SAAqB,GACpB,MAAO,IAAI,IAAI,IAAI,OAAO,QAAQ,EAAY,KAAK,SAAQ,EAAE,EAAK,KAAW,OAAO,QAAQ,GAAO,KAAI,EAAE,KAAU,OAAO,KAAO,SAClI,CAEA,CATD,CASG,cAAgB,YAAc,CAAC,IAOlC,QAAQ,qBAAuB,qBAC/B,OAAO,eAAe,QAAS,cAAe,CAC5C,YAAY,EACZ,IAAK,WACH,OAAO,WACT,IAEF,QAAQ,WAAa","file":"/npm/@arkts/shared@1.3.3/out/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@arkts/shared@1.3.3/out/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const require_console_reporter = require('./console-reporter-MSOW9FIR.js');\nlet consola_basic = require(\"consola/basic\");\nlet node_fs = require(\"node:fs\");\nnode_fs = require_console_reporter.__toESM(node_fs);\nlet node_path = require(\"node:path\");\nnode_path = require_console_reporter.__toESM(node_path);\n\n//#region ../language-server/package.json\nvar version = \"1.3.3\";\n\n//#endregion\n//#region src/log/file-reporter.ts\nvar FileReporter = class {\n\tconstructor(debug, prefix, filename) {\n\t\tthis.debug = debug;\n\t\tthis.prefix = prefix;\n\t\tthis.filename = filename;\n\t}\n\tsafeStringify(value) {\n\t\ttry {\n\t\t\treturn JSON.stringify(value);\n\t\t} catch {\n\t\t\treturn String(value);\n\t\t}\n\t}\n\ttoString(logObj) {\n\t\tif (logObj.message) return logObj.message;\n\t\tif (logObj.args.length === 0) return this.safeStringify(logObj);\n\t\treturn logObj.args.join(\" \");\n\t}\n\tgetPrefix() {\n\t\tif (this.prefix) return `<${this.prefix}>`;\n\t\treturn \"\";\n\t}\n\tlog(logObj, _ctx) {\n\t\tif (!node_fs.default.existsSync(node_path.default.dirname(this.filename))) node_fs.default.mkdirSync(node_path.default.dirname(this.filename), { recursive: true });\n\t\tswitch (logObj.type) {\n\t\t\tcase \"log\":\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] 📅:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t\tcase \"warn\":\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] ⚠️:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t\tcase \"info\":\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] 🔥:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t\tcase \"success\":\n\t\t\tcase \"ready\":\n\t\t\tcase \"start\":\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] ✅:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t\tcase \"fail\":\n\t\t\tcase \"fatal\":\n\t\t\tcase \"error\":\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] ❌:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t\tcase \"debug\":\n\t\t\tcase \"verbose\":\n\t\t\tcase \"trace\":\n\t\t\t\tif (!this.debug) return;\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] 🐛:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t\tcase \"box\":\n\t\t\t\tnode_fs.default.appendFileSync(this.filename, `[${logObj.type.toUpperCase()}] 📦:${logObj.tag} ${this.getPrefix()} ${logObj.date.toLocaleString()} ${this.toString(logObj)}\\r\\n`);\n\t\t\t\tbreak;\n\t\t}\n\t}\n};\n\n//#endregion\n//#region src/log/lsp-logger.ts\nvar LanguageServerLogger = class LanguageServerLogger {\n\tlogger;\n\tdebug = false;\n\tstatic versionIsLogged = false;\n\tconstructor(consolaOptions = {}) {\n\t\tthis.logger = (0, consola_basic.createConsola)({\n\t\t\t...consolaOptions,\n\t\t\treporters: [\n\t\t\t\tconsolaOptions.console ? new require_console_reporter.ConsoleReporter(this.debug, consolaOptions.prefix ?? \"\") : void 0,\n\t\t\t\tconsolaOptions.file ? new FileReporter(this.debug, consolaOptions.prefix ?? \"ETS Language Server\", consolaOptions.filename ?? \".arkts/logs/language-server.log\") : void 0,\n\t\t\t\t...consolaOptions.reporters || []\n\t\t\t].filter(Boolean)\n\t\t});\n\t\tif (!LanguageServerLogger.versionIsLogged) {\n\t\t\tthis.logger.info(`ETS Support language server version: ${version}`);\n\t\t\tLanguageServerLogger.versionIsLogged = true;\n\t\t}\n\t}\n\tgetConsola() {\n\t\treturn this.logger;\n\t}\n\tsetDebug(debug) {\n\t\tthis.debug = debug;\n\t\treturn this;\n\t}\n\tgetDebug() {\n\t\treturn this.debug;\n\t}\n};\n\n//#endregion\n//#region src/sys-resource.ts\nlet SysResource;\n(function(_SysResource) {\n\tfunction is(value) {\n\t\treturn typeof value === \"object\" && value !== null && \"sys\" in value && typeof value.sys === \"object\" && value.sys !== null && Object.entries(value.sys).every(([key, value$1]) => typeof key === \"string\" && typeof value$1 === \"object\" && value$1 !== null);\n\t}\n\t_SysResource.is = is;\n\tfunction toEtsFormat(sysResource) {\n\t\treturn [...new Set(Object.entries(sysResource.sys).flatMap(([key, value]) => Object.entries(value).map(([name]) => `sys.${key}.${name}`)))];\n\t}\n\t_SysResource.toEtsFormat = toEtsFormat;\n})(SysResource || (SysResource = {}));\n\n//#endregion\n//#region src/index.ts\nfunction typeAssert(_value) {}\n\n//#endregion\nexports.LanguageServerLogger = LanguageServerLogger;\nObject.defineProperty(exports, 'SysResource', {\n  enumerable: true,\n  get: function () {\n    return SysResource;\n  }\n});\nexports.typeAssert = typeAssert;"]}