diff --git a/chat2db-client/.umirc.ts b/chat2db-client/.umirc.ts index 5e331ae9..6ea95115 100644 --- a/chat2db-client/.umirc.ts +++ b/chat2db-client/.umirc.ts @@ -83,7 +83,7 @@ export default defineConfig({ localStorage.clear(); localStorage.setItem('app-local-storage-versions', 'v4'); }`, - `if (window.electronApi) { window.electronApi.startServerForSpawn() }`, + // `if (window.electronApi) { window.electronApi.startServerForSpawn() }`, // `if ("serviceWorker" in navigator) { // window.addEventListener("load", function () { // navigator.serviceWorker diff --git a/chat2db-client/src/blocks/AppTitleBar/index.tsx b/chat2db-client/src/blocks/AppTitleBar/index.tsx index 5ec96ff4..f21becc7 100644 --- a/chat2db-client/src/blocks/AppTitleBar/index.tsx +++ b/chat2db-client/src/blocks/AppTitleBar/index.tsx @@ -1,4 +1,4 @@ -import React, { memo, useMemo } from 'react'; +import React, { memo, useState } from 'react'; import styles from './index.less'; import classnames from 'classnames'; import { useCommonStore } from '@/store/common'; @@ -10,6 +10,7 @@ interface IProps { export default memo((props) => { const { className } = props; + const [isMaximized, setIsMaximize] = useState(window.electronApi?.isMaximized()); const { appTitleBarRightComponent } = useCommonStore((state) => { return { @@ -27,9 +28,21 @@ export default memo((props) => { window.electronApi?.setMaximize(); }; - const handelMaximize = () => { + const handelMinimizeWindow = (e) => { + e.stopPropagation(); + window.electronApi?.minimizeWindow(); + }; + + const handelMaximize = (e) => { + e.stopPropagation(); window.electronApi?.setMaximize(); - } + setIsMaximize(!isMaximized); + }; + + const handelCloseWindow = (e) => { + e.stopPropagation(); + window.electronApi?.closeWindow(); + }; return (
@@ -40,14 +53,14 @@ export default memo((props) => {
{isWin && (
-
- +
+
- + {isMaximized ? : }
-
- +
+
)} diff --git a/chat2db-client/src/components/Iconfont/index.tsx b/chat2db-client/src/components/Iconfont/index.tsx index f4c6c19c..2f99770e 100644 --- a/chat2db-client/src/components/Iconfont/index.tsx +++ b/chat2db-client/src/components/Iconfont/index.tsx @@ -9,9 +9,9 @@ if (__ENV__ === 'local') { /* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */ @font-face { font-family: 'iconfont'; /* Project id 3633546 */ - src: url('//at.alicdn.com/t/c/font_3633546_yr9ay65j0fs.woff2?t=1703837870848') format('woff2'), - url('//at.alicdn.com/t/c/font_3633546_yr9ay65j0fs.woff?t=1703837870848') format('woff'), - url('//at.alicdn.com/t/c/font_3633546_yr9ay65j0fs.ttf?t=1703837870848') format('truetype'); + src: url('//at.alicdn.com/t/c/font_3633546_vmsq4yq8hw9.woff2?t=1704769259060') format('woff2'), + url('//at.alicdn.com/t/c/font_3633546_vmsq4yq8hw9.woff?t=1704769259060') format('woff'), + url('//at.alicdn.com/t/c/font_3633546_vmsq4yq8hw9.ttf?t=1704769259060') format('truetype'); } `; const style = document.createElement('style'); diff --git a/chat2db-client/src/hooks/usePollRequestService.ts b/chat2db-client/src/hooks/usePollRequestService.ts index e1b5c38e..05c6c61d 100644 --- a/chat2db-client/src/hooks/usePollRequestService.ts +++ b/chat2db-client/src/hooks/usePollRequestService.ts @@ -45,6 +45,10 @@ const usePollRequestService = ({ maxAttempts = 200, interval = 200, loopService serviceFn(); if (serviceStatus !== ServiceStatus.SUCCESS) { + // 第一次请求失败,启动服务 + if (attempts === 1) { + window.electronApi?.startServerForSpawn(); + } intervalId = setInterval(serviceFn, interval); } diff --git a/chat2db-client/src/main/index.js b/chat2db-client/src/main/index.js index 404dfcdc..d61c8523 100644 --- a/chat2db-client/src/main/index.js +++ b/chat2db-client/src/main/index.js @@ -1,4 +1,4 @@ -const { app, BrowserWindow, shell, net, ipcMain } = require('electron'); +const { app, BrowserWindow, shell, net, ipcMain, globalShortcut } = require('electron'); const path = require('path'); const registerAppMenu = require('./menu'); const registerAnalysis = require('./analysis'); @@ -54,6 +54,11 @@ function createWindow() { mainWindow.on('move', () => { store.set('windowBounds', mainWindow.getBounds()); }); + + // 注册快捷键Ctrl+Shift+I打开开发者工具 + globalShortcut.register('CommandOrControl+Shift+I', () => { + mainWindow.webContents.openDevTools() + }) } // const menu = Menu.buildFromTemplate(menuBar); @@ -68,7 +73,7 @@ app.on('ready', () => { }); app.on('activate', () => { - if (!!mainWindow) { + if (!mainWindow) { createWindow(); } else { if (mainWindow.isMinimized()) { @@ -83,6 +88,7 @@ app.on('activate', () => { }); app.on('window-all-closed', (e) => { + mainWindow = null if (isMac) return; app.quit(); }); @@ -134,3 +140,17 @@ ipcMain.on('set-base-url', (event, _baseUrl) => { ipcMain.on('set-force-quit-code', (event, _forceQuitCode) => { forceQuitCode = _forceQuitCode; }); + +ipcMain.on('close-window', () => { + mainWindow.close(); +}); + +// 最小化窗口 +ipcMain.on('minimize-window', () => { + mainWindow.minimize(); +}); + +// 获取当前窗口是否是最大化 +ipcMain.on('is-maximized', () => { + return mainWindow.isMaximized(); +}); diff --git a/chat2db-client/src/main/main.js b/chat2db-client/src/main/main.js deleted file mode 100644 index 005801bd..00000000 --- a/chat2db-client/src/main/main.js +++ /dev/null @@ -1,2282 +0,0 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./analysis.js": -/*!*********************!*\ - !*** ./analysis.js ***! - \*********************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -eval("const os = __webpack_require__(/*! os */ \"os\");\nconst { readVersion } = __webpack_require__(/*! ./utils */ \"./utils.js\");\nconst Analytics4 = __webpack_require__(/*! ./ga4 */ \"./ga4.js\");\n\nfunction registerAnalytics() {\n const analytics = new Analytics4('G-V8M4E5SF61', 'LShbzC_vRka5Sw5AWco7Tw');\n const customParams = {\n platform: 'DESKTOP',\n version: readVersion(),\n os: os.platform(),\n };\n analytics.setParams(customParams).event('first_enter');\n}\n\nmodule.exports = registerAnalytics;\n\n\n//# sourceURL=webpack://main/./analysis.js?"); - -/***/ }), - -/***/ "./constants.js": -/*!**********************!*\ - !*** ./constants.js ***! - \**********************/ -/***/ ((module) => { - -eval("const DEV_WEB_URL = 'http://localhost:8000/';\n\n/** jar包名 */\nconst JAVA_APP_NAME = 'chat2db-server-start.jar';\nconst JAVA_PATH = 'jre/bin/java';\n\nmodule.exports = {\n DEV_WEB_URL,\n\n JAVA_APP_NAME,\n JAVA_PATH,\n};\n\n\n//# sourceURL=webpack://main/./constants.js?"); - -/***/ }), - -/***/ "./ga4.js": -/*!****************!*\ - !*** ./ga4.js ***! - \****************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -eval("const { net } = __webpack_require__(/*! electron */ \"electron\");\nconst { v4: uuidv4 } = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-node/index.js\");\nconst { machineIdSync } = __webpack_require__(/*! node-machine-id */ \"./node_modules/node-machine-id/dist/index.js\");\nconst log = __webpack_require__(/*! electron-log */ \"./node_modules/electron-log/src/index.js\");\n\nclass Analytics4 {\n constructor(trackingID, secretKey, clientID = machineIdSync(), sessionID = uuidv4()) {\n this.trackingID = trackingID;\n this.secretKey = secretKey;\n this.clientID = clientID;\n this.sessionID = sessionID;\n this.customParams = {};\n this.userProperties = null;\n this.baseURL = 'https://google-analytics.com/mp';\n this.collectURL = '/collect';\n }\n\n set(key, value) {\n if (value !== null) {\n this.customParams[key] = value;\n } else {\n delete this.customParams[key];\n }\n return this;\n }\n\n setParams(params) {\n if (typeof params === 'object' && Object.keys(params).length > 0) {\n Object.assign(this.customParams, params);\n } else {\n this.customParams = {};\n }\n return this;\n }\n\n setUserProperties(upValue) {\n if (typeof upValue === 'object' && Object.keys(upValue).length > 0) {\n this.userProperties = upValue;\n } else {\n this.userProperties = null;\n }\n return this;\n }\n\n event(eventName) {\n const payload = {\n client_id: this.clientID,\n events: [\n {\n name: eventName,\n params: {\n session_id: this.sessionID,\n ...this.customParams,\n },\n },\n ],\n };\n\n if (this.userProperties) {\n Object.assign(payload, { user_properties: this.userProperties });\n }\n\n const url = `${this.baseURL}${this.collectURL}?measurement_id=${this.trackingID}&api_secret=${this.secretKey}`;\n const request = net.request({\n method: 'POST',\n url,\n });\n\n request.on('response', (response) => {\n let responseData = '';\n response.on('data', (chunk) => {\n responseData += chunk;\n });\n\n response.on('end', () => {\n if (response.statusCode >= 200 && response.statusCode < 300) {\n log.info('success', responseData);\n } else {\n log.error('response error', response.statusCode);\n }\n });\n });\n\n request.on('error', (error) => {\n log.error('Error posting data:', error);\n });\n\n request.write(JSON.stringify(payload));\n\n request.end();\n }\n}\n\nmodule.exports = Analytics4;\n\n\n//# sourceURL=webpack://main/./ga4.js?"); - -/***/ }), - -/***/ "./index.js": -/*!******************!*\ - !*** ./index.js ***! - \******************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -eval("const { app, BrowserWindow, shell, net, ipcMain } = __webpack_require__(/*! electron */ \"electron\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst registerAppMenu = __webpack_require__(/*! ./menu */ \"./menu.js\");\nconst registerAnalysis = __webpack_require__(/*! ./analysis */ \"./analysis.js\");\nconst store = __webpack_require__(/*! ./store */ \"./store.js\");\nconst { loadMainResource, isMac } = __webpack_require__(/*! ./utils */ \"./utils.js\");\n\nlet mainWindow = null;\n\nlet baseUrl = null;\nlet _forceQuitCode = false;\n\n/**\n * Initial window options\n */\n\nfunction createWindow() {\n const { width, height, x, y } = store.get('windowBounds', { width: 1440, height: 800 });\n\n const options = {\n x,\n y,\n height,\n width,\n minWidth: 1080,\n minHeight: 720,\n show: false,\n frame: false, // 无边框\n titleBarStyle: 'hidden',\n webPreferences: {\n webSecurity: false,\n spellcheck: false, // 禁用拼写检查器\n nodeIntegration: true,\n contextIsolation: true,\n preload: path.join(__dirname, 'preload.js'),\n },\n };\n\n mainWindow = new BrowserWindow(options);\n mainWindow.show();\n\n // 加载应用-----\n loadMainResource(mainWindow);\n\n mainWindow.webContents.setWindowOpenHandler(({ url }) => {\n shell.openExternal(url);\n return { action: 'deny' };\n });\n\n mainWindow.on('resize', () => {\n store.set('windowBounds', mainWindow.getBounds());\n });\n\n mainWindow.on('move', () => {\n store.set('windowBounds', mainWindow.getBounds());\n });\n}\n\n// const menu = Menu.buildFromTemplate(menuBar);\n// Menu.setApplicationMenu(menu);\n\napp.commandLine.appendSwitch('--disable-gpu-sandbox');\n\napp.on('ready', () => {\n createWindow();\n registerAppMenu(mainWindow);\n registerAnalysis();\n});\n\napp.on('activate', () => {\n if (!!mainWindow) {\n createWindow();\n } else {\n if (mainWindow.isMinimized()) {\n mainWindow.restore();\n }\n if (mainWindow.isVisible()) {\n mainWindow.focus();\n } else {\n mainWindow.show();\n }\n }\n});\n\napp.on('window-all-closed', (e) => {\n if (isMac) return;\n app.quit();\n});\n\napp.on('before-quit', () => {\n if (baseUrl) {\n try {\n const request = net.request({\n headers: {\n 'Content-Type': 'application/json',\n },\n method: 'POST',\n url: `${baseUrl}/api/system/stop?forceQuit=${_forceQuitCode}`,\n });\n request.end();\n } catch (error) {}\n }\n});\n\nipcMain.handle('get-product-name', () => {\n const exePath = app.getPath('exe');\n const { name } = path.parse(exePath);\n return name;\n});\n\n// 重启app\nipcMain.on('quit-app', () => {\n app.relaunch();\n app.quit();\n});\n\n// 放大或还原窗口\nipcMain.on('set-maximize', () => {\n if (mainWindow.isMaximized()) {\n mainWindow.unmaximize();\n } else {\n mainWindow.maximize();\n }\n});\n\nipcMain.on('register-app-menu', (event, orgs) => {\n registerAppMenu(mainWindow, orgs);\n});\n\nipcMain.on('set-base-url', (event, _baseUrl) => {\n baseUrl = _baseUrl;\n});\n\nipcMain.on('set-force-quit-code', (event, _forceQuitCode) => {\n forceQuitCode = _forceQuitCode;\n});\n\n\n//# sourceURL=webpack://main/./index.js?"); - -/***/ }), - -/***/ "./menu.js": -/*!*****************!*\ - !*** ./menu.js ***! - \*****************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -eval("const { shell, app, dialog, BrowserWindow, Menu } = __webpack_require__(/*! electron */ \"electron\");\nconst os = __webpack_require__(/*! os */ \"os\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst { isMac } = __webpack_require__(/*! ./utils */ \"./utils.js\");\n\nconst registerAppMenu = (mainWindow, orgs) => {\n if (!isMac) {\n Menu.setApplicationMenu(null);\n return;\n }\n const menuBar = [\n {\n label: 'Chat2DB',\n submenu: [\n {\n label: '关于Chat2DB',\n click() {\n dialog.showMessageBox({\n title: '关于Chat2DB',\n message: `关于Chat2DB v${orgs?.version || app.getVersion()}`,\n detail:\n // An intelligent database client and smart BI reporting tool with integrated AI capabilities.\n '一个集成AI能力的智能数据库客户端和智能BI报表工具。',\n icon: './logo/icon.png',\n });\n },\n },\n { type: 'separator' },\n {\n label: '重新启动',\n click() {\n // 退出程序\n app.relaunch();\n app.quit();\n },\n },\n {\n label: '退出',\n accelerator: process.platform === 'darwin' ? 'Cmd+Q' : 'Alt+F4',\n click() {\n // 退出程序\n app.quit();\n },\n },\n ],\n },\n {\n label: '编辑',\n submenu: [\n { label: '撤销', role: 'undo' },\n { label: '重做', role: 'redo' },\n { type: 'separator' },\n { label: '剪切', role: 'cut' },\n { label: '复制', role: 'copy' },\n { label: '粘贴', role: 'paste' },\n { label: '全选', role: 'selectAll' },\n ],\n },\n {\n // label: i18n('menu.edit'),\n label: '视图',\n submenu: [\n // {\n // label: '刷新',\n // accelerator: 'CmdOrCtrl+Shift+R',\n // click() {\n // const focusedWindow = BrowserWindow.getFocusedWindow();\n // if (focusedWindow) {\n // focusedWindow.reload();\n // }\n // },\n // },\n { type: 'separator' },\n {\n label: '放大',\n accelerator: 'CmdOrCtrl+=',\n role: 'zoomIn',\n },\n {\n label: '缩小',\n accelerator: 'CmdOrCtrl+-',\n role: 'zoomOut',\n },\n {\n label: '重置',\n accelerator: 'CmdOrCtrl+0',\n role: 'resetZoom',\n },\n { type: 'separator' },\n { label: '全屏', role: 'togglefullscreen' },\n ],\n },\n {\n label: '窗口',\n role: 'window',\n submenu: [\n { label: '最小化', role: 'minimize', accelerator: 'Command+W' },\n { label: '关闭', role: 'close' },\n ],\n },\n {\n label: '帮助',\n submenu: [\n {\n label: '打开日志',\n accelerator: process.platform === 'darwin' ? 'Cmd+Shift+T' : 'Ctrl+Shift+T',\n click() {\n const fileName = '.chat2db/logs/application.log';\n const url = path.join(os.homedir(), fileName);\n shell.openPath(url).then((str) => console.log('err:', str));\n },\n },\n {\n label: '打开控制台',\n accelerator: process.platform === 'darwin' ? 'Cmd+Shift+I' : 'Ctrl+Shift+I',\n click() {\n const focusedWindow = BrowserWindow.getFocusedWindow();\n focusedWindow && focusedWindow.toggleDevTools();\n },\n },\n {\n label: '访问官网',\n click() {\n const url = 'https://www.sqlgpt.cn/zh';\n shell.openExternal(url);\n },\n },\n {\n label: '查看文档',\n click() {\n const url = 'https://doc.sqlgpt.cn/zh/';\n shell.openExternal(url);\n },\n },\n {\n label: '查看更新日志',\n click() {\n const url = 'https://doc.sqlgpt.cn/zh/changelog/';\n shell.openExternal(url);\n },\n },\n ],\n },\n ];\n Menu.setApplicationMenu(Menu.buildFromTemplate(menuBar));\n};\n\nmodule.exports = registerAppMenu;\n\n\n//# sourceURL=webpack://main/./menu.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/consts.js": -/*!************************************************!*\ - !*** ./node_modules/atomically/dist/consts.js ***! - \************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\n/* CONSTS */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.NOOP = exports.LIMIT_FILES_DESCRIPTORS = exports.LIMIT_BASENAME_LENGTH = exports.IS_USER_ROOT = exports.IS_POSIX = exports.DEFAULT_TIMEOUT_SYNC = exports.DEFAULT_TIMEOUT_ASYNC = exports.DEFAULT_WRITE_OPTIONS = exports.DEFAULT_READ_OPTIONS = exports.DEFAULT_FOLDER_MODE = exports.DEFAULT_FILE_MODE = exports.DEFAULT_ENCODING = void 0;\nconst DEFAULT_ENCODING = 'utf8';\nexports.DEFAULT_ENCODING = DEFAULT_ENCODING;\nconst DEFAULT_FILE_MODE = 0o666;\nexports.DEFAULT_FILE_MODE = DEFAULT_FILE_MODE;\nconst DEFAULT_FOLDER_MODE = 0o777;\nexports.DEFAULT_FOLDER_MODE = DEFAULT_FOLDER_MODE;\nconst DEFAULT_READ_OPTIONS = {};\nexports.DEFAULT_READ_OPTIONS = DEFAULT_READ_OPTIONS;\nconst DEFAULT_WRITE_OPTIONS = {};\nexports.DEFAULT_WRITE_OPTIONS = DEFAULT_WRITE_OPTIONS;\nconst DEFAULT_TIMEOUT_ASYNC = 5000;\nexports.DEFAULT_TIMEOUT_ASYNC = DEFAULT_TIMEOUT_ASYNC;\nconst DEFAULT_TIMEOUT_SYNC = 100;\nexports.DEFAULT_TIMEOUT_SYNC = DEFAULT_TIMEOUT_SYNC;\nconst IS_POSIX = !!process.getuid;\nexports.IS_POSIX = IS_POSIX;\nconst IS_USER_ROOT = process.getuid ? !process.getuid() : false;\nexports.IS_USER_ROOT = IS_USER_ROOT;\nconst LIMIT_BASENAME_LENGTH = 128; //TODO: fetch the real limit from the filesystem //TODO: fetch the whole-path length limit too\nexports.LIMIT_BASENAME_LENGTH = LIMIT_BASENAME_LENGTH;\nconst LIMIT_FILES_DESCRIPTORS = 10000; //TODO: fetch the real limit from the filesystem\nexports.LIMIT_FILES_DESCRIPTORS = LIMIT_FILES_DESCRIPTORS;\nconst NOOP = () => { };\nexports.NOOP = NOOP;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/consts.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/index.js": -/*!***********************************************!*\ - !*** ./node_modules/atomically/dist/index.js ***! - \***********************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.writeFileSync = exports.writeFile = exports.readFileSync = exports.readFile = void 0;\nconst path = __webpack_require__(/*! path */ \"path\");\nconst consts_1 = __webpack_require__(/*! ./consts */ \"./node_modules/atomically/dist/consts.js\");\nconst fs_1 = __webpack_require__(/*! ./utils/fs */ \"./node_modules/atomically/dist/utils/fs.js\");\nconst lang_1 = __webpack_require__(/*! ./utils/lang */ \"./node_modules/atomically/dist/utils/lang.js\");\nconst scheduler_1 = __webpack_require__(/*! ./utils/scheduler */ \"./node_modules/atomically/dist/utils/scheduler.js\");\nconst temp_1 = __webpack_require__(/*! ./utils/temp */ \"./node_modules/atomically/dist/utils/temp.js\");\nfunction readFile(filePath, options = consts_1.DEFAULT_READ_OPTIONS) {\n var _a;\n if (lang_1.default.isString(options))\n return readFile(filePath, { encoding: options });\n const timeout = Date.now() + ((_a = options.timeout) !== null && _a !== void 0 ? _a : consts_1.DEFAULT_TIMEOUT_ASYNC);\n return fs_1.default.readFileRetry(timeout)(filePath, options);\n}\nexports.readFile = readFile;\n;\nfunction readFileSync(filePath, options = consts_1.DEFAULT_READ_OPTIONS) {\n var _a;\n if (lang_1.default.isString(options))\n return readFileSync(filePath, { encoding: options });\n const timeout = Date.now() + ((_a = options.timeout) !== null && _a !== void 0 ? _a : consts_1.DEFAULT_TIMEOUT_SYNC);\n return fs_1.default.readFileSyncRetry(timeout)(filePath, options);\n}\nexports.readFileSync = readFileSync;\n;\nconst writeFile = (filePath, data, options, callback) => {\n if (lang_1.default.isFunction(options))\n return writeFile(filePath, data, consts_1.DEFAULT_WRITE_OPTIONS, options);\n const promise = writeFileAsync(filePath, data, options);\n if (callback)\n promise.then(callback, callback);\n return promise;\n};\nexports.writeFile = writeFile;\nconst writeFileAsync = async (filePath, data, options = consts_1.DEFAULT_WRITE_OPTIONS) => {\n var _a;\n if (lang_1.default.isString(options))\n return writeFileAsync(filePath, data, { encoding: options });\n const timeout = Date.now() + ((_a = options.timeout) !== null && _a !== void 0 ? _a : consts_1.DEFAULT_TIMEOUT_ASYNC);\n let schedulerCustomDisposer = null, schedulerDisposer = null, tempDisposer = null, tempPath = null, fd = null;\n try {\n if (options.schedule)\n schedulerCustomDisposer = await options.schedule(filePath);\n schedulerDisposer = await scheduler_1.default.schedule(filePath);\n filePath = await fs_1.default.realpathAttempt(filePath) || filePath;\n [tempPath, tempDisposer] = temp_1.default.get(filePath, options.tmpCreate || temp_1.default.create, !(options.tmpPurge === false));\n const useStatChown = consts_1.IS_POSIX && lang_1.default.isUndefined(options.chown), useStatMode = lang_1.default.isUndefined(options.mode);\n if (useStatChown || useStatMode) {\n const stat = await fs_1.default.statAttempt(filePath);\n if (stat) {\n options = { ...options };\n if (useStatChown)\n options.chown = { uid: stat.uid, gid: stat.gid };\n if (useStatMode)\n options.mode = stat.mode;\n }\n }\n const parentPath = path.dirname(filePath);\n await fs_1.default.mkdirAttempt(parentPath, {\n mode: consts_1.DEFAULT_FOLDER_MODE,\n recursive: true\n });\n fd = await fs_1.default.openRetry(timeout)(tempPath, 'w', options.mode || consts_1.DEFAULT_FILE_MODE);\n if (options.tmpCreated)\n options.tmpCreated(tempPath);\n if (lang_1.default.isString(data)) {\n await fs_1.default.writeRetry(timeout)(fd, data, 0, options.encoding || consts_1.DEFAULT_ENCODING);\n }\n else if (!lang_1.default.isUndefined(data)) {\n await fs_1.default.writeRetry(timeout)(fd, data, 0, data.length, 0);\n }\n if (options.fsync !== false) {\n if (options.fsyncWait !== false) {\n await fs_1.default.fsyncRetry(timeout)(fd);\n }\n else {\n fs_1.default.fsyncAttempt(fd);\n }\n }\n await fs_1.default.closeRetry(timeout)(fd);\n fd = null;\n if (options.chown)\n await fs_1.default.chownAttempt(tempPath, options.chown.uid, options.chown.gid);\n if (options.mode)\n await fs_1.default.chmodAttempt(tempPath, options.mode);\n try {\n await fs_1.default.renameRetry(timeout)(tempPath, filePath);\n }\n catch (error) {\n if (error.code !== 'ENAMETOOLONG')\n throw error;\n await fs_1.default.renameRetry(timeout)(tempPath, temp_1.default.truncate(filePath));\n }\n tempDisposer();\n tempPath = null;\n }\n finally {\n if (fd)\n await fs_1.default.closeAttempt(fd);\n if (tempPath)\n temp_1.default.purge(tempPath);\n if (schedulerCustomDisposer)\n schedulerCustomDisposer();\n if (schedulerDisposer)\n schedulerDisposer();\n }\n};\nconst writeFileSync = (filePath, data, options = consts_1.DEFAULT_WRITE_OPTIONS) => {\n var _a;\n if (lang_1.default.isString(options))\n return writeFileSync(filePath, data, { encoding: options });\n const timeout = Date.now() + ((_a = options.timeout) !== null && _a !== void 0 ? _a : consts_1.DEFAULT_TIMEOUT_SYNC);\n let tempDisposer = null, tempPath = null, fd = null;\n try {\n filePath = fs_1.default.realpathSyncAttempt(filePath) || filePath;\n [tempPath, tempDisposer] = temp_1.default.get(filePath, options.tmpCreate || temp_1.default.create, !(options.tmpPurge === false));\n const useStatChown = consts_1.IS_POSIX && lang_1.default.isUndefined(options.chown), useStatMode = lang_1.default.isUndefined(options.mode);\n if (useStatChown || useStatMode) {\n const stat = fs_1.default.statSyncAttempt(filePath);\n if (stat) {\n options = { ...options };\n if (useStatChown)\n options.chown = { uid: stat.uid, gid: stat.gid };\n if (useStatMode)\n options.mode = stat.mode;\n }\n }\n const parentPath = path.dirname(filePath);\n fs_1.default.mkdirSyncAttempt(parentPath, {\n mode: consts_1.DEFAULT_FOLDER_MODE,\n recursive: true\n });\n fd = fs_1.default.openSyncRetry(timeout)(tempPath, 'w', options.mode || consts_1.DEFAULT_FILE_MODE);\n if (options.tmpCreated)\n options.tmpCreated(tempPath);\n if (lang_1.default.isString(data)) {\n fs_1.default.writeSyncRetry(timeout)(fd, data, 0, options.encoding || consts_1.DEFAULT_ENCODING);\n }\n else if (!lang_1.default.isUndefined(data)) {\n fs_1.default.writeSyncRetry(timeout)(fd, data, 0, data.length, 0);\n }\n if (options.fsync !== false) {\n if (options.fsyncWait !== false) {\n fs_1.default.fsyncSyncRetry(timeout)(fd);\n }\n else {\n fs_1.default.fsyncAttempt(fd);\n }\n }\n fs_1.default.closeSyncRetry(timeout)(fd);\n fd = null;\n if (options.chown)\n fs_1.default.chownSyncAttempt(tempPath, options.chown.uid, options.chown.gid);\n if (options.mode)\n fs_1.default.chmodSyncAttempt(tempPath, options.mode);\n try {\n fs_1.default.renameSyncRetry(timeout)(tempPath, filePath);\n }\n catch (error) {\n if (error.code !== 'ENAMETOOLONG')\n throw error;\n fs_1.default.renameSyncRetry(timeout)(tempPath, temp_1.default.truncate(filePath));\n }\n tempDisposer();\n tempPath = null;\n }\n finally {\n if (fd)\n fs_1.default.closeSyncAttempt(fd);\n if (tempPath)\n temp_1.default.purge(tempPath);\n }\n};\nexports.writeFileSync = writeFileSync;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/index.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/attemptify.js": -/*!**********************************************************!*\ - !*** ./node_modules/atomically/dist/utils/attemptify.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.attemptifySync = exports.attemptifyAsync = void 0;\nconst consts_1 = __webpack_require__(/*! ../consts */ \"./node_modules/atomically/dist/consts.js\");\n/* ATTEMPTIFY */\n//TODO: Maybe publish this as a standalone package\n//FIXME: The type castings here aren't exactly correct\nconst attemptifyAsync = (fn, onError = consts_1.NOOP) => {\n return function () {\n return fn.apply(undefined, arguments).catch(onError);\n };\n};\nexports.attemptifyAsync = attemptifyAsync;\nconst attemptifySync = (fn, onError = consts_1.NOOP) => {\n return function () {\n try {\n return fn.apply(undefined, arguments);\n }\n catch (error) {\n return onError(error);\n }\n };\n};\nexports.attemptifySync = attemptifySync;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/attemptify.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/fs.js": -/*!**************************************************!*\ - !*** ./node_modules/atomically/dist/utils/fs.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst util_1 = __webpack_require__(/*! util */ \"util\");\nconst attemptify_1 = __webpack_require__(/*! ./attemptify */ \"./node_modules/atomically/dist/utils/attemptify.js\");\nconst fs_handlers_1 = __webpack_require__(/*! ./fs_handlers */ \"./node_modules/atomically/dist/utils/fs_handlers.js\");\nconst retryify_1 = __webpack_require__(/*! ./retryify */ \"./node_modules/atomically/dist/utils/retryify.js\");\n/* FS */\nconst FS = {\n chmodAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.chmod), fs_handlers_1.default.onChangeError),\n chownAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.chown), fs_handlers_1.default.onChangeError),\n closeAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.close)),\n fsyncAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.fsync)),\n mkdirAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.mkdir)),\n realpathAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.realpath)),\n statAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.stat)),\n unlinkAttempt: attemptify_1.attemptifyAsync(util_1.promisify(fs.unlink)),\n closeRetry: retryify_1.retryifyAsync(util_1.promisify(fs.close), fs_handlers_1.default.isRetriableError),\n fsyncRetry: retryify_1.retryifyAsync(util_1.promisify(fs.fsync), fs_handlers_1.default.isRetriableError),\n openRetry: retryify_1.retryifyAsync(util_1.promisify(fs.open), fs_handlers_1.default.isRetriableError),\n readFileRetry: retryify_1.retryifyAsync(util_1.promisify(fs.readFile), fs_handlers_1.default.isRetriableError),\n renameRetry: retryify_1.retryifyAsync(util_1.promisify(fs.rename), fs_handlers_1.default.isRetriableError),\n statRetry: retryify_1.retryifyAsync(util_1.promisify(fs.stat), fs_handlers_1.default.isRetriableError),\n writeRetry: retryify_1.retryifyAsync(util_1.promisify(fs.write), fs_handlers_1.default.isRetriableError),\n chmodSyncAttempt: attemptify_1.attemptifySync(fs.chmodSync, fs_handlers_1.default.onChangeError),\n chownSyncAttempt: attemptify_1.attemptifySync(fs.chownSync, fs_handlers_1.default.onChangeError),\n closeSyncAttempt: attemptify_1.attemptifySync(fs.closeSync),\n mkdirSyncAttempt: attemptify_1.attemptifySync(fs.mkdirSync),\n realpathSyncAttempt: attemptify_1.attemptifySync(fs.realpathSync),\n statSyncAttempt: attemptify_1.attemptifySync(fs.statSync),\n unlinkSyncAttempt: attemptify_1.attemptifySync(fs.unlinkSync),\n closeSyncRetry: retryify_1.retryifySync(fs.closeSync, fs_handlers_1.default.isRetriableError),\n fsyncSyncRetry: retryify_1.retryifySync(fs.fsyncSync, fs_handlers_1.default.isRetriableError),\n openSyncRetry: retryify_1.retryifySync(fs.openSync, fs_handlers_1.default.isRetriableError),\n readFileSyncRetry: retryify_1.retryifySync(fs.readFileSync, fs_handlers_1.default.isRetriableError),\n renameSyncRetry: retryify_1.retryifySync(fs.renameSync, fs_handlers_1.default.isRetriableError),\n statSyncRetry: retryify_1.retryifySync(fs.statSync, fs_handlers_1.default.isRetriableError),\n writeSyncRetry: retryify_1.retryifySync(fs.writeSync, fs_handlers_1.default.isRetriableError)\n};\n/* EXPORT */\nexports[\"default\"] = FS;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/fs.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/fs_handlers.js": -/*!***********************************************************!*\ - !*** ./node_modules/atomically/dist/utils/fs_handlers.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst consts_1 = __webpack_require__(/*! ../consts */ \"./node_modules/atomically/dist/consts.js\");\n/* FS HANDLERS */\nconst Handlers = {\n isChangeErrorOk: (error) => {\n const { code } = error;\n if (code === 'ENOSYS')\n return true;\n if (!consts_1.IS_USER_ROOT && (code === 'EINVAL' || code === 'EPERM'))\n return true;\n return false;\n },\n isRetriableError: (error) => {\n const { code } = error;\n if (code === 'EMFILE' || code === 'ENFILE' || code === 'EAGAIN' || code === 'EBUSY' || code === 'EACCESS' || code === 'EACCS' || code === 'EPERM')\n return true;\n return false;\n },\n onChangeError: (error) => {\n if (Handlers.isChangeErrorOk(error))\n return;\n throw error;\n }\n};\n/* EXPORT */\nexports[\"default\"] = Handlers;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/fs_handlers.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/lang.js": -/*!****************************************************!*\ - !*** ./node_modules/atomically/dist/utils/lang.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\n/* LANG */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst Lang = {\n isFunction: (x) => {\n return typeof x === 'function';\n },\n isString: (x) => {\n return typeof x === 'string';\n },\n isUndefined: (x) => {\n return typeof x === 'undefined';\n }\n};\n/* EXPORT */\nexports[\"default\"] = Lang;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/lang.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/retryify.js": -/*!********************************************************!*\ - !*** ./node_modules/atomically/dist/utils/retryify.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.retryifySync = exports.retryifyAsync = void 0;\nconst retryify_queue_1 = __webpack_require__(/*! ./retryify_queue */ \"./node_modules/atomically/dist/utils/retryify_queue.js\");\n/* RETRYIFY */\nconst retryifyAsync = (fn, isRetriableError) => {\n return function (timestamp) {\n return function attempt() {\n return retryify_queue_1.default.schedule().then(cleanup => {\n return fn.apply(undefined, arguments).then(result => {\n cleanup();\n return result;\n }, error => {\n cleanup();\n if (Date.now() >= timestamp)\n throw error;\n if (isRetriableError(error)) {\n const delay = Math.round(100 + (400 * Math.random())), delayPromise = new Promise(resolve => setTimeout(resolve, delay));\n return delayPromise.then(() => attempt.apply(undefined, arguments));\n }\n throw error;\n });\n });\n };\n };\n};\nexports.retryifyAsync = retryifyAsync;\nconst retryifySync = (fn, isRetriableError) => {\n return function (timestamp) {\n return function attempt() {\n try {\n return fn.apply(undefined, arguments);\n }\n catch (error) {\n if (Date.now() > timestamp)\n throw error;\n if (isRetriableError(error))\n return attempt.apply(undefined, arguments);\n throw error;\n }\n };\n };\n};\nexports.retryifySync = retryifySync;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/retryify.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/retryify_queue.js": -/*!**************************************************************!*\ - !*** ./node_modules/atomically/dist/utils/retryify_queue.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst consts_1 = __webpack_require__(/*! ../consts */ \"./node_modules/atomically/dist/consts.js\");\n/* RETRYIFY QUEUE */\nconst RetryfyQueue = {\n interval: 25,\n intervalId: undefined,\n limit: consts_1.LIMIT_FILES_DESCRIPTORS,\n queueActive: new Set(),\n queueWaiting: new Set(),\n init: () => {\n if (RetryfyQueue.intervalId)\n return;\n RetryfyQueue.intervalId = setInterval(RetryfyQueue.tick, RetryfyQueue.interval);\n },\n reset: () => {\n if (!RetryfyQueue.intervalId)\n return;\n clearInterval(RetryfyQueue.intervalId);\n delete RetryfyQueue.intervalId;\n },\n add: (fn) => {\n RetryfyQueue.queueWaiting.add(fn);\n if (RetryfyQueue.queueActive.size < (RetryfyQueue.limit / 2)) { // Active queue not under preassure, executing immediately\n RetryfyQueue.tick();\n }\n else {\n RetryfyQueue.init();\n }\n },\n remove: (fn) => {\n RetryfyQueue.queueWaiting.delete(fn);\n RetryfyQueue.queueActive.delete(fn);\n },\n schedule: () => {\n return new Promise(resolve => {\n const cleanup = () => RetryfyQueue.remove(resolver);\n const resolver = () => resolve(cleanup);\n RetryfyQueue.add(resolver);\n });\n },\n tick: () => {\n if (RetryfyQueue.queueActive.size >= RetryfyQueue.limit)\n return;\n if (!RetryfyQueue.queueWaiting.size)\n return RetryfyQueue.reset();\n for (const fn of RetryfyQueue.queueWaiting) {\n if (RetryfyQueue.queueActive.size >= RetryfyQueue.limit)\n break;\n RetryfyQueue.queueWaiting.delete(fn);\n RetryfyQueue.queueActive.add(fn);\n fn();\n }\n }\n};\n/* EXPORT */\nexports[\"default\"] = RetryfyQueue;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/retryify_queue.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/scheduler.js": -/*!*********************************************************!*\ - !*** ./node_modules/atomically/dist/utils/scheduler.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n/* VARIABLES */\nconst Queues = {};\n/* SCHEDULER */\n//TODO: Maybe publish this as a standalone package\nconst Scheduler = {\n next: (id) => {\n const queue = Queues[id];\n if (!queue)\n return;\n queue.shift();\n const job = queue[0];\n if (job) {\n job(() => Scheduler.next(id));\n }\n else {\n delete Queues[id];\n }\n },\n schedule: (id) => {\n return new Promise(resolve => {\n let queue = Queues[id];\n if (!queue)\n queue = Queues[id] = [];\n queue.push(resolve);\n if (queue.length > 1)\n return;\n resolve(() => Scheduler.next(id));\n });\n }\n};\n/* EXPORT */\nexports[\"default\"] = Scheduler;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/scheduler.js?"); - -/***/ }), - -/***/ "./node_modules/atomically/dist/utils/temp.js": -/*!****************************************************!*\ - !*** ./node_modules/atomically/dist/utils/temp.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst path = __webpack_require__(/*! path */ \"path\");\nconst consts_1 = __webpack_require__(/*! ../consts */ \"./node_modules/atomically/dist/consts.js\");\nconst fs_1 = __webpack_require__(/*! ./fs */ \"./node_modules/atomically/dist/utils/fs.js\");\n/* TEMP */\n//TODO: Maybe publish this as a standalone package\nconst Temp = {\n store: {},\n create: (filePath) => {\n const randomness = `000000${Math.floor(Math.random() * 16777215).toString(16)}`.slice(-6), // 6 random-enough hex characters\n timestamp = Date.now().toString().slice(-10), // 10 precise timestamp digits\n prefix = 'tmp-', suffix = `.${prefix}${timestamp}${randomness}`, tempPath = `${filePath}${suffix}`;\n return tempPath;\n },\n get: (filePath, creator, purge = true) => {\n const tempPath = Temp.truncate(creator(filePath));\n if (tempPath in Temp.store)\n return Temp.get(filePath, creator, purge); // Collision found, try again\n Temp.store[tempPath] = purge;\n const disposer = () => delete Temp.store[tempPath];\n return [tempPath, disposer];\n },\n purge: (filePath) => {\n if (!Temp.store[filePath])\n return;\n delete Temp.store[filePath];\n fs_1.default.unlinkAttempt(filePath);\n },\n purgeSync: (filePath) => {\n if (!Temp.store[filePath])\n return;\n delete Temp.store[filePath];\n fs_1.default.unlinkSyncAttempt(filePath);\n },\n purgeSyncAll: () => {\n for (const filePath in Temp.store) {\n Temp.purgeSync(filePath);\n }\n },\n truncate: (filePath) => {\n const basename = path.basename(filePath);\n if (basename.length <= consts_1.LIMIT_BASENAME_LENGTH)\n return filePath; //FIXME: Rough and quick attempt at detecting ok lengths\n const truncable = /^(\\.?)(.*?)((?:\\.[^.]+)?(?:\\.tmp-\\d{10}[a-f0-9]{6})?)$/.exec(basename);\n if (!truncable)\n return filePath; //FIXME: No truncable part detected, can't really do much without also changing the parent path, which is unsafe, hoping for the best here\n const truncationLength = basename.length - consts_1.LIMIT_BASENAME_LENGTH;\n return `${filePath.slice(0, -basename.length)}${truncable[1]}${truncable[2].slice(0, -truncationLength)}${truncable[3]}`; //FIXME: The truncable part might be shorter than needed here\n }\n};\n/* INIT */\nprocess.on('exit', Temp.purgeSyncAll); // Ensuring purgeable temp files are purged on exit\n/* EXPORT */\nexports[\"default\"] = Temp;\n\n\n//# sourceURL=webpack://main/./node_modules/atomically/dist/utils/temp.js?"); - -/***/ }), - -/***/ "./node_modules/conf/dist/source/index.js": -/*!************************************************!*\ - !*** ./node_modules/conf/dist/source/index.js ***! - \************************************************/ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("/* module decorator */ module = __webpack_require__.nmd(module);\n\nvar __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n};\nvar __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar _a, _b;\nvar _Conf_validator, _Conf_encryptionKey, _Conf_options, _Conf_defaultValues;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst util_1 = __webpack_require__(/*! util */ \"util\");\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst crypto = __webpack_require__(/*! crypto */ \"crypto\");\nconst assert = __webpack_require__(/*! assert */ \"assert\");\nconst events_1 = __webpack_require__(/*! events */ \"events\");\nconst dotProp = __webpack_require__(/*! dot-prop */ \"./node_modules/dot-prop/index.js\");\nconst pkgUp = __webpack_require__(/*! pkg-up */ \"./node_modules/pkg-up/index.js\");\nconst envPaths = __webpack_require__(/*! env-paths */ \"./node_modules/env-paths/index.js\");\nconst atomically = __webpack_require__(/*! atomically */ \"./node_modules/atomically/dist/index.js\");\nconst ajv_1 = __webpack_require__(/*! ajv */ \"./node_modules/conf/node_modules/ajv/dist/ajv.js\");\nconst ajv_formats_1 = __webpack_require__(/*! ajv-formats */ \"./node_modules/conf/node_modules/ajv-formats/dist/index.js\");\nconst debounceFn = __webpack_require__(/*! debounce-fn */ \"./node_modules/debounce-fn/index.js\");\nconst semver = __webpack_require__(/*! semver */ \"./node_modules/semver/index.js\");\nconst onetime = __webpack_require__(/*! onetime */ \"./node_modules/onetime/index.js\");\nconst encryptionAlgorithm = 'aes-256-cbc';\nconst createPlainObject = () => {\n return Object.create(null);\n};\nconst isExist = (data) => {\n return data !== undefined && data !== null;\n};\nlet parentDir = '';\ntry {\n // Prevent caching of this module so module.parent is always accurate.\n // Note: This trick won't work with ESM or inside a webworker\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete __webpack_require__.c[__filename];\n parentDir = path.dirname((_b = (_a = module.parent) === null || _a === void 0 ? void 0 : _a.filename) !== null && _b !== void 0 ? _b : '.');\n}\ncatch (_c) { }\nconst checkValueType = (key, value) => {\n const nonJsonTypes = new Set([\n 'undefined',\n 'symbol',\n 'function'\n ]);\n const type = typeof value;\n if (nonJsonTypes.has(type)) {\n throw new TypeError(`Setting a value of type \\`${type}\\` for key \\`${key}\\` is not allowed as it's not supported by JSON`);\n }\n};\nconst INTERNAL_KEY = '__internal__';\nconst MIGRATION_KEY = `${INTERNAL_KEY}.migrations.version`;\nclass Conf {\n constructor(partialOptions = {}) {\n var _a;\n _Conf_validator.set(this, void 0);\n _Conf_encryptionKey.set(this, void 0);\n _Conf_options.set(this, void 0);\n _Conf_defaultValues.set(this, {});\n this._deserialize = value => JSON.parse(value);\n this._serialize = value => JSON.stringify(value, undefined, '\\t');\n const options = {\n configName: 'config',\n fileExtension: 'json',\n projectSuffix: 'nodejs',\n clearInvalidConfig: false,\n accessPropertiesByDotNotation: true,\n configFileMode: 0o666,\n ...partialOptions\n };\n const getPackageData = onetime(() => {\n const packagePath = pkgUp.sync({ cwd: parentDir });\n // Can't use `require` because of Webpack being annoying:\n // https://github.com/webpack/webpack/issues/196\n const packageData = packagePath && JSON.parse(fs.readFileSync(packagePath, 'utf8'));\n return packageData !== null && packageData !== void 0 ? packageData : {};\n });\n if (!options.cwd) {\n if (!options.projectName) {\n options.projectName = getPackageData().name;\n }\n if (!options.projectName) {\n throw new Error('Project name could not be inferred. Please specify the `projectName` option.');\n }\n options.cwd = envPaths(options.projectName, { suffix: options.projectSuffix }).config;\n }\n __classPrivateFieldSet(this, _Conf_options, options, \"f\");\n if (options.schema) {\n if (typeof options.schema !== 'object') {\n throw new TypeError('The `schema` option must be an object.');\n }\n const ajv = new ajv_1.default({\n allErrors: true,\n useDefaults: true\n });\n (0, ajv_formats_1.default)(ajv);\n const schema = {\n type: 'object',\n properties: options.schema\n };\n __classPrivateFieldSet(this, _Conf_validator, ajv.compile(schema), \"f\");\n for (const [key, value] of Object.entries(options.schema)) {\n if (value === null || value === void 0 ? void 0 : value.default) {\n __classPrivateFieldGet(this, _Conf_defaultValues, \"f\")[key] = value.default;\n }\n }\n }\n if (options.defaults) {\n __classPrivateFieldSet(this, _Conf_defaultValues, {\n ...__classPrivateFieldGet(this, _Conf_defaultValues, \"f\"),\n ...options.defaults\n }, \"f\");\n }\n if (options.serialize) {\n this._serialize = options.serialize;\n }\n if (options.deserialize) {\n this._deserialize = options.deserialize;\n }\n this.events = new events_1.EventEmitter();\n __classPrivateFieldSet(this, _Conf_encryptionKey, options.encryptionKey, \"f\");\n const fileExtension = options.fileExtension ? `.${options.fileExtension}` : '';\n this.path = path.resolve(options.cwd, `${(_a = options.configName) !== null && _a !== void 0 ? _a : 'config'}${fileExtension}`);\n const fileStore = this.store;\n const store = Object.assign(createPlainObject(), options.defaults, fileStore);\n this._validate(store);\n try {\n assert.deepEqual(fileStore, store);\n }\n catch (_b) {\n this.store = store;\n }\n if (options.watch) {\n this._watch();\n }\n if (options.migrations) {\n if (!options.projectVersion) {\n options.projectVersion = getPackageData().version;\n }\n if (!options.projectVersion) {\n throw new Error('Project version could not be inferred. Please specify the `projectVersion` option.');\n }\n this._migrate(options.migrations, options.projectVersion, options.beforeEachMigration);\n }\n }\n get(key, defaultValue) {\n if (__classPrivateFieldGet(this, _Conf_options, \"f\").accessPropertiesByDotNotation) {\n return this._get(key, defaultValue);\n }\n const { store } = this;\n return key in store ? store[key] : defaultValue;\n }\n set(key, value) {\n if (typeof key !== 'string' && typeof key !== 'object') {\n throw new TypeError(`Expected \\`key\\` to be of type \\`string\\` or \\`object\\`, got ${typeof key}`);\n }\n if (typeof key !== 'object' && value === undefined) {\n throw new TypeError('Use `delete()` to clear values');\n }\n if (this._containsReservedKey(key)) {\n throw new TypeError(`Please don't use the ${INTERNAL_KEY} key, as it's used to manage this module internal operations.`);\n }\n const { store } = this;\n const set = (key, value) => {\n checkValueType(key, value);\n if (__classPrivateFieldGet(this, _Conf_options, \"f\").accessPropertiesByDotNotation) {\n dotProp.set(store, key, value);\n }\n else {\n store[key] = value;\n }\n };\n if (typeof key === 'object') {\n const object = key;\n for (const [key, value] of Object.entries(object)) {\n set(key, value);\n }\n }\n else {\n set(key, value);\n }\n this.store = store;\n }\n /**\n Check if an item exists.\n\n @param key - The key of the item to check.\n */\n has(key) {\n if (__classPrivateFieldGet(this, _Conf_options, \"f\").accessPropertiesByDotNotation) {\n return dotProp.has(this.store, key);\n }\n return key in this.store;\n }\n /**\n Reset items to their default values, as defined by the `defaults` or `schema` option.\n\n @see `clear()` to reset all items.\n\n @param keys - The keys of the items to reset.\n */\n reset(...keys) {\n for (const key of keys) {\n if (isExist(__classPrivateFieldGet(this, _Conf_defaultValues, \"f\")[key])) {\n this.set(key, __classPrivateFieldGet(this, _Conf_defaultValues, \"f\")[key]);\n }\n }\n }\n /**\n Delete an item.\n\n @param key - The key of the item to delete.\n */\n delete(key) {\n const { store } = this;\n if (__classPrivateFieldGet(this, _Conf_options, \"f\").accessPropertiesByDotNotation) {\n dotProp.delete(store, key);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete store[key];\n }\n this.store = store;\n }\n /**\n Delete all items.\n\n This resets known items to their default values, if defined by the `defaults` or `schema` option.\n */\n clear() {\n this.store = createPlainObject();\n for (const key of Object.keys(__classPrivateFieldGet(this, _Conf_defaultValues, \"f\"))) {\n this.reset(key);\n }\n }\n /**\n Watches the given `key`, calling `callback` on any changes.\n\n @param key - The key wo watch.\n @param callback - A callback function that is called on any changes. When a `key` is first set `oldValue` will be `undefined`, and when a key is deleted `newValue` will be `undefined`.\n @returns A function, that when called, will unsubscribe.\n */\n onDidChange(key, callback) {\n if (typeof key !== 'string') {\n throw new TypeError(`Expected \\`key\\` to be of type \\`string\\`, got ${typeof key}`);\n }\n if (typeof callback !== 'function') {\n throw new TypeError(`Expected \\`callback\\` to be of type \\`function\\`, got ${typeof callback}`);\n }\n return this._handleChange(() => this.get(key), callback);\n }\n /**\n Watches the whole config object, calling `callback` on any changes.\n\n @param callback - A callback function that is called on any changes. When a `key` is first set `oldValue` will be `undefined`, and when a key is deleted `newValue` will be `undefined`.\n @returns A function, that when called, will unsubscribe.\n */\n onDidAnyChange(callback) {\n if (typeof callback !== 'function') {\n throw new TypeError(`Expected \\`callback\\` to be of type \\`function\\`, got ${typeof callback}`);\n }\n return this._handleChange(() => this.store, callback);\n }\n get size() {\n return Object.keys(this.store).length;\n }\n get store() {\n try {\n const data = fs.readFileSync(this.path, __classPrivateFieldGet(this, _Conf_encryptionKey, \"f\") ? null : 'utf8');\n const dataString = this._encryptData(data);\n const deserializedData = this._deserialize(dataString);\n this._validate(deserializedData);\n return Object.assign(createPlainObject(), deserializedData);\n }\n catch (error) {\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ENOENT') {\n this._ensureDirectory();\n return createPlainObject();\n }\n if (__classPrivateFieldGet(this, _Conf_options, \"f\").clearInvalidConfig && error.name === 'SyntaxError') {\n return createPlainObject();\n }\n throw error;\n }\n }\n set store(value) {\n this._ensureDirectory();\n this._validate(value);\n this._write(value);\n this.events.emit('change');\n }\n *[(_Conf_validator = new WeakMap(), _Conf_encryptionKey = new WeakMap(), _Conf_options = new WeakMap(), _Conf_defaultValues = new WeakMap(), Symbol.iterator)]() {\n for (const [key, value] of Object.entries(this.store)) {\n yield [key, value];\n }\n }\n _encryptData(data) {\n if (!__classPrivateFieldGet(this, _Conf_encryptionKey, \"f\")) {\n return data.toString();\n }\n try {\n // Check if an initialization vector has been used to encrypt the data\n if (__classPrivateFieldGet(this, _Conf_encryptionKey, \"f\")) {\n try {\n if (data.slice(16, 17).toString() === ':') {\n const initializationVector = data.slice(0, 16);\n const password = crypto.pbkdf2Sync(__classPrivateFieldGet(this, _Conf_encryptionKey, \"f\"), initializationVector.toString(), 10000, 32, 'sha512');\n const decipher = crypto.createDecipheriv(encryptionAlgorithm, password, initializationVector);\n data = Buffer.concat([decipher.update(Buffer.from(data.slice(17))), decipher.final()]).toString('utf8');\n }\n else {\n // TODO: Remove this in the next major version.\n const decipher = crypto.createDecipher(encryptionAlgorithm, __classPrivateFieldGet(this, _Conf_encryptionKey, \"f\"));\n data = Buffer.concat([decipher.update(Buffer.from(data)), decipher.final()]).toString('utf8');\n }\n }\n catch (_a) { }\n }\n }\n catch (_b) { }\n return data.toString();\n }\n _handleChange(getter, callback) {\n let currentValue = getter();\n const onChange = () => {\n const oldValue = currentValue;\n const newValue = getter();\n if ((0, util_1.isDeepStrictEqual)(newValue, oldValue)) {\n return;\n }\n currentValue = newValue;\n callback.call(this, newValue, oldValue);\n };\n this.events.on('change', onChange);\n return () => this.events.removeListener('change', onChange);\n }\n _validate(data) {\n if (!__classPrivateFieldGet(this, _Conf_validator, \"f\")) {\n return;\n }\n const valid = __classPrivateFieldGet(this, _Conf_validator, \"f\").call(this, data);\n if (valid || !__classPrivateFieldGet(this, _Conf_validator, \"f\").errors) {\n return;\n }\n const errors = __classPrivateFieldGet(this, _Conf_validator, \"f\").errors\n .map(({ instancePath, message = '' }) => `\\`${instancePath.slice(1)}\\` ${message}`);\n throw new Error('Config schema violation: ' + errors.join('; '));\n }\n _ensureDirectory() {\n // Ensure the directory exists as it could have been deleted in the meantime.\n fs.mkdirSync(path.dirname(this.path), { recursive: true });\n }\n _write(value) {\n let data = this._serialize(value);\n if (__classPrivateFieldGet(this, _Conf_encryptionKey, \"f\")) {\n const initializationVector = crypto.randomBytes(16);\n const password = crypto.pbkdf2Sync(__classPrivateFieldGet(this, _Conf_encryptionKey, \"f\"), initializationVector.toString(), 10000, 32, 'sha512');\n const cipher = crypto.createCipheriv(encryptionAlgorithm, password, initializationVector);\n data = Buffer.concat([initializationVector, Buffer.from(':'), cipher.update(Buffer.from(data)), cipher.final()]);\n }\n // Temporary workaround for Conf being packaged in a Ubuntu Snap app.\n // See https://github.com/sindresorhus/conf/pull/82\n if (process.env.SNAP) {\n fs.writeFileSync(this.path, data, { mode: __classPrivateFieldGet(this, _Conf_options, \"f\").configFileMode });\n }\n else {\n try {\n atomically.writeFileSync(this.path, data, { mode: __classPrivateFieldGet(this, _Conf_options, \"f\").configFileMode });\n }\n catch (error) {\n // Fix for https://github.com/sindresorhus/electron-store/issues/106\n // Sometimes on Windows, we will get an EXDEV error when atomic writing\n // (even though to the same directory), so we fall back to non atomic write\n if ((error === null || error === void 0 ? void 0 : error.code) === 'EXDEV') {\n fs.writeFileSync(this.path, data, { mode: __classPrivateFieldGet(this, _Conf_options, \"f\").configFileMode });\n return;\n }\n throw error;\n }\n }\n }\n _watch() {\n this._ensureDirectory();\n if (!fs.existsSync(this.path)) {\n this._write(createPlainObject());\n }\n if (process.platform === 'win32') {\n fs.watch(this.path, { persistent: false }, debounceFn(() => {\n // On Linux and Windows, writing to the config file emits a `rename` event, so we skip checking the event type.\n this.events.emit('change');\n }, { wait: 100 }));\n }\n else {\n fs.watchFile(this.path, { persistent: false }, debounceFn(() => {\n this.events.emit('change');\n }, { wait: 5000 }));\n }\n }\n _migrate(migrations, versionToMigrate, beforeEachMigration) {\n let previousMigratedVersion = this._get(MIGRATION_KEY, '0.0.0');\n const newerVersions = Object.keys(migrations)\n .filter(candidateVersion => this._shouldPerformMigration(candidateVersion, previousMigratedVersion, versionToMigrate));\n let storeBackup = { ...this.store };\n for (const version of newerVersions) {\n try {\n if (beforeEachMigration) {\n beforeEachMigration(this, {\n fromVersion: previousMigratedVersion,\n toVersion: version,\n finalVersion: versionToMigrate,\n versions: newerVersions\n });\n }\n const migration = migrations[version];\n migration(this);\n this._set(MIGRATION_KEY, version);\n previousMigratedVersion = version;\n storeBackup = { ...this.store };\n }\n catch (error) {\n this.store = storeBackup;\n throw new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${error}`);\n }\n }\n if (this._isVersionInRangeFormat(previousMigratedVersion) || !semver.eq(previousMigratedVersion, versionToMigrate)) {\n this._set(MIGRATION_KEY, versionToMigrate);\n }\n }\n _containsReservedKey(key) {\n if (typeof key === 'object') {\n const firsKey = Object.keys(key)[0];\n if (firsKey === INTERNAL_KEY) {\n return true;\n }\n }\n if (typeof key !== 'string') {\n return false;\n }\n if (__classPrivateFieldGet(this, _Conf_options, \"f\").accessPropertiesByDotNotation) {\n if (key.startsWith(`${INTERNAL_KEY}.`)) {\n return true;\n }\n return false;\n }\n return false;\n }\n _isVersionInRangeFormat(version) {\n return semver.clean(version) === null;\n }\n _shouldPerformMigration(candidateVersion, previousMigratedVersion, versionToMigrate) {\n if (this._isVersionInRangeFormat(candidateVersion)) {\n if (previousMigratedVersion !== '0.0.0' && semver.satisfies(previousMigratedVersion, candidateVersion)) {\n return false;\n }\n return semver.satisfies(versionToMigrate, candidateVersion);\n }\n if (semver.lte(candidateVersion, previousMigratedVersion)) {\n return false;\n }\n if (semver.gt(candidateVersion, versionToMigrate)) {\n return false;\n }\n return true;\n }\n _get(key, defaultValue) {\n return dotProp.get(this.store, key, defaultValue);\n }\n _set(key, value) {\n const { store } = this;\n dotProp.set(store, key, value);\n this.store = store;\n }\n}\nexports[\"default\"] = Conf;\n// For CommonJS default export support\nmodule.exports = Conf;\nmodule.exports[\"default\"] = Conf;\n\n\n//# sourceURL=webpack://main/./node_modules/conf/dist/source/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv-formats/dist/formats.js": -/*!********************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv-formats/dist/formats.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.formatNames = exports.fastFormats = exports.fullFormats = void 0;\nfunction fmtDef(validate, compare) {\n return { validate, compare };\n}\nexports.fullFormats = {\n // date: http://tools.ietf.org/html/rfc3339#section-5.6\n date: fmtDef(date, compareDate),\n // date-time: http://tools.ietf.org/html/rfc3339#section-5.6\n time: fmtDef(time, compareTime),\n \"date-time\": fmtDef(date_time, compareDateTime),\n // duration: https://tools.ietf.org/html/rfc3339#appendix-A\n duration: /^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/,\n uri,\n \"uri-reference\": /^(?:[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,\n // uri-template: https://tools.ietf.org/html/rfc6570\n \"uri-template\": /^(?:(?:[^\\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,\n // For the source: https://gist.github.com/dperini/729294\n // For test cases: https://mathiasbynens.be/demo/url-regex\n url: /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|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-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,\n email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n 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,\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n 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,\n regex,\n // uuid: http://tools.ietf.org/html/rfc4122\n uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n // JSON-pointer: https://tools.ietf.org/html/rfc6901\n // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A\n \"json-pointer\": /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n \"json-pointer-uri-fragment\": /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00\n \"relative-json-pointer\": /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n // the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types\n // byte: https://github.com/miguelmota/is-base64\n byte,\n // signed 32 bit integer\n int32: { type: \"number\", validate: validateInt32 },\n // signed 64 bit integer\n int64: { type: \"number\", validate: validateInt64 },\n // C-type float\n float: { type: \"number\", validate: validateNumber },\n // C-type double\n double: { type: \"number\", validate: validateNumber },\n // hint to the UI to hide input strings\n password: true,\n // unchecked string payload\n binary: true,\n};\nexports.fastFormats = {\n ...exports.fullFormats,\n date: fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/, compareDate),\n time: fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareTime),\n \"date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareDateTime),\n // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js\n uri: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n \"uri-reference\": /^(?:(?:[a-z][a-z0-9+\\-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n // email (sources from jsen validator):\n // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363\n // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')\n email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n};\nexports.formatNames = Object.keys(exports.fullFormats);\nfunction isLeapYear(year) {\n // https://tools.ietf.org/html/rfc3339#appendix-C\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nconst DATE = /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/;\nconst DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction date(str) {\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n const matches = DATE.exec(str);\n if (!matches)\n return false;\n const year = +matches[1];\n const month = +matches[2];\n const day = +matches[3];\n return (month >= 1 &&\n month <= 12 &&\n day >= 1 &&\n day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]));\n}\nfunction compareDate(d1, d2) {\n if (!(d1 && d2))\n return undefined;\n if (d1 > d2)\n return 1;\n if (d1 < d2)\n return -1;\n return 0;\n}\nconst TIME = /^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d(?::?\\d\\d)?)?$/i;\nfunction time(str, withTimeZone) {\n const matches = TIME.exec(str);\n if (!matches)\n return false;\n const hour = +matches[1];\n const minute = +matches[2];\n const second = +matches[3];\n const timeZone = matches[5];\n return (((hour <= 23 && minute <= 59 && second <= 59) ||\n (hour === 23 && minute === 59 && second === 60)) &&\n (!withTimeZone || timeZone !== \"\"));\n}\nfunction compareTime(t1, t2) {\n if (!(t1 && t2))\n return undefined;\n const a1 = TIME.exec(t1);\n const a2 = TIME.exec(t2);\n if (!(a1 && a2))\n return undefined;\n t1 = a1[1] + a1[2] + a1[3] + (a1[4] || \"\");\n t2 = a2[1] + a2[2] + a2[3] + (a2[4] || \"\");\n if (t1 > t2)\n return 1;\n if (t1 < t2)\n return -1;\n return 0;\n}\nconst DATE_TIME_SEPARATOR = /t|\\s/i;\nfunction date_time(str) {\n // http://tools.ietf.org/html/rfc3339#section-5.6\n const dateTime = str.split(DATE_TIME_SEPARATOR);\n return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1], true);\n}\nfunction compareDateTime(dt1, dt2) {\n if (!(dt1 && dt2))\n return undefined;\n const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);\n const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);\n const res = compareDate(d1, d2);\n if (res === undefined)\n return undefined;\n return res || compareTime(t1, t2);\n}\nconst NOT_URI_FRAGMENT = /\\/|:/;\nconst URI = /^(?:[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;\nfunction uri(str) {\n // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required \".\"\n return NOT_URI_FRAGMENT.test(str) && URI.test(str);\n}\nconst BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;\nfunction byte(str) {\n BYTE.lastIndex = 0;\n return BYTE.test(str);\n}\nconst MIN_INT32 = -(2 ** 31);\nconst MAX_INT32 = 2 ** 31 - 1;\nfunction validateInt32(value) {\n return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;\n}\nfunction validateInt64(value) {\n // JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64\n return Number.isInteger(value);\n}\nfunction validateNumber() {\n return true;\n}\nconst Z_ANCHOR = /[^\\\\]\\\\Z/;\nfunction regex(str) {\n if (Z_ANCHOR.test(str))\n return false;\n try {\n new RegExp(str);\n return true;\n }\n catch (e) {\n return false;\n }\n}\n//# sourceMappingURL=formats.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv-formats/dist/formats.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv-formats/dist/index.js": -/*!******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv-formats/dist/index.js ***! - \******************************************************************/ -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst formats_1 = __webpack_require__(/*! ./formats */ \"./node_modules/conf/node_modules/ajv-formats/dist/formats.js\");\nconst limit_1 = __webpack_require__(/*! ./limit */ \"./node_modules/conf/node_modules/ajv-formats/dist/limit.js\");\nconst codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst fullName = new codegen_1.Name(\"fullFormats\");\nconst fastName = new codegen_1.Name(\"fastFormats\");\nconst formatsPlugin = (ajv, opts = { keywords: true }) => {\n if (Array.isArray(opts)) {\n addFormats(ajv, opts, formats_1.fullFormats, fullName);\n return ajv;\n }\n const [formats, exportName] = opts.mode === \"fast\" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];\n const list = opts.formats || formats_1.formatNames;\n addFormats(ajv, list, formats, exportName);\n if (opts.keywords)\n limit_1.default(ajv);\n return ajv;\n};\nformatsPlugin.get = (name, mode = \"full\") => {\n const formats = mode === \"fast\" ? formats_1.fastFormats : formats_1.fullFormats;\n const f = formats[name];\n if (!f)\n throw new Error(`Unknown format \"${name}\"`);\n return f;\n};\nfunction addFormats(ajv, list, fs, exportName) {\n var _a;\n var _b;\n (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = codegen_1._ `require(\"ajv-formats/dist/formats\").${exportName}`);\n for (const f of list)\n ajv.addFormat(f, fs[f]);\n}\nmodule.exports = exports = formatsPlugin;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = formatsPlugin;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv-formats/dist/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv-formats/dist/limit.js": -/*!******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv-formats/dist/limit.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.formatLimitDefinition = void 0;\nconst ajv_1 = __webpack_require__(/*! ajv */ \"./node_modules/conf/node_modules/ajv/dist/ajv.js\");\nconst codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst ops = codegen_1.operators;\nconst KWDs = {\n formatMaximum: { okStr: \"<=\", ok: ops.LTE, fail: ops.GT },\n formatMinimum: { okStr: \">=\", ok: ops.GTE, fail: ops.LT },\n formatExclusiveMaximum: { okStr: \"<\", ok: ops.LT, fail: ops.GTE },\n formatExclusiveMinimum: { okStr: \">\", ok: ops.GT, fail: ops.LTE },\n};\nconst error = {\n message: ({ keyword, schemaCode }) => codegen_1.str `should be ${KWDs[keyword].okStr} ${schemaCode}`,\n params: ({ keyword, schemaCode }) => codegen_1._ `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,\n};\nexports.formatLimitDefinition = {\n keyword: Object.keys(KWDs),\n type: \"string\",\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, schemaCode, keyword, it } = cxt;\n const { opts, self } = it;\n if (!opts.validateFormats)\n return;\n const fCxt = new ajv_1.KeywordCxt(it, self.RULES.all.format.definition, \"format\");\n if (fCxt.$data)\n validate$DataFormat();\n else\n validateFormat();\n function validate$DataFormat() {\n const fmts = gen.scopeValue(\"formats\", {\n ref: self.formats,\n code: opts.code.formats,\n });\n const fmt = gen.const(\"fmt\", codegen_1._ `${fmts}[${fCxt.schemaCode}]`);\n cxt.fail$data(codegen_1.or(codegen_1._ `typeof ${fmt} != \"object\"`, codegen_1._ `${fmt} instanceof RegExp`, codegen_1._ `typeof ${fmt}.compare != \"function\"`, compareCode(fmt)));\n }\n function validateFormat() {\n const format = fCxt.schema;\n const fmtDef = self.formats[format];\n if (!fmtDef || fmtDef === true)\n return;\n if (typeof fmtDef != \"object\" ||\n fmtDef instanceof RegExp ||\n typeof fmtDef.compare != \"function\") {\n throw new Error(`\"${keyword}\": format \"${format}\" does not define \"compare\" function`);\n }\n const fmt = gen.scopeValue(\"formats\", {\n key: format,\n ref: fmtDef,\n code: opts.code.formats ? codegen_1._ `${opts.code.formats}${codegen_1.getProperty(format)}` : undefined,\n });\n cxt.fail$data(compareCode(fmt));\n }\n function compareCode(fmt) {\n return codegen_1._ `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;\n }\n },\n dependencies: [\"format\"],\n};\nconst formatLimitPlugin = (ajv) => {\n ajv.addKeyword(exports.formatLimitDefinition);\n return ajv;\n};\nexports[\"default\"] = formatLimitPlugin;\n//# sourceMappingURL=limit.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv-formats/dist/limit.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/ajv.js": -/*!********************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/ajv.js ***! - \********************************************************/ -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;\nconst core_1 = __webpack_require__(/*! ./core */ \"./node_modules/conf/node_modules/ajv/dist/core.js\");\nconst draft7_1 = __webpack_require__(/*! ./vocabularies/draft7 */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/draft7.js\");\nconst discriminator_1 = __webpack_require__(/*! ./vocabularies/discriminator */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/index.js\");\nconst draft7MetaSchema = __webpack_require__(/*! ./refs/json-schema-draft-07.json */ \"./node_modules/conf/node_modules/ajv/dist/refs/json-schema-draft-07.json\");\nconst META_SUPPORT_DATA = [\"/properties\"];\nconst META_SCHEMA_ID = \"http://json-schema.org/draft-07/schema\";\nclass Ajv extends core_1.default {\n _addVocabularies() {\n super._addVocabularies();\n draft7_1.default.forEach((v) => this.addVocabulary(v));\n if (this.opts.discriminator)\n this.addKeyword(discriminator_1.default);\n }\n _addDefaultMetaSchema() {\n super._addDefaultMetaSchema();\n if (!this.opts.meta)\n return;\n const metaSchema = this.opts.$data\n ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA)\n : draft7MetaSchema;\n this.addMetaSchema(metaSchema, META_SCHEMA_ID, false);\n this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID;\n }\n defaultMeta() {\n return (this.opts.defaultMeta =\n super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined));\n }\n}\nmodule.exports = exports = Ajv;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = Ajv;\nvar validate_1 = __webpack_require__(/*! ./compile/validate */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js\");\nObject.defineProperty(exports, \"KeywordCxt\", ({ enumerable: true, get: function () { return validate_1.KeywordCxt; } }));\nvar codegen_1 = __webpack_require__(/*! ./compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nObject.defineProperty(exports, \"_\", ({ enumerable: true, get: function () { return codegen_1._; } }));\nObject.defineProperty(exports, \"str\", ({ enumerable: true, get: function () { return codegen_1.str; } }));\nObject.defineProperty(exports, \"stringify\", ({ enumerable: true, get: function () { return codegen_1.stringify; } }));\nObject.defineProperty(exports, \"nil\", ({ enumerable: true, get: function () { return codegen_1.nil; } }));\nObject.defineProperty(exports, \"Name\", ({ enumerable: true, get: function () { return codegen_1.Name; } }));\nObject.defineProperty(exports, \"CodeGen\", ({ enumerable: true, get: function () { return codegen_1.CodeGen; } }));\nvar validation_error_1 = __webpack_require__(/*! ./runtime/validation_error */ \"./node_modules/conf/node_modules/ajv/dist/runtime/validation_error.js\");\nObject.defineProperty(exports, \"ValidationError\", ({ enumerable: true, get: function () { return validation_error_1.default; } }));\nvar ref_error_1 = __webpack_require__(/*! ./compile/ref_error */ \"./node_modules/conf/node_modules/ajv/dist/compile/ref_error.js\");\nObject.defineProperty(exports, \"MissingRefError\", ({ enumerable: true, get: function () { return ref_error_1.default; } }));\n//# sourceMappingURL=ajv.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/ajv.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js": -/*!*************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;\nclass _CodeOrName {\n}\nexports._CodeOrName = _CodeOrName;\nexports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\nclass Name extends _CodeOrName {\n constructor(s) {\n super();\n if (!exports.IDENTIFIER.test(s))\n throw new Error(\"CodeGen: name must be a valid identifier\");\n this.str = s;\n }\n toString() {\n return this.str;\n }\n emptyStr() {\n return false;\n }\n get names() {\n return { [this.str]: 1 };\n }\n}\nexports.Name = Name;\nclass _Code extends _CodeOrName {\n constructor(code) {\n super();\n this._items = typeof code === \"string\" ? [code] : code;\n }\n toString() {\n return this.str;\n }\n emptyStr() {\n if (this._items.length > 1)\n return false;\n const item = this._items[0];\n return item === \"\" || item === '\"\"';\n }\n get str() {\n var _a;\n return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, \"\")));\n }\n get names() {\n var _a;\n return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => {\n if (c instanceof Name)\n names[c.str] = (names[c.str] || 0) + 1;\n return names;\n }, {})));\n }\n}\nexports._Code = _Code;\nexports.nil = new _Code(\"\");\nfunction _(strs, ...args) {\n const code = [strs[0]];\n let i = 0;\n while (i < args.length) {\n addCodeArg(code, args[i]);\n code.push(strs[++i]);\n }\n return new _Code(code);\n}\nexports._ = _;\nconst plus = new _Code(\"+\");\nfunction str(strs, ...args) {\n const expr = [safeStringify(strs[0])];\n let i = 0;\n while (i < args.length) {\n expr.push(plus);\n addCodeArg(expr, args[i]);\n expr.push(plus, safeStringify(strs[++i]));\n }\n optimize(expr);\n return new _Code(expr);\n}\nexports.str = str;\nfunction addCodeArg(code, arg) {\n if (arg instanceof _Code)\n code.push(...arg._items);\n else if (arg instanceof Name)\n code.push(arg);\n else\n code.push(interpolate(arg));\n}\nexports.addCodeArg = addCodeArg;\nfunction optimize(expr) {\n let i = 1;\n while (i < expr.length - 1) {\n if (expr[i] === plus) {\n const res = mergeExprItems(expr[i - 1], expr[i + 1]);\n if (res !== undefined) {\n expr.splice(i - 1, 3, res);\n continue;\n }\n expr[i++] = \"+\";\n }\n i++;\n }\n}\nfunction mergeExprItems(a, b) {\n if (b === '\"\"')\n return a;\n if (a === '\"\"')\n return b;\n if (typeof a == \"string\") {\n if (b instanceof Name || a[a.length - 1] !== '\"')\n return;\n if (typeof b != \"string\")\n return `${a.slice(0, -1)}${b}\"`;\n if (b[0] === '\"')\n return a.slice(0, -1) + b.slice(1);\n return;\n }\n if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name))\n return `\"${a}${b.slice(1)}`;\n return;\n}\nfunction strConcat(c1, c2) {\n return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;\n}\nexports.strConcat = strConcat;\n// TODO do not allow arrays here\nfunction interpolate(x) {\n return typeof x == \"number\" || typeof x == \"boolean\" || x === null\n ? x\n : safeStringify(Array.isArray(x) ? x.join(\",\") : x);\n}\nfunction stringify(x) {\n return new _Code(safeStringify(x));\n}\nexports.stringify = stringify;\nfunction safeStringify(x) {\n return JSON.stringify(x)\n .replace(/\\u2028/g, \"\\\\u2028\")\n .replace(/\\u2029/g, \"\\\\u2029\");\n}\nexports.safeStringify = safeStringify;\nfunction getProperty(key) {\n return typeof key == \"string\" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;\n}\nexports.getProperty = getProperty;\n//Does best effort to format the name properly\nfunction getEsmExportName(key) {\n if (typeof key == \"string\" && exports.IDENTIFIER.test(key)) {\n return new _Code(`${key}`);\n }\n throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);\n}\nexports.getEsmExportName = getEsmExportName;\nfunction regexpCode(rx) {\n return new _Code(rx.toString());\n}\nexports.regexpCode = regexpCode;\n//# sourceMappingURL=code.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js": -/*!**************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;\nconst code_1 = __webpack_require__(/*! ./code */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js\");\nconst scope_1 = __webpack_require__(/*! ./scope */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/scope.js\");\nvar code_2 = __webpack_require__(/*! ./code */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js\");\nObject.defineProperty(exports, \"_\", ({ enumerable: true, get: function () { return code_2._; } }));\nObject.defineProperty(exports, \"str\", ({ enumerable: true, get: function () { return code_2.str; } }));\nObject.defineProperty(exports, \"strConcat\", ({ enumerable: true, get: function () { return code_2.strConcat; } }));\nObject.defineProperty(exports, \"nil\", ({ enumerable: true, get: function () { return code_2.nil; } }));\nObject.defineProperty(exports, \"getProperty\", ({ enumerable: true, get: function () { return code_2.getProperty; } }));\nObject.defineProperty(exports, \"stringify\", ({ enumerable: true, get: function () { return code_2.stringify; } }));\nObject.defineProperty(exports, \"regexpCode\", ({ enumerable: true, get: function () { return code_2.regexpCode; } }));\nObject.defineProperty(exports, \"Name\", ({ enumerable: true, get: function () { return code_2.Name; } }));\nvar scope_2 = __webpack_require__(/*! ./scope */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/scope.js\");\nObject.defineProperty(exports, \"Scope\", ({ enumerable: true, get: function () { return scope_2.Scope; } }));\nObject.defineProperty(exports, \"ValueScope\", ({ enumerable: true, get: function () { return scope_2.ValueScope; } }));\nObject.defineProperty(exports, \"ValueScopeName\", ({ enumerable: true, get: function () { return scope_2.ValueScopeName; } }));\nObject.defineProperty(exports, \"varKinds\", ({ enumerable: true, get: function () { return scope_2.varKinds; } }));\nexports.operators = {\n GT: new code_1._Code(\">\"),\n GTE: new code_1._Code(\">=\"),\n LT: new code_1._Code(\"<\"),\n LTE: new code_1._Code(\"<=\"),\n EQ: new code_1._Code(\"===\"),\n NEQ: new code_1._Code(\"!==\"),\n NOT: new code_1._Code(\"!\"),\n OR: new code_1._Code(\"||\"),\n AND: new code_1._Code(\"&&\"),\n ADD: new code_1._Code(\"+\"),\n};\nclass Node {\n optimizeNodes() {\n return this;\n }\n optimizeNames(_names, _constants) {\n return this;\n }\n}\nclass Def extends Node {\n constructor(varKind, name, rhs) {\n super();\n this.varKind = varKind;\n this.name = name;\n this.rhs = rhs;\n }\n render({ es5, _n }) {\n const varKind = es5 ? scope_1.varKinds.var : this.varKind;\n const rhs = this.rhs === undefined ? \"\" : ` = ${this.rhs}`;\n return `${varKind} ${this.name}${rhs};` + _n;\n }\n optimizeNames(names, constants) {\n if (!names[this.name.str])\n return;\n if (this.rhs)\n this.rhs = optimizeExpr(this.rhs, names, constants);\n return this;\n }\n get names() {\n return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {};\n }\n}\nclass Assign extends Node {\n constructor(lhs, rhs, sideEffects) {\n super();\n this.lhs = lhs;\n this.rhs = rhs;\n this.sideEffects = sideEffects;\n }\n render({ _n }) {\n return `${this.lhs} = ${this.rhs};` + _n;\n }\n optimizeNames(names, constants) {\n if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects)\n return;\n this.rhs = optimizeExpr(this.rhs, names, constants);\n return this;\n }\n get names() {\n const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names };\n return addExprNames(names, this.rhs);\n }\n}\nclass AssignOp extends Assign {\n constructor(lhs, op, rhs, sideEffects) {\n super(lhs, rhs, sideEffects);\n this.op = op;\n }\n render({ _n }) {\n return `${this.lhs} ${this.op}= ${this.rhs};` + _n;\n }\n}\nclass Label extends Node {\n constructor(label) {\n super();\n this.label = label;\n this.names = {};\n }\n render({ _n }) {\n return `${this.label}:` + _n;\n }\n}\nclass Break extends Node {\n constructor(label) {\n super();\n this.label = label;\n this.names = {};\n }\n render({ _n }) {\n const label = this.label ? ` ${this.label}` : \"\";\n return `break${label};` + _n;\n }\n}\nclass Throw extends Node {\n constructor(error) {\n super();\n this.error = error;\n }\n render({ _n }) {\n return `throw ${this.error};` + _n;\n }\n get names() {\n return this.error.names;\n }\n}\nclass AnyCode extends Node {\n constructor(code) {\n super();\n this.code = code;\n }\n render({ _n }) {\n return `${this.code};` + _n;\n }\n optimizeNodes() {\n return `${this.code}` ? this : undefined;\n }\n optimizeNames(names, constants) {\n this.code = optimizeExpr(this.code, names, constants);\n return this;\n }\n get names() {\n return this.code instanceof code_1._CodeOrName ? this.code.names : {};\n }\n}\nclass ParentNode extends Node {\n constructor(nodes = []) {\n super();\n this.nodes = nodes;\n }\n render(opts) {\n return this.nodes.reduce((code, n) => code + n.render(opts), \"\");\n }\n optimizeNodes() {\n const { nodes } = this;\n let i = nodes.length;\n while (i--) {\n const n = nodes[i].optimizeNodes();\n if (Array.isArray(n))\n nodes.splice(i, 1, ...n);\n else if (n)\n nodes[i] = n;\n else\n nodes.splice(i, 1);\n }\n return nodes.length > 0 ? this : undefined;\n }\n optimizeNames(names, constants) {\n const { nodes } = this;\n let i = nodes.length;\n while (i--) {\n // iterating backwards improves 1-pass optimization\n const n = nodes[i];\n if (n.optimizeNames(names, constants))\n continue;\n subtractNames(names, n.names);\n nodes.splice(i, 1);\n }\n return nodes.length > 0 ? this : undefined;\n }\n get names() {\n return this.nodes.reduce((names, n) => addNames(names, n.names), {});\n }\n}\nclass BlockNode extends ParentNode {\n render(opts) {\n return \"{\" + opts._n + super.render(opts) + \"}\" + opts._n;\n }\n}\nclass Root extends ParentNode {\n}\nclass Else extends BlockNode {\n}\nElse.kind = \"else\";\nclass If extends BlockNode {\n constructor(condition, nodes) {\n super(nodes);\n this.condition = condition;\n }\n render(opts) {\n let code = `if(${this.condition})` + super.render(opts);\n if (this.else)\n code += \"else \" + this.else.render(opts);\n return code;\n }\n optimizeNodes() {\n super.optimizeNodes();\n const cond = this.condition;\n if (cond === true)\n return this.nodes; // else is ignored here\n let e = this.else;\n if (e) {\n const ns = e.optimizeNodes();\n e = this.else = Array.isArray(ns) ? new Else(ns) : ns;\n }\n if (e) {\n if (cond === false)\n return e instanceof If ? e : e.nodes;\n if (this.nodes.length)\n return this;\n return new If(not(cond), e instanceof If ? [e] : e.nodes);\n }\n if (cond === false || !this.nodes.length)\n return undefined;\n return this;\n }\n optimizeNames(names, constants) {\n var _a;\n this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants);\n if (!(super.optimizeNames(names, constants) || this.else))\n return;\n this.condition = optimizeExpr(this.condition, names, constants);\n return this;\n }\n get names() {\n const names = super.names;\n addExprNames(names, this.condition);\n if (this.else)\n addNames(names, this.else.names);\n return names;\n }\n}\nIf.kind = \"if\";\nclass For extends BlockNode {\n}\nFor.kind = \"for\";\nclass ForLoop extends For {\n constructor(iteration) {\n super();\n this.iteration = iteration;\n }\n render(opts) {\n return `for(${this.iteration})` + super.render(opts);\n }\n optimizeNames(names, constants) {\n if (!super.optimizeNames(names, constants))\n return;\n this.iteration = optimizeExpr(this.iteration, names, constants);\n return this;\n }\n get names() {\n return addNames(super.names, this.iteration.names);\n }\n}\nclass ForRange extends For {\n constructor(varKind, name, from, to) {\n super();\n this.varKind = varKind;\n this.name = name;\n this.from = from;\n this.to = to;\n }\n render(opts) {\n const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind;\n const { name, from, to } = this;\n return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts);\n }\n get names() {\n const names = addExprNames(super.names, this.from);\n return addExprNames(names, this.to);\n }\n}\nclass ForIter extends For {\n constructor(loop, varKind, name, iterable) {\n super();\n this.loop = loop;\n this.varKind = varKind;\n this.name = name;\n this.iterable = iterable;\n }\n render(opts) {\n return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);\n }\n optimizeNames(names, constants) {\n if (!super.optimizeNames(names, constants))\n return;\n this.iterable = optimizeExpr(this.iterable, names, constants);\n return this;\n }\n get names() {\n return addNames(super.names, this.iterable.names);\n }\n}\nclass Func extends BlockNode {\n constructor(name, args, async) {\n super();\n this.name = name;\n this.args = args;\n this.async = async;\n }\n render(opts) {\n const _async = this.async ? \"async \" : \"\";\n return `${_async}function ${this.name}(${this.args})` + super.render(opts);\n }\n}\nFunc.kind = \"func\";\nclass Return extends ParentNode {\n render(opts) {\n return \"return \" + super.render(opts);\n }\n}\nReturn.kind = \"return\";\nclass Try extends BlockNode {\n render(opts) {\n let code = \"try\" + super.render(opts);\n if (this.catch)\n code += this.catch.render(opts);\n if (this.finally)\n code += this.finally.render(opts);\n return code;\n }\n optimizeNodes() {\n var _a, _b;\n super.optimizeNodes();\n (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNodes();\n (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes();\n return this;\n }\n optimizeNames(names, constants) {\n var _a, _b;\n super.optimizeNames(names, constants);\n (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants);\n (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants);\n return this;\n }\n get names() {\n const names = super.names;\n if (this.catch)\n addNames(names, this.catch.names);\n if (this.finally)\n addNames(names, this.finally.names);\n return names;\n }\n}\nclass Catch extends BlockNode {\n constructor(error) {\n super();\n this.error = error;\n }\n render(opts) {\n return `catch(${this.error})` + super.render(opts);\n }\n}\nCatch.kind = \"catch\";\nclass Finally extends BlockNode {\n render(opts) {\n return \"finally\" + super.render(opts);\n }\n}\nFinally.kind = \"finally\";\nclass CodeGen {\n constructor(extScope, opts = {}) {\n this._values = {};\n this._blockStarts = [];\n this._constants = {};\n this.opts = { ...opts, _n: opts.lines ? \"\\n\" : \"\" };\n this._extScope = extScope;\n this._scope = new scope_1.Scope({ parent: extScope });\n this._nodes = [new Root()];\n }\n toString() {\n return this._root.render(this.opts);\n }\n // returns unique name in the internal scope\n name(prefix) {\n return this._scope.name(prefix);\n }\n // reserves unique name in the external scope\n scopeName(prefix) {\n return this._extScope.name(prefix);\n }\n // reserves unique name in the external scope and assigns value to it\n scopeValue(prefixOrName, value) {\n const name = this._extScope.value(prefixOrName, value);\n const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set());\n vs.add(name);\n return name;\n }\n getScopeValue(prefix, keyOrRef) {\n return this._extScope.getValue(prefix, keyOrRef);\n }\n // return code that assigns values in the external scope to the names that are used internally\n // (same names that were returned by gen.scopeName or gen.scopeValue)\n scopeRefs(scopeName) {\n return this._extScope.scopeRefs(scopeName, this._values);\n }\n scopeCode() {\n return this._extScope.scopeCode(this._values);\n }\n _def(varKind, nameOrPrefix, rhs, constant) {\n const name = this._scope.toName(nameOrPrefix);\n if (rhs !== undefined && constant)\n this._constants[name.str] = rhs;\n this._leafNode(new Def(varKind, name, rhs));\n return name;\n }\n // `const` declaration (`var` in es5 mode)\n const(nameOrPrefix, rhs, _constant) {\n return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant);\n }\n // `let` declaration with optional assignment (`var` in es5 mode)\n let(nameOrPrefix, rhs, _constant) {\n return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant);\n }\n // `var` declaration with optional assignment\n var(nameOrPrefix, rhs, _constant) {\n return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant);\n }\n // assignment code\n assign(lhs, rhs, sideEffects) {\n return this._leafNode(new Assign(lhs, rhs, sideEffects));\n }\n // `+=` code\n add(lhs, rhs) {\n return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));\n }\n // appends passed SafeExpr to code or executes Block\n code(c) {\n if (typeof c == \"function\")\n c();\n else if (c !== code_1.nil)\n this._leafNode(new AnyCode(c));\n return this;\n }\n // returns code for object literal for the passed argument list of key-value pairs\n object(...keyValues) {\n const code = [\"{\"];\n for (const [key, value] of keyValues) {\n if (code.length > 1)\n code.push(\",\");\n code.push(key);\n if (key !== value || this.opts.es5) {\n code.push(\":\");\n (0, code_1.addCodeArg)(code, value);\n }\n }\n code.push(\"}\");\n return new code_1._Code(code);\n }\n // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)\n if(condition, thenBody, elseBody) {\n this._blockNode(new If(condition));\n if (thenBody && elseBody) {\n this.code(thenBody).else().code(elseBody).endIf();\n }\n else if (thenBody) {\n this.code(thenBody).endIf();\n }\n else if (elseBody) {\n throw new Error('CodeGen: \"else\" body without \"then\" body');\n }\n return this;\n }\n // `else if` clause - invalid without `if` or after `else` clauses\n elseIf(condition) {\n return this._elseNode(new If(condition));\n }\n // `else` clause - only valid after `if` or `else if` clauses\n else() {\n return this._elseNode(new Else());\n }\n // end `if` statement (needed if gen.if was used only with condition)\n endIf() {\n return this._endBlockNode(If, Else);\n }\n _for(node, forBody) {\n this._blockNode(node);\n if (forBody)\n this.code(forBody).endFor();\n return this;\n }\n // a generic `for` clause (or statement if `forBody` is passed)\n for(iteration, forBody) {\n return this._for(new ForLoop(iteration), forBody);\n }\n // `for` statement for a range of values\n forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) {\n const name = this._scope.toName(nameOrPrefix);\n return this._for(new ForRange(varKind, name, from, to), () => forBody(name));\n }\n // `for-of` statement (in es5 mode replace with a normal for loop)\n forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) {\n const name = this._scope.toName(nameOrPrefix);\n if (this.opts.es5) {\n const arr = iterable instanceof code_1.Name ? iterable : this.var(\"_arr\", iterable);\n return this.forRange(\"_i\", 0, (0, code_1._) `${arr}.length`, (i) => {\n this.var(name, (0, code_1._) `${arr}[${i}]`);\n forBody(name);\n });\n }\n return this._for(new ForIter(\"of\", varKind, name, iterable), () => forBody(name));\n }\n // `for-in` statement.\n // With option `ownProperties` replaced with a `for-of` loop for object keys\n forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) {\n if (this.opts.ownProperties) {\n return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody);\n }\n const name = this._scope.toName(nameOrPrefix);\n return this._for(new ForIter(\"in\", varKind, name, obj), () => forBody(name));\n }\n // end `for` loop\n endFor() {\n return this._endBlockNode(For);\n }\n // `label` statement\n label(label) {\n return this._leafNode(new Label(label));\n }\n // `break` statement\n break(label) {\n return this._leafNode(new Break(label));\n }\n // `return` statement\n return(value) {\n const node = new Return();\n this._blockNode(node);\n this.code(value);\n if (node.nodes.length !== 1)\n throw new Error('CodeGen: \"return\" should have one node');\n return this._endBlockNode(Return);\n }\n // `try` statement\n try(tryBody, catchCode, finallyCode) {\n if (!catchCode && !finallyCode)\n throw new Error('CodeGen: \"try\" without \"catch\" and \"finally\"');\n const node = new Try();\n this._blockNode(node);\n this.code(tryBody);\n if (catchCode) {\n const error = this.name(\"e\");\n this._currNode = node.catch = new Catch(error);\n catchCode(error);\n }\n if (finallyCode) {\n this._currNode = node.finally = new Finally();\n this.code(finallyCode);\n }\n return this._endBlockNode(Catch, Finally);\n }\n // `throw` statement\n throw(error) {\n return this._leafNode(new Throw(error));\n }\n // start self-balancing block\n block(body, nodeCount) {\n this._blockStarts.push(this._nodes.length);\n if (body)\n this.code(body).endBlock(nodeCount);\n return this;\n }\n // end the current self-balancing block\n endBlock(nodeCount) {\n const len = this._blockStarts.pop();\n if (len === undefined)\n throw new Error(\"CodeGen: not in self-balancing block\");\n const toClose = this._nodes.length - len;\n if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) {\n throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`);\n }\n this._nodes.length = len;\n return this;\n }\n // `function` heading (or definition if funcBody is passed)\n func(name, args = code_1.nil, async, funcBody) {\n this._blockNode(new Func(name, args, async));\n if (funcBody)\n this.code(funcBody).endFunc();\n return this;\n }\n // end function definition\n endFunc() {\n return this._endBlockNode(Func);\n }\n optimize(n = 1) {\n while (n-- > 0) {\n this._root.optimizeNodes();\n this._root.optimizeNames(this._root.names, this._constants);\n }\n }\n _leafNode(node) {\n this._currNode.nodes.push(node);\n return this;\n }\n _blockNode(node) {\n this._currNode.nodes.push(node);\n this._nodes.push(node);\n }\n _endBlockNode(N1, N2) {\n const n = this._currNode;\n if (n instanceof N1 || (N2 && n instanceof N2)) {\n this._nodes.pop();\n return this;\n }\n throw new Error(`CodeGen: not in block \"${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}\"`);\n }\n _elseNode(node) {\n const n = this._currNode;\n if (!(n instanceof If)) {\n throw new Error('CodeGen: \"else\" without \"if\"');\n }\n this._currNode = n.else = node;\n return this;\n }\n get _root() {\n return this._nodes[0];\n }\n get _currNode() {\n const ns = this._nodes;\n return ns[ns.length - 1];\n }\n set _currNode(node) {\n const ns = this._nodes;\n ns[ns.length - 1] = node;\n }\n}\nexports.CodeGen = CodeGen;\nfunction addNames(names, from) {\n for (const n in from)\n names[n] = (names[n] || 0) + (from[n] || 0);\n return names;\n}\nfunction addExprNames(names, from) {\n return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;\n}\nfunction optimizeExpr(expr, names, constants) {\n if (expr instanceof code_1.Name)\n return replaceName(expr);\n if (!canOptimize(expr))\n return expr;\n return new code_1._Code(expr._items.reduce((items, c) => {\n if (c instanceof code_1.Name)\n c = replaceName(c);\n if (c instanceof code_1._Code)\n items.push(...c._items);\n else\n items.push(c);\n return items;\n }, []));\n function replaceName(n) {\n const c = constants[n.str];\n if (c === undefined || names[n.str] !== 1)\n return n;\n delete names[n.str];\n return c;\n }\n function canOptimize(e) {\n return (e instanceof code_1._Code &&\n e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined));\n }\n}\nfunction subtractNames(names, from) {\n for (const n in from)\n names[n] = (names[n] || 0) - (from[n] || 0);\n}\nfunction not(x) {\n return typeof x == \"boolean\" || typeof x == \"number\" || x === null ? !x : (0, code_1._) `!${par(x)}`;\n}\nexports.not = not;\nconst andCode = mappend(exports.operators.AND);\n// boolean AND (&&) expression with the passed arguments\nfunction and(...args) {\n return args.reduce(andCode);\n}\nexports.and = and;\nconst orCode = mappend(exports.operators.OR);\n// boolean OR (||) expression with the passed arguments\nfunction or(...args) {\n return args.reduce(orCode);\n}\nexports.or = or;\nfunction mappend(op) {\n return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`);\n}\nfunction par(x) {\n return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`;\n}\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/codegen/scope.js": -/*!**************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/codegen/scope.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;\nconst code_1 = __webpack_require__(/*! ./code */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js\");\nclass ValueError extends Error {\n constructor(name) {\n super(`CodeGen: \"code\" for ${name} not defined`);\n this.value = name.value;\n }\n}\nvar UsedValueState;\n(function (UsedValueState) {\n UsedValueState[UsedValueState[\"Started\"] = 0] = \"Started\";\n UsedValueState[UsedValueState[\"Completed\"] = 1] = \"Completed\";\n})(UsedValueState = exports.UsedValueState || (exports.UsedValueState = {}));\nexports.varKinds = {\n const: new code_1.Name(\"const\"),\n let: new code_1.Name(\"let\"),\n var: new code_1.Name(\"var\"),\n};\nclass Scope {\n constructor({ prefixes, parent } = {}) {\n this._names = {};\n this._prefixes = prefixes;\n this._parent = parent;\n }\n toName(nameOrPrefix) {\n return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix);\n }\n name(prefix) {\n return new code_1.Name(this._newName(prefix));\n }\n _newName(prefix) {\n const ng = this._names[prefix] || this._nameGroup(prefix);\n return `${prefix}${ng.index++}`;\n }\n _nameGroup(prefix) {\n var _a, _b;\n if (((_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || (this._prefixes && !this._prefixes.has(prefix))) {\n throw new Error(`CodeGen: prefix \"${prefix}\" is not allowed in this scope`);\n }\n return (this._names[prefix] = { prefix, index: 0 });\n }\n}\nexports.Scope = Scope;\nclass ValueScopeName extends code_1.Name {\n constructor(prefix, nameStr) {\n super(nameStr);\n this.prefix = prefix;\n }\n setValue(value, { property, itemIndex }) {\n this.value = value;\n this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`;\n }\n}\nexports.ValueScopeName = ValueScopeName;\nconst line = (0, code_1._) `\\n`;\nclass ValueScope extends Scope {\n constructor(opts) {\n super(opts);\n this._values = {};\n this._scope = opts.scope;\n this.opts = { ...opts, _n: opts.lines ? line : code_1.nil };\n }\n get() {\n return this._scope;\n }\n name(prefix) {\n return new ValueScopeName(prefix, this._newName(prefix));\n }\n value(nameOrPrefix, value) {\n var _a;\n if (value.ref === undefined)\n throw new Error(\"CodeGen: ref must be passed in value\");\n const name = this.toName(nameOrPrefix);\n const { prefix } = name;\n const valueKey = (_a = value.key) !== null && _a !== void 0 ? _a : value.ref;\n let vs = this._values[prefix];\n if (vs) {\n const _name = vs.get(valueKey);\n if (_name)\n return _name;\n }\n else {\n vs = this._values[prefix] = new Map();\n }\n vs.set(valueKey, name);\n const s = this._scope[prefix] || (this._scope[prefix] = []);\n const itemIndex = s.length;\n s[itemIndex] = value.ref;\n name.setValue(value, { property: prefix, itemIndex });\n return name;\n }\n getValue(prefix, keyOrRef) {\n const vs = this._values[prefix];\n if (!vs)\n return;\n return vs.get(keyOrRef);\n }\n scopeRefs(scopeName, values = this._values) {\n return this._reduceValues(values, (name) => {\n if (name.scopePath === undefined)\n throw new Error(`CodeGen: name \"${name}\" has no value`);\n return (0, code_1._) `${scopeName}${name.scopePath}`;\n });\n }\n scopeCode(values = this._values, usedValues, getCode) {\n return this._reduceValues(values, (name) => {\n if (name.value === undefined)\n throw new Error(`CodeGen: name \"${name}\" has no value`);\n return name.value.code;\n }, usedValues, getCode);\n }\n _reduceValues(values, valueCode, usedValues = {}, getCode) {\n let code = code_1.nil;\n for (const prefix in values) {\n const vs = values[prefix];\n if (!vs)\n continue;\n const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map());\n vs.forEach((name) => {\n if (nameSet.has(name))\n return;\n nameSet.set(name, UsedValueState.Started);\n let c = valueCode(name);\n if (c) {\n const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;\n code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`;\n }\n else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) {\n code = (0, code_1._) `${code}${c}${this.opts._n}`;\n }\n else {\n throw new ValueError(name);\n }\n nameSet.set(name, UsedValueState.Completed);\n });\n }\n return code;\n }\n}\nexports.ValueScope = ValueScope;\n//# sourceMappingURL=scope.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/codegen/scope.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/errors.js": -/*!*******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/errors.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;\nconst codegen_1 = __webpack_require__(/*! ./codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ./util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst names_1 = __webpack_require__(/*! ./names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nexports.keywordError = {\n message: ({ keyword }) => (0, codegen_1.str) `must pass \"${keyword}\" keyword validation`,\n};\nexports.keyword$DataError = {\n message: ({ keyword, schemaType }) => schemaType\n ? (0, codegen_1.str) `\"${keyword}\" keyword must be ${schemaType} ($data)`\n : (0, codegen_1.str) `\"${keyword}\" keyword is invalid ($data)`,\n};\nfunction reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) {\n addError(gen, errObj);\n }\n else {\n returnErrors(it, (0, codegen_1._) `[${errObj}]`);\n }\n}\nexports.reportError = reportError;\nfunction reportExtraError(cxt, error = exports.keywordError, errorPaths) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n addError(gen, errObj);\n if (!(compositeRule || allErrors)) {\n returnErrors(it, names_1.default.vErrors);\n }\n}\nexports.reportExtraError = reportExtraError;\nfunction resetErrorsCount(gen, errsCount) {\n gen.assign(names_1.default.errors, errsCount);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));\n}\nexports.resetErrorsCount = resetErrorsCount;\nfunction extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) {\n /* istanbul ignore if */\n if (errsCount === undefined)\n throw new Error(\"ajv implementation error\");\n const err = gen.name(\"err\");\n gen.forRange(\"i\", errsCount, names_1.default.errors, (i) => {\n gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`);\n gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath)));\n gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`);\n if (it.opts.verbose) {\n gen.assign((0, codegen_1._) `${err}.schema`, schemaValue);\n gen.assign((0, codegen_1._) `${err}.data`, data);\n }\n });\n}\nexports.extendErrors = extendErrors;\nfunction addError(gen, errObj) {\n const err = gen.const(\"err\", errObj);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`);\n gen.code((0, codegen_1._) `${names_1.default.errors}++`);\n}\nfunction returnErrors(it, errs) {\n const { gen, validateName, schemaEnv } = it;\n if (schemaEnv.$async) {\n gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, errs);\n gen.return(false);\n }\n}\nconst E = {\n keyword: new codegen_1.Name(\"keyword\"),\n schemaPath: new codegen_1.Name(\"schemaPath\"),\n params: new codegen_1.Name(\"params\"),\n propertyName: new codegen_1.Name(\"propertyName\"),\n message: new codegen_1.Name(\"message\"),\n schema: new codegen_1.Name(\"schema\"),\n parentSchema: new codegen_1.Name(\"parentSchema\"),\n};\nfunction errorObjectCode(cxt, error, errorPaths) {\n const { createErrors } = cxt.it;\n if (createErrors === false)\n return (0, codegen_1._) `{}`;\n return errorObject(cxt, error, errorPaths);\n}\nfunction errorObject(cxt, error, errorPaths = {}) {\n const { gen, it } = cxt;\n const keyValues = [\n errorInstancePath(it, errorPaths),\n errorSchemaPath(cxt, errorPaths),\n ];\n extraErrorProps(cxt, error, keyValues);\n return gen.object(...keyValues);\n}\nfunction errorInstancePath({ errorPath }, { instancePath }) {\n const instPath = instancePath\n ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}`\n : errorPath;\n return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)];\n}\nfunction errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) {\n let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`;\n if (schemaPath) {\n schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`;\n }\n return [E.schemaPath, schPath];\n}\nfunction extraErrorProps(cxt, { params, message }, keyValues) {\n const { keyword, data, schemaValue, it } = cxt;\n const { opts, propertyName, topSchemaRef, schemaPath } = it;\n keyValues.push([E.keyword, keyword], [E.params, typeof params == \"function\" ? params(cxt) : params || (0, codegen_1._) `{}`]);\n if (opts.messages) {\n keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message]);\n }\n if (opts.verbose) {\n keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]);\n }\n if (propertyName)\n keyValues.push([E.propertyName, propertyName]);\n}\n//# sourceMappingURL=errors.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/errors.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/index.js": -/*!******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/index.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;\nconst codegen_1 = __webpack_require__(/*! ./codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst validation_error_1 = __webpack_require__(/*! ../runtime/validation_error */ \"./node_modules/conf/node_modules/ajv/dist/runtime/validation_error.js\");\nconst names_1 = __webpack_require__(/*! ./names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst resolve_1 = __webpack_require__(/*! ./resolve */ \"./node_modules/conf/node_modules/ajv/dist/compile/resolve.js\");\nconst util_1 = __webpack_require__(/*! ./util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst validate_1 = __webpack_require__(/*! ./validate */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js\");\nclass SchemaEnv {\n constructor(env) {\n var _a;\n this.refs = {};\n this.dynamicAnchors = {};\n let schema;\n if (typeof env.schema == \"object\")\n schema = env.schema;\n this.schema = env.schema;\n this.schemaId = env.schemaId;\n this.root = env.root || this;\n this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || \"$id\"]);\n this.schemaPath = env.schemaPath;\n this.localRefs = env.localRefs;\n this.meta = env.meta;\n this.$async = schema === null || schema === void 0 ? void 0 : schema.$async;\n this.refs = {};\n }\n}\nexports.SchemaEnv = SchemaEnv;\n// let codeSize = 0\n// let nodeCount = 0\n// Compiles schema in SchemaEnv\nfunction compileSchema(sch) {\n // TODO refactor - remove compilations\n const _sch = getCompilingSchema.call(this, sch);\n if (_sch)\n return _sch;\n const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails\n const { es5, lines } = this.opts.code;\n const { ownProperties } = this.opts;\n const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties });\n let _ValidationError;\n if (sch.$async) {\n _ValidationError = gen.scopeValue(\"Error\", {\n ref: validation_error_1.default,\n code: (0, codegen_1._) `require(\"ajv/dist/runtime/validation_error\").default`,\n });\n }\n const validateName = gen.scopeName(\"validate\");\n sch.validateName = validateName;\n const schemaCxt = {\n gen,\n allErrors: this.opts.allErrors,\n data: names_1.default.data,\n parentData: names_1.default.parentData,\n parentDataProperty: names_1.default.parentDataProperty,\n dataNames: [names_1.default.data],\n dataPathArr: [codegen_1.nil],\n dataLevel: 0,\n dataTypes: [],\n definedProperties: new Set(),\n topSchemaRef: gen.scopeValue(\"schema\", this.opts.code.source === true\n ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) }\n : { ref: sch.schema }),\n validateName,\n ValidationError: _ValidationError,\n schema: sch.schema,\n schemaEnv: sch,\n rootId,\n baseId: sch.baseId || rootId,\n schemaPath: codegen_1.nil,\n errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n errorPath: (0, codegen_1._) `\"\"`,\n opts: this.opts,\n self: this,\n };\n let sourceCode;\n try {\n this._compilations.add(sch);\n (0, validate_1.validateFunctionCode)(schemaCxt);\n gen.optimize(this.opts.code.optimize);\n // gen.optimize(1)\n const validateCode = gen.toString();\n sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`;\n // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n if (this.opts.code.process)\n sourceCode = this.opts.code.process(sourceCode, sch);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);\n const validate = makeValidate(this, this.scope.get());\n this.scope.value(validateName, { ref: validate });\n validate.errors = null;\n validate.schema = sch.schema;\n validate.schemaEnv = sch;\n if (sch.$async)\n validate.$async = true;\n if (this.opts.code.source === true) {\n validate.source = { validateName, validateCode, scopeValues: gen._values };\n }\n if (this.opts.unevaluated) {\n const { props, items } = schemaCxt;\n validate.evaluated = {\n props: props instanceof codegen_1.Name ? undefined : props,\n items: items instanceof codegen_1.Name ? undefined : items,\n dynamicProps: props instanceof codegen_1.Name,\n dynamicItems: items instanceof codegen_1.Name,\n };\n if (validate.source)\n validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated);\n }\n sch.validate = validate;\n return sch;\n }\n catch (e) {\n delete sch.validate;\n delete sch.validateName;\n if (sourceCode)\n this.logger.error(\"Error compiling schema, function code:\", sourceCode);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n throw e;\n }\n finally {\n this._compilations.delete(sch);\n }\n}\nexports.compileSchema = compileSchema;\nfunction resolveRef(root, baseId, ref) {\n var _a;\n ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);\n const schOrFunc = root.refs[ref];\n if (schOrFunc)\n return schOrFunc;\n let _sch = resolve.call(this, root, ref);\n if (_sch === undefined) {\n const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv\n const { schemaId } = this.opts;\n if (schema)\n _sch = new SchemaEnv({ schema, schemaId, root, baseId });\n }\n if (_sch === undefined)\n return;\n return (root.refs[ref] = inlineOrCompile.call(this, _sch));\n}\nexports.resolveRef = resolveRef;\nfunction inlineOrCompile(sch) {\n if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))\n return sch.schema;\n return sch.validate ? sch : compileSchema.call(this, sch);\n}\n// Index of schema compilation in the currently compiled list\nfunction getCompilingSchema(schEnv) {\n for (const sch of this._compilations) {\n if (sameSchemaEnv(sch, schEnv))\n return sch;\n }\n}\nexports.getCompilingSchema = getCompilingSchema;\nfunction sameSchemaEnv(s1, s2) {\n return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;\n}\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(root, // information about the root schema for the current schema\nref // reference to resolve\n) {\n let sch;\n while (typeof (sch = this.refs[ref]) == \"string\")\n ref = sch;\n return sch || this.schemas[ref] || resolveSchema.call(this, root, ref);\n}\n// Resolve schema, its root and baseId\nfunction resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\nref // reference to resolve\n) {\n const p = this.opts.uriResolver.parse(ref);\n const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);\n let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined);\n // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n return getJsonPointer.call(this, p, root);\n }\n const id = (0, resolve_1.normalizeId)(refPath);\n const schOrRef = this.refs[id] || this.schemas[id];\n if (typeof schOrRef == \"string\") {\n const sch = resolveSchema.call(this, root, schOrRef);\n if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== \"object\")\n return;\n return getJsonPointer.call(this, p, sch);\n }\n if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== \"object\")\n return;\n if (!schOrRef.validate)\n compileSchema.call(this, schOrRef);\n if (id === (0, resolve_1.normalizeId)(ref)) {\n const { schema } = schOrRef;\n const { schemaId } = this.opts;\n const schId = schema[schemaId];\n if (schId)\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n return new SchemaEnv({ schema, schemaId, root, baseId });\n }\n return getJsonPointer.call(this, p, schOrRef);\n}\nexports.resolveSchema = resolveSchema;\nconst PREVENT_SCOPE_CHANGE = new Set([\n \"properties\",\n \"patternProperties\",\n \"enum\",\n \"dependencies\",\n \"definitions\",\n]);\nfunction getJsonPointer(parsedRef, { baseId, schema, root }) {\n var _a;\n if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== \"/\")\n return;\n for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n if (typeof schema === \"boolean\")\n return;\n const partSchema = schema[(0, util_1.unescapeFragment)(part)];\n if (partSchema === undefined)\n return;\n schema = partSchema;\n // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n const schId = typeof schema === \"object\" && schema[this.opts.schemaId];\n if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n }\n }\n let env;\n if (typeof schema != \"boolean\" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) {\n const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref);\n env = resolveSchema.call(this, root, $ref);\n }\n // even though resolution failed we need to return SchemaEnv to throw exception\n // so that compileAsync loads missing schema.\n const { schemaId } = this.opts;\n env = env || new SchemaEnv({ schema, schemaId, root, baseId });\n if (env.schema !== env.root.schema)\n return env;\n return undefined;\n}\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/names.js": -/*!******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/names.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ./codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst names = {\n // validation function arguments\n data: new codegen_1.Name(\"data\"),\n // args passed from referencing schema\n valCxt: new codegen_1.Name(\"valCxt\"),\n instancePath: new codegen_1.Name(\"instancePath\"),\n parentData: new codegen_1.Name(\"parentData\"),\n parentDataProperty: new codegen_1.Name(\"parentDataProperty\"),\n rootData: new codegen_1.Name(\"rootData\"),\n dynamicAnchors: new codegen_1.Name(\"dynamicAnchors\"),\n // function scoped variables\n vErrors: new codegen_1.Name(\"vErrors\"),\n errors: new codegen_1.Name(\"errors\"),\n this: new codegen_1.Name(\"this\"),\n // \"globals\"\n self: new codegen_1.Name(\"self\"),\n scope: new codegen_1.Name(\"scope\"),\n // JTD serialize/parse name for JSON string and position\n json: new codegen_1.Name(\"json\"),\n jsonPos: new codegen_1.Name(\"jsonPos\"),\n jsonLen: new codegen_1.Name(\"jsonLen\"),\n jsonPart: new codegen_1.Name(\"jsonPart\"),\n};\nexports[\"default\"] = names;\n//# sourceMappingURL=names.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/names.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/ref_error.js": -/*!**********************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/ref_error.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst resolve_1 = __webpack_require__(/*! ./resolve */ \"./node_modules/conf/node_modules/ajv/dist/compile/resolve.js\");\nclass MissingRefError extends Error {\n constructor(resolver, baseId, ref, msg) {\n super(msg || `can't resolve reference ${ref} from id ${baseId}`);\n this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref);\n this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));\n }\n}\nexports[\"default\"] = MissingRefError;\n//# sourceMappingURL=ref_error.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/ref_error.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/resolve.js": -/*!********************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/resolve.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;\nconst util_1 = __webpack_require__(/*! ./util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst equal = __webpack_require__(/*! fast-deep-equal */ \"./node_modules/fast-deep-equal/index.js\");\nconst traverse = __webpack_require__(/*! json-schema-traverse */ \"./node_modules/conf/node_modules/json-schema-traverse/index.js\");\n// TODO refactor to use keyword definitions\nconst SIMPLE_INLINED = new Set([\n \"type\",\n \"format\",\n \"pattern\",\n \"maxLength\",\n \"minLength\",\n \"maxProperties\",\n \"minProperties\",\n \"maxItems\",\n \"minItems\",\n \"maximum\",\n \"minimum\",\n \"uniqueItems\",\n \"multipleOf\",\n \"required\",\n \"enum\",\n \"const\",\n]);\nfunction inlineRef(schema, limit = true) {\n if (typeof schema == \"boolean\")\n return true;\n if (limit === true)\n return !hasRef(schema);\n if (!limit)\n return false;\n return countKeys(schema) <= limit;\n}\nexports.inlineRef = inlineRef;\nconst REF_KEYWORDS = new Set([\n \"$ref\",\n \"$recursiveRef\",\n \"$recursiveAnchor\",\n \"$dynamicRef\",\n \"$dynamicAnchor\",\n]);\nfunction hasRef(schema) {\n for (const key in schema) {\n if (REF_KEYWORDS.has(key))\n return true;\n const sch = schema[key];\n if (Array.isArray(sch) && sch.some(hasRef))\n return true;\n if (typeof sch == \"object\" && hasRef(sch))\n return true;\n }\n return false;\n}\nfunction countKeys(schema) {\n let count = 0;\n for (const key in schema) {\n if (key === \"$ref\")\n return Infinity;\n count++;\n if (SIMPLE_INLINED.has(key))\n continue;\n if (typeof schema[key] == \"object\") {\n (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch)));\n }\n if (count === Infinity)\n return Infinity;\n }\n return count;\n}\nfunction getFullPath(resolver, id = \"\", normalize) {\n if (normalize !== false)\n id = normalizeId(id);\n const p = resolver.parse(id);\n return _getFullPath(resolver, p);\n}\nexports.getFullPath = getFullPath;\nfunction _getFullPath(resolver, p) {\n const serialized = resolver.serialize(p);\n return serialized.split(\"#\")[0] + \"#\";\n}\nexports._getFullPath = _getFullPath;\nconst TRAILING_SLASH_HASH = /#\\/?$/;\nfunction normalizeId(id) {\n return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\";\n}\nexports.normalizeId = normalizeId;\nfunction resolveUrl(resolver, baseId, id) {\n id = normalizeId(id);\n return resolver.resolve(baseId, id);\n}\nexports.resolveUrl = resolveUrl;\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i;\nfunction getSchemaRefs(schema, baseId) {\n if (typeof schema == \"boolean\")\n return {};\n const { schemaId, uriResolver } = this.opts;\n const schId = normalizeId(schema[schemaId] || baseId);\n const baseIds = { \"\": schId };\n const pathPrefix = getFullPath(uriResolver, schId, false);\n const localRefs = {};\n const schemaRefs = new Set();\n traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => {\n if (parentJsonPtr === undefined)\n return;\n const fullPath = pathPrefix + jsonPtr;\n let baseId = baseIds[parentJsonPtr];\n if (typeof sch[schemaId] == \"string\")\n baseId = addRef.call(this, sch[schemaId]);\n addAnchor.call(this, sch.$anchor);\n addAnchor.call(this, sch.$dynamicAnchor);\n baseIds[jsonPtr] = baseId;\n function addRef(ref) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const _resolve = this.opts.uriResolver.resolve;\n ref = normalizeId(baseId ? _resolve(baseId, ref) : ref);\n if (schemaRefs.has(ref))\n throw ambiguos(ref);\n schemaRefs.add(ref);\n let schOrRef = this.refs[ref];\n if (typeof schOrRef == \"string\")\n schOrRef = this.refs[schOrRef];\n if (typeof schOrRef == \"object\") {\n checkAmbiguosRef(sch, schOrRef.schema, ref);\n }\n else if (ref !== normalizeId(fullPath)) {\n if (ref[0] === \"#\") {\n checkAmbiguosRef(sch, localRefs[ref], ref);\n localRefs[ref] = sch;\n }\n else {\n this.refs[ref] = fullPath;\n }\n }\n return ref;\n }\n function addAnchor(anchor) {\n if (typeof anchor == \"string\") {\n if (!ANCHOR.test(anchor))\n throw new Error(`invalid anchor \"${anchor}\"`);\n addRef.call(this, `#${anchor}`);\n }\n }\n });\n return localRefs;\n function checkAmbiguosRef(sch1, sch2, ref) {\n if (sch2 !== undefined && !equal(sch1, sch2))\n throw ambiguos(ref);\n }\n function ambiguos(ref) {\n return new Error(`reference \"${ref}\" resolves to more than one schema`);\n }\n}\nexports.getSchemaRefs = getSchemaRefs;\n//# sourceMappingURL=resolve.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/resolve.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/rules.js": -/*!******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/rules.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.getRules = exports.isJSONType = void 0;\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"];\nconst jsonTypes = new Set(_jsonTypes);\nfunction isJSONType(x) {\n return typeof x == \"string\" && jsonTypes.has(x);\n}\nexports.isJSONType = isJSONType;\nfunction getRules() {\n const groups = {\n number: { type: \"number\", rules: [] },\n string: { type: \"string\", rules: [] },\n array: { type: \"array\", rules: [] },\n object: { type: \"object\", rules: [] },\n };\n return {\n types: { ...groups, integer: true, boolean: true, null: true },\n rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object],\n post: { rules: [] },\n all: {},\n keywords: {},\n };\n}\nexports.getRules = getRules;\n//# sourceMappingURL=rules.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/rules.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/util.js": -/*!*****************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/util.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\nconst codegen_1 = __webpack_require__(/*! ./codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst code_1 = __webpack_require__(/*! ./codegen/code */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/code.js\");\n// TODO refactor to use Set\nfunction toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n}\nexports.toHash = toHash;\nfunction alwaysValidSchema(it, schema) {\n if (typeof schema == \"boolean\")\n return schema;\n if (Object.keys(schema).length === 0)\n return true;\n checkUnknownRules(it, schema);\n return !schemaHasRules(schema, it.self.RULES.all);\n}\nexports.alwaysValidSchema = alwaysValidSchema;\nfunction checkUnknownRules(it, schema = it.schema) {\n const { opts, self } = it;\n if (!opts.strictSchema)\n return;\n if (typeof schema === \"boolean\")\n return;\n const rules = self.RULES.keywords;\n for (const key in schema) {\n if (!rules[key])\n checkStrictMode(it, `unknown keyword: \"${key}\"`);\n }\n}\nexports.checkUnknownRules = checkUnknownRules;\nfunction schemaHasRules(schema, rules) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (rules[key])\n return true;\n return false;\n}\nexports.schemaHasRules = schemaHasRules;\nfunction schemaHasRulesButRef(schema, RULES) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (key !== \"$ref\" && RULES.all[key])\n return true;\n return false;\n}\nexports.schemaHasRulesButRef = schemaHasRulesButRef;\nfunction schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {\n if (!$data) {\n if (typeof schema == \"number\" || typeof schema == \"boolean\")\n return schema;\n if (typeof schema == \"string\")\n return (0, codegen_1._) `${schema}`;\n }\n return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;\n}\nexports.schemaRefOrVal = schemaRefOrVal;\nfunction unescapeFragment(str) {\n return unescapeJsonPointer(decodeURIComponent(str));\n}\nexports.unescapeFragment = unescapeFragment;\nfunction escapeFragment(str) {\n return encodeURIComponent(escapeJsonPointer(str));\n}\nexports.escapeFragment = escapeFragment;\nfunction escapeJsonPointer(str) {\n if (typeof str == \"number\")\n return `${str}`;\n return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\nexports.escapeJsonPointer = escapeJsonPointer;\nfunction unescapeJsonPointer(str) {\n return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nexports.unescapeJsonPointer = unescapeJsonPointer;\nfunction eachItem(xs, f) {\n if (Array.isArray(xs)) {\n for (const x of xs)\n f(x);\n }\n else {\n f(xs);\n }\n}\nexports.eachItem = eachItem;\nfunction makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) {\n return (gen, from, to, toName) => {\n const res = to === undefined\n ? from\n : to instanceof codegen_1.Name\n ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n : from instanceof codegen_1.Name\n ? (mergeToName(gen, to, from), from)\n : mergeValues(from, to);\n return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;\n };\n}\nexports.mergeEvaluated = {\n props: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => {\n gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`));\n }),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => {\n if (from === true) {\n gen.assign(to, true);\n }\n else {\n gen.assign(to, (0, codegen_1._) `${to} || {}`);\n setEvaluated(gen, to, from);\n }\n }),\n mergeValues: (from, to) => (from === true ? true : { ...from, ...to }),\n resultToName: evaluatedPropsToName,\n }),\n items: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)),\n mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n resultToName: (gen, items) => gen.var(\"items\", items),\n }),\n};\nfunction evaluatedPropsToName(gen, ps) {\n if (ps === true)\n return gen.var(\"props\", true);\n const props = gen.var(\"props\", (0, codegen_1._) `{}`);\n if (ps !== undefined)\n setEvaluated(gen, props, ps);\n return props;\n}\nexports.evaluatedPropsToName = evaluatedPropsToName;\nfunction setEvaluated(gen, props, ps) {\n Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));\n}\nexports.setEvaluated = setEvaluated;\nconst snippets = {};\nfunction useFunc(gen, f) {\n return gen.scopeValue(\"func\", {\n ref: f,\n code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),\n });\n}\nexports.useFunc = useFunc;\nvar Type;\n(function (Type) {\n Type[Type[\"Num\"] = 0] = \"Num\";\n Type[Type[\"Str\"] = 1] = \"Str\";\n})(Type = exports.Type || (exports.Type = {}));\nfunction getErrorPath(dataProp, dataPropType, jsPropertySyntax) {\n // let path\n if (dataProp instanceof codegen_1.Name) {\n const isNumber = dataPropType === Type.Num;\n return jsPropertySyntax\n ? isNumber\n ? (0, codegen_1._) `\"[\" + ${dataProp} + \"]\"`\n : (0, codegen_1._) `\"['\" + ${dataProp} + \"']\"`\n : isNumber\n ? (0, codegen_1._) `\"/\" + ${dataProp}`\n : (0, codegen_1._) `\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`; // TODO maybe use global escapePointer\n }\n return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp);\n}\nexports.getErrorPath = getErrorPath;\nfunction checkStrictMode(it, msg, mode = it.opts.strictSchema) {\n if (!mode)\n return;\n msg = `strict mode: ${msg}`;\n if (mode === true)\n throw new Error(msg);\n it.self.logger.warn(msg);\n}\nexports.checkStrictMode = checkStrictMode;\n//# sourceMappingURL=util.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/util.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/applicability.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/applicability.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;\nfunction schemaHasRulesForType({ schema, self }, type) {\n const group = self.RULES.types[type];\n return group && group !== true && shouldUseGroup(schema, group);\n}\nexports.schemaHasRulesForType = schemaHasRulesForType;\nfunction shouldUseGroup(schema, group) {\n return group.rules.some((rule) => shouldUseRule(schema, rule));\n}\nexports.shouldUseGroup = shouldUseGroup;\nfunction shouldUseRule(schema, rule) {\n var _a;\n return (schema[rule.keyword] !== undefined ||\n ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined)));\n}\nexports.shouldUseRule = shouldUseRule;\n//# sourceMappingURL=applicability.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/applicability.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/boolSchema.js": -/*!********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/boolSchema.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;\nconst errors_1 = __webpack_require__(/*! ../errors */ \"./node_modules/conf/node_modules/ajv/dist/compile/errors.js\");\nconst codegen_1 = __webpack_require__(/*! ../codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst names_1 = __webpack_require__(/*! ../names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst boolError = {\n message: \"boolean schema is false\",\n};\nfunction topBoolOrEmptySchema(it) {\n const { gen, schema, validateName } = it;\n if (schema === false) {\n falseSchemaError(it, false);\n }\n else if (typeof schema == \"object\" && schema.$async === true) {\n gen.return(names_1.default.data);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, null);\n gen.return(true);\n }\n}\nexports.topBoolOrEmptySchema = topBoolOrEmptySchema;\nfunction boolOrEmptySchema(it, valid) {\n const { gen, schema } = it;\n if (schema === false) {\n gen.var(valid, false); // TODO var\n falseSchemaError(it);\n }\n else {\n gen.var(valid, true); // TODO var\n }\n}\nexports.boolOrEmptySchema = boolOrEmptySchema;\nfunction falseSchemaError(it, overrideAllErrors) {\n const { gen, data } = it;\n // TODO maybe some other interface should be used for non-keyword validation errors...\n const cxt = {\n gen,\n keyword: \"false schema\",\n data,\n schema: false,\n schemaCode: false,\n schemaValue: false,\n params: {},\n it,\n };\n (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors);\n}\n//# sourceMappingURL=boolSchema.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/boolSchema.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js": -/*!******************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;\nconst rules_1 = __webpack_require__(/*! ../rules */ \"./node_modules/conf/node_modules/ajv/dist/compile/rules.js\");\nconst applicability_1 = __webpack_require__(/*! ./applicability */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/applicability.js\");\nconst errors_1 = __webpack_require__(/*! ../errors */ \"./node_modules/conf/node_modules/ajv/dist/compile/errors.js\");\nconst codegen_1 = __webpack_require__(/*! ../codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nvar DataType;\n(function (DataType) {\n DataType[DataType[\"Correct\"] = 0] = \"Correct\";\n DataType[DataType[\"Wrong\"] = 1] = \"Wrong\";\n})(DataType = exports.DataType || (exports.DataType = {}));\nfunction getSchemaTypes(schema) {\n const types = getJSONTypes(schema.type);\n const hasNull = types.includes(\"null\");\n if (hasNull) {\n if (schema.nullable === false)\n throw new Error(\"type: null contradicts nullable: false\");\n }\n else {\n if (!types.length && schema.nullable !== undefined) {\n throw new Error('\"nullable\" cannot be used without \"type\"');\n }\n if (schema.nullable === true)\n types.push(\"null\");\n }\n return types;\n}\nexports.getSchemaTypes = getSchemaTypes;\nfunction getJSONTypes(ts) {\n const types = Array.isArray(ts) ? ts : ts ? [ts] : [];\n if (types.every(rules_1.isJSONType))\n return types;\n throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"));\n}\nexports.getJSONTypes = getJSONTypes;\nfunction coerceAndCheckDataType(it, types) {\n const { gen, data, opts } = it;\n const coerceTo = coerceToTypes(types, opts.coerceTypes);\n const checkTypes = types.length > 0 &&\n !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0]));\n if (checkTypes) {\n const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong);\n gen.if(wrongType, () => {\n if (coerceTo.length)\n coerceData(it, types, coerceTo);\n else\n reportTypeError(it);\n });\n }\n return checkTypes;\n}\nexports.coerceAndCheckDataType = coerceAndCheckDataType;\nconst COERCIBLE = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"]);\nfunction coerceToTypes(types, coerceTypes) {\n return coerceTypes\n ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n : [];\n}\nfunction coerceData(it, types, coerceTo) {\n const { gen, data, opts } = it;\n const dataType = gen.let(\"dataType\", (0, codegen_1._) `typeof ${data}`);\n const coerced = gen.let(\"coerced\", (0, codegen_1._) `undefined`);\n if (opts.coerceTypes === \"array\") {\n gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen\n .assign(data, (0, codegen_1._) `${data}[0]`)\n .assign(dataType, (0, codegen_1._) `typeof ${data}`)\n .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));\n }\n gen.if((0, codegen_1._) `${coerced} !== undefined`);\n for (const t of coerceTo) {\n if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n coerceSpecificType(t);\n }\n }\n gen.else();\n reportTypeError(it);\n gen.endIf();\n gen.if((0, codegen_1._) `${coerced} !== undefined`, () => {\n gen.assign(data, coerced);\n assignParentData(it, coerced);\n });\n function coerceSpecificType(t) {\n switch (t) {\n case \"string\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n .assign(coerced, (0, codegen_1._) `\"\" + ${data}`)\n .elseIf((0, codegen_1._) `${data} === null`)\n .assign(coerced, (0, codegen_1._) `\"\"`);\n return;\n case \"number\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"boolean\" || ${data} === null\n || (${dataType} == \"string\" && ${data} && ${data} == +${data})`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"integer\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"boolean\" || ${data} === null\n || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"boolean\":\n gen\n .elseIf((0, codegen_1._) `${data} === \"false\" || ${data} === 0 || ${data} === null`)\n .assign(coerced, false)\n .elseIf((0, codegen_1._) `${data} === \"true\" || ${data} === 1`)\n .assign(coerced, true);\n return;\n case \"null\":\n gen.elseIf((0, codegen_1._) `${data} === \"\" || ${data} === 0 || ${data} === false`);\n gen.assign(coerced, null);\n return;\n case \"array\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"string\" || ${dataType} === \"number\"\n || ${dataType} === \"boolean\" || ${data} === null`)\n .assign(coerced, (0, codegen_1._) `[${data}]`);\n }\n }\n}\nfunction assignParentData({ gen, parentData, parentDataProperty }, expr) {\n // TODO use gen.property\n gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr));\n}\nfunction checkDataType(dataType, data, strictNums, correct = DataType.Correct) {\n const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;\n let cond;\n switch (dataType) {\n case \"null\":\n return (0, codegen_1._) `${data} ${EQ} null`;\n case \"array\":\n cond = (0, codegen_1._) `Array.isArray(${data})`;\n break;\n case \"object\":\n cond = (0, codegen_1._) `${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`;\n break;\n case \"integer\":\n cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`);\n break;\n case \"number\":\n cond = numCond();\n break;\n default:\n return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`;\n }\n return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond);\n function numCond(_cond = codegen_1.nil) {\n return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == \"number\"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil);\n }\n}\nexports.checkDataType = checkDataType;\nfunction checkDataTypes(dataTypes, data, strictNums, correct) {\n if (dataTypes.length === 1) {\n return checkDataType(dataTypes[0], data, strictNums, correct);\n }\n let cond;\n const types = (0, util_1.toHash)(dataTypes);\n if (types.array && types.object) {\n const notObj = (0, codegen_1._) `typeof ${data} != \"object\"`;\n cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`;\n delete types.null;\n delete types.array;\n delete types.object;\n }\n else {\n cond = codegen_1.nil;\n }\n if (types.number)\n delete types.integer;\n for (const t in types)\n cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));\n return cond;\n}\nexports.checkDataTypes = checkDataTypes;\nconst typeError = {\n message: ({ schema }) => `must be ${schema}`,\n params: ({ schema, schemaValue }) => typeof schema == \"string\" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`,\n};\nfunction reportTypeError(it) {\n const cxt = getTypeErrorContext(it);\n (0, errors_1.reportError)(cxt, typeError);\n}\nexports.reportTypeError = reportTypeError;\nfunction getTypeErrorContext(it) {\n const { gen, data, schema } = it;\n const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, \"type\");\n return {\n gen,\n keyword: \"type\",\n data,\n schema: schema.type,\n schemaCode,\n schemaValue: schemaCode,\n parentSchema: schema,\n params: {},\n it,\n };\n}\n//# sourceMappingURL=dataType.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/defaults.js": -/*!******************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/defaults.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.assignDefaults = void 0;\nconst codegen_1 = __webpack_require__(/*! ../codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nfunction assignDefaults(it, ty) {\n const { properties, items } = it.schema;\n if (ty === \"object\" && properties) {\n for (const key in properties) {\n assignDefault(it, key, properties[key].default);\n }\n }\n else if (ty === \"array\" && Array.isArray(items)) {\n items.forEach((sch, i) => assignDefault(it, i, sch.default));\n }\n}\nexports.assignDefaults = assignDefaults;\nfunction assignDefault(it, prop, defaultValue) {\n const { gen, compositeRule, data, opts } = it;\n if (defaultValue === undefined)\n return;\n const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`;\n if (compositeRule) {\n (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`);\n return;\n }\n let condition = (0, codegen_1._) `${childData} === undefined`;\n if (opts.useDefaults === \"empty\") {\n condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === \"\"`;\n }\n // `${childData} === undefined` +\n // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);\n}\n//# sourceMappingURL=defaults.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/defaults.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js": -/*!***************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;\nconst boolSchema_1 = __webpack_require__(/*! ./boolSchema */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/boolSchema.js\");\nconst dataType_1 = __webpack_require__(/*! ./dataType */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js\");\nconst applicability_1 = __webpack_require__(/*! ./applicability */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/applicability.js\");\nconst dataType_2 = __webpack_require__(/*! ./dataType */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js\");\nconst defaults_1 = __webpack_require__(/*! ./defaults */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/defaults.js\");\nconst keyword_1 = __webpack_require__(/*! ./keyword */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/keyword.js\");\nconst subschema_1 = __webpack_require__(/*! ./subschema */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/subschema.js\");\nconst codegen_1 = __webpack_require__(/*! ../codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst names_1 = __webpack_require__(/*! ../names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst resolve_1 = __webpack_require__(/*! ../resolve */ \"./node_modules/conf/node_modules/ajv/dist/compile/resolve.js\");\nconst util_1 = __webpack_require__(/*! ../util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst errors_1 = __webpack_require__(/*! ../errors */ \"./node_modules/conf/node_modules/ajv/dist/compile/errors.js\");\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nfunction validateFunctionCode(it) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n topSchemaObjCode(it);\n return;\n }\n }\n validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));\n}\nexports.validateFunctionCode = validateFunctionCode;\nfunction validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {\n if (opts.code.es5) {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {\n gen.code((0, codegen_1._) `\"use strict\"; ${funcSourceUrl(schema, opts)}`);\n destructureValCxtES5(gen, opts);\n gen.code(body);\n });\n }\n else {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body));\n }\n}\nfunction destructureValCxt(opts) {\n return (0, codegen_1._) `{${names_1.default.instancePath}=\"\", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`;\n}\nfunction destructureValCxtES5(gen, opts) {\n gen.if(names_1.default.valCxt, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);\n gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`);\n }, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `\"\"`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.rootData, names_1.default.data);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`);\n });\n}\nfunction topSchemaObjCode(it) {\n const { schema, opts, gen } = it;\n validateFunction(it, () => {\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n checkNoDefault(it);\n gen.let(names_1.default.vErrors, null);\n gen.let(names_1.default.errors, 0);\n if (opts.unevaluated)\n resetEvaluated(it);\n typeAndKeywords(it);\n returnResults(it);\n });\n return;\n}\nfunction resetEvaluated(it) {\n // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n const { gen, validateName } = it;\n it.evaluated = gen.const(\"evaluated\", (0, codegen_1._) `${validateName}.evaluated`);\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`));\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`));\n}\nfunction funcSourceUrl(schema, opts) {\n const schId = typeof schema == \"object\" && schema[opts.schemaId];\n return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil;\n}\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it, valid) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n subSchemaObjCode(it, valid);\n return;\n }\n }\n (0, boolSchema_1.boolOrEmptySchema)(it, valid);\n}\nfunction schemaCxtHasRules({ schema, self }) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (self.RULES.all[key])\n return true;\n return false;\n}\nfunction isSchemaObj(it) {\n return typeof it.schema != \"boolean\";\n}\nfunction subSchemaObjCode(it, valid) {\n const { schema, gen, opts } = it;\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n updateContext(it);\n checkAsyncSchema(it);\n const errsCount = gen.const(\"_errs\", names_1.default.errors);\n typeAndKeywords(it, errsCount);\n // TODO var\n gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);\n}\nfunction checkKeywords(it) {\n (0, util_1.checkUnknownRules)(it);\n checkRefsAndKeywords(it);\n}\nfunction typeAndKeywords(it, errsCount) {\n if (it.opts.jtd)\n return schemaKeywords(it, [], false, errsCount);\n const types = (0, dataType_1.getSchemaTypes)(it.schema);\n const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types);\n schemaKeywords(it, types, !checkedTypes, errsCount);\n}\nfunction checkRefsAndKeywords(it) {\n const { schema, errSchemaPath, opts, self } = it;\n if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) {\n self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`);\n }\n}\nfunction checkNoDefault(it) {\n const { schema, opts } = it;\n if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n (0, util_1.checkStrictMode)(it, \"default is ignored in the schema root\");\n }\n}\nfunction updateContext(it) {\n const schId = it.schema[it.opts.schemaId];\n if (schId)\n it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId);\n}\nfunction checkAsyncSchema(it) {\n if (it.schema.$async && !it.schemaEnv.$async)\n throw new Error(\"async schema in sync schema\");\n}\nfunction commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) {\n const msg = schema.$comment;\n if (opts.$comment === true) {\n gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`);\n }\n else if (typeof opts.$comment == \"function\") {\n const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`;\n const rootName = gen.scopeValue(\"root\", { ref: schemaEnv.root });\n gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);\n }\n}\nfunction returnResults(it) {\n const { gen, schemaEnv, validateName, ValidationError, opts } = it;\n if (schemaEnv.$async) {\n // TODO assign unevaluated\n gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`));\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors);\n if (opts.unevaluated)\n assignEvaluated(it);\n gen.return((0, codegen_1._) `${names_1.default.errors} === 0`);\n }\n}\nfunction assignEvaluated({ gen, evaluated, props, items }) {\n if (props instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.props`, props);\n if (items instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.items`, items);\n}\nfunction schemaKeywords(it, types, typeErrors, errsCount) {\n const { gen, schema, data, allErrors, opts, self } = it;\n const { RULES } = self;\n if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {\n gen.block(() => keywordCode(it, \"$ref\", RULES.all.$ref.definition)); // TODO typecast\n return;\n }\n if (!opts.jtd)\n checkStrictTypes(it, types);\n gen.block(() => {\n for (const group of RULES.rules)\n groupKeywords(group);\n groupKeywords(RULES.post);\n });\n function groupKeywords(group) {\n if (!(0, applicability_1.shouldUseGroup)(schema, group))\n return;\n if (group.type) {\n gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));\n iterateKeywords(it, group);\n if (types.length === 1 && types[0] === group.type && typeErrors) {\n gen.else();\n (0, dataType_2.reportTypeError)(it);\n }\n gen.endIf();\n }\n else {\n iterateKeywords(it, group);\n }\n // TODO make it \"ok\" call?\n if (!allErrors)\n gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`);\n }\n}\nfunction iterateKeywords(it, group) {\n const { gen, schema, opts: { useDefaults }, } = it;\n if (useDefaults)\n (0, defaults_1.assignDefaults)(it, group.type);\n gen.block(() => {\n for (const rule of group.rules) {\n if ((0, applicability_1.shouldUseRule)(schema, rule)) {\n keywordCode(it, rule.keyword, rule.definition, group.type);\n }\n }\n });\n}\nfunction checkStrictTypes(it, types) {\n if (it.schemaEnv.meta || !it.opts.strictTypes)\n return;\n checkContextTypes(it, types);\n if (!it.opts.allowUnionTypes)\n checkMultipleTypes(it, types);\n checkKeywordTypes(it, it.dataTypes);\n}\nfunction checkContextTypes(it, types) {\n if (!types.length)\n return;\n if (!it.dataTypes.length) {\n it.dataTypes = types;\n return;\n }\n types.forEach((t) => {\n if (!includesType(it.dataTypes, t)) {\n strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`);\n }\n });\n narrowSchemaTypes(it, types);\n}\nfunction checkMultipleTypes(it, ts) {\n if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n strictTypesError(it, \"use allowUnionTypes to allow union type keyword\");\n }\n}\nfunction checkKeywordTypes(it, ts) {\n const rules = it.self.RULES.all;\n for (const keyword in rules) {\n const rule = rules[keyword];\n if (typeof rule == \"object\" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {\n const { type } = rule.definition;\n if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`);\n }\n }\n }\n}\nfunction hasApplicableType(schTs, kwdT) {\n return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"));\n}\nfunction includesType(ts, t) {\n return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"));\n}\nfunction narrowSchemaTypes(it, withTypes) {\n const ts = [];\n for (const t of it.dataTypes) {\n if (includesType(withTypes, t))\n ts.push(t);\n else if (withTypes.includes(\"integer\") && t === \"number\")\n ts.push(\"integer\");\n }\n it.dataTypes = ts;\n}\nfunction strictTypesError(it, msg) {\n const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;\n msg += ` at \"${schemaPath}\" (strictTypes)`;\n (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes);\n}\nclass KeywordCxt {\n constructor(it, def, keyword) {\n (0, keyword_1.validateKeywordUsage)(it, def, keyword);\n this.gen = it.gen;\n this.allErrors = it.allErrors;\n this.keyword = keyword;\n this.data = it.data;\n this.schema = it.schema[keyword];\n this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data;\n this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data);\n this.schemaType = def.schemaType;\n this.parentSchema = it.schema;\n this.params = {};\n this.it = it;\n this.def = def;\n if (this.$data) {\n this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it));\n }\n else {\n this.schemaCode = this.schemaValue;\n if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) {\n throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`);\n }\n }\n if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n this.errsCount = it.gen.const(\"_errs\", names_1.default.errors);\n }\n }\n result(condition, successAction, failAction) {\n this.failResult((0, codegen_1.not)(condition), successAction, failAction);\n }\n failResult(condition, successAction, failAction) {\n this.gen.if(condition);\n if (failAction)\n failAction();\n else\n this.error();\n if (successAction) {\n this.gen.else();\n successAction();\n if (this.allErrors)\n this.gen.endIf();\n }\n else {\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n }\n pass(condition, failAction) {\n this.failResult((0, codegen_1.not)(condition), undefined, failAction);\n }\n fail(condition) {\n if (condition === undefined) {\n this.error();\n if (!this.allErrors)\n this.gen.if(false); // this branch will be removed by gen.optimize\n return;\n }\n this.gen.if(condition);\n this.error();\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n fail$data(condition) {\n if (!this.$data)\n return this.fail(condition);\n const { schemaCode } = this;\n this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`);\n }\n error(append, errorParams, errorPaths) {\n if (errorParams) {\n this.setParams(errorParams);\n this._error(append, errorPaths);\n this.setParams({});\n return;\n }\n this._error(append, errorPaths);\n }\n _error(append, errorPaths) {\n ;\n (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths);\n }\n $dataError() {\n (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError);\n }\n reset() {\n if (this.errsCount === undefined)\n throw new Error('add \"trackErrors\" to keyword definition');\n (0, errors_1.resetErrorsCount)(this.gen, this.errsCount);\n }\n ok(cond) {\n if (!this.allErrors)\n this.gen.if(cond);\n }\n setParams(obj, assign) {\n if (assign)\n Object.assign(this.params, obj);\n else\n this.params = obj;\n }\n block$data(valid, codeBlock, $dataValid = codegen_1.nil) {\n this.gen.block(() => {\n this.check$data(valid, $dataValid);\n codeBlock();\n });\n }\n check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) {\n if (!this.$data)\n return;\n const { gen, schemaCode, schemaType, def } = this;\n gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid));\n if (valid !== codegen_1.nil)\n gen.assign(valid, true);\n if (schemaType.length || def.validateSchema) {\n gen.elseIf(this.invalid$data());\n this.$dataError();\n if (valid !== codegen_1.nil)\n gen.assign(valid, false);\n }\n gen.else();\n }\n invalid$data() {\n const { gen, schemaCode, schemaType, def, it } = this;\n return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema());\n function wrong$DataType() {\n if (schemaType.length) {\n /* istanbul ignore if */\n if (!(schemaCode instanceof codegen_1.Name))\n throw new Error(\"ajv implementation error\");\n const st = Array.isArray(schemaType) ? schemaType : [schemaType];\n return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;\n }\n return codegen_1.nil;\n }\n function invalid$DataSchema() {\n if (def.validateSchema) {\n const validateSchemaRef = gen.scopeValue(\"validate$data\", { ref: def.validateSchema }); // TODO value.code for standalone\n return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`;\n }\n return codegen_1.nil;\n }\n }\n subschema(appl, valid) {\n const subschema = (0, subschema_1.getSubschema)(this.it, appl);\n (0, subschema_1.extendSubschemaData)(subschema, this.it, appl);\n (0, subschema_1.extendSubschemaMode)(subschema, appl);\n const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined };\n subschemaCode(nextContext, valid);\n return nextContext;\n }\n mergeEvaluated(schemaCxt, toName) {\n const { it, gen } = this;\n if (!it.opts.unevaluated)\n return;\n if (it.props !== true && schemaCxt.props !== undefined) {\n it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);\n }\n if (it.items !== true && schemaCxt.items !== undefined) {\n it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);\n }\n }\n mergeValidEvaluated(schemaCxt, valid) {\n const { it, gen } = this;\n if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name));\n return true;\n }\n }\n}\nexports.KeywordCxt = KeywordCxt;\nfunction keywordCode(it, keyword, def, ruleType) {\n const cxt = new KeywordCxt(it, def, keyword);\n if (\"code\" in def) {\n def.code(cxt, ruleType);\n }\n else if (cxt.$data && def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n else if (\"macro\" in def) {\n (0, keyword_1.macroKeywordCode)(cxt, def);\n }\n else if (def.compile || def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n}\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/;\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/;\nfunction getData($data, { dataLevel, dataNames, dataPathArr }) {\n let jsonPointer;\n let data;\n if ($data === \"\")\n return names_1.default.rootData;\n if ($data[0] === \"/\") {\n if (!JSON_POINTER.test($data))\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n jsonPointer = $data;\n data = names_1.default.rootData;\n }\n else {\n const matches = RELATIVE_JSON_POINTER.exec($data);\n if (!matches)\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n const up = +matches[1];\n jsonPointer = matches[2];\n if (jsonPointer === \"#\") {\n if (up >= dataLevel)\n throw new Error(errorMsg(\"property/index\", up));\n return dataPathArr[dataLevel - up];\n }\n if (up > dataLevel)\n throw new Error(errorMsg(\"data\", up));\n data = dataNames[dataLevel - up];\n if (!jsonPointer)\n return data;\n }\n let expr = data;\n const segments = jsonPointer.split(\"/\");\n for (const segment of segments) {\n if (segment) {\n data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;\n expr = (0, codegen_1._) `${expr} && ${data}`;\n }\n }\n return expr;\n function errorMsg(pointerType, up) {\n return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;\n }\n}\nexports.getData = getData;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/keyword.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/keyword.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;\nconst codegen_1 = __webpack_require__(/*! ../codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst names_1 = __webpack_require__(/*! ../names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst code_1 = __webpack_require__(/*! ../../vocabularies/code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst errors_1 = __webpack_require__(/*! ../errors */ \"./node_modules/conf/node_modules/ajv/dist/compile/errors.js\");\nfunction macroKeywordCode(cxt, def) {\n const { gen, keyword, schema, parentSchema, it } = cxt;\n const macroSchema = def.macro.call(it.self, schema, parentSchema, it);\n const schemaRef = useKeyword(gen, keyword, macroSchema);\n if (it.opts.validateSchema !== false)\n it.self.validateSchema(macroSchema, true);\n const valid = gen.name(\"valid\");\n cxt.subschema({\n schema: macroSchema,\n schemaPath: codegen_1.nil,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n topSchemaRef: schemaRef,\n compositeRule: true,\n }, valid);\n cxt.pass(valid, () => cxt.error(true));\n}\nexports.macroKeywordCode = macroKeywordCode;\nfunction funcKeywordCode(cxt, def) {\n var _a;\n const { gen, keyword, schema, parentSchema, $data, it } = cxt;\n checkAsyncKeyword(it, def);\n const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate;\n const validateRef = useKeyword(gen, keyword, validate);\n const valid = gen.let(\"valid\");\n cxt.block$data(valid, validateKeyword);\n cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid);\n function validateKeyword() {\n if (def.errors === false) {\n assignValid();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => cxt.error());\n }\n else {\n const ruleErrs = def.async ? validateAsync() : validateSync();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => addErrs(cxt, ruleErrs));\n }\n }\n function validateAsync() {\n const ruleErrs = gen.let(\"ruleErrs\", null);\n gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e)));\n return ruleErrs;\n }\n function validateSync() {\n const validateErrs = (0, codegen_1._) `${validateRef}.errors`;\n gen.assign(validateErrs, null);\n assignValid(codegen_1.nil);\n return validateErrs;\n }\n function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) {\n const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self;\n const passSchema = !((\"compile\" in def && !$data) || def.schema === false);\n gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);\n }\n function reportErrs(errors) {\n var _a;\n gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors);\n }\n}\nexports.funcKeywordCode = funcKeywordCode;\nfunction modifyData(cxt) {\n const { gen, data, it } = cxt;\n gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`));\n}\nfunction addErrs(cxt, errs) {\n const { gen } = cxt;\n gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => {\n gen\n .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`)\n .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);\n (0, errors_1.extendErrors)(cxt);\n }, () => cxt.error());\n}\nfunction checkAsyncKeyword({ schemaEnv }, def) {\n if (def.async && !schemaEnv.$async)\n throw new Error(\"async keyword in sync schema\");\n}\nfunction useKeyword(gen, keyword, result) {\n if (result === undefined)\n throw new Error(`keyword \"${keyword}\" failed to compile`);\n return gen.scopeValue(\"keyword\", typeof result == \"function\" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) });\n}\nfunction validSchemaType(schema, schemaType, allowUndefined = false) {\n // TODO add tests\n return (!schemaType.length ||\n schemaType.some((st) => st === \"array\"\n ? Array.isArray(schema)\n : st === \"object\"\n ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")));\n}\nexports.validSchemaType = validSchemaType;\nfunction validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {\n /* istanbul ignore if */\n if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n throw new Error(\"ajv implementation error\");\n }\n const deps = def.dependencies;\n if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`);\n }\n if (def.validateSchema) {\n const valid = def.validateSchema(schema[keyword]);\n if (!valid) {\n const msg = `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n self.errorsText(def.validateSchema.errors);\n if (opts.validateSchema === \"log\")\n self.logger.error(msg);\n else\n throw new Error(msg);\n }\n }\n}\nexports.validateKeywordUsage = validateKeywordUsage;\n//# sourceMappingURL=keyword.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/keyword.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/compile/validate/subschema.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/compile/validate/subschema.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;\nconst codegen_1 = __webpack_require__(/*! ../codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nfunction getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {\n if (keyword !== undefined && schema !== undefined) {\n throw new Error('both \"keyword\" and \"schema\" passed, only one allowed');\n }\n if (keyword !== undefined) {\n const sch = it.schema[keyword];\n return schemaProp === undefined\n ? {\n schema: sch,\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n }\n : {\n schema: sch[schemaProp],\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`,\n };\n }\n if (schema !== undefined) {\n if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"');\n }\n return {\n schema,\n schemaPath,\n topSchemaRef,\n errSchemaPath,\n };\n }\n throw new Error('either \"keyword\" or \"schema\" must be passed');\n}\nexports.getSubschema = getSubschema;\nfunction extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {\n if (data !== undefined && dataProp !== undefined) {\n throw new Error('both \"data\" and \"dataProp\" passed, only one allowed');\n }\n const { gen } = it;\n if (dataProp !== undefined) {\n const { errorPath, dataPathArr, opts } = it;\n const nextData = gen.let(\"data\", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true);\n dataContextProps(nextData);\n subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;\n subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`;\n subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty];\n }\n if (data !== undefined) {\n const nextData = data instanceof codegen_1.Name ? data : gen.let(\"data\", data, true); // replaceable if used once?\n dataContextProps(nextData);\n if (propertyName !== undefined)\n subschema.propertyName = propertyName;\n // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n }\n if (dataTypes)\n subschema.dataTypes = dataTypes;\n function dataContextProps(_nextData) {\n subschema.data = _nextData;\n subschema.dataLevel = it.dataLevel + 1;\n subschema.dataTypes = [];\n it.definedProperties = new Set();\n subschema.parentData = it.data;\n subschema.dataNames = [...it.dataNames, _nextData];\n }\n}\nexports.extendSubschemaData = extendSubschemaData;\nfunction extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {\n if (compositeRule !== undefined)\n subschema.compositeRule = compositeRule;\n if (createErrors !== undefined)\n subschema.createErrors = createErrors;\n if (allErrors !== undefined)\n subschema.allErrors = allErrors;\n subschema.jtdDiscriminator = jtdDiscriminator; // not inherited\n subschema.jtdMetadata = jtdMetadata; // not inherited\n}\nexports.extendSubschemaMode = extendSubschemaMode;\n//# sourceMappingURL=subschema.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/compile/validate/subschema.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/core.js": -/*!*********************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/core.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;\nvar validate_1 = __webpack_require__(/*! ./compile/validate */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js\");\nObject.defineProperty(exports, \"KeywordCxt\", ({ enumerable: true, get: function () { return validate_1.KeywordCxt; } }));\nvar codegen_1 = __webpack_require__(/*! ./compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nObject.defineProperty(exports, \"_\", ({ enumerable: true, get: function () { return codegen_1._; } }));\nObject.defineProperty(exports, \"str\", ({ enumerable: true, get: function () { return codegen_1.str; } }));\nObject.defineProperty(exports, \"stringify\", ({ enumerable: true, get: function () { return codegen_1.stringify; } }));\nObject.defineProperty(exports, \"nil\", ({ enumerable: true, get: function () { return codegen_1.nil; } }));\nObject.defineProperty(exports, \"Name\", ({ enumerable: true, get: function () { return codegen_1.Name; } }));\nObject.defineProperty(exports, \"CodeGen\", ({ enumerable: true, get: function () { return codegen_1.CodeGen; } }));\nconst validation_error_1 = __webpack_require__(/*! ./runtime/validation_error */ \"./node_modules/conf/node_modules/ajv/dist/runtime/validation_error.js\");\nconst ref_error_1 = __webpack_require__(/*! ./compile/ref_error */ \"./node_modules/conf/node_modules/ajv/dist/compile/ref_error.js\");\nconst rules_1 = __webpack_require__(/*! ./compile/rules */ \"./node_modules/conf/node_modules/ajv/dist/compile/rules.js\");\nconst compile_1 = __webpack_require__(/*! ./compile */ \"./node_modules/conf/node_modules/ajv/dist/compile/index.js\");\nconst codegen_2 = __webpack_require__(/*! ./compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst resolve_1 = __webpack_require__(/*! ./compile/resolve */ \"./node_modules/conf/node_modules/ajv/dist/compile/resolve.js\");\nconst dataType_1 = __webpack_require__(/*! ./compile/validate/dataType */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js\");\nconst util_1 = __webpack_require__(/*! ./compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst $dataRefSchema = __webpack_require__(/*! ./refs/data.json */ \"./node_modules/conf/node_modules/ajv/dist/refs/data.json\");\nconst uri_1 = __webpack_require__(/*! ./runtime/uri */ \"./node_modules/conf/node_modules/ajv/dist/runtime/uri.js\");\nconst defaultRegExp = (str, flags) => new RegExp(str, flags);\ndefaultRegExp.code = \"new RegExp\";\nconst META_IGNORE_OPTIONS = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"];\nconst EXT_SCOPE_NAMES = new Set([\n \"validate\",\n \"serialize\",\n \"parse\",\n \"wrapper\",\n \"root\",\n \"schema\",\n \"keyword\",\n \"pattern\",\n \"formats\",\n \"validate$data\",\n \"func\",\n \"obj\",\n \"Error\",\n]);\nconst removedOptions = {\n errorDataPath: \"\",\n format: \"`validateFormats: false` can be used instead.\",\n nullable: '\"nullable\" keyword is supported by default.',\n jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n sourceCode: \"Use option `code: {source: true}`\",\n strictDefaults: \"It is default now, see option `strict`.\",\n strictKeywords: \"It is default now, see option `strict`.\",\n uniqueItems: '\"uniqueItems\" keyword is always validated.',\n unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n cache: \"Map is used as cache, schema object as key.\",\n serialize: \"Map is used as cache, schema object as key.\",\n ajvErrors: \"It is default now.\",\n};\nconst deprecatedOptions = {\n ignoreKeywordsWithRef: \"\",\n jsPropertySyntax: \"\",\n unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n};\nconst MAX_EXPRESSION = 200;\n// eslint-disable-next-line complexity\nfunction requiredOptions(o) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;\n const s = o.strict;\n const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize;\n const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;\n const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;\n const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;\n return {\n strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true,\n strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true,\n strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : \"log\",\n strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : \"log\",\n strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,\n code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp },\n loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,\n loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,\n meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true,\n messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true,\n inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true,\n schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : \"$id\",\n addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true,\n validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true,\n validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true,\n unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true,\n int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true,\n uriResolver: uriResolver,\n };\n}\nclass Ajv {\n constructor(opts = {}) {\n this.schemas = {};\n this.refs = {};\n this.formats = {};\n this._compilations = new Set();\n this._loading = {};\n this._cache = new Map();\n opts = this.opts = { ...opts, ...requiredOptions(opts) };\n const { es5, lines } = this.opts.code;\n this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines });\n this.logger = getLogger(opts.logger);\n const formatOpt = opts.validateFormats;\n opts.validateFormats = false;\n this.RULES = (0, rules_1.getRules)();\n checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\");\n checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\");\n this._metaOpts = getMetaSchemaOptions.call(this);\n if (opts.formats)\n addInitialFormats.call(this);\n this._addVocabularies();\n this._addDefaultMetaSchema();\n if (opts.keywords)\n addInitialKeywords.call(this, opts.keywords);\n if (typeof opts.meta == \"object\")\n this.addMetaSchema(opts.meta);\n addInitialSchemas.call(this);\n opts.validateFormats = formatOpt;\n }\n _addVocabularies() {\n this.addKeyword(\"$async\");\n }\n _addDefaultMetaSchema() {\n const { $data, meta, schemaId } = this.opts;\n let _dataRefSchema = $dataRefSchema;\n if (schemaId === \"id\") {\n _dataRefSchema = { ...$dataRefSchema };\n _dataRefSchema.id = _dataRefSchema.$id;\n delete _dataRefSchema.$id;\n }\n if (meta && $data)\n this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false);\n }\n defaultMeta() {\n const { meta, schemaId } = this.opts;\n return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined);\n }\n validate(schemaKeyRef, // key, ref or schema object\n data // to be validated\n ) {\n let v;\n if (typeof schemaKeyRef == \"string\") {\n v = this.getSchema(schemaKeyRef);\n if (!v)\n throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`);\n }\n else {\n v = this.compile(schemaKeyRef);\n }\n const valid = v(data);\n if (!(\"$async\" in v))\n this.errors = v.errors;\n return valid;\n }\n compile(schema, _meta) {\n const sch = this._addSchema(schema, _meta);\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n compileAsync(schema, meta) {\n if (typeof this.opts.loadSchema != \"function\") {\n throw new Error(\"options.loadSchema should be a function\");\n }\n const { loadSchema } = this.opts;\n return runCompileAsync.call(this, schema, meta);\n async function runCompileAsync(_schema, _meta) {\n await loadMetaSchema.call(this, _schema.$schema);\n const sch = this._addSchema(_schema, _meta);\n return sch.validate || _compileAsync.call(this, sch);\n }\n async function loadMetaSchema($ref) {\n if ($ref && !this.getSchema($ref)) {\n await runCompileAsync.call(this, { $ref }, true);\n }\n }\n async function _compileAsync(sch) {\n try {\n return this._compileSchemaEnv(sch);\n }\n catch (e) {\n if (!(e instanceof ref_error_1.default))\n throw e;\n checkLoaded.call(this, e);\n await loadMissingSchema.call(this, e.missingSchema);\n return _compileAsync.call(this, sch);\n }\n }\n function checkLoaded({ missingSchema: ref, missingRef }) {\n if (this.refs[ref]) {\n throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`);\n }\n }\n async function loadMissingSchema(ref) {\n const _schema = await _loadSchema.call(this, ref);\n if (!this.refs[ref])\n await loadMetaSchema.call(this, _schema.$schema);\n if (!this.refs[ref])\n this.addSchema(_schema, ref, meta);\n }\n async function _loadSchema(ref) {\n const p = this._loading[ref];\n if (p)\n return p;\n try {\n return await (this._loading[ref] = loadSchema(ref));\n }\n finally {\n delete this._loading[ref];\n }\n }\n }\n // Adds schema to the instance\n addSchema(schema, // If array is passed, `key` will be ignored\n key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n ) {\n if (Array.isArray(schema)) {\n for (const sch of schema)\n this.addSchema(sch, undefined, _meta, _validateSchema);\n return this;\n }\n let id;\n if (typeof schema === \"object\") {\n const { schemaId } = this.opts;\n id = schema[schemaId];\n if (id !== undefined && typeof id != \"string\") {\n throw new Error(`schema ${schemaId} must be string`);\n }\n }\n key = (0, resolve_1.normalizeId)(key || id);\n this._checkUnique(key);\n this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true);\n return this;\n }\n // Add schema that will be used to validate other schemas\n // options in META_IGNORE_OPTIONS are alway set to false\n addMetaSchema(schema, key, // schema key\n _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n ) {\n this.addSchema(schema, key, true, _validateSchema);\n return this;\n }\n // Validate schema against its meta-schema\n validateSchema(schema, throwOrLogError) {\n if (typeof schema == \"boolean\")\n return true;\n let $schema;\n $schema = schema.$schema;\n if ($schema !== undefined && typeof $schema != \"string\") {\n throw new Error(\"$schema must be a string\");\n }\n $schema = $schema || this.opts.defaultMeta || this.defaultMeta();\n if (!$schema) {\n this.logger.warn(\"meta-schema not available\");\n this.errors = null;\n return true;\n }\n const valid = this.validate($schema, schema);\n if (!valid && throwOrLogError) {\n const message = \"schema is invalid: \" + this.errorsText();\n if (this.opts.validateSchema === \"log\")\n this.logger.error(message);\n else\n throw new Error(message);\n }\n return valid;\n }\n // Get compiled schema by `key` or `ref`.\n // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n getSchema(keyRef) {\n let sch;\n while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\")\n keyRef = sch;\n if (sch === undefined) {\n const { schemaId } = this.opts;\n const root = new compile_1.SchemaEnv({ schema: {}, schemaId });\n sch = compile_1.resolveSchema.call(this, root, keyRef);\n if (!sch)\n return;\n this.refs[keyRef] = sch;\n }\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n // Remove cached schema(s).\n // If no parameter is passed all schemas but meta-schemas are removed.\n // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n removeSchema(schemaKeyRef) {\n if (schemaKeyRef instanceof RegExp) {\n this._removeAllSchemas(this.schemas, schemaKeyRef);\n this._removeAllSchemas(this.refs, schemaKeyRef);\n return this;\n }\n switch (typeof schemaKeyRef) {\n case \"undefined\":\n this._removeAllSchemas(this.schemas);\n this._removeAllSchemas(this.refs);\n this._cache.clear();\n return this;\n case \"string\": {\n const sch = getSchEnv.call(this, schemaKeyRef);\n if (typeof sch == \"object\")\n this._cache.delete(sch.schema);\n delete this.schemas[schemaKeyRef];\n delete this.refs[schemaKeyRef];\n return this;\n }\n case \"object\": {\n const cacheKey = schemaKeyRef;\n this._cache.delete(cacheKey);\n let id = schemaKeyRef[this.opts.schemaId];\n if (id) {\n id = (0, resolve_1.normalizeId)(id);\n delete this.schemas[id];\n delete this.refs[id];\n }\n return this;\n }\n default:\n throw new Error(\"ajv.removeSchema: invalid parameter\");\n }\n }\n // add \"vocabulary\" - a collection of keywords\n addVocabulary(definitions) {\n for (const def of definitions)\n this.addKeyword(def);\n return this;\n }\n addKeyword(kwdOrDef, def // deprecated\n ) {\n let keyword;\n if (typeof kwdOrDef == \"string\") {\n keyword = kwdOrDef;\n if (typeof def == \"object\") {\n this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\");\n def.keyword = keyword;\n }\n }\n else if (typeof kwdOrDef == \"object\" && def === undefined) {\n def = kwdOrDef;\n keyword = def.keyword;\n if (Array.isArray(keyword) && !keyword.length) {\n throw new Error(\"addKeywords: keyword must be string or non-empty array\");\n }\n }\n else {\n throw new Error(\"invalid addKeywords parameters\");\n }\n checkKeyword.call(this, keyword, def);\n if (!def) {\n (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd));\n return this;\n }\n keywordMetaschema.call(this, def);\n const definition = {\n ...def,\n type: (0, dataType_1.getJSONTypes)(def.type),\n schemaType: (0, dataType_1.getJSONTypes)(def.schemaType),\n };\n (0, util_1.eachItem)(keyword, definition.type.length === 0\n ? (k) => addRule.call(this, k, definition)\n : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)));\n return this;\n }\n getKeyword(keyword) {\n const rule = this.RULES.all[keyword];\n return typeof rule == \"object\" ? rule.definition : !!rule;\n }\n // Remove keyword\n removeKeyword(keyword) {\n // TODO return type should be Ajv\n const { RULES } = this;\n delete RULES.keywords[keyword];\n delete RULES.all[keyword];\n for (const group of RULES.rules) {\n const i = group.rules.findIndex((rule) => rule.keyword === keyword);\n if (i >= 0)\n group.rules.splice(i, 1);\n }\n return this;\n }\n // Add format\n addFormat(name, format) {\n if (typeof format == \"string\")\n format = new RegExp(format);\n this.formats[name] = format;\n return this;\n }\n errorsText(errors = this.errors, // optional array of validation errors\n { separator = \", \", dataVar = \"data\" } = {} // optional options with properties `separator` and `dataVar`\n ) {\n if (!errors || errors.length === 0)\n return \"No errors\";\n return errors\n .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n .reduce((text, msg) => text + separator + msg);\n }\n $dataMetaSchema(metaSchema, keywordsJsonPointers) {\n const rules = this.RULES.all;\n metaSchema = JSON.parse(JSON.stringify(metaSchema));\n for (const jsonPointer of keywordsJsonPointers) {\n const segments = jsonPointer.split(\"/\").slice(1); // first segment is an empty string\n let keywords = metaSchema;\n for (const seg of segments)\n keywords = keywords[seg];\n for (const key in rules) {\n const rule = rules[key];\n if (typeof rule != \"object\")\n continue;\n const { $data } = rule.definition;\n const schema = keywords[key];\n if ($data && schema)\n keywords[key] = schemaOrData(schema);\n }\n }\n return metaSchema;\n }\n _removeAllSchemas(schemas, regex) {\n for (const keyRef in schemas) {\n const sch = schemas[keyRef];\n if (!regex || regex.test(keyRef)) {\n if (typeof sch == \"string\") {\n delete schemas[keyRef];\n }\n else if (sch && !sch.meta) {\n this._cache.delete(sch.schema);\n delete schemas[keyRef];\n }\n }\n }\n }\n _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {\n let id;\n const { schemaId } = this.opts;\n if (typeof schema == \"object\") {\n id = schema[schemaId];\n }\n else {\n if (this.opts.jtd)\n throw new Error(\"schema must be object\");\n else if (typeof schema != \"boolean\")\n throw new Error(\"schema must be object or boolean\");\n }\n let sch = this._cache.get(schema);\n if (sch !== undefined)\n return sch;\n baseId = (0, resolve_1.normalizeId)(id || baseId);\n const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId);\n sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs });\n this._cache.set(sch.schema, sch);\n if (addSchema && !baseId.startsWith(\"#\")) {\n // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n if (baseId)\n this._checkUnique(baseId);\n this.refs[baseId] = sch;\n }\n if (validateSchema)\n this.validateSchema(schema, true);\n return sch;\n }\n _checkUnique(id) {\n if (this.schemas[id] || this.refs[id]) {\n throw new Error(`schema with key or id \"${id}\" already exists`);\n }\n }\n _compileSchemaEnv(sch) {\n if (sch.meta)\n this._compileMetaSchema(sch);\n else\n compile_1.compileSchema.call(this, sch);\n /* istanbul ignore if */\n if (!sch.validate)\n throw new Error(\"ajv implementation error\");\n return sch.validate;\n }\n _compileMetaSchema(sch) {\n const currentOpts = this.opts;\n this.opts = this._metaOpts;\n try {\n compile_1.compileSchema.call(this, sch);\n }\n finally {\n this.opts = currentOpts;\n }\n }\n}\nexports[\"default\"] = Ajv;\nAjv.ValidationError = validation_error_1.default;\nAjv.MissingRefError = ref_error_1.default;\nfunction checkOptions(checkOpts, options, msg, log = \"error\") {\n for (const key in checkOpts) {\n const opt = key;\n if (opt in options)\n this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`);\n }\n}\nfunction getSchEnv(keyRef) {\n keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line\n return this.schemas[keyRef] || this.refs[keyRef];\n}\nfunction addInitialSchemas() {\n const optsSchemas = this.opts.schemas;\n if (!optsSchemas)\n return;\n if (Array.isArray(optsSchemas))\n this.addSchema(optsSchemas);\n else\n for (const key in optsSchemas)\n this.addSchema(optsSchemas[key], key);\n}\nfunction addInitialFormats() {\n for (const name in this.opts.formats) {\n const format = this.opts.formats[name];\n if (format)\n this.addFormat(name, format);\n }\n}\nfunction addInitialKeywords(defs) {\n if (Array.isArray(defs)) {\n this.addVocabulary(defs);\n return;\n }\n this.logger.warn(\"keywords option as map is deprecated, pass array\");\n for (const keyword in defs) {\n const def = defs[keyword];\n if (!def.keyword)\n def.keyword = keyword;\n this.addKeyword(def);\n }\n}\nfunction getMetaSchemaOptions() {\n const metaOpts = { ...this.opts };\n for (const opt of META_IGNORE_OPTIONS)\n delete metaOpts[opt];\n return metaOpts;\n}\nconst noLogs = { log() { }, warn() { }, error() { } };\nfunction getLogger(logger) {\n if (logger === false)\n return noLogs;\n if (logger === undefined)\n return console;\n if (logger.log && logger.warn && logger.error)\n return logger;\n throw new Error(\"logger must implement log, warn and error methods\");\n}\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;\nfunction checkKeyword(keyword, def) {\n const { RULES } = this;\n (0, util_1.eachItem)(keyword, (kwd) => {\n if (RULES.keywords[kwd])\n throw new Error(`Keyword ${kwd} is already defined`);\n if (!KEYWORD_NAME.test(kwd))\n throw new Error(`Keyword ${kwd} has invalid name`);\n });\n if (!def)\n return;\n if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n throw new Error('$data keyword must have \"code\" or \"validate\" function');\n }\n}\nfunction addRule(keyword, definition, dataType) {\n var _a;\n const post = definition === null || definition === void 0 ? void 0 : definition.post;\n if (dataType && post)\n throw new Error('keyword with \"post\" flag cannot have \"type\"');\n const { RULES } = this;\n let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);\n if (!ruleGroup) {\n ruleGroup = { type: dataType, rules: [] };\n RULES.rules.push(ruleGroup);\n }\n RULES.keywords[keyword] = true;\n if (!definition)\n return;\n const rule = {\n keyword,\n definition: {\n ...definition,\n type: (0, dataType_1.getJSONTypes)(definition.type),\n schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType),\n },\n };\n if (definition.before)\n addBeforeRule.call(this, ruleGroup, rule, definition.before);\n else\n ruleGroup.rules.push(rule);\n RULES.all[keyword] = rule;\n (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));\n}\nfunction addBeforeRule(ruleGroup, rule, before) {\n const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);\n if (i >= 0) {\n ruleGroup.rules.splice(i, 0, rule);\n }\n else {\n ruleGroup.rules.push(rule);\n this.logger.warn(`rule ${before} is not defined`);\n }\n}\nfunction keywordMetaschema(def) {\n let { metaSchema } = def;\n if (metaSchema === undefined)\n return;\n if (def.$data && this.opts.$data)\n metaSchema = schemaOrData(metaSchema);\n def.validateSchema = this.compile(metaSchema, true);\n}\nconst $dataRef = {\n $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n};\nfunction schemaOrData(schema) {\n return { anyOf: [schema, $dataRef] };\n}\n//# sourceMappingURL=core.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/core.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/runtime/equal.js": -/*!******************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/runtime/equal.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n// https://github.com/ajv-validator/ajv/issues/889\nconst equal = __webpack_require__(/*! fast-deep-equal */ \"./node_modules/fast-deep-equal/index.js\");\nequal.code = 'require(\"ajv/dist/runtime/equal\").default';\nexports[\"default\"] = equal;\n//# sourceMappingURL=equal.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/runtime/equal.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/runtime/ucs2length.js": -/*!***********************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/runtime/ucs2length.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nfunction ucs2length(str) {\n const len = str.length;\n let length = 0;\n let pos = 0;\n let value;\n while (pos < len) {\n length++;\n value = str.charCodeAt(pos++);\n if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xfc00) === 0xdc00)\n pos++; // low surrogate\n }\n }\n return length;\n}\nexports[\"default\"] = ucs2length;\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default';\n//# sourceMappingURL=ucs2length.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/runtime/ucs2length.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/runtime/uri.js": -/*!****************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/runtime/uri.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst uri = __webpack_require__(/*! uri-js */ \"./node_modules/uri-js/dist/es5/uri.all.js\");\nuri.code = 'require(\"ajv/dist/runtime/uri\").default';\nexports[\"default\"] = uri;\n//# sourceMappingURL=uri.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/runtime/uri.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/runtime/validation_error.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/runtime/validation_error.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nclass ValidationError extends Error {\n constructor(errors) {\n super(\"validation failed\");\n this.errors = errors;\n this.ajv = this.validation = true;\n }\n}\nexports[\"default\"] = ValidationError;\n//# sourceMappingURL=validation_error.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/runtime/validation_error.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateAdditionalItems = void 0;\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,\n params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,\n};\nconst def = {\n keyword: \"additionalItems\",\n type: \"array\",\n schemaType: [\"boolean\", \"object\"],\n before: \"uniqueItems\",\n error,\n code(cxt) {\n const { parentSchema, it } = cxt;\n const { items } = parentSchema;\n if (!Array.isArray(items)) {\n (0, util_1.checkStrictMode)(it, '\"additionalItems\" is ignored when \"items\" is not an array of schemas');\n return;\n }\n validateAdditionalItems(cxt, items);\n },\n};\nfunction validateAdditionalItems(cxt, items) {\n const { gen, schema, data, keyword, it } = cxt;\n it.items = true;\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n if (schema === false) {\n cxt.setParams({ len: items.length });\n cxt.pass((0, codegen_1._) `${len} <= ${items.length}`);\n }\n else if (typeof schema == \"object\" && !(0, util_1.alwaysValidSchema)(it, schema)) {\n const valid = gen.var(\"valid\", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var\n gen.if((0, codegen_1.not)(valid), () => validateItems(valid));\n cxt.ok(valid);\n }\n function validateItems(valid) {\n gen.forRange(\"i\", items.length, len, (i) => {\n cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);\n if (!it.allErrors)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n });\n }\n}\nexports.validateAdditionalItems = validateAdditionalItems;\nexports[\"default\"] = def;\n//# sourceMappingURL=additionalItems.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js ***! - \*************************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst names_1 = __webpack_require__(/*! ../../compile/names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: \"must NOT have additional properties\",\n params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,\n};\nconst def = {\n keyword: \"additionalProperties\",\n type: [\"object\"],\n schemaType: [\"boolean\", \"object\"],\n allowUndefined: true,\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, data, errsCount, it } = cxt;\n /* istanbul ignore if */\n if (!errsCount)\n throw new Error(\"ajv implementation error\");\n const { allErrors, opts } = it;\n it.props = true;\n if (opts.removeAdditional !== \"all\" && (0, util_1.alwaysValidSchema)(it, schema))\n return;\n const props = (0, code_1.allSchemaProperties)(parentSchema.properties);\n const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties);\n checkAdditionalProperties();\n cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);\n function checkAdditionalProperties() {\n gen.forIn(\"key\", data, (key) => {\n if (!props.length && !patProps.length)\n additionalPropertyCode(key);\n else\n gen.if(isAdditional(key), () => additionalPropertyCode(key));\n });\n }\n function isAdditional(key) {\n let definedProp;\n if (props.length > 8) {\n // TODO maybe an option instead of hard-coded 8?\n const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, \"properties\");\n definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);\n }\n else if (props.length) {\n definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`));\n }\n else {\n definedProp = codegen_1.nil;\n }\n if (patProps.length) {\n definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`));\n }\n return (0, codegen_1.not)(definedProp);\n }\n function deleteAdditional(key) {\n gen.code((0, codegen_1._) `delete ${data}[${key}]`);\n }\n function additionalPropertyCode(key) {\n if (opts.removeAdditional === \"all\" || (opts.removeAdditional && schema === false)) {\n deleteAdditional(key);\n return;\n }\n if (schema === false) {\n cxt.setParams({ additionalProperty: key });\n cxt.error();\n if (!allErrors)\n gen.break();\n return;\n }\n if (typeof schema == \"object\" && !(0, util_1.alwaysValidSchema)(it, schema)) {\n const valid = gen.name(\"valid\");\n if (opts.removeAdditional === \"failing\") {\n applyAdditionalSchema(key, valid, false);\n gen.if((0, codegen_1.not)(valid), () => {\n cxt.reset();\n deleteAdditional(key);\n });\n }\n else {\n applyAdditionalSchema(key, valid);\n if (!allErrors)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n }\n }\n }\n function applyAdditionalSchema(key, valid, errors) {\n const subschema = {\n keyword: \"additionalProperties\",\n dataProp: key,\n dataPropType: util_1.Type.Str,\n };\n if (errors === false) {\n Object.assign(subschema, {\n compositeRule: true,\n createErrors: false,\n allErrors: false,\n });\n }\n cxt.subschema(subschema, valid);\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=additionalProperties.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/allOf.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/allOf.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst def = {\n keyword: \"allOf\",\n schemaType: \"array\",\n code(cxt) {\n const { gen, schema, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n const valid = gen.name(\"valid\");\n schema.forEach((sch, i) => {\n if ((0, util_1.alwaysValidSchema)(it, sch))\n return;\n const schCxt = cxt.subschema({ keyword: \"allOf\", schemaProp: i }, valid);\n cxt.ok(valid);\n cxt.mergeEvaluated(schCxt);\n });\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=allOf.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/allOf.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/anyOf.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/anyOf.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst def = {\n keyword: \"anyOf\",\n schemaType: \"array\",\n trackErrors: true,\n code: code_1.validateUnion,\n error: { message: \"must match a schema in anyOf\" },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=anyOf.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/anyOf.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/contains.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/contains.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: ({ params: { min, max } }) => max === undefined\n ? (0, codegen_1.str) `must contain at least ${min} valid item(s)`\n : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`,\n params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`,\n};\nconst def = {\n keyword: \"contains\",\n type: \"array\",\n schemaType: [\"object\", \"boolean\"],\n before: \"uniqueItems\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n let min;\n let max;\n const { minContains, maxContains } = parentSchema;\n if (it.opts.next) {\n min = minContains === undefined ? 1 : minContains;\n max = maxContains;\n }\n else {\n min = 1;\n }\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n cxt.setParams({ min, max });\n if (max === undefined && min === 0) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`);\n return;\n }\n if (max !== undefined && min > max) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" > \"maxContains\" is always invalid`);\n cxt.fail();\n return;\n }\n if ((0, util_1.alwaysValidSchema)(it, schema)) {\n let cond = (0, codegen_1._) `${len} >= ${min}`;\n if (max !== undefined)\n cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`;\n cxt.pass(cond);\n return;\n }\n it.items = true;\n const valid = gen.name(\"valid\");\n if (max === undefined && min === 1) {\n validateItems(valid, () => gen.if(valid, () => gen.break()));\n }\n else if (min === 0) {\n gen.let(valid, true);\n if (max !== undefined)\n gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount);\n }\n else {\n gen.let(valid, false);\n validateItemsWithCount();\n }\n cxt.result(valid, () => cxt.reset());\n function validateItemsWithCount() {\n const schValid = gen.name(\"_valid\");\n const count = gen.let(\"count\", 0);\n validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));\n }\n function validateItems(_valid, block) {\n gen.forRange(\"i\", 0, len, (i) => {\n cxt.subschema({\n keyword: \"contains\",\n dataProp: i,\n dataPropType: util_1.Type.Num,\n compositeRule: true,\n }, _valid);\n block();\n });\n }\n function checkLimits(count) {\n gen.code((0, codegen_1._) `${count}++`);\n if (max === undefined) {\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break());\n }\n else {\n gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break());\n if (min === 1)\n gen.assign(valid, true);\n else\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true));\n }\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=contains.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/contains.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/dependencies.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/dependencies.js ***! - \*****************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nexports.error = {\n message: ({ params: { property, depsCount, deps } }) => {\n const property_ies = depsCount === 1 ? \"property\" : \"properties\";\n return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;\n },\n params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property},\n missingProperty: ${missingProperty},\n depsCount: ${depsCount},\n deps: ${deps}}`, // TODO change to reference\n};\nconst def = {\n keyword: \"dependencies\",\n type: \"object\",\n schemaType: \"object\",\n error: exports.error,\n code(cxt) {\n const [propDeps, schDeps] = splitDependencies(cxt);\n validatePropertyDeps(cxt, propDeps);\n validateSchemaDeps(cxt, schDeps);\n },\n};\nfunction splitDependencies({ schema }) {\n const propertyDeps = {};\n const schemaDeps = {};\n for (const key in schema) {\n if (key === \"__proto__\")\n continue;\n const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;\n deps[key] = schema[key];\n }\n return [propertyDeps, schemaDeps];\n}\nfunction validatePropertyDeps(cxt, propertyDeps = cxt.schema) {\n const { gen, data, it } = cxt;\n if (Object.keys(propertyDeps).length === 0)\n return;\n const missing = gen.let(\"missing\");\n for (const prop in propertyDeps) {\n const deps = propertyDeps[prop];\n if (deps.length === 0)\n continue;\n const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);\n cxt.setParams({\n property: prop,\n depsCount: deps.length,\n deps: deps.join(\", \"),\n });\n if (it.allErrors) {\n gen.if(hasProperty, () => {\n for (const depProp of deps) {\n (0, code_1.checkReportMissingProp)(cxt, depProp);\n }\n });\n }\n else {\n gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);\n (0, code_1.reportMissingProp)(cxt, missing);\n gen.else();\n }\n }\n}\nexports.validatePropertyDeps = validatePropertyDeps;\nfunction validateSchemaDeps(cxt, schemaDeps = cxt.schema) {\n const { gen, data, keyword, it } = cxt;\n const valid = gen.name(\"valid\");\n for (const prop in schemaDeps) {\n if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))\n continue;\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => {\n const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);\n cxt.mergeValidEvaluated(schCxt, valid);\n }, () => gen.var(valid, true) // TODO var\n );\n cxt.ok(valid);\n }\n}\nexports.validateSchemaDeps = validateSchemaDeps;\nexports[\"default\"] = def;\n//# sourceMappingURL=dependencies.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/dependencies.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/if.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/if.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: ({ params }) => (0, codegen_1.str) `must match \"${params.ifClause}\" schema`,\n params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`,\n};\nconst def = {\n keyword: \"if\",\n schemaType: [\"object\", \"boolean\"],\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, parentSchema, it } = cxt;\n if (parentSchema.then === undefined && parentSchema.else === undefined) {\n (0, util_1.checkStrictMode)(it, '\"if\" without \"then\" and \"else\" is ignored');\n }\n const hasThen = hasSchema(it, \"then\");\n const hasElse = hasSchema(it, \"else\");\n if (!hasThen && !hasElse)\n return;\n const valid = gen.let(\"valid\", true);\n const schValid = gen.name(\"_valid\");\n validateIf();\n cxt.reset();\n if (hasThen && hasElse) {\n const ifClause = gen.let(\"ifClause\");\n cxt.setParams({ ifClause });\n gen.if(schValid, validateClause(\"then\", ifClause), validateClause(\"else\", ifClause));\n }\n else if (hasThen) {\n gen.if(schValid, validateClause(\"then\"));\n }\n else {\n gen.if((0, codegen_1.not)(schValid), validateClause(\"else\"));\n }\n cxt.pass(valid, () => cxt.error(true));\n function validateIf() {\n const schCxt = cxt.subschema({\n keyword: \"if\",\n compositeRule: true,\n createErrors: false,\n allErrors: false,\n }, schValid);\n cxt.mergeEvaluated(schCxt);\n }\n function validateClause(keyword, ifClause) {\n return () => {\n const schCxt = cxt.subschema({ keyword }, schValid);\n gen.assign(valid, schValid);\n cxt.mergeValidEvaluated(schCxt, valid);\n if (ifClause)\n gen.assign(ifClause, (0, codegen_1._) `${keyword}`);\n else\n cxt.setParams({ ifClause: keyword });\n };\n }\n },\n};\nfunction hasSchema(it, keyword) {\n const schema = it.schema[keyword];\n return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema);\n}\nexports[\"default\"] = def;\n//# sourceMappingURL=if.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/if.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/index.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/index.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst additionalItems_1 = __webpack_require__(/*! ./additionalItems */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js\");\nconst prefixItems_1 = __webpack_require__(/*! ./prefixItems */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js\");\nconst items_1 = __webpack_require__(/*! ./items */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items.js\");\nconst items2020_1 = __webpack_require__(/*! ./items2020 */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items2020.js\");\nconst contains_1 = __webpack_require__(/*! ./contains */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/contains.js\");\nconst dependencies_1 = __webpack_require__(/*! ./dependencies */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/dependencies.js\");\nconst propertyNames_1 = __webpack_require__(/*! ./propertyNames */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js\");\nconst additionalProperties_1 = __webpack_require__(/*! ./additionalProperties */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js\");\nconst properties_1 = __webpack_require__(/*! ./properties */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/properties.js\");\nconst patternProperties_1 = __webpack_require__(/*! ./patternProperties */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js\");\nconst not_1 = __webpack_require__(/*! ./not */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/not.js\");\nconst anyOf_1 = __webpack_require__(/*! ./anyOf */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/anyOf.js\");\nconst oneOf_1 = __webpack_require__(/*! ./oneOf */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/oneOf.js\");\nconst allOf_1 = __webpack_require__(/*! ./allOf */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/allOf.js\");\nconst if_1 = __webpack_require__(/*! ./if */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/if.js\");\nconst thenElse_1 = __webpack_require__(/*! ./thenElse */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/thenElse.js\");\nfunction getApplicator(draft2020 = false) {\n const applicator = [\n // any\n not_1.default,\n anyOf_1.default,\n oneOf_1.default,\n allOf_1.default,\n if_1.default,\n thenElse_1.default,\n // object\n propertyNames_1.default,\n additionalProperties_1.default,\n dependencies_1.default,\n properties_1.default,\n patternProperties_1.default,\n ];\n // array\n if (draft2020)\n applicator.push(prefixItems_1.default, items2020_1.default);\n else\n applicator.push(additionalItems_1.default, items_1.default);\n applicator.push(contains_1.default);\n return applicator;\n}\nexports[\"default\"] = getApplicator;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateTuple = void 0;\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst def = {\n keyword: \"items\",\n type: \"array\",\n schemaType: [\"object\", \"array\", \"boolean\"],\n before: \"uniqueItems\",\n code(cxt) {\n const { schema, it } = cxt;\n if (Array.isArray(schema))\n return validateTuple(cxt, \"additionalItems\", schema);\n it.items = true;\n if ((0, util_1.alwaysValidSchema)(it, schema))\n return;\n cxt.ok((0, code_1.validateArray)(cxt));\n },\n};\nfunction validateTuple(cxt, extraItems, schArr = cxt.schema) {\n const { gen, parentSchema, data, keyword, it } = cxt;\n checkStrictTuple(parentSchema);\n if (it.opts.unevaluated && schArr.length && it.items !== true) {\n it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items);\n }\n const valid = gen.name(\"valid\");\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n schArr.forEach((sch, i) => {\n if ((0, util_1.alwaysValidSchema)(it, sch))\n return;\n gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({\n keyword,\n schemaProp: i,\n dataProp: i,\n }, valid));\n cxt.ok(valid);\n });\n function checkStrictTuple(sch) {\n const { opts, errSchemaPath } = it;\n const l = schArr.length;\n const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false);\n if (opts.strictTuples && !fullTuple) {\n const msg = `\"${keyword}\" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path \"${errSchemaPath}\"`;\n (0, util_1.checkStrictMode)(it, msg, opts.strictTuples);\n }\n }\n}\nexports.validateTuple = validateTuple;\nexports[\"default\"] = def;\n//# sourceMappingURL=items.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items2020.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items2020.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst additionalItems_1 = __webpack_require__(/*! ./additionalItems */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js\");\nconst error = {\n message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,\n params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,\n};\nconst def = {\n keyword: \"items\",\n type: \"array\",\n schemaType: [\"object\", \"boolean\"],\n before: \"uniqueItems\",\n error,\n code(cxt) {\n const { schema, parentSchema, it } = cxt;\n const { prefixItems } = parentSchema;\n it.items = true;\n if ((0, util_1.alwaysValidSchema)(it, schema))\n return;\n if (prefixItems)\n (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems);\n else\n cxt.ok((0, code_1.validateArray)(cxt));\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=items2020.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items2020.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/not.js": -/*!********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/not.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst def = {\n keyword: \"not\",\n schemaType: [\"object\", \"boolean\"],\n trackErrors: true,\n code(cxt) {\n const { gen, schema, it } = cxt;\n if ((0, util_1.alwaysValidSchema)(it, schema)) {\n cxt.fail();\n return;\n }\n const valid = gen.name(\"valid\");\n cxt.subschema({\n keyword: \"not\",\n compositeRule: true,\n createErrors: false,\n allErrors: false,\n }, valid);\n cxt.failResult(valid, () => cxt.reset(), () => cxt.error());\n },\n error: { message: \"must NOT be valid\" },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=not.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/not.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/oneOf.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/oneOf.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: \"must match exactly one schema in oneOf\",\n params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,\n};\nconst def = {\n keyword: \"oneOf\",\n schemaType: \"array\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n if (it.opts.discriminator && parentSchema.discriminator)\n return;\n const schArr = schema;\n const valid = gen.let(\"valid\", false);\n const passing = gen.let(\"passing\", null);\n const schValid = gen.name(\"_valid\");\n cxt.setParams({ passing });\n // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n gen.block(validateOneOf);\n cxt.result(valid, () => cxt.reset(), () => cxt.error(true));\n function validateOneOf() {\n schArr.forEach((sch, i) => {\n let schCxt;\n if ((0, util_1.alwaysValidSchema)(it, sch)) {\n gen.var(schValid, true);\n }\n else {\n schCxt = cxt.subschema({\n keyword: \"oneOf\",\n schemaProp: i,\n compositeRule: true,\n }, schValid);\n }\n if (i > 0) {\n gen\n .if((0, codegen_1._) `${schValid} && ${valid}`)\n .assign(valid, false)\n .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`)\n .else();\n }\n gen.if(schValid, () => {\n gen.assign(valid, true);\n gen.assign(passing, i);\n if (schCxt)\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n });\n });\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=oneOf.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/oneOf.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js": -/*!**********************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js ***! - \**********************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst util_2 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst def = {\n keyword: \"patternProperties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, data, parentSchema, it } = cxt;\n const { opts } = it;\n const patterns = (0, code_1.allSchemaProperties)(schema);\n const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));\n if (patterns.length === 0 ||\n (alwaysValidPatterns.length === patterns.length &&\n (!it.opts.unevaluated || it.props === true))) {\n return;\n }\n const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;\n const valid = gen.name(\"valid\");\n if (it.props !== true && !(it.props instanceof codegen_1.Name)) {\n it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);\n }\n const { props } = it;\n validatePatternProperties();\n function validatePatternProperties() {\n for (const pat of patterns) {\n if (checkProperties)\n checkMatchingProperties(pat);\n if (it.allErrors) {\n validateProperties(pat);\n }\n else {\n gen.var(valid, true); // TODO var\n validateProperties(pat);\n gen.if(valid);\n }\n }\n }\n function checkMatchingProperties(pat) {\n for (const prop in checkProperties) {\n if (new RegExp(pat).test(prop)) {\n (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);\n }\n }\n }\n function validateProperties(pat) {\n gen.forIn(\"key\", data, (key) => {\n gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {\n const alwaysValid = alwaysValidPatterns.includes(pat);\n if (!alwaysValid) {\n cxt.subschema({\n keyword: \"patternProperties\",\n schemaProp: pat,\n dataProp: key,\n dataPropType: util_2.Type.Str,\n }, valid);\n }\n if (it.opts.unevaluated && props !== true) {\n gen.assign((0, codegen_1._) `${props}[${key}]`, true);\n }\n else if (!alwaysValid && !it.allErrors) {\n // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n // or if all properties were evaluated (props === true)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n }\n });\n });\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=patternProperties.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst items_1 = __webpack_require__(/*! ./items */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/items.js\");\nconst def = {\n keyword: \"prefixItems\",\n type: \"array\",\n schemaType: [\"array\"],\n before: \"uniqueItems\",\n code: (cxt) => (0, items_1.validateTuple)(cxt, \"items\"),\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=prefixItems.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/properties.js": -/*!***************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/properties.js ***! - \***************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst validate_1 = __webpack_require__(/*! ../../compile/validate */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/index.js\");\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst additionalProperties_1 = __webpack_require__(/*! ./additionalProperties */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js\");\nconst def = {\n keyword: \"properties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, \"additionalProperties\"));\n }\n const allProps = (0, code_1.allSchemaProperties)(schema);\n for (const prop of allProps) {\n it.definedProperties.add(prop);\n }\n if (it.opts.unevaluated && allProps.length && it.props !== true) {\n it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);\n }\n const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));\n if (properties.length === 0)\n return;\n const valid = gen.name(\"valid\");\n for (const prop of properties) {\n if (hasDefault(prop)) {\n applyPropertySchema(prop);\n }\n else {\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));\n applyPropertySchema(prop);\n if (!it.allErrors)\n gen.else().var(valid, true);\n gen.endIf();\n }\n cxt.it.definedProperties.add(prop);\n cxt.ok(valid);\n }\n function hasDefault(prop) {\n return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined;\n }\n function applyPropertySchema(prop) {\n cxt.subschema({\n keyword: \"properties\",\n schemaProp: prop,\n dataProp: prop,\n }, valid);\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=properties.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/properties.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js ***! - \******************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: \"property name must be valid\",\n params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`,\n};\nconst def = {\n keyword: \"propertyNames\",\n type: \"object\",\n schemaType: [\"object\", \"boolean\"],\n error,\n code(cxt) {\n const { gen, schema, data, it } = cxt;\n if ((0, util_1.alwaysValidSchema)(it, schema))\n return;\n const valid = gen.name(\"valid\");\n gen.forIn(\"key\", data, (key) => {\n cxt.setParams({ propertyName: key });\n cxt.subschema({\n keyword: \"propertyNames\",\n data: key,\n dataTypes: [\"string\"],\n propertyName: key,\n compositeRule: true,\n }, valid);\n gen.if((0, codegen_1.not)(valid), () => {\n cxt.error(true);\n if (!it.allErrors)\n gen.break();\n });\n });\n cxt.ok(valid);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=propertyNames.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/thenElse.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/thenElse.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst def = {\n keyword: [\"then\", \"else\"],\n schemaType: [\"object\", \"boolean\"],\n code({ keyword, parentSchema, it }) {\n if (parentSchema.if === undefined)\n (0, util_1.checkStrictMode)(it, `\"${keyword}\" without \"if\" is ignored`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=thenElse.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/thenElse.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js": -/*!**********************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;\nconst codegen_1 = __webpack_require__(/*! ../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst names_1 = __webpack_require__(/*! ../compile/names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst util_2 = __webpack_require__(/*! ../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nfunction checkReportMissingProp(cxt, prop) {\n const { gen, data, it } = cxt;\n gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {\n cxt.setParams({ missingProperty: (0, codegen_1._) `${prop}` }, true);\n cxt.error();\n });\n}\nexports.checkReportMissingProp = checkReportMissingProp;\nfunction checkMissingProp({ gen, data, it: { opts } }, properties, missing) {\n return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._) `${missing} = ${prop}`)));\n}\nexports.checkMissingProp = checkMissingProp;\nfunction reportMissingProp(cxt, missing) {\n cxt.setParams({ missingProperty: missing }, true);\n cxt.error();\n}\nexports.reportMissingProp = reportMissingProp;\nfunction hasPropFunc(gen) {\n return gen.scopeValue(\"func\", {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ref: Object.prototype.hasOwnProperty,\n code: (0, codegen_1._) `Object.prototype.hasOwnProperty`,\n });\n}\nexports.hasPropFunc = hasPropFunc;\nfunction isOwnProperty(gen, data, property) {\n return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`;\n}\nexports.isOwnProperty = isOwnProperty;\nfunction propertyInData(gen, data, property, ownProperties) {\n const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} !== undefined`;\n return ownProperties ? (0, codegen_1._) `${cond} && ${isOwnProperty(gen, data, property)}` : cond;\n}\nexports.propertyInData = propertyInData;\nfunction noPropertyInData(gen, data, property, ownProperties) {\n const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} === undefined`;\n return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;\n}\nexports.noPropertyInData = noPropertyInData;\nfunction allSchemaProperties(schemaMap) {\n return schemaMap ? Object.keys(schemaMap).filter((p) => p !== \"__proto__\") : [];\n}\nexports.allSchemaProperties = allSchemaProperties;\nfunction schemaProperties(it, schemaMap) {\n return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));\n}\nexports.schemaProperties = schemaProperties;\nfunction callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {\n const dataAndSchema = passSchema ? (0, codegen_1._) `${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;\n const valCxt = [\n [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)],\n [names_1.default.parentData, it.parentData],\n [names_1.default.parentDataProperty, it.parentDataProperty],\n [names_1.default.rootData, names_1.default.rootData],\n ];\n if (it.opts.dynamicRef)\n valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]);\n const args = (0, codegen_1._) `${dataAndSchema}, ${gen.object(...valCxt)}`;\n return context !== codegen_1.nil ? (0, codegen_1._) `${func}.call(${context}, ${args})` : (0, codegen_1._) `${func}(${args})`;\n}\nexports.callValidateCode = callValidateCode;\nconst newRegExp = (0, codegen_1._) `new RegExp`;\nfunction usePattern({ gen, it: { opts } }, pattern) {\n const u = opts.unicodeRegExp ? \"u\" : \"\";\n const { regExp } = opts.code;\n const rx = regExp(pattern, u);\n return gen.scopeValue(\"pattern\", {\n key: rx.toString(),\n ref: rx,\n code: (0, codegen_1._) `${regExp.code === \"new RegExp\" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`,\n });\n}\nexports.usePattern = usePattern;\nfunction validateArray(cxt) {\n const { gen, data, keyword, it } = cxt;\n const valid = gen.name(\"valid\");\n if (it.allErrors) {\n const validArr = gen.let(\"valid\", true);\n validateItems(() => gen.assign(validArr, false));\n return validArr;\n }\n gen.var(valid, true);\n validateItems(() => gen.break());\n return valid;\n function validateItems(notValid) {\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n gen.forRange(\"i\", 0, len, (i) => {\n cxt.subschema({\n keyword,\n dataProp: i,\n dataPropType: util_1.Type.Num,\n }, valid);\n gen.if((0, codegen_1.not)(valid), notValid);\n });\n }\n}\nexports.validateArray = validateArray;\nfunction validateUnion(cxt) {\n const { gen, schema, keyword, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch));\n if (alwaysValid && !it.opts.unevaluated)\n return;\n const valid = gen.let(\"valid\", false);\n const schValid = gen.name(\"_valid\");\n gen.block(() => schema.forEach((_sch, i) => {\n const schCxt = cxt.subschema({\n keyword,\n schemaProp: i,\n compositeRule: true,\n }, schValid);\n gen.assign(valid, (0, codegen_1._) `${valid} || ${schValid}`);\n const merged = cxt.mergeValidEvaluated(schCxt, schValid);\n // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true)\n // or if all properties and items were evaluated (it.props === true && it.items === true)\n if (!merged)\n gen.if((0, codegen_1.not)(valid));\n }));\n cxt.result(valid, () => cxt.reset(), () => cxt.error(true));\n}\nexports.validateUnion = validateUnion;\n//# sourceMappingURL=code.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/core/id.js": -/*!*************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/core/id.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst def = {\n keyword: \"id\",\n code() {\n throw new Error('NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID');\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=id.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/core/id.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/core/index.js": -/*!****************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/core/index.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst id_1 = __webpack_require__(/*! ./id */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/core/id.js\");\nconst ref_1 = __webpack_require__(/*! ./ref */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/core/ref.js\");\nconst core = [\n \"$schema\",\n \"$id\",\n \"$defs\",\n \"$vocabulary\",\n { keyword: \"$comment\" },\n \"definitions\",\n id_1.default,\n ref_1.default,\n];\nexports[\"default\"] = core;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/core/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/core/ref.js": -/*!**************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/core/ref.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.callRef = exports.getValidate = void 0;\nconst ref_error_1 = __webpack_require__(/*! ../../compile/ref_error */ \"./node_modules/conf/node_modules/ajv/dist/compile/ref_error.js\");\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst names_1 = __webpack_require__(/*! ../../compile/names */ \"./node_modules/conf/node_modules/ajv/dist/compile/names.js\");\nconst compile_1 = __webpack_require__(/*! ../../compile */ \"./node_modules/conf/node_modules/ajv/dist/compile/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst def = {\n keyword: \"$ref\",\n schemaType: \"string\",\n code(cxt) {\n const { gen, schema: $ref, it } = cxt;\n const { baseId, schemaEnv: env, validateName, opts, self } = it;\n const { root } = env;\n if (($ref === \"#\" || $ref === \"#/\") && baseId === root.baseId)\n return callRootRef();\n const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref);\n if (schOrEnv === undefined)\n throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref);\n if (schOrEnv instanceof compile_1.SchemaEnv)\n return callValidate(schOrEnv);\n return inlineRefSchema(schOrEnv);\n function callRootRef() {\n if (env === root)\n return callRef(cxt, validateName, env, env.$async);\n const rootName = gen.scopeValue(\"root\", { ref: root });\n return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async);\n }\n function callValidate(sch) {\n const v = getValidate(cxt, sch);\n callRef(cxt, v, sch, sch.$async);\n }\n function inlineRefSchema(sch) {\n const schName = gen.scopeValue(\"schema\", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });\n const valid = gen.name(\"valid\");\n const schCxt = cxt.subschema({\n schema: sch,\n dataTypes: [],\n schemaPath: codegen_1.nil,\n topSchemaRef: schName,\n errSchemaPath: $ref,\n }, valid);\n cxt.mergeEvaluated(schCxt);\n cxt.ok(valid);\n }\n },\n};\nfunction getValidate(cxt, sch) {\n const { gen } = cxt;\n return sch.validate\n ? gen.scopeValue(\"validate\", { ref: sch.validate })\n : (0, codegen_1._) `${gen.scopeValue(\"wrapper\", { ref: sch })}.validate`;\n}\nexports.getValidate = getValidate;\nfunction callRef(cxt, v, sch, $async) {\n const { gen, it } = cxt;\n const { allErrors, schemaEnv: env, opts } = it;\n const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;\n if ($async)\n callAsyncRef();\n else\n callSyncRef();\n function callAsyncRef() {\n if (!env.$async)\n throw new Error(\"async schema referenced by sync schema\");\n const valid = gen.let(\"valid\");\n gen.try(() => {\n gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`);\n addEvaluatedFrom(v); // TODO will not work with async, it has to be returned with the result\n if (!allErrors)\n gen.assign(valid, true);\n }, (e) => {\n gen.if((0, codegen_1._) `!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e));\n addErrorsFrom(e);\n if (!allErrors)\n gen.assign(valid, false);\n });\n cxt.ok(valid);\n }\n function callSyncRef() {\n cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));\n }\n function addErrorsFrom(source) {\n const errs = (0, codegen_1._) `${source}.errors`;\n gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged\n gen.assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);\n }\n function addEvaluatedFrom(source) {\n var _a;\n if (!it.opts.unevaluated)\n return;\n const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;\n // TODO refactor\n if (it.props !== true) {\n if (schEvaluated && !schEvaluated.dynamicProps) {\n if (schEvaluated.props !== undefined) {\n it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);\n }\n }\n else {\n const props = gen.var(\"props\", (0, codegen_1._) `${source}.evaluated.props`);\n it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);\n }\n }\n if (it.items !== true) {\n if (schEvaluated && !schEvaluated.dynamicItems) {\n if (schEvaluated.items !== undefined) {\n it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);\n }\n }\n else {\n const items = gen.var(\"items\", (0, codegen_1._) `${source}.evaluated.items`);\n it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);\n }\n }\n }\n}\nexports.callRef = callRef;\nexports[\"default\"] = def;\n//# sourceMappingURL=ref.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/core/ref.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/index.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/index.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst types_1 = __webpack_require__(/*! ../discriminator/types */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/types.js\");\nconst compile_1 = __webpack_require__(/*! ../../compile */ \"./node_modules/conf/node_modules/ajv/dist/compile/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag\n ? `tag \"${tagName}\" must be string`\n : `value of tag \"${tagName}\" must be in oneOf`,\n params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,\n};\nconst def = {\n keyword: \"discriminator\",\n type: \"object\",\n schemaType: \"object\",\n error,\n code(cxt) {\n const { gen, data, schema, parentSchema, it } = cxt;\n const { oneOf } = parentSchema;\n if (!it.opts.discriminator) {\n throw new Error(\"discriminator: requires discriminator option\");\n }\n const tagName = schema.propertyName;\n if (typeof tagName != \"string\")\n throw new Error(\"discriminator: requires propertyName\");\n if (schema.mapping)\n throw new Error(\"discriminator: mapping is not supported\");\n if (!oneOf)\n throw new Error(\"discriminator: requires oneOf keyword\");\n const valid = gen.let(\"valid\", false);\n const tag = gen.const(\"tag\", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`);\n gen.if((0, codegen_1._) `typeof ${tag} == \"string\"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName }));\n cxt.ok(valid);\n function validateMapping() {\n const mapping = getMapping();\n gen.if(false);\n for (const tagValue in mapping) {\n gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`);\n gen.assign(valid, applyTagSchema(mapping[tagValue]));\n }\n gen.else();\n cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName });\n gen.endIf();\n }\n function applyTagSchema(schemaProp) {\n const _valid = gen.name(\"valid\");\n const schCxt = cxt.subschema({ keyword: \"oneOf\", schemaProp }, _valid);\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n return _valid;\n }\n function getMapping() {\n var _a;\n const oneOfMapping = {};\n const topRequired = hasRequired(parentSchema);\n let tagRequired = true;\n for (let i = 0; i < oneOf.length; i++) {\n let sch = oneOf[i];\n if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {\n sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);\n if (sch instanceof compile_1.SchemaEnv)\n sch = sch.schema;\n }\n const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];\n if (typeof propSch != \"object\") {\n throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have \"properties/${tagName}\"`);\n }\n tagRequired = tagRequired && (topRequired || hasRequired(sch));\n addMappings(propSch, i);\n }\n if (!tagRequired)\n throw new Error(`discriminator: \"${tagName}\" must be required`);\n return oneOfMapping;\n function hasRequired({ required }) {\n return Array.isArray(required) && required.includes(tagName);\n }\n function addMappings(sch, i) {\n if (sch.const) {\n addMapping(sch.const, i);\n }\n else if (sch.enum) {\n for (const tagValue of sch.enum) {\n addMapping(tagValue, i);\n }\n }\n else {\n throw new Error(`discriminator: \"properties/${tagName}\" must have \"const\" or \"enum\"`);\n }\n }\n function addMapping(tagValue, i) {\n if (typeof tagValue != \"string\" || tagValue in oneOfMapping) {\n throw new Error(`discriminator: \"${tagName}\" values must be unique strings`);\n }\n oneOfMapping[tagValue] = i;\n }\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/types.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/types.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DiscrError = void 0;\nvar DiscrError;\n(function (DiscrError) {\n DiscrError[\"Tag\"] = \"tag\";\n DiscrError[\"Mapping\"] = \"mapping\";\n})(DiscrError = exports.DiscrError || (exports.DiscrError = {}));\n//# sourceMappingURL=types.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/discriminator/types.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/draft7.js": -/*!************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/draft7.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst core_1 = __webpack_require__(/*! ./core */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/core/index.js\");\nconst validation_1 = __webpack_require__(/*! ./validation */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/index.js\");\nconst applicator_1 = __webpack_require__(/*! ./applicator */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/applicator/index.js\");\nconst format_1 = __webpack_require__(/*! ./format */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/format/index.js\");\nconst metadata_1 = __webpack_require__(/*! ./metadata */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/metadata.js\");\nconst draft7Vocabularies = [\n core_1.default,\n validation_1.default,\n (0, applicator_1.default)(),\n format_1.default,\n metadata_1.metadataVocabulary,\n metadata_1.contentVocabulary,\n];\nexports[\"default\"] = draft7Vocabularies;\n//# sourceMappingURL=draft7.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/draft7.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/format/format.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/format/format.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must match format \"${schemaCode}\"`,\n params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"format\",\n type: [\"number\", \"string\"],\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt, ruleType) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n const { opts, errSchemaPath, schemaEnv, self } = it;\n if (!opts.validateFormats)\n return;\n if ($data)\n validate$DataFormat();\n else\n validateFormat();\n function validate$DataFormat() {\n const fmts = gen.scopeValue(\"formats\", {\n ref: self.formats,\n code: opts.code.formats,\n });\n const fDef = gen.const(\"fDef\", (0, codegen_1._) `${fmts}[${schemaCode}]`);\n const fType = gen.let(\"fType\");\n const format = gen.let(\"format\");\n // TODO simplify\n gen.if((0, codegen_1._) `typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || \"string\"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `\"string\"`).assign(format, fDef));\n cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));\n function unknownFmt() {\n if (opts.strictSchema === false)\n return codegen_1.nil;\n return (0, codegen_1._) `${schemaCode} && !${format}`;\n }\n function invalidFmt() {\n const callFormat = schemaEnv.$async\n ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n : (0, codegen_1._) `${format}(${data})`;\n const validData = (0, codegen_1._) `(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`;\n return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;\n }\n }\n function validateFormat() {\n const formatDef = self.formats[schema];\n if (!formatDef) {\n unknownFormat();\n return;\n }\n if (formatDef === true)\n return;\n const [fmtType, format, fmtRef] = getFormat(formatDef);\n if (fmtType === ruleType)\n cxt.pass(validCondition());\n function unknownFormat() {\n if (opts.strictSchema === false) {\n self.logger.warn(unknownMsg());\n return;\n }\n throw new Error(unknownMsg());\n function unknownMsg() {\n return `unknown format \"${schema}\" ignored in schema at path \"${errSchemaPath}\"`;\n }\n }\n function getFormat(fmtDef) {\n const code = fmtDef instanceof RegExp\n ? (0, codegen_1.regexpCode)(fmtDef)\n : opts.code.formats\n ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}`\n : undefined;\n const fmt = gen.scopeValue(\"formats\", { key: schema, ref: fmtDef, code });\n if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n return [fmtDef.type || \"string\", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`];\n }\n return [\"string\", fmtDef, fmt];\n }\n function validCondition() {\n if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n if (!schemaEnv.$async)\n throw new Error(\"async format in sync schema\");\n return (0, codegen_1._) `await ${fmtRef}(${data})`;\n }\n return typeof format == \"function\" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`;\n }\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=format.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/format/format.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/format/index.js": -/*!******************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/format/index.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst format_1 = __webpack_require__(/*! ./format */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/format/format.js\");\nconst format = [format_1.default];\nexports[\"default\"] = format;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/format/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/metadata.js": -/*!**************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/metadata.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.contentVocabulary = exports.metadataVocabulary = void 0;\nexports.metadataVocabulary = [\n \"title\",\n \"description\",\n \"default\",\n \"deprecated\",\n \"readOnly\",\n \"writeOnly\",\n \"examples\",\n];\nexports.contentVocabulary = [\n \"contentMediaType\",\n \"contentEncoding\",\n \"contentSchema\",\n];\n//# sourceMappingURL=metadata.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/metadata.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/const.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/const.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst equal_1 = __webpack_require__(/*! ../../runtime/equal */ \"./node_modules/conf/node_modules/ajv/dist/runtime/equal.js\");\nconst error = {\n message: \"must be equal to constant\",\n params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"const\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schemaCode, schema } = cxt;\n if ($data || (schema && typeof schema == \"object\")) {\n cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`);\n }\n else {\n cxt.fail((0, codegen_1._) `${schema} !== ${data}`);\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=const.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/const.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/enum.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/enum.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst equal_1 = __webpack_require__(/*! ../../runtime/equal */ \"./node_modules/conf/node_modules/ajv/dist/runtime/equal.js\");\nconst error = {\n message: \"must be equal to one of the allowed values\",\n params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"enum\",\n schemaType: \"array\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n if (!$data && schema.length === 0)\n throw new Error(\"enum must have non-empty array\");\n const useLoop = schema.length >= it.opts.loopEnum;\n let eql;\n const getEql = () => (eql !== null && eql !== void 0 ? eql : (eql = (0, util_1.useFunc)(gen, equal_1.default)));\n let valid;\n if (useLoop || $data) {\n valid = gen.let(\"valid\");\n cxt.block$data(valid, loopEnum);\n }\n else {\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n const vSchema = gen.const(\"vSchema\", schemaCode);\n valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));\n }\n cxt.pass(valid);\n function loopEnum() {\n gen.assign(valid, false);\n gen.forOf(\"v\", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));\n }\n function equalCode(vSchema, i) {\n const sch = schema[i];\n return typeof sch === \"object\" && sch !== null\n ? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])`\n : (0, codegen_1._) `${data} === ${sch}`;\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=enum.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/enum.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/index.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/index.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst limitNumber_1 = __webpack_require__(/*! ./limitNumber */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitNumber.js\");\nconst multipleOf_1 = __webpack_require__(/*! ./multipleOf */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/multipleOf.js\");\nconst limitLength_1 = __webpack_require__(/*! ./limitLength */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitLength.js\");\nconst pattern_1 = __webpack_require__(/*! ./pattern */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/pattern.js\");\nconst limitProperties_1 = __webpack_require__(/*! ./limitProperties */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitProperties.js\");\nconst required_1 = __webpack_require__(/*! ./required */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/required.js\");\nconst limitItems_1 = __webpack_require__(/*! ./limitItems */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitItems.js\");\nconst uniqueItems_1 = __webpack_require__(/*! ./uniqueItems */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js\");\nconst const_1 = __webpack_require__(/*! ./const */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/const.js\");\nconst enum_1 = __webpack_require__(/*! ./enum */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/enum.js\");\nconst validation = [\n // number\n limitNumber_1.default,\n multipleOf_1.default,\n // string\n limitLength_1.default,\n pattern_1.default,\n // object\n limitProperties_1.default,\n required_1.default,\n // array\n limitItems_1.default,\n uniqueItems_1.default,\n // any\n { keyword: \"type\", schemaType: [\"string\", \"array\"] },\n { keyword: \"nullable\", schemaType: \"boolean\" },\n const_1.default,\n enum_1.default,\n];\nexports[\"default\"] = validation;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/index.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitItems.js": -/*!***************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitItems.js ***! - \***************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst error = {\n message({ keyword, schemaCode }) {\n const comp = keyword === \"maxItems\" ? \"more\" : \"fewer\";\n return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`;\n },\n params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: [\"maxItems\", \"minItems\"],\n type: \"array\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode } = cxt;\n const op = keyword === \"maxItems\" ? codegen_1.operators.GT : codegen_1.operators.LT;\n cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=limitItems.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitItems.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitLength.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitLength.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst ucs2length_1 = __webpack_require__(/*! ../../runtime/ucs2length */ \"./node_modules/conf/node_modules/ajv/dist/runtime/ucs2length.js\");\nconst error = {\n message({ keyword, schemaCode }) {\n const comp = keyword === \"maxLength\" ? \"more\" : \"fewer\";\n return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`;\n },\n params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: [\"maxLength\", \"minLength\"],\n type: \"string\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode, it } = cxt;\n const op = keyword === \"maxLength\" ? codegen_1.operators.GT : codegen_1.operators.LT;\n const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`;\n cxt.fail$data((0, codegen_1._) `${len} ${op} ${schemaCode}`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=limitLength.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitLength.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitNumber.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitNumber.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst ops = codegen_1.operators;\nconst KWDs = {\n maximum: { okStr: \"<=\", ok: ops.LTE, fail: ops.GT },\n minimum: { okStr: \">=\", ok: ops.GTE, fail: ops.LT },\n exclusiveMaximum: { okStr: \"<\", ok: ops.LT, fail: ops.GTE },\n exclusiveMinimum: { okStr: \">\", ok: ops.GT, fail: ops.LTE },\n};\nconst error = {\n message: ({ keyword, schemaCode }) => (0, codegen_1.str) `must be ${KWDs[keyword].okStr} ${schemaCode}`,\n params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: Object.keys(KWDs),\n type: \"number\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode } = cxt;\n cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=limitNumber.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitNumber.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitProperties.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitProperties.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst error = {\n message({ keyword, schemaCode }) {\n const comp = keyword === \"maxProperties\" ? \"more\" : \"fewer\";\n return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`;\n },\n params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: [\"maxProperties\", \"minProperties\"],\n type: \"object\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode } = cxt;\n const op = keyword === \"maxProperties\" ? codegen_1.operators.GT : codegen_1.operators.LT;\n cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=limitProperties.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/limitProperties.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/multipleOf.js": -/*!***************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/multipleOf.js ***! - \***************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`,\n params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"multipleOf\",\n type: \"number\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, schemaCode, it } = cxt;\n // const bdt = bad$DataType(schemaCode, def.schemaType, $data)\n const prec = it.opts.multipleOfPrecision;\n const res = gen.let(\"res\");\n const invalid = prec\n ? (0, codegen_1._) `Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`\n : (0, codegen_1._) `${res} !== parseInt(${res})`;\n cxt.fail$data((0, codegen_1._) `(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=multipleOf.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/multipleOf.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/pattern.js": -/*!************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/pattern.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern \"${schemaCode}\"`,\n params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"pattern\",\n type: \"string\",\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt) {\n const { data, $data, schema, schemaCode, it } = cxt;\n // TODO regexp should be wrapped in try/catchs\n const u = it.opts.unicodeRegExp ? \"u\" : \"\";\n const regExp = $data ? (0, codegen_1._) `(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);\n cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`);\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=pattern.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/pattern.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/required.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/required.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst code_1 = __webpack_require__(/*! ../code */ \"./node_modules/conf/node_modules/ajv/dist/vocabularies/code.js\");\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst error = {\n message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`,\n params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`,\n};\nconst def = {\n keyword: \"required\",\n type: \"object\",\n schemaType: \"array\",\n $data: true,\n error,\n code(cxt) {\n const { gen, schema, schemaCode, data, $data, it } = cxt;\n const { opts } = it;\n if (!$data && schema.length === 0)\n return;\n const useLoop = schema.length >= opts.loopRequired;\n if (it.allErrors)\n allErrorsMode();\n else\n exitOnErrorMode();\n if (opts.strictRequired) {\n const props = cxt.parentSchema.properties;\n const { definedProperties } = cxt.it;\n for (const requiredKey of schema) {\n if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) {\n const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;\n const msg = `required property \"${requiredKey}\" is not defined at \"${schemaPath}\" (strictRequired)`;\n (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired);\n }\n }\n }\n function allErrorsMode() {\n if (useLoop || $data) {\n cxt.block$data(codegen_1.nil, loopAllRequired);\n }\n else {\n for (const prop of schema) {\n (0, code_1.checkReportMissingProp)(cxt, prop);\n }\n }\n }\n function exitOnErrorMode() {\n const missing = gen.let(\"missing\");\n if (useLoop || $data) {\n const valid = gen.let(\"valid\", true);\n cxt.block$data(valid, () => loopUntilMissing(missing, valid));\n cxt.ok(valid);\n }\n else {\n gen.if((0, code_1.checkMissingProp)(cxt, schema, missing));\n (0, code_1.reportMissingProp)(cxt, missing);\n gen.else();\n }\n }\n function loopAllRequired() {\n gen.forOf(\"prop\", schemaCode, (prop) => {\n cxt.setParams({ missingProperty: prop });\n gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error());\n });\n }\n function loopUntilMissing(missing, valid) {\n cxt.setParams({ missingProperty: missing });\n gen.forOf(missing, schemaCode, () => {\n gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties));\n gen.if((0, codegen_1.not)(valid), () => {\n cxt.error();\n gen.break();\n });\n }, codegen_1.nil);\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=required.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/required.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst dataType_1 = __webpack_require__(/*! ../../compile/validate/dataType */ \"./node_modules/conf/node_modules/ajv/dist/compile/validate/dataType.js\");\nconst codegen_1 = __webpack_require__(/*! ../../compile/codegen */ \"./node_modules/conf/node_modules/ajv/dist/compile/codegen/index.js\");\nconst util_1 = __webpack_require__(/*! ../../compile/util */ \"./node_modules/conf/node_modules/ajv/dist/compile/util.js\");\nconst equal_1 = __webpack_require__(/*! ../../runtime/equal */ \"./node_modules/conf/node_modules/ajv/dist/runtime/equal.js\");\nconst error = {\n message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`,\n params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`,\n};\nconst def = {\n keyword: \"uniqueItems\",\n type: \"array\",\n schemaType: \"boolean\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt;\n if (!$data && !schema)\n return;\n const valid = gen.let(\"valid\");\n const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : [];\n cxt.block$data(valid, validateUniqueItems, (0, codegen_1._) `${schemaCode} === false`);\n cxt.ok(valid);\n function validateUniqueItems() {\n const i = gen.let(\"i\", (0, codegen_1._) `${data}.length`);\n const j = gen.let(\"j\");\n cxt.setParams({ i, j });\n gen.assign(valid, true);\n gen.if((0, codegen_1._) `${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j));\n }\n function canOptimize() {\n return itemTypes.length > 0 && !itemTypes.some((t) => t === \"object\" || t === \"array\");\n }\n function loopN(i, j) {\n const item = gen.name(\"item\");\n const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);\n const indices = gen.const(\"indices\", (0, codegen_1._) `{}`);\n gen.for((0, codegen_1._) `;${i}--;`, () => {\n gen.let(item, (0, codegen_1._) `${data}[${i}]`);\n gen.if(wrongType, (0, codegen_1._) `continue`);\n if (itemTypes.length > 1)\n gen.if((0, codegen_1._) `typeof ${item} == \"string\"`, (0, codegen_1._) `${item} += \"_\"`);\n gen\n .if((0, codegen_1._) `typeof ${indices}[${item}] == \"number\"`, () => {\n gen.assign(j, (0, codegen_1._) `${indices}[${item}]`);\n cxt.error();\n gen.assign(valid, false).break();\n })\n .code((0, codegen_1._) `${indices}[${item}] = ${i}`);\n });\n }\n function loopN2(i, j) {\n const eql = (0, util_1.useFunc)(gen, equal_1.default);\n const outer = gen.name(\"outer\");\n gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])`, () => {\n cxt.error();\n gen.assign(valid, false).break(outer);\n })));\n }\n },\n};\nexports[\"default\"] = def;\n//# sourceMappingURL=uniqueItems.js.map\n\n//# sourceURL=webpack://main/./node_modules/conf/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js?"); - -/***/ }), - -/***/ "./node_modules/conf/node_modules/json-schema-traverse/index.js": -/*!**********************************************************************!*\ - !*** ./node_modules/conf/node_modules/json-schema-traverse/index.js ***! - \**********************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nvar traverse = module.exports = function (schema, opts, cb) {\n // Legacy support for v0.3.1 and earlier.\n if (typeof opts == 'function') {\n cb = opts;\n opts = {};\n }\n\n cb = opts.cb || cb;\n var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n var post = cb.post || function() {};\n\n _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n additionalItems: true,\n items: true,\n contains: true,\n additionalProperties: true,\n propertyNames: true,\n not: true,\n if: true,\n then: true,\n else: true\n};\n\ntraverse.arrayKeywords = {\n items: true,\n allOf: true,\n anyOf: true,\n oneOf: true\n};\n\ntraverse.propsKeywords = {\n $defs: true,\n definitions: true,\n properties: true,\n patternProperties: true,\n dependencies: true\n};\n\ntraverse.skipKeywords = {\n default: true,\n enum: true,\n const: true,\n required: true,\n maximum: true,\n minimum: true,\n exclusiveMaximum: true,\n exclusiveMinimum: true,\n multipleOf: true,\n maxLength: true,\n minLength: true,\n pattern: true,\n format: true,\n maxItems: true,\n minItems: true,\n uniqueItems: true,\n maxProperties: true,\n minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n for (var key in schema) {\n var sch = schema[key];\n if (Array.isArray(sch)) {\n if (key in traverse.arrayKeywords) {\n for (var i=0; i { - -"use strict"; -eval("\nconst mimicFn = __webpack_require__(/*! mimic-fn */ \"./node_modules/debounce-fn/node_modules/mimic-fn/index.js\");\n\nmodule.exports = (inputFunction, options = {}) => {\n\tif (typeof inputFunction !== 'function') {\n\t\tthrow new TypeError(`Expected the first argument to be a function, got \\`${typeof inputFunction}\\``);\n\t}\n\n\tconst {\n\t\twait = 0,\n\t\tbefore = false,\n\t\tafter = true\n\t} = options;\n\n\tif (!before && !after) {\n\t\tthrow new Error('Both `before` and `after` are false, function wouldn\\'t be called.');\n\t}\n\n\tlet timeout;\n\tlet result;\n\n\tconst debouncedFunction = function (...arguments_) {\n\t\tconst context = this;\n\n\t\tconst later = () => {\n\t\t\ttimeout = undefined;\n\n\t\t\tif (after) {\n\t\t\t\tresult = inputFunction.apply(context, arguments_);\n\t\t\t}\n\t\t};\n\n\t\tconst shouldCallNow = before && !timeout;\n\t\tclearTimeout(timeout);\n\t\ttimeout = setTimeout(later, wait);\n\n\t\tif (shouldCallNow) {\n\t\t\tresult = inputFunction.apply(context, arguments_);\n\t\t}\n\n\t\treturn result;\n\t};\n\n\tmimicFn(debouncedFunction, inputFunction);\n\n\tdebouncedFunction.cancel = () => {\n\t\tif (timeout) {\n\t\t\tclearTimeout(timeout);\n\t\t\ttimeout = undefined;\n\t\t}\n\t};\n\n\treturn debouncedFunction;\n};\n\n\n//# sourceURL=webpack://main/./node_modules/debounce-fn/index.js?"); - -/***/ }), - -/***/ "./node_modules/debounce-fn/node_modules/mimic-fn/index.js": -/*!*****************************************************************!*\ - !*** ./node_modules/debounce-fn/node_modules/mimic-fn/index.js ***! - \*****************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nconst copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nconst mimicFn = (to, from, {ignoreNonConfigurable = false} = {}) => {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n\n\n//# sourceURL=webpack://main/./node_modules/debounce-fn/node_modules/mimic-fn/index.js?"); - -/***/ }), - -/***/ "./node_modules/dot-prop/index.js": -/*!****************************************!*\ - !*** ./node_modules/dot-prop/index.js ***! - \****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\nconst isObj = __webpack_require__(/*! is-obj */ \"./node_modules/is-obj/index.js\");\n\nconst disallowedKeys = new Set([\n\t'__proto__',\n\t'prototype',\n\t'constructor'\n]);\n\nconst isValidPath = pathSegments => !pathSegments.some(segment => disallowedKeys.has(segment));\n\nfunction getPathSegments(path) {\n\tconst pathArray = path.split('.');\n\tconst parts = [];\n\n\tfor (let i = 0; i < pathArray.length; i++) {\n\t\tlet p = pathArray[i];\n\n\t\twhile (p[p.length - 1] === '\\\\' && pathArray[i + 1] !== undefined) {\n\t\t\tp = p.slice(0, -1) + '.';\n\t\t\tp += pathArray[++i];\n\t\t}\n\n\t\tparts.push(p);\n\t}\n\n\tif (!isValidPath(parts)) {\n\t\treturn [];\n\t}\n\n\treturn parts;\n}\n\nmodule.exports = {\n\tget(object, path, value) {\n\t\tif (!isObj(object) || typeof path !== 'string') {\n\t\t\treturn value === undefined ? object : value;\n\t\t}\n\n\t\tconst pathArray = getPathSegments(path);\n\t\tif (pathArray.length === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (let i = 0; i < pathArray.length; i++) {\n\t\t\tobject = object[pathArray[i]];\n\n\t\t\tif (object === undefined || object === null) {\n\t\t\t\t// `object` is either `undefined` or `null` so we want to stop the loop, and\n\t\t\t\t// if this is not the last bit of the path, and\n\t\t\t\t// if it did't return `undefined`\n\t\t\t\t// it would return `null` if `object` is `null`\n\t\t\t\t// but we want `get({foo: null}, 'foo.bar')` to equal `undefined`, or the supplied value, not `null`\n\t\t\t\tif (i !== pathArray.length - 1) {\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn object === undefined ? value : object;\n\t},\n\n\tset(object, path, value) {\n\t\tif (!isObj(object) || typeof path !== 'string') {\n\t\t\treturn object;\n\t\t}\n\n\t\tconst root = object;\n\t\tconst pathArray = getPathSegments(path);\n\n\t\tfor (let i = 0; i < pathArray.length; i++) {\n\t\t\tconst p = pathArray[i];\n\n\t\t\tif (!isObj(object[p])) {\n\t\t\t\tobject[p] = {};\n\t\t\t}\n\n\t\t\tif (i === pathArray.length - 1) {\n\t\t\t\tobject[p] = value;\n\t\t\t}\n\n\t\t\tobject = object[p];\n\t\t}\n\n\t\treturn root;\n\t},\n\n\tdelete(object, path) {\n\t\tif (!isObj(object) || typeof path !== 'string') {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst pathArray = getPathSegments(path);\n\n\t\tfor (let i = 0; i < pathArray.length; i++) {\n\t\t\tconst p = pathArray[i];\n\n\t\t\tif (i === pathArray.length - 1) {\n\t\t\t\tdelete object[p];\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tobject = object[p];\n\n\t\t\tif (!isObj(object)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t},\n\n\thas(object, path) {\n\t\tif (!isObj(object) || typeof path !== 'string') {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst pathArray = getPathSegments(path);\n\t\tif (pathArray.length === 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// eslint-disable-next-line unicorn/no-for-loop\n\t\tfor (let i = 0; i < pathArray.length; i++) {\n\t\t\tif (isObj(object)) {\n\t\t\t\tif (!(pathArray[i] in object)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tobject = object[pathArray[i]];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n};\n\n\n//# sourceURL=webpack://main/./node_modules/dot-prop/index.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/core/Logger.js": -/*!******************************************************!*\ - !*** ./node_modules/electron-log/src/core/Logger.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst scopeFactory = __webpack_require__(/*! ./scope */ \"./node_modules/electron-log/src/core/scope.js\");\n\n/**\n * @property {Function} error\n * @property {Function} warn\n * @property {Function} info\n * @property {Function} verbose\n * @property {Function} debug\n * @property {Function} silly\n */\nclass Logger {\n static instances = {};\n\n errorHandler = null;\n eventLogger = null;\n functions = {};\n hooks = [];\n isDev = false;\n levels = null;\n logId = null;\n scope = null;\n transports = {};\n variables = {};\n\n constructor({\n allowUnknownLevel = false,\n errorHandler,\n eventLogger,\n initializeFn,\n isDev = false,\n levels = ['error', 'warn', 'info', 'verbose', 'debug', 'silly'],\n logId,\n transportFactories = {},\n variables,\n } = {}) {\n this.addLevel = this.addLevel.bind(this);\n this.create = this.create.bind(this);\n this.logData = this.logData.bind(this);\n this.processMessage = this.processMessage.bind(this);\n\n this.allowUnknownLevel = allowUnknownLevel;\n this.initializeFn = initializeFn;\n this.isDev = isDev;\n this.levels = levels;\n this.logId = logId;\n this.transportFactories = transportFactories;\n this.variables = variables || {};\n this.scope = scopeFactory(this);\n\n this.addLevel('log', false);\n for (const name of this.levels) {\n this.addLevel(name, false);\n }\n\n this.errorHandler = errorHandler;\n errorHandler?.setOptions({ logFn: this.error });\n\n this.eventLogger = eventLogger;\n eventLogger?.setOptions({ logger: this });\n\n for (const [name, factory] of Object.entries(transportFactories)) {\n this.transports[name] = factory(this);\n }\n\n Logger.instances[logId] = this;\n }\n\n static getInstance({ logId }) {\n return this.instances[logId] || this.instances.default;\n }\n\n addLevel(level, index = this.levels.length) {\n if (index !== false) {\n this.levels.splice(index, 0, level);\n }\n\n this[level] = (...args) => this.logData(args, { level });\n this.functions[level] = this[level];\n }\n\n catchErrors(options) {\n this.processMessage(\n {\n data: ['log.catchErrors is deprecated. Use log.errorHandler instead'],\n level: 'warn',\n },\n { transports: ['console'] },\n );\n return this.errorHandler.startCatching(options);\n }\n\n create(options) {\n if (typeof options === 'string') {\n options = { logId: options };\n }\n\n return new Logger({\n ...options,\n errorHandler: this.errorHandler,\n initializeFn: this.initializeFn,\n isDev: this.isDev,\n transportFactories: this.transportFactories,\n variables: { ...this.variables },\n });\n }\n\n compareLevels(passLevel, checkLevel, levels = this.levels) {\n const pass = levels.indexOf(passLevel);\n const check = levels.indexOf(checkLevel);\n if (check === -1 || pass === -1) {\n return true;\n }\n\n return check <= pass;\n }\n\n initialize(options = {}) {\n this.initializeFn({ logger: this, ...options });\n }\n\n logData(data, options = {}) {\n this.processMessage({ data, ...options });\n }\n\n processMessage(message, { transports = this.transports } = {}) {\n if (message.cmd === 'errorHandler') {\n this.errorHandler.handle(message.error, {\n errorName: message.errorName,\n processType: 'renderer',\n showDialog: Boolean(message.showDialog),\n });\n return;\n }\n\n let level = message.level;\n if (!this.allowUnknownLevel) {\n level = this.levels.includes(message.level) ? message.level : 'info';\n }\n\n const normalizedMessage = {\n date: new Date(),\n ...message,\n level,\n variables: {\n ...this.variables,\n ...message.variables,\n },\n };\n\n for (const [transName, transFn] of this.transportEntries(transports)) {\n if (typeof transFn !== 'function' || transFn.level === false) {\n continue;\n }\n\n if (!this.compareLevels(transFn.level, message.level)) {\n continue;\n }\n\n try {\n // eslint-disable-next-line arrow-body-style\n const transformedMsg = this.hooks.reduce((msg, hook) => {\n return msg ? hook(msg, transFn, transName) : msg;\n }, normalizedMessage);\n\n if (transformedMsg) {\n transFn({ ...transformedMsg, data: [...transformedMsg.data] });\n }\n } catch (e) {\n this.processInternalErrorFn(e);\n }\n }\n }\n\n processInternalErrorFn(_e) {\n // Do nothing by default\n }\n\n transportEntries(transports = this.transports) {\n const transportArray = Array.isArray(transports)\n ? transports\n : Object.entries(transports);\n\n return transportArray\n .map((item) => {\n switch (typeof item) {\n case 'string':\n return this.transports[item] ? [item, this.transports[item]] : null;\n case 'function':\n return [item.name, item];\n default:\n return Array.isArray(item) ? item : null;\n }\n })\n .filter(Boolean);\n }\n}\n\nmodule.exports = Logger;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/core/Logger.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/core/scope.js": -/*!*****************************************************!*\ - !*** ./node_modules/electron-log/src/core/scope.js ***! - \*****************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nmodule.exports = scopeFactory;\n\nfunction scopeFactory(logger) {\n return Object.defineProperties(scope, {\n defaultLabel: { value: '', writable: true },\n labelPadding: { value: true, writable: true },\n maxLabelLength: { value: 0, writable: true },\n labelLength: {\n get() {\n switch (typeof scope.labelPadding) {\n case 'boolean': return scope.labelPadding ? scope.maxLabelLength : 0;\n case 'number': return scope.labelPadding;\n default: return 0;\n }\n },\n },\n });\n\n function scope(label) {\n scope.maxLabelLength = Math.max(scope.maxLabelLength, label.length);\n\n const newScope = {};\n for (const level of [...logger.levels, 'log']) {\n newScope[level] = (...d) => logger.logData(d, { level, scope: label });\n }\n return newScope;\n }\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/core/scope.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/index.js": -/*!************************************************!*\ - !*** ./node_modules/electron-log/src/index.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\n/* eslint-disable global-require */\n\nconst isRenderer = typeof process === 'undefined'\n || (process.type === 'renderer' || process.type === 'worker');\n\nif (isRenderer) {\n // Makes sense when contextIsolation/sandbox disabled\n __webpack_require__(/*! ./renderer/electron-log-preload */ \"./node_modules/electron-log/src/renderer/electron-log-preload.js\");\n module.exports = __webpack_require__(/*! ./renderer */ \"./node_modules/electron-log/src/renderer/index.js\");\n} else {\n module.exports = __webpack_require__(/*! ./main */ \"./node_modules/electron-log/src/main/index.js\");\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/index.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/ErrorHandler.js": -/*!************************************************************!*\ - !*** ./node_modules/electron-log/src/main/ErrorHandler.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst electronApi = __webpack_require__(/*! ./electronApi */ \"./node_modules/electron-log/src/main/electronApi.js\");\n\nclass ErrorHandler {\n isActive = false;\n logFn = null;\n onError = null;\n showDialog = true;\n\n constructor({ logFn = null, onError = null, showDialog = true } = {}) {\n this.createIssue = this.createIssue.bind(this);\n this.handleError = this.handleError.bind(this);\n this.handleRejection = this.handleRejection.bind(this);\n this.setOptions({ logFn, onError, showDialog });\n this.startCatching = this.startCatching.bind(this);\n this.stopCatching = this.stopCatching.bind(this);\n }\n\n handle(error, {\n logFn = this.logFn,\n onError = this.onError,\n processType = 'browser',\n showDialog = this.showDialog,\n errorName = '',\n } = {}) {\n error = normalizeError(error);\n\n try {\n if (typeof onError === 'function') {\n const versions = electronApi.getVersions();\n const createIssue = this.createIssue;\n const result = onError({\n createIssue,\n error,\n errorName,\n processType,\n versions,\n });\n if (result === false) {\n return;\n }\n }\n\n errorName ? logFn(errorName, error) : logFn(error);\n\n if (showDialog && !errorName.includes('rejection')) {\n electronApi.showErrorBox(\n `A JavaScript error occurred in the ${processType} process`,\n error.stack,\n );\n }\n } catch {\n console.error(error); // eslint-disable-line no-console\n }\n }\n\n setOptions({ logFn, onError, showDialog }) {\n if (typeof logFn === 'function') {\n this.logFn = logFn;\n }\n\n if (typeof onError === 'function') {\n this.onError = onError;\n }\n\n if (typeof showDialog === 'boolean') {\n this.showDialog = showDialog;\n }\n }\n\n startCatching({ onError, showDialog } = {}) {\n if (this.isActive) {\n return;\n }\n\n this.isActive = true;\n this.setOptions({ onError, showDialog });\n process.on('uncaughtException', this.handleError);\n process.on('unhandledRejection', this.handleRejection);\n }\n\n stopCatching() {\n this.isActive = false;\n process.removeListener('uncaughtException', this.handleError);\n process.removeListener('unhandledRejection', this.handleRejection);\n }\n\n createIssue(pageUrl, queryParams) {\n electronApi.openUrl(\n `${pageUrl}?${new URLSearchParams(queryParams).toString()}`,\n );\n }\n\n handleError(error) {\n this.handle(error, { errorName: 'Unhandled' });\n }\n\n handleRejection(reason) {\n const error = reason instanceof Error\n ? reason\n : new Error(JSON.stringify(reason));\n this.handle(error, { errorName: 'Unhandled rejection' });\n }\n}\n\nfunction normalizeError(e) {\n if (e instanceof Error) {\n return e;\n }\n\n if (e && typeof e === 'object') {\n if (e.message) {\n return Object.assign(new Error(e.message), e);\n }\n try {\n return new Error(JSON.stringify(e));\n } catch (serErr) {\n return new Error(`Couldn't normalize error ${String(e)}: ${serErr}`);\n }\n }\n\n return new Error(`Can't normalize error ${String(e)}`);\n}\n\nmodule.exports = ErrorHandler;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/ErrorHandler.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/EventLogger.js": -/*!***********************************************************!*\ - !*** ./node_modules/electron-log/src/main/EventLogger.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst electronApi = __webpack_require__(/*! ./electronApi */ \"./node_modules/electron-log/src/main/electronApi.js\");\n\nclass EventLogger {\n disposers = [];\n format = '{eventSource}#{eventName}:';\n formatters = {\n app: {\n 'certificate-error': ({ args }) => {\n return this.arrayToObject(args.slice(1, 4), [\n 'url',\n 'error',\n 'certificate',\n ]);\n },\n 'child-process-gone': ({ args }) => {\n return args.length === 1 ? args[0] : args;\n },\n 'render-process-gone': ({ args: [webContents, details] }) => {\n return details && typeof details === 'object'\n ? { ...details, ...this.getWebContentsDetails(webContents) }\n : [];\n },\n },\n\n webContents: {\n 'console-message': ({ args: [level, message, line, sourceId] }) => {\n // 0: debug, 1: info, 2: warning, 3: error\n if (level < 3) {\n return undefined;\n }\n\n return { message, source: `${sourceId}:${line}` };\n },\n 'did-fail-load': ({ args }) => {\n return this.arrayToObject(args, [\n 'errorCode',\n 'errorDescription',\n 'validatedURL',\n 'isMainFrame',\n 'frameProcessId',\n 'frameRoutingId',\n ]);\n },\n 'did-fail-provisional-load': ({ args }) => {\n return this.arrayToObject(args, [\n 'errorCode',\n 'errorDescription',\n 'validatedURL',\n 'isMainFrame',\n 'frameProcessId',\n 'frameRoutingId',\n ]);\n },\n 'plugin-crashed': ({ args }) => {\n return this.arrayToObject(args, ['name', 'version']);\n },\n 'preload-error': ({ args }) => {\n return this.arrayToObject(args, ['preloadPath', 'error']);\n },\n },\n };\n\n events = {\n app: {\n 'certificate-error': true,\n 'child-process-gone': true,\n 'render-process-gone': true,\n },\n\n webContents: {\n // 'console-message': true,\n 'did-fail-load': true,\n 'did-fail-provisional-load': true,\n 'plugin-crashed': true,\n 'preload-error': true,\n 'unresponsive': true,\n },\n };\n\n level = 'error';\n scope = '';\n\n constructor(options = {}) {\n this.setOptions(options);\n }\n\n setOptions({ events, level, logger, format, formatters, scope }) {\n if (typeof events === 'object') {\n this.events = events;\n }\n\n if (typeof level === 'string') {\n this.level = level;\n }\n\n if (typeof logger === 'object') {\n this.logger = logger;\n }\n\n if (typeof format === 'string' || typeof format === 'function') {\n this.format = format;\n }\n\n if (typeof formatters === 'object') {\n this.formatters = formatters;\n }\n\n if (typeof scope === 'string') {\n this.scope = scope;\n }\n }\n\n startLogging(options = {}) {\n this.setOptions(options);\n\n this.disposeListeners();\n\n for (const eventName of this.getEventNames(this.events.app)) {\n this.disposers.push(\n electronApi.onAppEvent(eventName, (...handlerArgs) => {\n this.handleEvent({ eventSource: 'app', eventName, handlerArgs });\n }),\n );\n }\n\n for (const eventName of this.getEventNames(this.events.webContents)) {\n this.disposers.push(\n electronApi.onEveryWebContentsEvent(eventName, (...handlerArgs) => {\n this.handleEvent(\n { eventSource: 'webContents', eventName, handlerArgs },\n );\n }),\n );\n }\n }\n\n stopLogging() {\n this.disposeListeners();\n }\n\n arrayToObject(array, fieldNames) {\n const obj = {};\n\n fieldNames.forEach((fieldName, index) => {\n obj[fieldName] = array[index];\n });\n\n if (array.length > fieldNames.length) {\n obj.unknownArgs = array.slice(fieldNames.length);\n }\n\n return obj;\n }\n\n disposeListeners() {\n this.disposers.forEach((disposer) => disposer());\n this.disposers = [];\n }\n\n formatEventLog({ eventName, eventSource, handlerArgs }) {\n const [event, ...args] = handlerArgs;\n if (typeof this.format === 'function') {\n return this.format({ args, event, eventName, eventSource });\n }\n\n const formatter = this.formatters[eventSource]?.[eventName];\n let formattedArgs = args;\n if (typeof formatter === 'function') {\n formattedArgs = formatter({ args, event, eventName, eventSource });\n }\n\n if (!formattedArgs) {\n return undefined;\n }\n\n const eventData = {};\n\n if (Array.isArray(formattedArgs)) {\n eventData.args = formattedArgs;\n } else if (typeof formattedArgs === 'object') {\n Object.assign(eventData, formattedArgs);\n }\n\n if (eventSource === 'webContents') {\n Object.assign(eventData, this.getWebContentsDetails(event?.sender));\n }\n\n const title = this.format\n .replace('{eventSource}', eventSource === 'app' ? 'App' : 'WebContents')\n .replace('{eventName}', eventName);\n\n return [title, eventData];\n }\n\n getEventNames(eventMap) {\n if (!eventMap || typeof eventMap !== 'object') {\n return [];\n }\n\n return Object.entries(eventMap)\n .filter(([_, listen]) => listen)\n .map(([eventName]) => eventName);\n }\n\n getWebContentsDetails(webContents) {\n if (!webContents?.loadURL) {\n return {};\n }\n\n try {\n return {\n webContents: {\n id: webContents.id,\n url: webContents.getURL(),\n },\n };\n } catch {\n return {};\n }\n }\n\n handleEvent({ eventName, eventSource, handlerArgs }) {\n const log = this.formatEventLog({ eventName, eventSource, handlerArgs });\n if (log) {\n const logFns = this.scope ? this.logger.scope(this.scope) : this.logger;\n logFns?.[this.level]?.(...log);\n }\n }\n}\n\nmodule.exports = EventLogger;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/EventLogger.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/electronApi.js": -/*!***********************************************************!*\ - !*** ./node_modules/electron-log/src/main/electronApi.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst os = __webpack_require__(/*! os */ \"os\");\nconst path = __webpack_require__(/*! path */ \"path\");\n\n/** @type {Electron.Main} */\nlet electron;\ntry {\n // eslint-disable-next-line global-require,import/no-extraneous-dependencies\n electron = __webpack_require__(/*! electron */ \"electron\");\n} catch {\n electron = null;\n}\n\nmodule.exports = {\n getAppUserDataPath() {\n return getPath('userData');\n },\n\n getName,\n\n getPath,\n\n getVersion,\n\n getVersions() {\n return {\n app: `${getName()} ${getVersion()}`,\n electron: `Electron ${process.versions.electron}`,\n os: getOsVersion(),\n };\n },\n\n isDev() {\n const app = getApp();\n\n if (app?.isPackaged !== undefined) {\n return !app.isPackaged;\n }\n\n if (typeof process.execPath === 'string') {\n const execFileName = path.basename(process.execPath).toLowerCase();\n return execFileName.startsWith('electron');\n }\n\n return true\n || 0;\n },\n\n isElectron() {\n return Boolean(process.versions.electron);\n },\n\n onAppEvent(eventName, handler) {\n electron?.app?.on(eventName, handler);\n\n return () => {\n electron?.app?.off(eventName, handler);\n };\n },\n\n onAppReady(handler) {\n if (electron?.app?.isReady()) {\n handler();\n } else if (electron?.app?.once) {\n electron?.app?.once('ready', handler);\n } else {\n handler();\n }\n },\n\n onEveryWebContentsEvent(eventName, handler) {\n electron?.webContents?.getAllWebContents().forEach((webContents) => {\n webContents.on(eventName, handler);\n });\n\n electron?.app?.on('web-contents-created', onWebContentsCreated);\n\n return () => {\n electron?.webContents?.getAllWebContents().forEach((webContents) => {\n webContents.off(eventName, handler);\n });\n\n electron?.app?.off('web-contents-created', onWebContentsCreated);\n };\n\n function onWebContentsCreated(_, webContents) {\n webContents.on(eventName, handler);\n }\n },\n\n /**\n * Listen to async messages sent from opposite process\n * @param {string} channel\n * @param {function} listener\n */\n onIpc(channel, listener) {\n getIpc()?.on(channel, listener);\n },\n\n onIpcInvoke(channel, listener) {\n getIpc()?.handle?.(channel, listener);\n },\n\n /**\n * @param {string} url\n * @param {Function} [logFunction]\n */\n openUrl(url, logFunction = console.error) { // eslint-disable-line no-console\n getElectronModule('shell')?.openExternal(url).catch(logFunction);\n },\n\n setPreloadFileForSessions({\n filePath,\n includeFutureSession = true,\n getSessions = () => [electron?.session?.defaultSession],\n }) {\n for (const session of getSessions().filter(Boolean)) {\n setPreload(session);\n }\n\n if (includeFutureSession) {\n electron?.app?.on('session-created', (session) => {\n setPreload(session);\n });\n }\n\n /**\n * @param {Session} session\n */\n function setPreload(session) {\n session.setPreloads([...session.getPreloads(), filePath]);\n }\n },\n\n /**\n * Sent a message to opposite process\n * @param {string} channel\n * @param {any} message\n */\n sendIpc(channel, message) {\n if (process.type === 'browser') {\n sendIpcToRenderer(channel, message);\n } else if (process.type === 'renderer') {\n sendIpcToMain(channel, message);\n }\n },\n\n showErrorBox(title, message) {\n const dialog = getElectronModule('dialog');\n if (!dialog) return;\n\n dialog.showErrorBox(title, message);\n },\n};\n\nfunction getApp() {\n return getElectronModule('app');\n}\n\nfunction getName() {\n const app = getApp();\n if (!app) return null;\n\n return 'name' in app ? app.name : app.getName();\n}\n\nfunction getElectronModule(name) {\n return electron?.[name] || null;\n}\n\nfunction getIpc() {\n if (process.type === 'browser' && electron?.ipcMain) {\n return electron.ipcMain;\n }\n\n if (process.type === 'renderer' && electron?.ipcRenderer) {\n return electron.ipcRenderer;\n }\n\n return null;\n}\n\nfunction getVersion() {\n const app = getApp();\n if (!app) return null;\n\n return 'version' in app ? app.version : app.getVersion();\n}\n\nfunction getOsVersion() {\n let osName = os.type().replace('_', ' ');\n let osVersion = os.release();\n\n if (osName === 'Darwin') {\n osName = 'macOS';\n osVersion = getMacOsVersion();\n }\n\n return `${osName} ${osVersion}`;\n}\n\nfunction getMacOsVersion() {\n const release = Number(os.release().split('.')[0]);\n if (release <= 19) {\n return `10.${release - 4}`;\n }\n\n return release - 9;\n}\n\nfunction getPath(name) {\n const app = getApp();\n if (!app) return null;\n\n try {\n return app.getPath(name);\n } catch (e) {\n return null;\n }\n}\n\nfunction sendIpcToMain(channel, message) {\n getIpc()?.send(channel, message);\n}\n\nfunction sendIpcToRenderer(channel, message) {\n electron?.BrowserWindow?.getAllWindows().forEach((wnd) => {\n if (wnd.webContents?.isDestroyed() === false) {\n wnd.webContents.send(channel, message);\n }\n });\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/electronApi.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/electron-log/src/main/index.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst electronApi = __webpack_require__(/*! ./electronApi */ \"./node_modules/electron-log/src/main/electronApi.js\");\nconst { initialize } = __webpack_require__(/*! ./initialize */ \"./node_modules/electron-log/src/main/initialize.js\");\nconst transportConsole = __webpack_require__(/*! ./transports/console */ \"./node_modules/electron-log/src/main/transports/console.js\");\nconst transportFile = __webpack_require__(/*! ./transports/file */ \"./node_modules/electron-log/src/main/transports/file/index.js\");\nconst transportRemote = __webpack_require__(/*! ./transports/remote */ \"./node_modules/electron-log/src/main/transports/remote.js\");\nconst Logger = __webpack_require__(/*! ../core/Logger */ \"./node_modules/electron-log/src/core/Logger.js\");\nconst ErrorHandler = __webpack_require__(/*! ./ErrorHandler */ \"./node_modules/electron-log/src/main/ErrorHandler.js\");\nconst EventLogger = __webpack_require__(/*! ./EventLogger */ \"./node_modules/electron-log/src/main/EventLogger.js\");\n\nconst defaultLogger = new Logger({\n errorHandler: new ErrorHandler(),\n eventLogger: new EventLogger(),\n initializeFn: initialize,\n isDev: electronApi.isDev(),\n logId: 'default',\n transportFactories: {\n console: transportConsole,\n file: transportFile,\n remote: transportRemote,\n },\n variables: {\n processType: 'main',\n },\n});\n\ndefaultLogger.processInternalErrorFn = (e) => {\n defaultLogger.transports.console.writeFn({\n message: {\n data: ['Unhandled electron-log error', e],\n level: 'error',\n },\n });\n};\n\nmodule.exports = defaultLogger;\nmodule.exports.Logger = Logger;\nmodule.exports[\"default\"] = module.exports;\n\nelectronApi.onIpc('__ELECTRON_LOG__', (_, message) => {\n if (message.scope) {\n Logger.getInstance(message).scope(message.scope);\n }\n\n const date = new Date(message.date);\n processMessage({\n ...message,\n date: date.getTime() ? date : new Date(),\n });\n});\n\nelectronApi.onIpcInvoke('__ELECTRON_LOG__', (_, { cmd = '', logId }) => {\n switch (cmd) {\n case 'getOptions': {\n const logger = Logger.getInstance({ logId });\n return {\n levels: logger.levels,\n logId,\n };\n }\n\n default: {\n processMessage({ data: [`Unknown cmd '${cmd}'`], level: 'error' });\n return {};\n }\n }\n});\n\nfunction processMessage(message) {\n Logger.getInstance(message)?.processMessage(message);\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/index.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/initialize.js": -/*!**********************************************************!*\ - !*** ./node_modules/electron-log/src/main/initialize.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst os = __webpack_require__(/*! os */ \"os\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst electronApi = __webpack_require__(/*! ./electronApi */ \"./node_modules/electron-log/src/main/electronApi.js\");\nconst preloadInitializeFn = __webpack_require__(/*! ../renderer/electron-log-preload */ \"./node_modules/electron-log/src/renderer/electron-log-preload.js\");\n\nmodule.exports = {\n initialize({\n getSessions,\n includeFutureSession,\n logger,\n preload = true,\n spyRendererConsole = false,\n }) {\n electronApi.onAppReady(() => {\n try {\n if (preload) {\n initializePreload({\n getSessions,\n includeFutureSession,\n preloadOption: preload,\n });\n }\n\n if (spyRendererConsole) {\n initializeSpyRendererConsole({ logger });\n }\n } catch (err) {\n logger.warn(err);\n }\n });\n },\n};\n\nfunction initializePreload({\n getSessions,\n includeFutureSession,\n preloadOption,\n}) {\n let preloadPath = typeof preloadOption === 'string'\n ? preloadOption\n : path.resolve(__dirname, '../renderer/electron-log-preload.js');\n\n if (!fs.existsSync(preloadPath)) {\n preloadPath = path.join(\n electronApi.getAppUserDataPath() || os.tmpdir(),\n 'electron-log-preload.js',\n );\n const preloadCode = `\n try {\n (${preloadInitializeFn.toString()})(require('electron'));\n } catch(e) {\n console.error(e);\n }\n `;\n fs.writeFileSync(preloadPath, preloadCode, 'utf8');\n }\n\n electronApi.setPreloadFileForSessions({\n filePath: preloadPath,\n includeFutureSession,\n getSessions,\n });\n}\n\nfunction initializeSpyRendererConsole({ logger }) {\n const levels = ['verbose', 'info', 'warning', 'error'];\n electronApi.onEveryWebContentsEvent(\n 'console-message',\n (event, level, message) => {\n logger.processMessage({\n data: [message],\n level: levels[level],\n variables: { processType: 'renderer' },\n });\n },\n );\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/initialize.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transforms/format.js": -/*!*****************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transforms/format.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst { transform } = __webpack_require__(/*! ./transform */ \"./node_modules/electron-log/src/main/transforms/transform.js\");\n\nmodule.exports = {\n concatFirstStringElements,\n formatScope,\n formatText,\n formatVariables,\n timeZoneFromOffset,\n\n format({ message, logger, transport, data = message?.data }) {\n switch (typeof transport.format) {\n case 'string': {\n return transform({\n message,\n logger,\n transforms: [formatVariables, formatScope, formatText],\n transport,\n initialData: [transport.format, ...data],\n });\n }\n\n case 'function': {\n return transport.format({\n data,\n level: message?.level || 'info',\n logger,\n message,\n transport,\n });\n }\n\n default: {\n return data;\n }\n }\n },\n};\n\n/**\n * The first argument of console.log may contain a template. In the library\n * the first element is a string related to transports.console.format. So\n * this function concatenates first two elements to make templates like %d\n * work\n * @param {*[]} data\n * @return {*[]}\n */\nfunction concatFirstStringElements({ data }) {\n if (typeof data[0] !== 'string' || typeof data[1] !== 'string') {\n return data;\n }\n\n if (data[0].match(/%[1cdfiOos]/)) {\n return data;\n }\n\n return [`${data[0]} ${data[1]}`, ...data.slice(2)];\n}\n\nfunction timeZoneFromOffset(minutesOffset) {\n const minutesPositive = Math.abs(minutesOffset);\n const sign = minutesOffset >= 0 ? '-' : '+';\n const hours = Math.floor(minutesPositive / 60).toString().padStart(2, '0');\n const minutes = (minutesPositive % 60).toString().padStart(2, '0');\n return `${sign}${hours}:${minutes}`;\n}\n\nfunction formatScope({ data, logger, message }) {\n const { defaultLabel, labelLength } = logger?.scope || {};\n const template = data[0];\n let label = message.scope;\n\n if (!label) {\n label = defaultLabel;\n }\n\n let scopeText;\n if (label === '') {\n scopeText = labelLength > 0 ? ''.padEnd(labelLength + 3) : '';\n } else if (typeof label === 'string') {\n scopeText = ` (${label})`.padEnd(labelLength + 3);\n } else {\n scopeText = '';\n }\n\n data[0] = template.replace('{scope}', scopeText);\n return data;\n}\n\nfunction formatVariables({ data, message }) {\n let template = data[0];\n if (typeof template !== 'string') {\n return data;\n }\n\n // Add additional space to the end of {level}] template to align messages\n template = template.replace('{level}]', `${message.level}]`.padEnd(6, ' '));\n\n const date = message.date || new Date();\n data[0] = template\n .replace(/\\{(\\w+)}/g, (substring, name) => {\n switch (name) {\n case 'level': return message.level || 'info';\n case 'logId': return message.logId;\n\n case 'y': return date.getFullYear().toString(10);\n case 'm': return (date.getMonth() + 1).toString(10).padStart(2, '0');\n case 'd': return date.getDate().toString(10).padStart(2, '0');\n case 'h': return date.getHours().toString(10).padStart(2, '0');\n case 'i': return date.getMinutes().toString(10).padStart(2, '0');\n case 's': return date.getSeconds().toString(10).padStart(2, '0');\n case 'ms': return date.getMilliseconds().toString(10).padStart(3, '0');\n case 'z': return timeZoneFromOffset(date.getTimezoneOffset());\n case 'iso': return date.toISOString();\n\n default: {\n return message.variables?.[name] || substring;\n }\n }\n })\n .trim();\n\n return data;\n}\n\nfunction formatText({ data }) {\n const template = data[0];\n if (typeof template !== 'string') {\n return data;\n }\n\n const textTplPosition = template.lastIndexOf('{text}');\n if (textTplPosition === template.length - 6) {\n data[0] = template.replace(/\\s?{text}/, '');\n if (data[0] === '') {\n data.shift();\n }\n\n return data;\n }\n\n const templatePieces = template.split('{text}');\n let result = [];\n\n if (templatePieces[0] !== '') {\n result.push(templatePieces[0]);\n }\n\n result = result.concat(data.slice(1));\n\n if (templatePieces[1] !== '') {\n result.push(templatePieces[1]);\n }\n\n return result;\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transforms/format.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transforms/object.js": -/*!*****************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transforms/object.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst util = __webpack_require__(/*! util */ \"util\");\n\nmodule.exports = {\n serialize,\n\n maxDepth({ data, transport, depth = transport?.depth ?? 6 }) {\n if (!data) {\n return data;\n }\n\n if (depth < 1) {\n if (Array.isArray(data)) return '[array]';\n if (typeof data === 'object' && data) return '[object]';\n\n return data;\n }\n\n if (Array.isArray(data)) {\n return data.map((child) => module.exports.maxDepth({\n data: child,\n depth: depth - 1,\n }));\n }\n\n if (typeof data !== 'object') {\n return data;\n }\n\n if (data && typeof data.toISOString === 'function') {\n return data;\n }\n\n // noinspection PointlessBooleanExpressionJS\n if (data === null) {\n return null;\n }\n\n if (data instanceof Error) {\n return data;\n }\n\n const newJson = {};\n for (const i in data) {\n if (!Object.prototype.hasOwnProperty.call(data, i)) continue;\n newJson[i] = module.exports.maxDepth({\n data: data[i],\n depth: depth - 1,\n });\n }\n\n return newJson;\n },\n\n toJSON({ data }) {\n return JSON.parse(JSON.stringify(data, createSerializer()));\n },\n\n toString({ data, transport }) {\n const inspectOptions = transport?.inspectOptions || {};\n\n const simplifiedData = data.map((item) => {\n if (item === undefined) {\n return undefined;\n }\n\n try {\n const str = JSON.stringify(item, createSerializer(), ' ');\n return str === undefined ? undefined : JSON.parse(str);\n } catch (e) {\n // There are some rare cases when an item can't be simplified.\n // In that case, it's fine to pass it to util.format directly.\n return item;\n }\n });\n\n return util.formatWithOptions(inspectOptions, ...simplifiedData);\n },\n};\n\n/**\n * @param {object} options?\n * @param {boolean} options.serializeMapAndSet?\n * @return {function}\n */\nfunction createSerializer(options = {}) {\n const seen = new WeakSet();\n\n return function (key, value) {\n if (typeof value === 'object' && value !== null) {\n if (seen.has(value)) {\n return undefined;\n }\n\n seen.add(value);\n }\n\n return serialize(key, value, options);\n };\n}\n\n/**\n * @param {string} key\n * @param {any} value\n * @param {object} options?\n * @return {any}\n */\nfunction serialize(key, value, options = {}) {\n const serializeMapAndSet = options?.serializeMapAndSet !== false;\n\n if (value instanceof Error) {\n return value.stack;\n }\n\n if (!value) {\n return value;\n }\n\n if (typeof value === 'function') {\n return `[function] ${value.toString()}`;\n }\n\n if (serializeMapAndSet && value instanceof Map && Object.fromEntries) {\n return Object.fromEntries(value);\n }\n\n if (serializeMapAndSet && value instanceof Set && Array.from) {\n return Array.from(value);\n }\n\n return value;\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transforms/object.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transforms/style.js": -/*!****************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transforms/style.js ***! - \****************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nmodule.exports = {\n transformStyles,\n\n applyAnsiStyles({ data }) {\n return transformStyles(data, styleToAnsi, resetAnsiStyle);\n },\n\n removeStyles({ data }) {\n return transformStyles(data, () => '');\n },\n};\n\nconst ANSI_COLORS = {\n unset: '\\x1b[0m',\n black: '\\x1b[30m',\n red: '\\x1b[31m',\n green: '\\x1b[32m',\n yellow: '\\x1b[33m',\n blue: '\\x1b[34m',\n magenta: '\\x1b[35m',\n cyan: '\\x1b[36m',\n white: '\\x1b[37m',\n};\n\nfunction styleToAnsi(style) {\n const color = style.replace(/color:\\s*(\\w+).*/, '$1').toLowerCase();\n return ANSI_COLORS[color] || '';\n}\n\nfunction resetAnsiStyle(string) {\n return string + ANSI_COLORS.unset;\n}\n\nfunction transformStyles(data, onStyleFound, onStyleApplied) {\n const foundStyles = {};\n\n return data.reduce((result, item, index, array) => {\n if (foundStyles[index]) {\n return result;\n }\n\n if (typeof item === 'string') {\n let valueIndex = index;\n let styleApplied = false;\n\n item = item.replace(/%[1cdfiOos]/g, (match) => {\n valueIndex += 1;\n\n if (match !== '%c') {\n return match;\n }\n\n const style = array[valueIndex];\n if (typeof style === 'string') {\n foundStyles[valueIndex] = true;\n styleApplied = true;\n return onStyleFound(style, item);\n }\n\n return match;\n });\n\n if (styleApplied && onStyleApplied) {\n item = onStyleApplied(item);\n }\n }\n\n result.push(item);\n return result;\n }, []);\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transforms/style.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transforms/transform.js": -/*!********************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transforms/transform.js ***! - \********************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nmodule.exports = { transform };\n\nfunction transform({\n logger,\n message,\n transport,\n\n initialData = message?.data || [],\n transforms = transport?.transforms,\n}) {\n return transforms.reduce((data, trans) => {\n if (typeof trans === 'function') {\n return trans({ data, logger, message, transport });\n }\n\n return data;\n }, initialData);\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transforms/transform.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/console.js": -/*!******************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/console.js ***! - \******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\n/* eslint-disable no-console */\n\nconst { concatFirstStringElements, format } = __webpack_require__(/*! ../transforms/format */ \"./node_modules/electron-log/src/main/transforms/format.js\");\nconst { maxDepth, toJSON } = __webpack_require__(/*! ../transforms/object */ \"./node_modules/electron-log/src/main/transforms/object.js\");\nconst { applyAnsiStyles, removeStyles } = __webpack_require__(/*! ../transforms/style */ \"./node_modules/electron-log/src/main/transforms/style.js\");\nconst { transform } = __webpack_require__(/*! ../transforms/transform */ \"./node_modules/electron-log/src/main/transforms/transform.js\");\n\nconst consoleMethods = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: console.info,\n debug: console.debug,\n silly: console.debug,\n log: console.log,\n};\n\nmodule.exports = consoleTransportFactory;\n\nconst separator = process.platform === 'win32' ? '>' : '›';\nconst DEFAULT_FORMAT = `%c{h}:{i}:{s}.{ms}{scope}%c ${separator} {text}`;\n\nObject.assign(consoleTransportFactory, {\n DEFAULT_FORMAT,\n});\n\nfunction consoleTransportFactory(logger) {\n return Object.assign(transport, {\n format: DEFAULT_FORMAT,\n level: 'silly',\n transforms: [\n addTemplateColors,\n format,\n formatStyles,\n concatFirstStringElements,\n maxDepth,\n toJSON,\n ],\n useStyles: process.env.FORCE_STYLES,\n\n writeFn({ message }) {\n const consoleLogFn = consoleMethods[message.level] || consoleMethods.info;\n consoleLogFn(...message.data);\n },\n });\n\n function transport(message) {\n const data = transform({ logger, message, transport });\n transport.writeFn({\n message: { ...message, data },\n });\n }\n}\n\nfunction addTemplateColors({ data, message, transport }) {\n if (transport.format !== DEFAULT_FORMAT) {\n return data;\n }\n\n return [`color:${levelToStyle(message.level)}`, 'color:unset', ...data];\n}\n\nfunction canUseStyles(useStyleValue, level) {\n if (typeof useStyleValue === 'boolean') {\n return useStyleValue;\n }\n\n const useStderr = level === 'error' || level === 'warn';\n const stream = useStderr ? process.stderr : process.stdout;\n return stream && stream.isTTY;\n}\n\nfunction formatStyles(args) {\n const { message, transport } = args;\n const useStyles = canUseStyles(transport.useStyles, message.level);\n const nextTransform = useStyles ? applyAnsiStyles : removeStyles;\n return nextTransform(args);\n}\n\nfunction levelToStyle(level) {\n const map = { error: 'red', warn: 'yellow', info: 'cyan', default: 'unset' };\n return map[level] || map.default;\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/console.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/file/File.js": -/*!********************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/file/File.js ***! - \********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst EventEmitter = __webpack_require__(/*! events */ \"events\");\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst os = __webpack_require__(/*! os */ \"os\");\n\nclass File extends EventEmitter {\n asyncWriteQueue = [];\n bytesWritten = 0;\n hasActiveAsyncWriting = false;\n path = null;\n initialSize = undefined;\n writeOptions = null;\n writeAsync = false;\n\n constructor({\n path,\n writeOptions = { encoding: 'utf8', flag: 'a', mode: 0o666 },\n writeAsync = false,\n }) {\n super();\n\n this.path = path;\n this.writeOptions = writeOptions;\n this.writeAsync = writeAsync;\n }\n\n get size() {\n return this.getSize();\n }\n\n clear() {\n try {\n fs.writeFileSync(this.path, '', {\n mode: this.writeOptions.mode,\n flag: 'w',\n });\n this.reset();\n return true;\n } catch (e) {\n if (e.code === 'ENOENT') {\n return true;\n }\n\n this.emit('error', e, this);\n return false;\n }\n }\n\n crop(bytesAfter) {\n try {\n const content = readFileSyncFromEnd(this.path, bytesAfter || 4096);\n this.clear();\n this.writeLine(`[log cropped]${os.EOL}${content}`);\n } catch (e) {\n this.emit(\n 'error',\n new Error(`Couldn't crop file ${this.path}. ${e.message}`),\n this,\n );\n }\n }\n\n getSize() {\n if (this.initialSize === undefined) {\n try {\n const stats = fs.statSync(this.path);\n this.initialSize = stats.size;\n } catch (e) {\n this.initialSize = 0;\n }\n }\n\n return this.initialSize + this.bytesWritten;\n }\n\n increaseBytesWrittenCounter(text) {\n this.bytesWritten += Buffer.byteLength(text, this.writeOptions.encoding);\n }\n\n isNull() {\n return false;\n }\n\n nextAsyncWrite() {\n const file = this;\n\n if (this.hasActiveAsyncWriting || this.asyncWriteQueue.length === 0) {\n return;\n }\n\n const text = this.asyncWriteQueue.join('');\n this.asyncWriteQueue = [];\n this.hasActiveAsyncWriting = true;\n\n fs.writeFile(this.path, text, this.writeOptions, (e) => {\n file.hasActiveAsyncWriting = false;\n\n if (e) {\n file.emit(\n 'error',\n new Error(`Couldn't write to ${file.path}. ${e.message}`),\n this,\n );\n } else {\n file.increaseBytesWrittenCounter(text);\n }\n\n file.nextAsyncWrite();\n });\n }\n\n reset() {\n this.initialSize = undefined;\n this.bytesWritten = 0;\n }\n\n toString() {\n return this.path;\n }\n\n writeLine(text) {\n text += os.EOL;\n\n if (this.writeAsync) {\n this.asyncWriteQueue.push(text);\n this.nextAsyncWrite();\n return;\n }\n\n try {\n fs.writeFileSync(this.path, text, this.writeOptions);\n this.increaseBytesWrittenCounter(text);\n } catch (e) {\n this.emit(\n 'error',\n new Error(`Couldn't write to ${this.path}. ${e.message}`),\n this,\n );\n }\n }\n}\n\nmodule.exports = File;\n\nfunction readFileSyncFromEnd(filePath, bytesCount) {\n const buffer = Buffer.alloc(bytesCount);\n const stats = fs.statSync(filePath);\n\n const readLength = Math.min(stats.size, bytesCount);\n const offset = Math.max(0, stats.size - bytesCount);\n\n const fd = fs.openSync(filePath, 'r');\n const totalBytes = fs.readSync(fd, buffer, 0, readLength, offset);\n fs.closeSync(fd);\n\n return buffer.toString('utf8', 0, totalBytes);\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/file/File.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/file/FileRegistry.js": -/*!****************************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/file/FileRegistry.js ***! - \****************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst EventEmitter = __webpack_require__(/*! events */ \"events\");\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst File = __webpack_require__(/*! ./File */ \"./node_modules/electron-log/src/main/transports/file/File.js\");\nconst NullFile = __webpack_require__(/*! ./NullFile */ \"./node_modules/electron-log/src/main/transports/file/NullFile.js\");\n\nclass FileRegistry extends EventEmitter {\n store = {};\n\n constructor() {\n super();\n this.emitError = this.emitError.bind(this);\n }\n\n /**\n * Provide a File object corresponding to the filePath\n * @param {string} filePath\n * @param {WriteOptions} [writeOptions]\n * @param {boolean} [writeAsync]\n * @return {File}\n */\n provide({ filePath, writeOptions, writeAsync = false }) {\n let file;\n try {\n filePath = path.resolve(filePath);\n\n if (this.store[filePath]) {\n return this.store[filePath];\n }\n\n file = this.createFile({ filePath, writeOptions, writeAsync });\n } catch (e) {\n file = new NullFile({ path: filePath });\n this.emitError(e, file);\n }\n\n file.on('error', this.emitError);\n this.store[filePath] = file;\n return file;\n }\n\n /**\n * @param {string} filePath\n * @param {WriteOptions} writeOptions\n * @param {boolean} async\n * @return {File}\n * @private\n */\n createFile({ filePath, writeOptions, writeAsync }) {\n this.testFileWriting(filePath);\n return new File({ path: filePath, writeOptions, writeAsync });\n }\n\n /**\n * @param {Error} error\n * @param {File} file\n * @private\n */\n emitError(error, file) {\n this.emit('error', error, file);\n }\n\n /**\n * @param {string} filePath\n * @private\n */\n testFileWriting(filePath) {\n fs.mkdirSync(path.dirname(filePath), { recursive: true });\n fs.writeFileSync(filePath, '', { flag: 'a' });\n }\n}\n\nmodule.exports = FileRegistry;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/file/FileRegistry.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/file/NullFile.js": -/*!************************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/file/NullFile.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst File = __webpack_require__(/*! ./File */ \"./node_modules/electron-log/src/main/transports/file/File.js\");\n\nclass NullFile extends File {\n clear() {\n\n }\n\n crop() {\n\n }\n\n getSize() {\n return 0;\n }\n\n isNull() {\n return true;\n }\n\n writeLine() {\n\n }\n}\n\nmodule.exports = NullFile;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/file/NullFile.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/file/index.js": -/*!*********************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/file/index.js ***! - \*********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst os = __webpack_require__(/*! os */ \"os\");\nconst FileRegistry = __webpack_require__(/*! ./FileRegistry */ \"./node_modules/electron-log/src/main/transports/file/FileRegistry.js\");\nconst variables = __webpack_require__(/*! ./variables */ \"./node_modules/electron-log/src/main/transports/file/variables.js\");\nconst { transform } = __webpack_require__(/*! ../../transforms/transform */ \"./node_modules/electron-log/src/main/transforms/transform.js\");\nconst { removeStyles } = __webpack_require__(/*! ../../transforms/style */ \"./node_modules/electron-log/src/main/transforms/style.js\");\nconst { format } = __webpack_require__(/*! ../../transforms/format */ \"./node_modules/electron-log/src/main/transforms/format.js\");\nconst { toString } = __webpack_require__(/*! ../../transforms/object */ \"./node_modules/electron-log/src/main/transforms/object.js\");\n\nmodule.exports = fileTransportFactory;\n\n// Shared between multiple file transport instances\nconst globalRegistry = new FileRegistry();\n\nfunction fileTransportFactory(logger, registry = globalRegistry) {\n /** @type {PathVariables} */\n let pathVariables;\n\n if (registry.listenerCount('error') < 1) {\n registry.on('error', (e, file) => {\n logConsole(`Can't write to ${file}`, e);\n });\n }\n\n return Object.assign(transport, {\n fileName: getDefaultFileName(logger.variables.processType),\n format: '[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}]{scope} {text}',\n getFile,\n inspectOptions: { depth: 5 },\n level: 'silly',\n maxSize: 1024 ** 2,\n readAllLogs,\n sync: true,\n transforms: [removeStyles, format, toString],\n writeOptions: { flag: 'a', mode: 0o666, encoding: 'utf8' },\n\n archiveLogFn(file) {\n const oldPath = file.toString();\n const inf = path.parse(oldPath);\n try {\n fs.renameSync(oldPath, path.join(inf.dir, `${inf.name}.old${inf.ext}`));\n } catch (e) {\n logConsole('Could not rotate log', e);\n const quarterOfMaxSize = Math.round(transport.maxSize / 4);\n file.crop(Math.min(quarterOfMaxSize, 256 * 1024));\n }\n },\n\n resolvePathFn(vars) {\n return path.join(vars.libraryDefaultDir, vars.fileName);\n },\n });\n\n function transport(message) {\n const file = getFile(message);\n\n const needLogRotation = transport.maxSize > 0\n && file.size > transport.maxSize;\n\n if (needLogRotation) {\n transport.archiveLogFn(file);\n file.reset();\n }\n\n const content = transform({ logger, message, transport });\n file.writeLine(content);\n }\n\n function initializeOnFirstAccess() {\n if (pathVariables) {\n return;\n }\n\n // Make a shallow copy of pathVariables to keep getters intact\n pathVariables = Object.create(\n Object.prototype,\n {\n ...Object.getOwnPropertyDescriptors(\n variables.getPathVariables(process.platform),\n ),\n fileName: {\n get() {\n return transport.fileName;\n },\n enumerable: true,\n },\n },\n );\n\n if (typeof transport.archiveLog === 'function') {\n transport.archiveLogFn = transport.archiveLog;\n logConsole('archiveLog is deprecated. Use archiveLogFn instead');\n }\n\n if (typeof transport.resolvePath === 'function') {\n transport.resolvePathFn = transport.resolvePath;\n logConsole('resolvePath is deprecated. Use resolvePathFn instead');\n }\n }\n\n function logConsole(message, error = null, level = 'error') {\n const data = [`electron-log.transports.file: ${message}`];\n\n if (error) {\n data.push(error);\n }\n\n logger.transports.console({ data, date: new Date(), level });\n }\n\n function getFile(msg) {\n initializeOnFirstAccess();\n\n const filePath = transport.resolvePathFn(pathVariables, msg);\n return registry.provide({\n filePath,\n writeAsync: !transport.sync,\n writeOptions: transport.writeOptions,\n });\n }\n\n function readAllLogs({ fileFilter = (f) => f.endsWith('.log') } = {}) {\n const logsPath = path.dirname(transport.resolvePathFn(pathVariables));\n\n return fs.readdirSync(logsPath)\n .map((fileName) => path.join(logsPath, fileName))\n .filter(fileFilter)\n .map((logPath) => {\n try {\n return {\n path: logPath,\n lines: fs.readFileSync(logPath, 'utf8').split(os.EOL),\n };\n } catch {\n return null;\n }\n })\n .filter(Boolean);\n }\n}\n\nfunction getDefaultFileName(processType = process.type) {\n switch (processType) {\n case 'renderer': return 'renderer.log';\n case 'worker': return 'worker.log';\n default: return 'main.log';\n }\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/file/index.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/file/packageJson.js": -/*!***************************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/file/packageJson.js ***! - \***************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\n/* eslint-disable consistent-return */\n\nconst fs = __webpack_require__(/*! fs */ \"fs\");\nconst path = __webpack_require__(/*! path */ \"path\");\n\nmodule.exports = {\n readPackageJson,\n tryReadJsonAt,\n};\n\n/**\n * @return {{ name?: string, version?: string}}\n */\nfunction readPackageJson() {\n return tryReadJsonAt(__webpack_require__.c[__webpack_require__.s] && __webpack_require__.c[__webpack_require__.s].filename)\n || tryReadJsonAt(extractPathFromArgs())\n || tryReadJsonAt(process.resourcesPath, 'app.asar')\n || tryReadJsonAt(process.resourcesPath, 'app')\n || tryReadJsonAt(process.cwd())\n || { name: null, version: null };\n}\n\n/**\n * @param {...string} searchPaths\n * @return {{ name?: string, version?: string } | null}\n */\nfunction tryReadJsonAt(...searchPaths) {\n if (!searchPaths[0]) {\n return null;\n }\n\n try {\n const searchPath = path.join(...searchPaths);\n const fileName = findUp('package.json', searchPath);\n if (!fileName) {\n return null;\n }\n\n const json = JSON.parse(fs.readFileSync(fileName, 'utf8'));\n const name = json.productName || json.name;\n if (!name || name.toLowerCase() === 'electron') {\n return null;\n }\n\n if (json.productName || json.name) {\n return {\n name,\n version: json.version,\n };\n }\n } catch (e) {\n return null;\n }\n}\n\n/**\n * @param {string} fileName\n * @param {string} [cwd]\n * @return {string | null}\n */\nfunction findUp(fileName, cwd) {\n let currentPath = cwd;\n // eslint-disable-next-line no-constant-condition\n while (true) {\n const parsedPath = path.parse(currentPath);\n const root = parsedPath.root;\n const dir = parsedPath.dir;\n\n if (fs.existsSync(path.join(currentPath, fileName))) {\n return path.resolve(path.join(currentPath, fileName));\n }\n\n if (currentPath === root) {\n return null;\n }\n\n currentPath = dir;\n }\n}\n\n/**\n * Get app path from --user-data-dir cmd arg, passed to a renderer process\n * @return {string|null}\n */\nfunction extractPathFromArgs() {\n const matchedArgs = process.argv.filter((arg) => {\n return arg.indexOf('--user-data-dir=') === 0;\n });\n\n if (matchedArgs.length === 0 || typeof matchedArgs[0] !== 'string') {\n return null;\n }\n\n const userDataDir = matchedArgs[0];\n return userDataDir.replace('--user-data-dir=', '');\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/file/packageJson.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/file/variables.js": -/*!*************************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/file/variables.js ***! - \*************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst os = __webpack_require__(/*! os */ \"os\");\nconst path = __webpack_require__(/*! path */ \"path\");\nconst electronApi = __webpack_require__(/*! ../../electronApi */ \"./node_modules/electron-log/src/main/electronApi.js\");\nconst packageJson = __webpack_require__(/*! ./packageJson */ \"./node_modules/electron-log/src/main/transports/file/packageJson.js\");\n\nmodule.exports = {\n getAppData,\n getLibraryDefaultDir,\n getLibraryTemplate,\n getNameAndVersion,\n getPathVariables,\n getUserData,\n};\n\nfunction getAppData(platform) {\n const appData = electronApi.getPath('appData');\n if (appData) {\n return appData;\n }\n\n const home = getHome();\n\n switch (platform) {\n case 'darwin': {\n return path.join(home, 'Library/Application Support');\n }\n\n case 'win32': {\n return process.env.APPDATA || path.join(home, 'AppData/Roaming');\n }\n\n default: {\n return process.env.XDG_CONFIG_HOME || path.join(home, '.config');\n }\n }\n}\n\nfunction getHome() {\n return os.homedir ? os.homedir() : process.env.HOME;\n}\n\nfunction getLibraryDefaultDir(platform, appName) {\n if (platform === 'darwin') {\n return path.join(getHome(), 'Library/Logs', appName);\n }\n\n return path.join(getUserData(platform, appName), 'logs');\n}\n\nfunction getLibraryTemplate(platform) {\n if (platform === 'darwin') {\n return path.join(getHome(), 'Library/Logs', '{appName}');\n }\n\n return path.join(getAppData(platform), '{appName}', 'logs');\n}\n\nfunction getNameAndVersion() {\n let name = electronApi.getName() || '';\n let version = electronApi.getVersion();\n\n if (name.toLowerCase() === 'electron') {\n name = '';\n version = '';\n }\n\n if (name && version) {\n return { name, version };\n }\n\n const packageValues = packageJson.readPackageJson();\n if (!name) {\n name = packageValues.name;\n }\n\n if (!version) {\n version = packageValues.version;\n }\n\n if (!name) {\n // Fallback, otherwise file transport can't be initialized\n name = 'Electron';\n }\n\n return { name, version };\n}\n\n/**\n * @param {string} platform\n * @return {PathVariables}\n */\nfunction getPathVariables(platform) {\n const nameAndVersion = getNameAndVersion();\n const appName = nameAndVersion.name;\n const appVersion = nameAndVersion.version;\n\n return {\n appData: getAppData(platform),\n appName,\n appVersion,\n get electronDefaultDir() {\n return electronApi.getPath('logs');\n },\n home: getHome(),\n libraryDefaultDir: getLibraryDefaultDir(platform, appName),\n libraryTemplate: getLibraryTemplate(platform),\n temp: electronApi.getPath('temp') || os.tmpdir(),\n userData: getUserData(platform, appName),\n };\n}\n\nfunction getUserData(platform, appName) {\n if (electronApi.getName() !== appName) {\n return path.join(getAppData(platform), appName);\n }\n\n return electronApi.getPath('userData')\n || path.join(getAppData(platform), appName);\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/file/variables.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/main/transports/remote.js": -/*!*****************************************************************!*\ - !*** ./node_modules/electron-log/src/main/transports/remote.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst http = __webpack_require__(/*! http */ \"http\");\nconst https = __webpack_require__(/*! https */ \"https\");\nconst { transform } = __webpack_require__(/*! ../transforms/transform */ \"./node_modules/electron-log/src/main/transforms/transform.js\");\nconst { removeStyles } = __webpack_require__(/*! ../transforms/style */ \"./node_modules/electron-log/src/main/transforms/style.js\");\nconst { toJSON, maxDepth } = __webpack_require__(/*! ../transforms/object */ \"./node_modules/electron-log/src/main/transforms/object.js\");\n\nmodule.exports = remoteTransportFactory;\n\nfunction remoteTransportFactory(logger) {\n return Object.assign(transport, {\n client: { name: 'electron-application' },\n depth: 6,\n level: false,\n requestOptions: {},\n transforms: [removeStyles, toJSON, maxDepth],\n\n makeBodyFn({ message }) {\n return JSON.stringify({\n client: transport.client,\n data: message.data,\n date: message.date.getTime(),\n level: message.level,\n scope: message.scope,\n variables: message.variables,\n });\n },\n\n processErrorFn({ error }) {\n logger.processMessage(\n {\n data: [`electron-log: can't POST ${transport.url}`, error],\n level: 'warn',\n },\n { transports: ['console', 'file'] },\n );\n },\n\n sendRequestFn({ serverUrl, requestOptions, body }) {\n const httpTransport = serverUrl.startsWith('https:') ? https : http;\n\n const request = httpTransport.request(serverUrl, {\n method: 'POST',\n ...requestOptions,\n headers: {\n 'Content-Type': 'application/json',\n 'Content-Length': body.length,\n ...requestOptions.headers,\n },\n });\n\n request.write(body);\n request.end();\n\n return request;\n },\n });\n\n function transport(message) {\n if (!transport.url) {\n return;\n }\n\n const body = transport.makeBodyFn({\n logger,\n message: { ...message, data: transform({ logger, message, transport }) },\n transport,\n });\n\n const request = transport.sendRequestFn({\n serverUrl: transport.url,\n requestOptions: transport.requestOptions,\n body: Buffer.from(body, 'utf8'),\n });\n\n request.on('error', (error) => transport.processErrorFn({\n error,\n logger,\n message,\n request,\n transport,\n }));\n }\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/main/transports/remote.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/renderer/electron-log-preload.js": -/*!************************************************************************!*\ - !*** ./node_modules/electron-log/src/renderer/electron-log-preload.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nlet electron = {};\n\ntry {\n // eslint-disable-next-line global-require,import/no-extraneous-dependencies\n electron = __webpack_require__(/*! electron */ \"electron\");\n} catch (e) {\n // require isn't available, not from a preload script\n}\n\nif (electron.ipcRenderer) {\n initialize(electron);\n}\n\nif (true) {\n module.exports = initialize;\n}\n\n/**\n * @param {Electron.ContextBridge} contextBridge\n * @param {Electron.IpcRenderer} ipcRenderer\n */\nfunction initialize({ contextBridge, ipcRenderer }) {\n if (!ipcRenderer) {\n return;\n }\n\n ipcRenderer.on('__ELECTRON_LOG_IPC__', (_, message) => {\n window.postMessage({ cmd: 'message', ...message });\n });\n\n ipcRenderer\n .invoke('__ELECTRON_LOG__', { cmd: 'getOptions' })\n // eslint-disable-next-line no-console\n .catch((e) => console.error(new Error(\n 'electron-log isn\\'t initialized in the main process. '\n + `Please call log.initialize() before. ${e.message}`,\n )));\n\n const electronLog = {\n sendToMain(message) {\n try {\n ipcRenderer.send('__ELECTRON_LOG__', message);\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error('electronLog.sendToMain ', e, 'data:', message);\n\n ipcRenderer.send('__ELECTRON_LOG__', {\n cmd: 'errorHandler',\n error: { message: e?.message, stack: e?.stack },\n errorName: 'sendToMain',\n });\n }\n },\n\n log(...data) {\n electronLog.sendToMain({ data, level: 'info' });\n },\n };\n\n for (const level of ['error', 'warn', 'info', 'verbose', 'debug', 'silly']) {\n electronLog[level] = (...data) => electronLog.sendToMain({\n data,\n level,\n });\n }\n\n if (contextBridge && process.contextIsolated) {\n try {\n contextBridge.exposeInMainWorld('__electronLog', electronLog);\n } catch {\n // Sometimes this files can be included twice\n }\n }\n\n if (typeof window === 'object') {\n window.__electronLog = electronLog;\n } else {\n // noinspection JSConstantReassignment\n __electronLog = electronLog;\n }\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/renderer/electron-log-preload.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/renderer/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/electron-log/src/renderer/index.js ***! - \*********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\nconst Logger = __webpack_require__(/*! ../core/Logger */ \"./node_modules/electron-log/src/core/Logger.js\");\nconst RendererErrorHandler = __webpack_require__(/*! ./lib/RendererErrorHandler */ \"./node_modules/electron-log/src/renderer/lib/RendererErrorHandler.js\");\nconst transportConsole = __webpack_require__(/*! ./lib/transports/console */ \"./node_modules/electron-log/src/renderer/lib/transports/console.js\");\nconst transportIpc = __webpack_require__(/*! ./lib/transports/ipc */ \"./node_modules/electron-log/src/renderer/lib/transports/ipc.js\");\n\nmodule.exports = createLogger();\nmodule.exports.Logger = Logger;\nmodule.exports[\"default\"] = module.exports;\n\nfunction createLogger() {\n const logger = new Logger({\n allowUnknownLevel: true,\n errorHandler: new RendererErrorHandler(),\n initializeFn: () => {},\n logId: 'default',\n transportFactories: {\n console: transportConsole,\n ipc: transportIpc,\n },\n variables: {\n processType: 'renderer',\n },\n });\n\n logger.errorHandler.setOptions({\n logFn({ error, errorName, showDialog }) {\n logger.transports.console({\n data: [errorName, error].filter(Boolean),\n level: 'error',\n });\n logger.transports.ipc({\n cmd: 'errorHandler',\n error: {\n cause: error?.cause,\n code: error?.code,\n name: error?.name,\n message: error?.message,\n stack: error?.stack,\n },\n errorName,\n logId: logger.logId,\n showDialog,\n });\n },\n });\n\n if (typeof window === 'object') {\n window.addEventListener('message', (event) => {\n const { cmd, logId, ...message } = event.data || {};\n const instance = Logger.getInstance({ logId });\n\n if (cmd === 'message') {\n instance.processMessage(message, { transports: ['console'] });\n }\n });\n }\n\n // To support custom levels\n return new Proxy(logger, {\n get(target, prop) {\n if (typeof target[prop] !== 'undefined') {\n return target[prop];\n }\n\n return (...data) => logger.logData(data, { level: prop });\n },\n });\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/renderer/index.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/renderer/lib/RendererErrorHandler.js": -/*!****************************************************************************!*\ - !*** ./node_modules/electron-log/src/renderer/lib/RendererErrorHandler.js ***! - \****************************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\n// eslint-disable-next-line no-console\nconst consoleError = console.error;\n\nclass RendererErrorHandler {\n logFn = null;\n onError = null;\n showDialog = false;\n preventDefault = true;\n\n constructor({ logFn = null } = {}) {\n this.handleError = this.handleError.bind(this);\n this.handleRejection = this.handleRejection.bind(this);\n this.startCatching = this.startCatching.bind(this);\n this.logFn = logFn;\n }\n\n handle(error, {\n logFn = this.logFn,\n errorName = '',\n onError = this.onError,\n showDialog = this.showDialog,\n } = {}) {\n try {\n if (onError?.({ error, errorName, processType: 'renderer' }) !== false) {\n logFn({ error, errorName, showDialog });\n }\n } catch {\n consoleError(error);\n }\n }\n\n setOptions({ logFn, onError, preventDefault, showDialog }) {\n if (typeof logFn === 'function') {\n this.logFn = logFn;\n }\n\n if (typeof onError === 'function') {\n this.onError = onError;\n }\n\n if (typeof preventDefault === 'boolean') {\n this.preventDefault = preventDefault;\n }\n\n if (typeof showDialog === 'boolean') {\n this.showDialog = showDialog;\n }\n }\n\n startCatching({ onError, showDialog } = {}) {\n if (this.isActive) {\n return;\n }\n\n this.isActive = true;\n this.setOptions({ onError, showDialog });\n\n window.addEventListener('error', (event) => {\n this.preventDefault && event.preventDefault?.();\n this.handleError(event.error || event);\n });\n window.addEventListener('unhandledrejection', (event) => {\n this.preventDefault && event.preventDefault?.();\n this.handleRejection(event.reason || event);\n });\n }\n\n handleError(error) {\n this.handle(error, { errorName: 'Unhandled' });\n }\n\n handleRejection(reason) {\n const error = reason instanceof Error\n ? reason\n : new Error(JSON.stringify(reason));\n this.handle(error, { errorName: 'Unhandled rejection' });\n }\n}\n\nmodule.exports = RendererErrorHandler;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/renderer/lib/RendererErrorHandler.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/renderer/lib/transports/console.js": -/*!**************************************************************************!*\ - !*** ./node_modules/electron-log/src/renderer/lib/transports/console.js ***! - \**************************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\n/* eslint-disable no-console */\n\nmodule.exports = consoleTransportRendererFactory;\n\nconst consoleMethods = {\n error: console.error,\n warn: console.warn,\n info: console.info,\n verbose: console.info,\n debug: console.debug,\n silly: console.debug,\n log: console.log,\n};\n\nfunction consoleTransportRendererFactory(logger) {\n return Object.assign(transport, {\n format: '{h}:{i}:{s}.{ms}{scope} › {text}',\n\n formatDataFn({\n data = [],\n date = new Date(),\n format = transport.format,\n logId = logger.logId,\n scope = logger.scopeName,\n ...message\n }) {\n if (typeof format === 'function') {\n return format({ ...message, data, date, logId, scope });\n }\n\n if (typeof format !== 'string') {\n return data;\n }\n\n data.unshift(format);\n\n // Concatenate first two data items to support printf-like templates\n if (typeof data[1] === 'string' && data[1].match(/%[1cdfiOos]/)) {\n data = [`${data[0]} ${data[1]}`, ...data.slice(2)];\n }\n\n data[0] = data[0]\n .replace(/\\{(\\w+)}/g, (substring, name) => {\n switch (name) {\n case 'level': return message.level;\n case 'logId': return logId;\n case 'scope': return scope ? ` (${scope})` : '';\n case 'text': return '';\n\n case 'y': return date.getFullYear().toString(10);\n case 'm': return (date.getMonth() + 1).toString(10)\n .padStart(2, '0');\n case 'd': return date.getDate().toString(10).padStart(2, '0');\n case 'h': return date.getHours().toString(10).padStart(2, '0');\n case 'i': return date.getMinutes().toString(10).padStart(2, '0');\n case 's': return date.getSeconds().toString(10).padStart(2, '0');\n case 'ms': return date.getMilliseconds().toString(10)\n .padStart(3, '0');\n case 'iso': return date.toISOString();\n\n default: {\n return message.variables?.[name] || substring;\n }\n }\n })\n .trim();\n\n return data;\n },\n\n writeFn({ message: { level, data } }) {\n const consoleLogFn = consoleMethods[level] || consoleMethods.info;\n\n // make an empty call stack\n setTimeout(() => consoleLogFn(...data));\n },\n\n });\n\n function transport(message) {\n transport.writeFn({\n message: { ...message, data: transport.formatDataFn(message) },\n });\n }\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/renderer/lib/transports/console.js?"); - -/***/ }), - -/***/ "./node_modules/electron-log/src/renderer/lib/transports/ipc.js": -/*!**********************************************************************!*\ - !*** ./node_modules/electron-log/src/renderer/lib/transports/ipc.js ***! - \**********************************************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nmodule.exports = ipcTransportRendererFactory;\n\nconst RESTRICTED_TYPES = new Set([Promise, WeakMap, WeakSet]);\n\nfunction ipcTransportRendererFactory(logger) {\n return Object.assign(transport, {\n depth: 5,\n\n serializeFn(data, { depth = 5, seen = new WeakSet() } = {}) {\n if (depth < 1) {\n return `[${typeof data}]`;\n }\n\n if (seen.has(data)) {\n return data;\n }\n\n if (['function', 'symbol'].includes(typeof data)) {\n return data.toString();\n }\n\n // Primitive types (including null and undefined)\n if (Object(data) !== data) {\n return data;\n }\n\n // Object types\n\n if (RESTRICTED_TYPES.has(data.constructor)) {\n return `[${data.constructor.name}]`;\n }\n\n if (Array.isArray(data)) {\n return data.map((item) => transport.serializeFn(\n item,\n { depth: depth - 1, seen },\n ));\n }\n\n if (data instanceof Error) {\n return data.stack;\n }\n\n if (data instanceof Map) {\n return new Map(\n Array\n .from(data)\n .map(([key, value]) => [\n transport.serializeFn(key, { depth: depth - 1, seen }),\n transport.serializeFn(value, { depth: depth - 1, seen }),\n ]),\n );\n }\n\n if (data instanceof Set) {\n return new Set(\n Array.from(data).map(\n (val) => transport.serializeFn(val, { depth: depth - 1, seen }),\n ),\n );\n }\n\n seen.add(data);\n\n return Object.fromEntries(\n Object.entries(data).map(\n ([key, value]) => [\n key,\n transport.serializeFn(value, { depth: depth - 1, seen }),\n ],\n ),\n );\n },\n });\n\n function transport(message) {\n if (!window.__electronLog) {\n logger.processMessage(\n {\n data: ['electron-log: logger isn\\'t initialized in the main process'],\n level: 'error',\n },\n { transports: ['console'] },\n );\n return;\n }\n\n try {\n __electronLog.sendToMain(transport.serializeFn(message, {\n depth: transport.depth,\n }));\n } catch (e) {\n logger.transports.console({\n data: ['electronLog.transports.ipc', e, 'data:', message.data],\n level: 'error',\n });\n }\n }\n}\n\n\n//# sourceURL=webpack://main/./node_modules/electron-log/src/renderer/lib/transports/ipc.js?"); - -/***/ }), - -/***/ "./node_modules/electron-store/index.js": -/*!**********************************************!*\ - !*** ./node_modules/electron-store/index.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\nconst path = __webpack_require__(/*! path */ \"path\");\nconst {app, ipcMain, ipcRenderer, shell} = __webpack_require__(/*! electron */ \"electron\");\nconst Conf = __webpack_require__(/*! conf */ \"./node_modules/conf/dist/source/index.js\");\n\nlet isInitialized = false;\n\n// Set up the `ipcMain` handler for communication between renderer and main process.\nconst initDataListener = () => {\n\tif (!ipcMain || !app) {\n\t\tthrow new Error('Electron Store: You need to call `.initRenderer()` from the main process.');\n\t}\n\n\tconst appData = {\n\t\tdefaultCwd: app.getPath('userData'),\n\t\tappVersion: app.getVersion()\n\t};\n\n\tif (isInitialized) {\n\t\treturn appData;\n\t}\n\n\tipcMain.on('electron-store-get-data', event => {\n\t\tevent.returnValue = appData;\n\t});\n\n\tisInitialized = true;\n\n\treturn appData;\n};\n\nclass ElectronStore extends Conf {\n\tconstructor(options) {\n\t\tlet defaultCwd;\n\t\tlet appVersion;\n\n\t\t// If we are in the renderer process, we communicate with the main process\n\t\t// to get the required data for the module otherwise, we pull from the main process.\n\t\tif (ipcRenderer) {\n\t\t\tconst appData = ipcRenderer.sendSync('electron-store-get-data');\n\n\t\t\tif (!appData) {\n\t\t\t\tthrow new Error('Electron Store: You need to call `.initRenderer()` from the main process.');\n\t\t\t}\n\n\t\t\t({defaultCwd, appVersion} = appData);\n\t\t} else if (ipcMain && app) {\n\t\t\t({defaultCwd, appVersion} = initDataListener());\n\t\t}\n\n\t\toptions = {\n\t\t\tname: 'config',\n\t\t\t...options\n\t\t};\n\n\t\tif (!options.projectVersion) {\n\t\t\toptions.projectVersion = appVersion;\n\t\t}\n\n\t\tif (options.cwd) {\n\t\t\toptions.cwd = path.isAbsolute(options.cwd) ? options.cwd : path.join(defaultCwd, options.cwd);\n\t\t} else {\n\t\t\toptions.cwd = defaultCwd;\n\t\t}\n\n\t\toptions.configName = options.name;\n\t\tdelete options.name;\n\n\t\tsuper(options);\n\t}\n\n\tstatic initRenderer() {\n\t\tinitDataListener();\n\t}\n\n\topenInEditor() {\n\t\tshell.openPath(this.path);\n\t}\n}\n\nmodule.exports = ElectronStore;\n\n\n//# sourceURL=webpack://main/./node_modules/electron-store/index.js?"); - -/***/ }), - -/***/ "./node_modules/env-paths/index.js": -/*!*****************************************!*\ - !*** ./node_modules/env-paths/index.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\nconst path = __webpack_require__(/*! path */ \"path\");\nconst os = __webpack_require__(/*! os */ \"os\");\n\nconst homedir = os.homedir();\nconst tmpdir = os.tmpdir();\nconst {env} = process;\n\nconst macos = name => {\n\tconst library = path.join(homedir, 'Library');\n\n\treturn {\n\t\tdata: path.join(library, 'Application Support', name),\n\t\tconfig: path.join(library, 'Preferences', name),\n\t\tcache: path.join(library, 'Caches', name),\n\t\tlog: path.join(library, 'Logs', name),\n\t\ttemp: path.join(tmpdir, name)\n\t};\n};\n\nconst windows = name => {\n\tconst appData = env.APPDATA || path.join(homedir, 'AppData', 'Roaming');\n\tconst localAppData = env.LOCALAPPDATA || path.join(homedir, 'AppData', 'Local');\n\n\treturn {\n\t\t// Data/config/cache/log are invented by me as Windows isn't opinionated about this\n\t\tdata: path.join(localAppData, name, 'Data'),\n\t\tconfig: path.join(appData, name, 'Config'),\n\t\tcache: path.join(localAppData, name, 'Cache'),\n\t\tlog: path.join(localAppData, name, 'Log'),\n\t\ttemp: path.join(tmpdir, name)\n\t};\n};\n\n// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html\nconst linux = name => {\n\tconst username = path.basename(homedir);\n\n\treturn {\n\t\tdata: path.join(env.XDG_DATA_HOME || path.join(homedir, '.local', 'share'), name),\n\t\tconfig: path.join(env.XDG_CONFIG_HOME || path.join(homedir, '.config'), name),\n\t\tcache: path.join(env.XDG_CACHE_HOME || path.join(homedir, '.cache'), name),\n\t\t// https://wiki.debian.org/XDGBaseDirectorySpecification#state\n\t\tlog: path.join(env.XDG_STATE_HOME || path.join(homedir, '.local', 'state'), name),\n\t\ttemp: path.join(tmpdir, username, name)\n\t};\n};\n\nconst envPaths = (name, options) => {\n\tif (typeof name !== 'string') {\n\t\tthrow new TypeError(`Expected string, got ${typeof name}`);\n\t}\n\n\toptions = Object.assign({suffix: 'nodejs'}, options);\n\n\tif (options.suffix) {\n\t\t// Add suffix to prevent possible conflict with native apps\n\t\tname += `-${options.suffix}`;\n\t}\n\n\tif (process.platform === 'darwin') {\n\t\treturn macos(name);\n\t}\n\n\tif (process.platform === 'win32') {\n\t\treturn windows(name);\n\t}\n\n\treturn linux(name);\n};\n\nmodule.exports = envPaths;\n// TODO: Remove this for the next major release\nmodule.exports[\"default\"] = envPaths;\n\n\n//# sourceURL=webpack://main/./node_modules/env-paths/index.js?"); - -/***/ }), - -/***/ "./node_modules/fast-deep-equal/index.js": -/*!***********************************************!*\ - !*** ./node_modules/fast-deep-equal/index.js ***! - \***********************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n\n\n//# sourceURL=webpack://main/./node_modules/fast-deep-equal/index.js?"); - -/***/ }), - -/***/ "./node_modules/find-up/index.js": -/*!***************************************!*\ - !*** ./node_modules/find-up/index.js ***! - \***************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\nconst path = __webpack_require__(/*! path */ \"path\");\nconst locatePath = __webpack_require__(/*! locate-path */ \"./node_modules/locate-path/index.js\");\n\nmodule.exports = (filename, opts = {}) => {\n\tconst startDir = path.resolve(opts.cwd || '');\n\tconst {root} = path.parse(startDir);\n\n\tconst filenames = [].concat(filename);\n\n\treturn new Promise(resolve => {\n\t\t(function find(dir) {\n\t\t\tlocatePath(filenames, {cwd: dir}).then(file => {\n\t\t\t\tif (file) {\n\t\t\t\t\tresolve(path.join(dir, file));\n\t\t\t\t} else if (dir === root) {\n\t\t\t\t\tresolve(null);\n\t\t\t\t} else {\n\t\t\t\t\tfind(path.dirname(dir));\n\t\t\t\t}\n\t\t\t});\n\t\t})(startDir);\n\t});\n};\n\nmodule.exports.sync = (filename, opts = {}) => {\n\tlet dir = path.resolve(opts.cwd || '');\n\tconst {root} = path.parse(dir);\n\n\tconst filenames = [].concat(filename);\n\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\tconst file = locatePath.sync(filenames, {cwd: dir});\n\n\t\tif (file) {\n\t\t\treturn path.join(dir, file);\n\t\t}\n\n\t\tif (dir === root) {\n\t\t\treturn null;\n\t\t}\n\n\t\tdir = path.dirname(dir);\n\t}\n};\n\n\n//# sourceURL=webpack://main/./node_modules/find-up/index.js?"); - -/***/ }), - -/***/ "./node_modules/is-obj/index.js": -/*!**************************************!*\ - !*** ./node_modules/is-obj/index.js ***! - \**************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nmodule.exports = value => {\n\tconst type = typeof value;\n\treturn value !== null && (type === 'object' || type === 'function');\n};\n\n\n//# sourceURL=webpack://main/./node_modules/is-obj/index.js?"); - -/***/ }), - -/***/ "./node_modules/locate-path/index.js": -/*!*******************************************!*\ - !*** ./node_modules/locate-path/index.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\nconst path = __webpack_require__(/*! path */ \"path\");\nconst pathExists = __webpack_require__(/*! path-exists */ \"./node_modules/locate-path/node_modules/path-exists/index.js\");\nconst pLocate = __webpack_require__(/*! p-locate */ \"./node_modules/p-locate/index.js\");\n\nmodule.exports = (iterable, options) => {\n\toptions = Object.assign({\n\t\tcwd: process.cwd()\n\t}, options);\n\n\treturn pLocate(iterable, el => pathExists(path.resolve(options.cwd, el)), options);\n};\n\nmodule.exports.sync = (iterable, options) => {\n\toptions = Object.assign({\n\t\tcwd: process.cwd()\n\t}, options);\n\n\tfor (const el of iterable) {\n\t\tif (pathExists.sync(path.resolve(options.cwd, el))) {\n\t\t\treturn el;\n\t\t}\n\t}\n};\n\n\n//# sourceURL=webpack://main/./node_modules/locate-path/index.js?"); - -/***/ }), - -/***/ "./node_modules/locate-path/node_modules/path-exists/index.js": -/*!********************************************************************!*\ - !*** ./node_modules/locate-path/node_modules/path-exists/index.js ***! - \********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\nconst fs = __webpack_require__(/*! fs */ \"fs\");\n\nmodule.exports = fp => new Promise(resolve => {\n\tfs.access(fp, err => {\n\t\tresolve(!err);\n\t});\n});\n\nmodule.exports.sync = fp => {\n\ttry {\n\t\tfs.accessSync(fp);\n\t\treturn true;\n\t} catch (err) {\n\t\treturn false;\n\t}\n};\n\n\n//# sourceURL=webpack://main/./node_modules/locate-path/node_modules/path-exists/index.js?"); - -/***/ }), - -/***/ "./node_modules/lru-cache/index.js": -/*!*****************************************!*\ - !*** ./node_modules/lru-cache/index.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -eval("\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = __webpack_require__(/*! yallist */ \"./node_modules/yallist/yallist.js\")\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n\n\n//# sourceURL=webpack://main/./node_modules/lru-cache/index.js?"); - -/***/ }), - -/***/ "./node_modules/mimic-fn/index.js": -/*!****************************************!*\ - !*** ./node_modules/mimic-fn/index.js ***! - \****************************************/ -/***/ ((module) => { - -"use strict"; -eval("\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports[\"default\"] = mimicFn;\n\n\n//# sourceURL=webpack://main/./node_modules/mimic-fn/index.js?"); - -/***/ }), - -/***/ "./node_modules/node-machine-id/dist/index.js": -/*!****************************************************!*\ - !*** ./node_modules/node-machine-id/dist/index.js ***! - \****************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -eval("!function(t,n){ true?module.exports=n(__webpack_require__(/*! child_process */ \"child_process\"),__webpack_require__(/*! crypto */ \"crypto\")):0}(this,function(t,n){return function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var r={};return n.m=t,n.c=r,n.p=\"\",n(0)}([function(t,n,r){t.exports=r(34)},function(t,n,r){var e=r(29)(\"wks\"),o=r(33),i=r(2).Symbol,c=\"function\"==typeof i,u=t.exports=function(t){return e[t]||(e[t]=c&&i[t]||(c?i:o)(\"Symbol.\"+t))};u.store=e},function(t,n){var r=t.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=r)},function(t,n,r){var e=r(9);t.exports=function(t){if(!e(t))throw TypeError(t+\" is not an object!\");return t}},function(t,n,r){t.exports=!r(24)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(t,n,r){var e=r(12),o=r(17);t.exports=r(4)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n){var r=t.exports={version:\"2.4.0\"};\"number\"==typeof __e&&(__e=r)},function(t,n,r){var e=r(14);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){return\"object\"==typeof t?null!==t:\"function\"==typeof t}},function(t,n){t.exports={}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(3),o=r(26),i=r(32),c=Object.defineProperty;n.f=r(4)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return c(t,n,r)}catch(t){}if(\"get\"in r||\"set\"in r)throw TypeError(\"Accessors not supported!\");return\"value\"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(42),o=r(15);t.exports=function(t){return e(o(t))}},function(t,n){t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError(\"Can't call method on \"+t);return t}},function(t,n,r){var e=r(9),o=r(2).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(12).f,o=r(8),i=r(1)(\"toStringTag\");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(29)(\"keys\"),o=r(33);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(11),o=r(1)(\"toStringTag\"),i=\"Arguments\"==e(function(){return arguments}()),c=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,r,u;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(r=c(n=Object(t),o))?r:i?e(n):\"Object\"==(u=e(n))&&\"function\"==typeof n.callee?\"Arguments\":u}},function(t,n){t.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(t,n,r){var e=r(2),o=r(6),i=r(7),c=r(5),u=\"prototype\",s=function(t,n,r){var f,a,p,l=t&s.F,v=t&s.G,h=t&s.S,d=t&s.P,y=t&s.B,_=t&s.W,x=v?o:o[n]||(o[n]={}),m=x[u],w=v?e:h?e[n]:(e[n]||{})[u];v&&(r=n);for(f in r)a=!l&&w&&void 0!==w[f],a&&f in x||(p=a?w[f]:r[f],x[f]=v&&\"function\"!=typeof w[f]?r[f]:y&&a?i(p,e):_&&w[f]==p?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n[u]=t[u],n}(p):d&&\"function\"==typeof p?i(Function.call,p):p,d&&((x.virtual||(x.virtual={}))[f]=p,t&s.R&&m&&!m[f]&&c(m,f,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){t.exports=r(2).document&&document.documentElement},function(t,n,r){t.exports=!r(4)&&!r(24)(function(){return 7!=Object.defineProperty(r(16)(\"div\"),\"a\",{get:function(){return 7}}).a})},function(t,n,r){\"use strict\";var e=r(28),o=r(23),i=r(57),c=r(5),u=r(8),s=r(10),f=r(45),a=r(18),p=r(52),l=r(1)(\"iterator\"),v=!([].keys&&\"next\"in[].keys()),h=\"@@iterator\",d=\"keys\",y=\"values\",_=function(){return this};t.exports=function(t,n,r,x,m,w,g){f(r,n,x);var b,O,j,S=function(t){if(!v&&t in T)return T[t];switch(t){case d:return function(){return new r(this,t)};case y:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=n+\" Iterator\",P=m==y,M=!1,T=t.prototype,A=T[l]||T[h]||m&&T[m],k=A||S(m),C=m?P?S(\"entries\"):k:void 0,I=\"Array\"==n?T.entries||A:A;if(I&&(j=p(I.call(new t)),j!==Object.prototype&&(a(j,E,!0),e||u(j,l)||c(j,l,_))),P&&A&&A.name!==y&&(M=!0,k=function(){return A.call(this)}),e&&!g||!v&&!M&&T[l]||c(T,l,k),s[n]=k,s[E]=_,m)if(b={values:P?k:S(y),keys:w?k:S(d),entries:C},g)for(O in b)O in T||i(T,O,b[O]);else o(o.P+o.F*(v||M),n,b);return b}},function(t,n){t.exports=!0},function(t,n,r){var e=r(2),o=\"__core-js_shared__\",i=e[o]||(e[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n,r){var e,o,i,c=r(7),u=r(41),s=r(25),f=r(16),a=r(2),p=a.process,l=a.setImmediate,v=a.clearImmediate,h=a.MessageChannel,d=0,y={},_=\"onreadystatechange\",x=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},m=function(t){x.call(t.data)};l&&v||(l=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return y[++d]=function(){u(\"function\"==typeof t?t:Function(t),n)},e(d),d},v=function(t){delete y[t]},\"process\"==r(11)(p)?e=function(t){p.nextTick(c(x,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=m,e=c(i.postMessage,i,1)):a.addEventListener&&\"function\"==typeof postMessage&&!a.importScripts?(e=function(t){a.postMessage(t+\"\",\"*\")},a.addEventListener(\"message\",m,!1)):e=_ in f(\"script\")?function(t){s.appendChild(f(\"script\"))[_]=function(){s.removeChild(this),x.call(t)}}:function(t){setTimeout(c(x,t,1),0)}),t.exports={set:l,clear:v}},function(t,n,r){var e=r(20),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(9);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&\"function\"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if(\"function\"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&\"function\"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError(\"Can't convert object to primitive value\")}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++r+e).toString(36))}},function(t,n,r){\"use strict\";function e(t){return t&&t.__esModule?t:{default:t}}function o(){return\"win32\"!==process.platform?\"\":\"ia32\"===process.arch&&process.env.hasOwnProperty(\"PROCESSOR_ARCHITEW6432\")?\"mixed\":\"native\"}function i(t){return(0,l.createHash)(\"sha256\").update(t).digest(\"hex\")}function c(t){switch(h){case\"darwin\":return t.split(\"IOPlatformUUID\")[1].split(\"\\n\")[0].replace(/\\=|\\s+|\\\"/gi,\"\").toLowerCase();case\"win32\":return t.toString().split(\"REG_SZ\")[1].replace(/\\r+|\\n+|\\s+/gi,\"\").toLowerCase();case\"linux\":return t.toString().replace(/\\r+|\\n+|\\s+/gi,\"\").toLowerCase();case\"freebsd\":return t.toString().replace(/\\r+|\\n+|\\s+/gi,\"\").toLowerCase();default:throw new Error(\"Unsupported platform: \"+process.platform)}}function u(t){var n=c((0,p.execSync)(y[h]).toString());return t?n:i(n)}function s(t){return new a.default(function(n,r){return(0,p.exec)(y[h],{},function(e,o,u){if(e)return r(new Error(\"Error while obtaining machine id: \"+e.stack));var s=c(o.toString());return n(t?s:i(s))})})}Object.defineProperty(n,\"__esModule\",{value:!0});var f=r(35),a=e(f);n.machineIdSync=u,n.machineId=s;var p=r(70),l=r(71),v=process,h=v.platform,d={native:\"%windir%\\\\System32\",mixed:\"%windir%\\\\sysnative\\\\cmd.exe /c %windir%\\\\System32\"},y={darwin:\"ioreg -rd1 -c IOPlatformExpertDevice\",win32:d[o()]+\"\\\\REG.exe QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid\",linux:\"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :\",freebsd:\"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid\"}},function(t,n,r){t.exports={default:r(36),__esModule:!0}},function(t,n,r){r(66),r(68),r(69),r(67),t.exports=r(6).Promise},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+\": incorrect invocation!\");return t}},function(t,n,r){var e=r(13),o=r(31),i=r(62);t.exports=function(t){return function(n,r,c){var u,s=e(n),f=o(s.length),a=i(c,f);if(t&&r!=r){for(;f>a;)if(u=s[a++],u!=u)return!0}else for(;f>a;a++)if((t||a in s)&&s[a]===r)return t||a||0;return!t&&-1}}},function(t,n,r){var e=r(7),o=r(44),i=r(43),c=r(3),u=r(31),s=r(64),f={},a={},n=t.exports=function(t,n,r,p,l){var v,h,d,y,_=l?function(){return t}:s(t),x=e(r,p,n?2:1),m=0;if(\"function\"!=typeof _)throw TypeError(t+\" is not iterable!\");if(i(_)){for(v=u(t.length);v>m;m++)if(y=n?x(c(h=t[m])[0],h[1]):x(t[m]),y===f||y===a)return y}else for(d=_.call(t);!(h=d.next()).done;)if(y=o(d,x,h.value,n),y===f||y===a)return y};n.BREAK=f,n.RETURN=a},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(11);t.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(t){return\"String\"==e(t)?t.split(\"\"):Object(t)}},function(t,n,r){var e=r(10),o=r(1)(\"iterator\"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n,r){\"use strict\";var e=r(49),o=r(17),i=r(18),c={};r(5)(c,r(1)(\"iterator\"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(c,{next:o(1,r)}),i(t,n+\" Iterator\")}},function(t,n,r){var e=r(1)(\"iterator\"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],c=i[e]();c.next=function(){return{done:r=!0}},i[e]=function(){return c},t(i)}catch(t){}return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){var e=r(2),o=r(30).set,i=e.MutationObserver||e.WebKitMutationObserver,c=e.process,u=e.Promise,s=\"process\"==r(11)(c);t.exports=function(){var t,n,r,f=function(){var e,o;for(s&&(e=c.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(s)r=function(){c.nextTick(f)};else if(i){var a=!0,p=document.createTextNode(\"\");new i(f).observe(p,{characterData:!0}),r=function(){p.data=a=!a}}else if(u&&u.resolve){var l=u.resolve();r=function(){l.then(f)}}else r=function(){o.call(e,f)};return function(e){var o={fn:e,next:void 0};n&&(n.next=o),t||(t=o,r()),n=o}}},function(t,n,r){var e=r(3),o=r(50),i=r(22),c=r(19)(\"IE_PROTO\"),u=function(){},s=\"prototype\",f=function(){var t,n=r(16)(\"iframe\"),e=i.length,o=\">\";for(n.style.display=\"none\",r(25).appendChild(n),n.src=\"javascript:\",t=n.contentWindow.document,t.open(),t.write(\"