dsh-auth-remote 0.2.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/CHANGELOG.zh-CN.md +21 -0
  3. package/CONTRIBUTING.md +2 -0
  4. package/CONTRIBUTING.zh-CN.md +2 -0
  5. package/README.md +33 -47
  6. package/README.zh-CN.md +33 -47
  7. package/dist/cli.js +63 -530
  8. package/dist/cli.js.map +4 -4
  9. package/dist/client.js +917 -135
  10. package/dist/client.js.map +3 -3
  11. package/dist/index.js +124 -67
  12. package/dist/index.js.map +4 -4
  13. package/dist/login.css +0 -21
  14. package/dist/login.css.map +2 -2
  15. package/dist/login.js +892 -155
  16. package/dist/login.js.map +3 -3
  17. package/dist/types/adapters/dsh/browser-capability.d.ts.map +1 -1
  18. package/dist/types/adapters/dsh/compatibility.d.ts +1 -1
  19. package/dist/types/adapters/dsh/compatibility.d.ts.map +1 -1
  20. package/dist/types/adapters/dsh/liveshare.d.ts +4 -0
  21. package/dist/types/adapters/dsh/liveshare.d.ts.map +1 -0
  22. package/dist/types/adapters/dsh/runtime-capabilities.d.ts +6 -11
  23. package/dist/types/adapters/dsh/runtime-capabilities.d.ts.map +1 -1
  24. package/dist/types/adapters/dsh/webserver.d.ts +8 -4
  25. package/dist/types/adapters/dsh/webserver.d.ts.map +1 -1
  26. package/dist/types/cli/ipc-client.d.ts.map +1 -1
  27. package/dist/types/cli/messages.d.ts +56 -0
  28. package/dist/types/cli/messages.d.ts.map +1 -0
  29. package/dist/types/cli/profile.d.ts.map +1 -1
  30. package/dist/types/cli/prompt.d.ts.map +1 -1
  31. package/dist/types/config.d.ts +2 -2
  32. package/dist/types/config.d.ts.map +1 -1
  33. package/dist/types/http/account-login.d.ts.map +1 -1
  34. package/dist/types/index.d.ts.map +1 -1
  35. package/dist/types/shared/dsh-support.d.ts.map +1 -1
  36. package/dist/types/shared/i18n.d.ts +878 -105
  37. package/dist/types/shared/i18n.d.ts.map +1 -1
  38. package/dist/types/shared/locales/de.d.ts +145 -0
  39. package/dist/types/shared/locales/de.d.ts.map +1 -0
  40. package/dist/types/shared/locales/en.d.ts +0 -49
  41. package/dist/types/shared/locales/en.d.ts.map +1 -1
  42. package/dist/types/shared/locales/es.d.ts +145 -0
  43. package/dist/types/shared/locales/es.d.ts.map +1 -0
  44. package/dist/types/shared/locales/fr.d.ts +145 -0
  45. package/dist/types/shared/locales/fr.d.ts.map +1 -0
  46. package/dist/types/shared/locales/ja.d.ts +145 -0
  47. package/dist/types/shared/locales/ja.d.ts.map +1 -0
  48. package/dist/types/shared/locales/pt.d.ts +145 -0
  49. package/dist/types/shared/locales/pt.d.ts.map +1 -0
  50. package/dist/types/shared/locales/ru.d.ts +145 -0
  51. package/dist/types/shared/locales/ru.d.ts.map +1 -0
  52. package/dist/types/shared/locales/zh.d.ts +0 -49
  53. package/dist/types/shared/locales/zh.d.ts.map +1 -1
  54. package/docs/deployment.md +30 -22
  55. package/docs/deployment.zh-CN.md +30 -22
  56. package/docs/development.md +70 -56
  57. package/docs/development.zh-CN.md +70 -56
  58. package/docs/legacy-compatibility.md +149 -80
  59. package/docs/legacy-compatibility.zh-CN.md +149 -80
  60. package/docs/releasing.md +15 -9
  61. package/docs/releasing.zh-CN.md +15 -9
  62. package/docs/reverse-proxy.md +2 -2
  63. package/docs/reverse-proxy.zh-CN.md +2 -2
  64. package/docs/support-history.md +67 -60
  65. package/docs/support-history.zh-CN.md +67 -60
  66. package/examples/web-profile-auth-remote.patch.yml +1 -1
  67. package/package.json +19 -22
  68. package/dist/types/cli/language.d.ts +0 -14
  69. package/dist/types/cli/language.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js", "../node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js", "../src/client/index.ts", "../src/client/adapters/dsh.ts", "../src/client/settings/section.tsx", "../src/client/settings/navigation.ts", "../src/client/settings/api.ts", "../src/client/settings/dialog.tsx", "../src/client/settings/password-dialog.tsx", "../src/client/settings/credential-dialog.tsx", "../src/client/settings/totp-dialog.tsx", "../src/client/settings/monitor.ts", "../src/shared/locales/en.ts", "../src/shared/locales/zh.ts", "../src/client/settings/style.css", "../src/client/account/style.css", "../src/shared/account-login.ts", "../src/client/account/config.ts", "../src/client/settings/manual-account-setting.tsx", "../src/client/account/index.tsx", "../src/client/account/dialog.tsx"],
4
- "sourcesContent": ["// can-promise has a crash in some versions of react native that dont have\n// standard global objects\n// https://github.com/soldair/node-qrcode/issues/157\n\nmodule.exports = function () {\n return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then\n}\n", "let toSJISFunction\nconst CODEWORDS_COUNT = [\n 0, // Not used\n 26, 44, 70, 100, 134, 172, 196, 242, 292, 346,\n 404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,\n 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,\n 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706\n]\n\n/**\n * Returns the QR Code size for the specified version\n *\n * @param {Number} version QR Code version\n * @return {Number} size of QR code\n */\nexports.getSymbolSize = function getSymbolSize (version) {\n if (!version) throw new Error('\"version\" cannot be null or undefined')\n if (version < 1 || version > 40) throw new Error('\"version\" should be in range from 1 to 40')\n return version * 4 + 17\n}\n\n/**\n * Returns the total number of codewords used to store data and EC information.\n *\n * @param {Number} version QR Code version\n * @return {Number} Data length in bits\n */\nexports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {\n return CODEWORDS_COUNT[version]\n}\n\n/**\n * Encode data with Bose-Chaudhuri-Hocquenghem\n *\n * @param {Number} data Value to encode\n * @return {Number} Encoded value\n */\nexports.getBCHDigit = function (data) {\n let digit = 0\n\n while (data !== 0) {\n digit++\n data >>>= 1\n }\n\n return digit\n}\n\nexports.setToSJISFunction = function setToSJISFunction (f) {\n if (typeof f !== 'function') {\n throw new Error('\"toSJISFunc\" is not a valid function.')\n }\n\n toSJISFunction = f\n}\n\nexports.isKanjiModeEnabled = function () {\n return typeof toSJISFunction !== 'undefined'\n}\n\nexports.toSJIS = function toSJIS (kanji) {\n return toSJISFunction(kanji)\n}\n", "exports.L = { bit: 1 }\nexports.M = { bit: 0 }\nexports.Q = { bit: 3 }\nexports.H = { bit: 2 }\n\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'l':\n case 'low':\n return exports.L\n\n case 'm':\n case 'medium':\n return exports.M\n\n case 'q':\n case 'quartile':\n return exports.Q\n\n case 'h':\n case 'high':\n return exports.H\n\n default:\n throw new Error('Unknown EC Level: ' + string)\n }\n}\n\nexports.isValid = function isValid (level) {\n return level && typeof level.bit !== 'undefined' &&\n level.bit >= 0 && level.bit < 4\n}\n\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n", "function BitBuffer () {\n this.buffer = []\n this.length = 0\n}\n\nBitBuffer.prototype = {\n\n get: function (index) {\n const bufIndex = Math.floor(index / 8)\n return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1\n },\n\n put: function (num, length) {\n for (let i = 0; i < length; i++) {\n this.putBit(((num >>> (length - i - 1)) & 1) === 1)\n }\n },\n\n getLengthInBits: function () {\n return this.length\n },\n\n putBit: function (bit) {\n const bufIndex = Math.floor(this.length / 8)\n if (this.buffer.length <= bufIndex) {\n this.buffer.push(0)\n }\n\n if (bit) {\n this.buffer[bufIndex] |= (0x80 >>> (this.length % 8))\n }\n\n this.length++\n }\n}\n\nmodule.exports = BitBuffer\n", "/**\n * Helper class to handle QR Code symbol modules\n *\n * @param {Number} size Symbol size\n */\nfunction BitMatrix (size) {\n if (!size || size < 1) {\n throw new Error('BitMatrix size must be defined and greater than 0')\n }\n\n this.size = size\n this.data = new Uint8Array(size * size)\n this.reservedBit = new Uint8Array(size * size)\n}\n\n/**\n * Set bit value at specified location\n * If reserved flag is set, this bit will be ignored during masking process\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n * @param {Boolean} reserved\n */\nBitMatrix.prototype.set = function (row, col, value, reserved) {\n const index = row * this.size + col\n this.data[index] = value\n if (reserved) this.reservedBit[index] = true\n}\n\n/**\n * Returns bit value at specified location\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.get = function (row, col) {\n return this.data[row * this.size + col]\n}\n\n/**\n * Applies xor operator at specified location\n * (used during masking process)\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n */\nBitMatrix.prototype.xor = function (row, col, value) {\n this.data[row * this.size + col] ^= value\n}\n\n/**\n * Check if bit at specified location is reserved\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.isReserved = function (row, col) {\n return this.reservedBit[row * this.size + col]\n}\n\nmodule.exports = BitMatrix\n", "/**\n * Alignment pattern are fixed reference pattern in defined positions\n * in a matrix symbology, which enables the decode software to re-synchronise\n * the coordinate mapping of the image modules in the event of moderate amounts\n * of distortion of the image.\n *\n * Alignment patterns are present only in QR Code symbols of version 2 or larger\n * and their number depends on the symbol version.\n */\n\nconst getSymbolSize = require('./utils').getSymbolSize\n\n/**\n * Calculate the row/column coordinates of the center module of each alignment pattern\n * for the specified QR Code version.\n *\n * The alignment patterns are positioned symmetrically on either side of the diagonal\n * running from the top left corner of the symbol to the bottom right corner.\n *\n * Since positions are simmetrical only half of the coordinates are returned.\n * Each item of the array will represent in turn the x and y coordinate.\n * @see {@link getPositions}\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinate\n */\nexports.getRowColCoords = function getRowColCoords (version) {\n if (version === 1) return []\n\n const posCount = Math.floor(version / 7) + 2\n const size = getSymbolSize(version)\n const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2\n const positions = [size - 7] // Last coord is always (size - 7)\n\n for (let i = 1; i < posCount - 1; i++) {\n positions[i] = positions[i - 1] - intervals\n }\n\n positions.push(6) // First coord is always 6\n\n return positions.reverse()\n}\n\n/**\n * Returns an array containing the positions of each alignment pattern.\n * Each array's element represent the center point of the pattern as (x, y) coordinates\n *\n * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}\n * and filtering out the items that overlaps with finder pattern\n *\n * @example\n * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.\n * The alignment patterns, therefore, are to be centered on (row, column)\n * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).\n * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns\n * and are not therefore used for alignment patterns.\n *\n * let pos = getPositions(7)\n * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const coords = []\n const pos = exports.getRowColCoords(version)\n const posLength = pos.length\n\n for (let i = 0; i < posLength; i++) {\n for (let j = 0; j < posLength; j++) {\n // Skip if position is occupied by finder patterns\n if ((i === 0 && j === 0) || // top-left\n (i === 0 && j === posLength - 1) || // bottom-left\n (i === posLength - 1 && j === 0)) { // top-right\n continue\n }\n\n coords.push([pos[i], pos[j]])\n }\n }\n\n return coords\n}\n", "const getSymbolSize = require('./utils').getSymbolSize\nconst FINDER_PATTERN_SIZE = 7\n\n/**\n * Returns an array containing the positions of each finder pattern.\n * Each array's element represent the top-left point of the pattern as (x, y) coordinates\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const size = getSymbolSize(version)\n\n return [\n // top-left\n [0, 0],\n // top-right\n [size - FINDER_PATTERN_SIZE, 0],\n // bottom-left\n [0, size - FINDER_PATTERN_SIZE]\n ]\n}\n", "/**\n * Data mask pattern reference\n * @type {Object}\n */\nexports.Patterns = {\n PATTERN000: 0,\n PATTERN001: 1,\n PATTERN010: 2,\n PATTERN011: 3,\n PATTERN100: 4,\n PATTERN101: 5,\n PATTERN110: 6,\n PATTERN111: 7\n}\n\n/**\n * Weighted penalty scores for the undesirable features\n * @type {Object}\n */\nconst PenaltyScores = {\n N1: 3,\n N2: 3,\n N3: 40,\n N4: 10\n}\n\n/**\n * Check if mask pattern value is valid\n *\n * @param {Number} mask Mask pattern\n * @return {Boolean} true if valid, false otherwise\n */\nexports.isValid = function isValid (mask) {\n return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7\n}\n\n/**\n * Returns mask pattern from a value.\n * If value is not valid, returns undefined\n *\n * @param {Number|String} value Mask pattern value\n * @return {Number} Valid mask pattern or undefined\n */\nexports.from = function from (value) {\n return exports.isValid(value) ? parseInt(value, 10) : undefined\n}\n\n/**\n* Find adjacent modules in row/column with the same color\n* and assign a penalty value.\n*\n* Points: N1 + i\n* i is the amount by which the number of adjacent modules of the same color exceeds 5\n*/\nexports.getPenaltyN1 = function getPenaltyN1 (data) {\n const size = data.size\n let points = 0\n let sameCountCol = 0\n let sameCountRow = 0\n let lastCol = null\n let lastRow = null\n\n for (let row = 0; row < size; row++) {\n sameCountCol = sameCountRow = 0\n lastCol = lastRow = null\n\n for (let col = 0; col < size; col++) {\n let module = data.get(row, col)\n if (module === lastCol) {\n sameCountCol++\n } else {\n if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)\n lastCol = module\n sameCountCol = 1\n }\n\n module = data.get(col, row)\n if (module === lastRow) {\n sameCountRow++\n } else {\n if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)\n lastRow = module\n sameCountRow = 1\n }\n }\n\n if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)\n if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)\n }\n\n return points\n}\n\n/**\n * Find 2x2 blocks with the same color and assign a penalty value\n *\n * Points: N2 * (m - 1) * (n - 1)\n */\nexports.getPenaltyN2 = function getPenaltyN2 (data) {\n const size = data.size\n let points = 0\n\n for (let row = 0; row < size - 1; row++) {\n for (let col = 0; col < size - 1; col++) {\n const last = data.get(row, col) +\n data.get(row, col + 1) +\n data.get(row + 1, col) +\n data.get(row + 1, col + 1)\n\n if (last === 4 || last === 0) points++\n }\n }\n\n return points * PenaltyScores.N2\n}\n\n/**\n * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,\n * preceded or followed by light area 4 modules wide\n *\n * Points: N3 * number of pattern found\n */\nexports.getPenaltyN3 = function getPenaltyN3 (data) {\n const size = data.size\n let points = 0\n let bitsCol = 0\n let bitsRow = 0\n\n for (let row = 0; row < size; row++) {\n bitsCol = bitsRow = 0\n for (let col = 0; col < size; col++) {\n bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col)\n if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++\n\n bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row)\n if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++\n }\n }\n\n return points * PenaltyScores.N3\n}\n\n/**\n * Calculate proportion of dark modules in entire symbol\n *\n * Points: N4 * k\n *\n * k is the rating of the deviation of the proportion of dark modules\n * in the symbol from 50% in steps of 5%\n */\nexports.getPenaltyN4 = function getPenaltyN4 (data) {\n let darkCount = 0\n const modulesCount = data.data.length\n\n for (let i = 0; i < modulesCount; i++) darkCount += data.data[i]\n\n const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10)\n\n return k * PenaltyScores.N4\n}\n\n/**\n * Return mask value at given position\n *\n * @param {Number} maskPattern Pattern reference value\n * @param {Number} i Row\n * @param {Number} j Column\n * @return {Boolean} Mask value\n */\nfunction getMaskAt (maskPattern, i, j) {\n switch (maskPattern) {\n case exports.Patterns.PATTERN000: return (i + j) % 2 === 0\n case exports.Patterns.PATTERN001: return i % 2 === 0\n case exports.Patterns.PATTERN010: return j % 3 === 0\n case exports.Patterns.PATTERN011: return (i + j) % 3 === 0\n case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0\n case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0\n case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0\n case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0\n\n default: throw new Error('bad maskPattern:' + maskPattern)\n }\n}\n\n/**\n * Apply a mask pattern to a BitMatrix\n *\n * @param {Number} pattern Pattern reference number\n * @param {BitMatrix} data BitMatrix data\n */\nexports.applyMask = function applyMask (pattern, data) {\n const size = data.size\n\n for (let col = 0; col < size; col++) {\n for (let row = 0; row < size; row++) {\n if (data.isReserved(row, col)) continue\n data.xor(row, col, getMaskAt(pattern, row, col))\n }\n }\n}\n\n/**\n * Returns the best mask pattern for data\n *\n * @param {BitMatrix} data\n * @return {Number} Mask pattern reference number\n */\nexports.getBestMask = function getBestMask (data, setupFormatFunc) {\n const numPatterns = Object.keys(exports.Patterns).length\n let bestPattern = 0\n let lowerPenalty = Infinity\n\n for (let p = 0; p < numPatterns; p++) {\n setupFormatFunc(p)\n exports.applyMask(p, data)\n\n // Calculate penalty\n const penalty =\n exports.getPenaltyN1(data) +\n exports.getPenaltyN2(data) +\n exports.getPenaltyN3(data) +\n exports.getPenaltyN4(data)\n\n // Undo previously applied mask\n exports.applyMask(p, data)\n\n if (penalty < lowerPenalty) {\n lowerPenalty = penalty\n bestPattern = p\n }\n }\n\n return bestPattern\n}\n", "const ECLevel = require('./error-correction-level')\r\n\r\nconst EC_BLOCKS_TABLE = [\r\n// L M Q H\r\n 1, 1, 1, 1,\r\n 1, 1, 1, 1,\r\n 1, 1, 2, 2,\r\n 1, 2, 2, 4,\r\n 1, 2, 4, 4,\r\n 2, 4, 4, 4,\r\n 2, 4, 6, 5,\r\n 2, 4, 6, 6,\r\n 2, 5, 8, 8,\r\n 4, 5, 8, 8,\r\n 4, 5, 8, 11,\r\n 4, 8, 10, 11,\r\n 4, 9, 12, 16,\r\n 4, 9, 16, 16,\r\n 6, 10, 12, 18,\r\n 6, 10, 17, 16,\r\n 6, 11, 16, 19,\r\n 6, 13, 18, 21,\r\n 7, 14, 21, 25,\r\n 8, 16, 20, 25,\r\n 8, 17, 23, 25,\r\n 9, 17, 23, 34,\r\n 9, 18, 25, 30,\r\n 10, 20, 27, 32,\r\n 12, 21, 29, 35,\r\n 12, 23, 34, 37,\r\n 12, 25, 34, 40,\r\n 13, 26, 35, 42,\r\n 14, 28, 38, 45,\r\n 15, 29, 40, 48,\r\n 16, 31, 43, 51,\r\n 17, 33, 45, 54,\r\n 18, 35, 48, 57,\r\n 19, 37, 51, 60,\r\n 19, 38, 53, 63,\r\n 20, 40, 56, 66,\r\n 21, 43, 59, 70,\r\n 22, 45, 62, 74,\r\n 24, 47, 65, 77,\r\n 25, 49, 68, 81\r\n]\r\n\r\nconst EC_CODEWORDS_TABLE = [\r\n// L M Q H\r\n 7, 10, 13, 17,\r\n 10, 16, 22, 28,\r\n 15, 26, 36, 44,\r\n 20, 36, 52, 64,\r\n 26, 48, 72, 88,\r\n 36, 64, 96, 112,\r\n 40, 72, 108, 130,\r\n 48, 88, 132, 156,\r\n 60, 110, 160, 192,\r\n 72, 130, 192, 224,\r\n 80, 150, 224, 264,\r\n 96, 176, 260, 308,\r\n 104, 198, 288, 352,\r\n 120, 216, 320, 384,\r\n 132, 240, 360, 432,\r\n 144, 280, 408, 480,\r\n 168, 308, 448, 532,\r\n 180, 338, 504, 588,\r\n 196, 364, 546, 650,\r\n 224, 416, 600, 700,\r\n 224, 442, 644, 750,\r\n 252, 476, 690, 816,\r\n 270, 504, 750, 900,\r\n 300, 560, 810, 960,\r\n 312, 588, 870, 1050,\r\n 336, 644, 952, 1110,\r\n 360, 700, 1020, 1200,\r\n 390, 728, 1050, 1260,\r\n 420, 784, 1140, 1350,\r\n 450, 812, 1200, 1440,\r\n 480, 868, 1290, 1530,\r\n 510, 924, 1350, 1620,\r\n 540, 980, 1440, 1710,\r\n 570, 1036, 1530, 1800,\r\n 570, 1064, 1590, 1890,\r\n 600, 1120, 1680, 1980,\r\n 630, 1204, 1770, 2100,\r\n 660, 1260, 1860, 2220,\r\n 720, 1316, 1950, 2310,\r\n 750, 1372, 2040, 2430\r\n]\r\n\r\n/**\r\n * Returns the number of error correction block that the QR Code should contain\r\n * for the specified version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction blocks\r\n */\r\nexports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n\r\n/**\r\n * Returns the number of error correction codewords to use for the specified\r\n * version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction codewords\r\n */\r\nexports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n", "const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n", "const GF = require('./galois-field')\n\n/**\n * Multiplies two polynomials inside Galois Field\n *\n * @param {Uint8Array} p1 Polynomial\n * @param {Uint8Array} p2 Polynomial\n * @return {Uint8Array} Product of p1 and p2\n */\nexports.mul = function mul (p1, p2) {\n const coeff = new Uint8Array(p1.length + p2.length - 1)\n\n for (let i = 0; i < p1.length; i++) {\n for (let j = 0; j < p2.length; j++) {\n coeff[i + j] ^= GF.mul(p1[i], p2[j])\n }\n }\n\n return coeff\n}\n\n/**\n * Calculate the remainder of polynomials division\n *\n * @param {Uint8Array} divident Polynomial\n * @param {Uint8Array} divisor Polynomial\n * @return {Uint8Array} Remainder\n */\nexports.mod = function mod (divident, divisor) {\n let result = new Uint8Array(divident)\n\n while ((result.length - divisor.length) >= 0) {\n const coeff = result[0]\n\n for (let i = 0; i < divisor.length; i++) {\n result[i] ^= GF.mul(divisor[i], coeff)\n }\n\n // remove all zeros from buffer head\n let offset = 0\n while (offset < result.length && result[offset] === 0) offset++\n result = result.slice(offset)\n }\n\n return result\n}\n\n/**\n * Generate an irreducible generator polynomial of specified degree\n * (used by Reed-Solomon encoder)\n *\n * @param {Number} degree Degree of the generator polynomial\n * @return {Uint8Array} Buffer containing polynomial coefficients\n */\nexports.generateECPolynomial = function generateECPolynomial (degree) {\n let poly = new Uint8Array([1])\n for (let i = 0; i < degree; i++) {\n poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]))\n }\n\n return poly\n}\n", "const Polynomial = require('./polynomial')\n\nfunction ReedSolomonEncoder (degree) {\n this.genPoly = undefined\n this.degree = degree\n\n if (this.degree) this.initialize(this.degree)\n}\n\n/**\n * Initialize the encoder.\n * The input param should correspond to the number of error correction codewords.\n *\n * @param {Number} degree\n */\nReedSolomonEncoder.prototype.initialize = function initialize (degree) {\n // create an irreducible generator polynomial\n this.degree = degree\n this.genPoly = Polynomial.generateECPolynomial(this.degree)\n}\n\n/**\n * Encodes a chunk of data\n *\n * @param {Uint8Array} data Buffer containing input data\n * @return {Uint8Array} Buffer containing encoded data\n */\nReedSolomonEncoder.prototype.encode = function encode (data) {\n if (!this.genPoly) {\n throw new Error('Encoder not initialized')\n }\n\n // Calculate EC for this data block\n // extends data size to data+genPoly size\n const paddedData = new Uint8Array(data.length + this.degree)\n paddedData.set(data)\n\n // The error correction codewords are the remainder after dividing the data codewords\n // by a generator polynomial\n const remainder = Polynomial.mod(paddedData, this.genPoly)\n\n // return EC data blocks (last n byte, where n is the degree of genPoly)\n // If coefficients number in remainder are less than genPoly degree,\n // pad with 0s to the left to reach the needed number of coefficients\n const start = this.degree - remainder.length\n if (start > 0) {\n const buff = new Uint8Array(this.degree)\n buff.set(remainder, start)\n\n return buff\n }\n\n return remainder\n}\n\nmodule.exports = ReedSolomonEncoder\n", "/**\n * Check if QR Code version is valid\n *\n * @param {Number} version QR Code version\n * @return {Boolean} true if valid version, false otherwise\n */\nexports.isValid = function isValid (version) {\n return !isNaN(version) && version >= 1 && version <= 40\n}\n", "const numeric = '[0-9]+'\nconst alphanumeric = '[A-Z $%*+\\\\-./:]+'\nlet kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +\n '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +\n '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +\n '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'\nkanji = kanji.replace(/u/g, '\\\\u')\n\nconst byte = '(?:(?![A-Z0-9 $%*+\\\\-./:]|' + kanji + ')(?:.|[\\r\\n]))+'\n\nexports.KANJI = new RegExp(kanji, 'g')\nexports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\\\-./:]+', 'g')\nexports.BYTE = new RegExp(byte, 'g')\nexports.NUMERIC = new RegExp(numeric, 'g')\nexports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')\n\nconst TEST_KANJI = new RegExp('^' + kanji + '$')\nconst TEST_NUMERIC = new RegExp('^' + numeric + '$')\nconst TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\\\-./:]+$')\n\nexports.testKanji = function testKanji (str) {\n return TEST_KANJI.test(str)\n}\n\nexports.testNumeric = function testNumeric (str) {\n return TEST_NUMERIC.test(str)\n}\n\nexports.testAlphanumeric = function testAlphanumeric (str) {\n return TEST_ALPHANUMERIC.test(str)\n}\n", "const VersionCheck = require('./version-check')\nconst Regex = require('./regex')\n\n/**\n * Numeric mode encodes data from the decimal digit set (0 - 9)\n * (byte values 30HEX to 39HEX).\n * Normally, 3 data characters are represented by 10 bits.\n *\n * @type {Object}\n */\nexports.NUMERIC = {\n id: 'Numeric',\n bit: 1 << 0,\n ccBits: [10, 12, 14]\n}\n\n/**\n * Alphanumeric mode encodes data from a set of 45 characters,\n * i.e. 10 numeric digits (0 - 9),\n * 26 alphabetic characters (A - Z),\n * and 9 symbols (SP, $, %, *, +, -, ., /, :).\n * Normally, two input characters are represented by 11 bits.\n *\n * @type {Object}\n */\nexports.ALPHANUMERIC = {\n id: 'Alphanumeric',\n bit: 1 << 1,\n ccBits: [9, 11, 13]\n}\n\n/**\n * In byte mode, data is encoded at 8 bits per character.\n *\n * @type {Object}\n */\nexports.BYTE = {\n id: 'Byte',\n bit: 1 << 2,\n ccBits: [8, 16, 16]\n}\n\n/**\n * The Kanji mode efficiently encodes Kanji characters in accordance with\n * the Shift JIS system based on JIS X 0208.\n * The Shift JIS values are shifted from the JIS X 0208 values.\n * JIS X 0208 gives details of the shift coded representation.\n * Each two-byte character value is compacted to a 13-bit binary codeword.\n *\n * @type {Object}\n */\nexports.KANJI = {\n id: 'Kanji',\n bit: 1 << 3,\n ccBits: [8, 10, 12]\n}\n\n/**\n * Mixed mode will contain a sequences of data in a combination of any of\n * the modes described above\n *\n * @type {Object}\n */\nexports.MIXED = {\n bit: -1\n}\n\n/**\n * Returns the number of bits needed to store the data length\n * according to QR Code specifications.\n *\n * @param {Mode} mode Data mode\n * @param {Number} version QR Code version\n * @return {Number} Number of bits\n */\nexports.getCharCountIndicator = function getCharCountIndicator (mode, version) {\n if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)\n\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid version: ' + version)\n }\n\n if (version >= 1 && version < 10) return mode.ccBits[0]\n else if (version < 27) return mode.ccBits[1]\n return mode.ccBits[2]\n}\n\n/**\n * Returns the most efficient mode to store the specified data\n *\n * @param {String} dataStr Input data string\n * @return {Mode} Best mode\n */\nexports.getBestModeForData = function getBestModeForData (dataStr) {\n if (Regex.testNumeric(dataStr)) return exports.NUMERIC\n else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC\n else if (Regex.testKanji(dataStr)) return exports.KANJI\n else return exports.BYTE\n}\n\n/**\n * Return mode name as string\n *\n * @param {Mode} mode Mode object\n * @returns {String} Mode name\n */\nexports.toString = function toString (mode) {\n if (mode && mode.id) return mode.id\n throw new Error('Invalid mode')\n}\n\n/**\n * Check if input param is a valid mode object\n *\n * @param {Mode} mode Mode object\n * @returns {Boolean} True if valid mode, false otherwise\n */\nexports.isValid = function isValid (mode) {\n return mode && mode.bit && mode.ccBits\n}\n\n/**\n * Get mode object from its name\n *\n * @param {String} string Mode name\n * @returns {Mode} Mode object\n */\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'numeric':\n return exports.NUMERIC\n case 'alphanumeric':\n return exports.ALPHANUMERIC\n case 'kanji':\n return exports.KANJI\n case 'byte':\n return exports.BYTE\n default:\n throw new Error('Unknown mode: ' + string)\n }\n}\n\n/**\n * Returns mode from a value.\n * If value is not a valid mode, returns defaultValue\n *\n * @param {Mode|String} value Encoding mode\n * @param {Mode} defaultValue Fallback value\n * @return {Mode} Encoding mode\n */\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n", "const Utils = require('./utils')\nconst ECCode = require('./error-correction-code')\nconst ECLevel = require('./error-correction-level')\nconst Mode = require('./mode')\nconst VersionCheck = require('./version-check')\n\n// Generator polynomial used to encode version information\nconst G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)\nconst G18_BCH = Utils.getBCHDigit(G18)\n\nfunction getBestVersionForDataLength (mode, length, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\nfunction getReservedBitsCount (mode, version) {\n // Character count indicator + mode indicator bits\n return Mode.getCharCountIndicator(mode, version) + 4\n}\n\nfunction getTotalBitsFromDataArray (segments, version) {\n let totalBits = 0\n\n segments.forEach(function (data) {\n const reservedBits = getReservedBitsCount(data.mode, version)\n totalBits += reservedBits + data.getBitsLength()\n })\n\n return totalBits\n}\n\nfunction getBestVersionForMixedData (segments, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n const length = getTotalBitsFromDataArray(segments, currentVersion)\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\n/**\n * Returns version number from a value.\n * If value is not a valid version, returns defaultValue\n *\n * @param {Number|String} value QR Code version\n * @param {Number} defaultValue Fallback value\n * @return {Number} QR Code version number\n */\nexports.from = function from (value, defaultValue) {\n if (VersionCheck.isValid(value)) {\n return parseInt(value, 10)\n }\n\n return defaultValue\n}\n\n/**\n * Returns how much data can be stored with the specified QR code version\n * and error correction level\n *\n * @param {Number} version QR Code version (1-40)\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} Quantity of storable data\n */\nexports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid QR Code version')\n }\n\n // Use Byte mode as default\n if (typeof mode === 'undefined') mode = Mode.BYTE\n\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n if (mode === Mode.MIXED) return dataTotalCodewordsBits\n\n const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)\n\n // Return max number of storable codewords\n switch (mode) {\n case Mode.NUMERIC:\n return Math.floor((usableBits / 10) * 3)\n\n case Mode.ALPHANUMERIC:\n return Math.floor((usableBits / 11) * 2)\n\n case Mode.KANJI:\n return Math.floor(usableBits / 13)\n\n case Mode.BYTE:\n default:\n return Math.floor(usableBits / 8)\n }\n}\n\n/**\n * Returns the minimum version needed to contain the amount of data\n *\n * @param {Segment} data Segment of data\n * @param {Number} [errorCorrectionLevel=H] Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} QR Code version\n */\nexports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {\n let seg\n\n const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)\n\n if (Array.isArray(data)) {\n if (data.length > 1) {\n return getBestVersionForMixedData(data, ecl)\n }\n\n if (data.length === 0) {\n return 1\n }\n\n seg = data[0]\n } else {\n seg = data\n }\n\n return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)\n}\n\n/**\n * Returns version information with relative error correction bits\n *\n * The version information is included in QR Code symbols of version 7 or larger.\n * It consists of an 18-bit sequence containing 6 data bits,\n * with 12 error correction bits calculated using the (18, 6) Golay code.\n *\n * @param {Number} version QR Code version\n * @return {Number} Encoded version info bits\n */\nexports.getEncodedBits = function getEncodedBits (version) {\n if (!VersionCheck.isValid(version) || version < 7) {\n throw new Error('Invalid QR Code version')\n }\n\n let d = version << 12\n\n while (Utils.getBCHDigit(d) - G18_BCH >= 0) {\n d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))\n }\n\n return (version << 12) | d\n}\n", "const Utils = require('./utils')\n\nconst G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)\nconst G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)\nconst G15_BCH = Utils.getBCHDigit(G15)\n\n/**\n * Returns format information with relative error correction bits\n *\n * The format information is a 15-bit sequence containing 5 data bits,\n * with 10 error correction bits calculated using the (15, 5) BCH code.\n *\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Number} mask Mask pattern\n * @return {Number} Encoded format information bits\n */\nexports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {\n const data = ((errorCorrectionLevel.bit << 3) | mask)\n let d = data << 10\n\n while (Utils.getBCHDigit(d) - G15_BCH >= 0) {\n d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))\n }\n\n // xor final data with mask pattern in order to ensure that\n // no combination of Error Correction Level and data mask pattern\n // will result in an all-zero data string\n return ((data << 10) | d) ^ G15_MASK\n}\n", "const Mode = require('./mode')\n\nfunction NumericData (data) {\n this.mode = Mode.NUMERIC\n this.data = data.toString()\n}\n\nNumericData.getBitsLength = function getBitsLength (length) {\n return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)\n}\n\nNumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nNumericData.prototype.getBitsLength = function getBitsLength () {\n return NumericData.getBitsLength(this.data.length)\n}\n\nNumericData.prototype.write = function write (bitBuffer) {\n let i, group, value\n\n // The input data string is divided into groups of three digits,\n // and each group is converted to its 10-bit binary equivalent.\n for (i = 0; i + 3 <= this.data.length; i += 3) {\n group = this.data.substr(i, 3)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, 10)\n }\n\n // If the number of input digits is not an exact multiple of three,\n // the final one or two digits are converted to 4 or 7 bits respectively.\n const remainingNum = this.data.length - i\n if (remainingNum > 0) {\n group = this.data.substr(i)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, remainingNum * 3 + 1)\n }\n}\n\nmodule.exports = NumericData\n", "const Mode = require('./mode')\n\n/**\n * Array of characters available in alphanumeric mode\n *\n * As per QR Code specification, to each character\n * is assigned a value from 0 to 44 which in this case coincides\n * with the array index\n *\n * @type {Array}\n */\nconst ALPHA_NUM_CHARS = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',\n 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',\n ' ', '$', '%', '*', '+', '-', '.', '/', ':'\n]\n\nfunction AlphanumericData (data) {\n this.mode = Mode.ALPHANUMERIC\n this.data = data\n}\n\nAlphanumericData.getBitsLength = function getBitsLength (length) {\n return 11 * Math.floor(length / 2) + 6 * (length % 2)\n}\n\nAlphanumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nAlphanumericData.prototype.getBitsLength = function getBitsLength () {\n return AlphanumericData.getBitsLength(this.data.length)\n}\n\nAlphanumericData.prototype.write = function write (bitBuffer) {\n let i\n\n // Input data characters are divided into groups of two characters\n // and encoded as 11-bit binary codes.\n for (i = 0; i + 2 <= this.data.length; i += 2) {\n // The character value of the first character is multiplied by 45\n let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45\n\n // The character value of the second digit is added to the product\n value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])\n\n // The sum is then stored as 11-bit binary number\n bitBuffer.put(value, 11)\n }\n\n // If the number of input data characters is not a multiple of two,\n // the character value of the final character is encoded as a 6-bit binary number.\n if (this.data.length % 2) {\n bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)\n }\n}\n\nmodule.exports = AlphanumericData\n", "const Mode = require('./mode')\n\nfunction ByteData (data) {\n this.mode = Mode.BYTE\n if (typeof (data) === 'string') {\n this.data = new TextEncoder().encode(data)\n } else {\n this.data = new Uint8Array(data)\n }\n}\n\nByteData.getBitsLength = function getBitsLength (length) {\n return length * 8\n}\n\nByteData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nByteData.prototype.getBitsLength = function getBitsLength () {\n return ByteData.getBitsLength(this.data.length)\n}\n\nByteData.prototype.write = function (bitBuffer) {\n for (let i = 0, l = this.data.length; i < l; i++) {\n bitBuffer.put(this.data[i], 8)\n }\n}\n\nmodule.exports = ByteData\n", "const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n", "'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n", "const Mode = require('./mode')\nconst NumericData = require('./numeric-data')\nconst AlphanumericData = require('./alphanumeric-data')\nconst ByteData = require('./byte-data')\nconst KanjiData = require('./kanji-data')\nconst Regex = require('./regex')\nconst Utils = require('./utils')\nconst dijkstra = require('dijkstrajs')\n\n/**\n * Returns UTF8 byte length\n *\n * @param {String} str Input string\n * @return {Number} Number of byte\n */\nfunction getStringByteLength (str) {\n return unescape(encodeURIComponent(str)).length\n}\n\n/**\n * Get a list of segments of the specified mode\n * from a string\n *\n * @param {Mode} mode Segment mode\n * @param {String} str String to process\n * @return {Array} Array of object with segments data\n */\nfunction getSegments (regex, mode, str) {\n const segments = []\n let result\n\n while ((result = regex.exec(str)) !== null) {\n segments.push({\n data: result[0],\n index: result.index,\n mode: mode,\n length: result[0].length\n })\n }\n\n return segments\n}\n\n/**\n * Extracts a series of segments with the appropriate\n * modes from a string\n *\n * @param {String} dataStr Input string\n * @return {Array} Array of object with segments data\n */\nfunction getSegmentsFromString (dataStr) {\n const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)\n const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)\n let byteSegs\n let kanjiSegs\n\n if (Utils.isKanjiModeEnabled()) {\n byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)\n kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)\n } else {\n byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)\n kanjiSegs = []\n }\n\n const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)\n\n return segs\n .sort(function (s1, s2) {\n return s1.index - s2.index\n })\n .map(function (obj) {\n return {\n data: obj.data,\n mode: obj.mode,\n length: obj.length\n }\n })\n}\n\n/**\n * Returns how many bits are needed to encode a string of\n * specified length with the specified mode\n *\n * @param {Number} length String length\n * @param {Mode} mode Segment mode\n * @return {Number} Bit length\n */\nfunction getSegmentBitsLength (length, mode) {\n switch (mode) {\n case Mode.NUMERIC:\n return NumericData.getBitsLength(length)\n case Mode.ALPHANUMERIC:\n return AlphanumericData.getBitsLength(length)\n case Mode.KANJI:\n return KanjiData.getBitsLength(length)\n case Mode.BYTE:\n return ByteData.getBitsLength(length)\n }\n}\n\n/**\n * Merges adjacent segments which have the same mode\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction mergeSegments (segs) {\n return segs.reduce(function (acc, curr) {\n const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null\n if (prevSeg && prevSeg.mode === curr.mode) {\n acc[acc.length - 1].data += curr.data\n return acc\n }\n\n acc.push(curr)\n return acc\n }, [])\n}\n\n/**\n * Generates a list of all possible nodes combination which\n * will be used to build a segments graph.\n *\n * Nodes are divided by groups. Each group will contain a list of all the modes\n * in which is possible to encode the given text.\n *\n * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.\n * The group for '12345' will contain then 3 objects, one for each\n * possible encoding mode.\n *\n * Each node represents a possible segment.\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction buildNodes (segs) {\n const nodes = []\n for (let i = 0; i < segs.length; i++) {\n const seg = segs[i]\n\n switch (seg.mode) {\n case Mode.NUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.ALPHANUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.KANJI:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n break\n case Mode.BYTE:\n nodes.push([\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n }\n }\n\n return nodes\n}\n\n/**\n * Builds a graph from a list of nodes.\n * All segments in each node group will be connected with all the segments of\n * the next group and so on.\n *\n * At each connection will be assigned a weight depending on the\n * segment's byte length.\n *\n * @param {Array} nodes Array of object with segments data\n * @param {Number} version QR Code version\n * @return {Object} Graph of all possible segments\n */\nfunction buildGraph (nodes, version) {\n const table = {}\n const graph = { start: {} }\n let prevNodeIds = ['start']\n\n for (let i = 0; i < nodes.length; i++) {\n const nodeGroup = nodes[i]\n const currentNodeIds = []\n\n for (let j = 0; j < nodeGroup.length; j++) {\n const node = nodeGroup[j]\n const key = '' + i + j\n\n currentNodeIds.push(key)\n table[key] = { node: node, lastCount: 0 }\n graph[key] = {}\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n const prevNodeId = prevNodeIds[n]\n\n if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {\n graph[prevNodeId][key] =\n getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -\n getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)\n\n table[prevNodeId].lastCount += node.length\n } else {\n if (table[prevNodeId]) table[prevNodeId].lastCount = node.length\n\n graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +\n 4 + Mode.getCharCountIndicator(node.mode, version) // switch cost\n }\n }\n }\n\n prevNodeIds = currentNodeIds\n }\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n graph[prevNodeIds[n]].end = 0\n }\n\n return { map: graph, table: table }\n}\n\n/**\n * Builds a segment from a specified data and mode.\n * If a mode is not specified, the more suitable will be used.\n *\n * @param {String} data Input data\n * @param {Mode | String} modesHint Data mode\n * @return {Segment} Segment\n */\nfunction buildSingleSegment (data, modesHint) {\n let mode\n const bestMode = Mode.getBestModeForData(data)\n\n mode = Mode.from(modesHint, bestMode)\n\n // Make sure data can be encoded\n if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {\n throw new Error('\"' + data + '\"' +\n ' cannot be encoded with mode ' + Mode.toString(mode) +\n '.\\n Suggested mode is: ' + Mode.toString(bestMode))\n }\n\n // Use Mode.BYTE if Kanji support is disabled\n if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {\n mode = Mode.BYTE\n }\n\n switch (mode) {\n case Mode.NUMERIC:\n return new NumericData(data)\n\n case Mode.ALPHANUMERIC:\n return new AlphanumericData(data)\n\n case Mode.KANJI:\n return new KanjiData(data)\n\n case Mode.BYTE:\n return new ByteData(data)\n }\n}\n\n/**\n * Builds a list of segments from an array.\n * Array can contain Strings or Objects with segment's info.\n *\n * For each item which is a string, will be generated a segment with the given\n * string and the more appropriate encoding mode.\n *\n * For each item which is an object, will be generated a segment with the given\n * data and mode.\n * Objects must contain at least the property \"data\".\n * If property \"mode\" is not present, the more suitable mode will be used.\n *\n * @param {Array} array Array of objects with segments data\n * @return {Array} Array of Segments\n */\nexports.fromArray = function fromArray (array) {\n return array.reduce(function (acc, seg) {\n if (typeof seg === 'string') {\n acc.push(buildSingleSegment(seg, null))\n } else if (seg.data) {\n acc.push(buildSingleSegment(seg.data, seg.mode))\n }\n\n return acc\n }, [])\n}\n\n/**\n * Builds an optimized sequence of segments from a string,\n * which will produce the shortest possible bitstream.\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @return {Array} Array of segments\n */\nexports.fromString = function fromString (data, version) {\n const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n\n const nodes = buildNodes(segs)\n const graph = buildGraph(nodes, version)\n const path = dijkstra.find_path(graph.map, 'start', 'end')\n\n const optimizedSegs = []\n for (let i = 1; i < path.length - 1; i++) {\n optimizedSegs.push(graph.table[path[i]].node)\n }\n\n return exports.fromArray(mergeSegments(optimizedSegs))\n}\n\n/**\n * Splits a string in various segments with the modes which\n * best represent their content.\n * The produced segments are far from being optimized.\n * The output of this function is only used to estimate a QR Code version\n * which may contain the data.\n *\n * @param {string} data Input string\n * @return {Array} Array of segments\n */\nexports.rawSplit = function rawSplit (data) {\n return exports.fromArray(\n getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n )\n}\n", "const Utils = require('./utils')\nconst ECLevel = require('./error-correction-level')\nconst BitBuffer = require('./bit-buffer')\nconst BitMatrix = require('./bit-matrix')\nconst AlignmentPattern = require('./alignment-pattern')\nconst FinderPattern = require('./finder-pattern')\nconst MaskPattern = require('./mask-pattern')\nconst ECCode = require('./error-correction-code')\nconst ReedSolomonEncoder = require('./reed-solomon-encoder')\nconst Version = require('./version')\nconst FormatInfo = require('./format-info')\nconst Mode = require('./mode')\nconst Segments = require('./segments')\n\n/**\n * QRCode for JavaScript\n *\n * modified by Ryan Day for nodejs support\n * Copyright (c) 2011 Ryan Day\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licenses/mit-license.php\n *\n//---------------------------------------------------------------------\n// QRCode for JavaScript\n//\n// Copyright (c) 2009 Kazuhiko Arase\n//\n// URL: http://www.d-project.com/\n//\n// Licensed under the MIT license:\n// http://www.opensource.org/licenses/mit-license.php\n//\n// The word \"QR Code\" is registered trademark of\n// DENSO WAVE INCORPORATED\n// http://www.denso-wave.com/qrcode/faqpatent-e.html\n//\n//---------------------------------------------------------------------\n*/\n\n/**\n * Add finder patterns bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupFinderPattern (matrix, version) {\n const size = matrix.size\n const pos = FinderPattern.getPositions(version)\n\n for (let i = 0; i < pos.length; i++) {\n const row = pos[i][0]\n const col = pos[i][1]\n\n for (let r = -1; r <= 7; r++) {\n if (row + r <= -1 || size <= row + r) continue\n\n for (let c = -1; c <= 7; c++) {\n if (col + c <= -1 || size <= col + c) continue\n\n if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||\n (c >= 0 && c <= 6 && (r === 0 || r === 6)) ||\n (r >= 2 && r <= 4 && c >= 2 && c <= 4)) {\n matrix.set(row + r, col + c, true, true)\n } else {\n matrix.set(row + r, col + c, false, true)\n }\n }\n }\n }\n}\n\n/**\n * Add timing pattern bits to matrix\n *\n * Note: this function must be called before {@link setupAlignmentPattern}\n *\n * @param {BitMatrix} matrix Modules matrix\n */\nfunction setupTimingPattern (matrix) {\n const size = matrix.size\n\n for (let r = 8; r < size - 8; r++) {\n const value = r % 2 === 0\n matrix.set(r, 6, value, true)\n matrix.set(6, r, value, true)\n }\n}\n\n/**\n * Add alignment patterns bits to matrix\n *\n * Note: this function must be called after {@link setupTimingPattern}\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupAlignmentPattern (matrix, version) {\n const pos = AlignmentPattern.getPositions(version)\n\n for (let i = 0; i < pos.length; i++) {\n const row = pos[i][0]\n const col = pos[i][1]\n\n for (let r = -2; r <= 2; r++) {\n for (let c = -2; c <= 2; c++) {\n if (r === -2 || r === 2 || c === -2 || c === 2 ||\n (r === 0 && c === 0)) {\n matrix.set(row + r, col + c, true, true)\n } else {\n matrix.set(row + r, col + c, false, true)\n }\n }\n }\n }\n}\n\n/**\n * Add version info bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupVersionInfo (matrix, version) {\n const size = matrix.size\n const bits = Version.getEncodedBits(version)\n let row, col, mod\n\n for (let i = 0; i < 18; i++) {\n row = Math.floor(i / 3)\n col = i % 3 + size - 8 - 3\n mod = ((bits >> i) & 1) === 1\n\n matrix.set(row, col, mod, true)\n matrix.set(col, row, mod, true)\n }\n}\n\n/**\n * Add format info bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @param {Number} maskPattern Mask pattern reference value\n */\nfunction setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {\n const size = matrix.size\n const bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern)\n let i, mod\n\n for (i = 0; i < 15; i++) {\n mod = ((bits >> i) & 1) === 1\n\n // vertical\n if (i < 6) {\n matrix.set(i, 8, mod, true)\n } else if (i < 8) {\n matrix.set(i + 1, 8, mod, true)\n } else {\n matrix.set(size - 15 + i, 8, mod, true)\n }\n\n // horizontal\n if (i < 8) {\n matrix.set(8, size - i - 1, mod, true)\n } else if (i < 9) {\n matrix.set(8, 15 - i - 1 + 1, mod, true)\n } else {\n matrix.set(8, 15 - i - 1, mod, true)\n }\n }\n\n // fixed module\n matrix.set(size - 8, 8, 1, true)\n}\n\n/**\n * Add encoded data bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Uint8Array} data Data codewords\n */\nfunction setupData (matrix, data) {\n const size = matrix.size\n let inc = -1\n let row = size - 1\n let bitIndex = 7\n let byteIndex = 0\n\n for (let col = size - 1; col > 0; col -= 2) {\n if (col === 6) col--\n\n while (true) {\n for (let c = 0; c < 2; c++) {\n if (!matrix.isReserved(row, col - c)) {\n let dark = false\n\n if (byteIndex < data.length) {\n dark = (((data[byteIndex] >>> bitIndex) & 1) === 1)\n }\n\n matrix.set(row, col - c, dark)\n bitIndex--\n\n if (bitIndex === -1) {\n byteIndex++\n bitIndex = 7\n }\n }\n }\n\n row += inc\n\n if (row < 0 || size <= row) {\n row -= inc\n inc = -inc\n break\n }\n }\n }\n}\n\n/**\n * Create encoded codewords from data input\n *\n * @param {Number} version QR Code version\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @param {ByteData} data Data input\n * @return {Uint8Array} Buffer containing encoded codewords\n */\nfunction createData (version, errorCorrectionLevel, segments) {\n // Prepare data buffer\n const buffer = new BitBuffer()\n\n segments.forEach(function (data) {\n // prefix data with mode indicator (4 bits)\n buffer.put(data.mode.bit, 4)\n\n // Prefix data with character count indicator.\n // The character count indicator is a string of bits that represents the\n // number of characters that are being encoded.\n // The character count indicator must be placed after the mode indicator\n // and must be a certain number of bits long, depending on the QR version\n // and data mode\n // @see {@link Mode.getCharCountIndicator}.\n buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version))\n\n // add binary data sequence to buffer\n data.write(buffer)\n })\n\n // Calculate required number of bits\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n // Add a terminator.\n // If the bit string is shorter than the total number of required bits,\n // a terminator of up to four 0s must be added to the right side of the string.\n // If the bit string is more than four bits shorter than the required number of bits,\n // add four 0s to the end.\n if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {\n buffer.put(0, 4)\n }\n\n // If the bit string is fewer than four bits shorter, add only the number of 0s that\n // are needed to reach the required number of bits.\n\n // After adding the terminator, if the number of bits in the string is not a multiple of 8,\n // pad the string on the right with 0s to make the string's length a multiple of 8.\n while (buffer.getLengthInBits() % 8 !== 0) {\n buffer.putBit(0)\n }\n\n // Add pad bytes if the string is still shorter than the total number of required bits.\n // Extend the buffer to fill the data capacity of the symbol corresponding to\n // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)\n // and 00010001 (0x11) alternately.\n const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8\n for (let i = 0; i < remainingByte; i++) {\n buffer.put(i % 2 ? 0x11 : 0xEC, 8)\n }\n\n return createCodewords(buffer, version, errorCorrectionLevel)\n}\n\n/**\n * Encode input data with Reed-Solomon and return codewords with\n * relative error correction bits\n *\n * @param {BitBuffer} bitBuffer Data to encode\n * @param {Number} version QR Code version\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @return {Uint8Array} Buffer containing encoded codewords\n */\nfunction createCodewords (bitBuffer, version, errorCorrectionLevel) {\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewords = totalCodewords - ecTotalCodewords\n\n // Total number of blocks\n const ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel)\n\n // Calculate how many blocks each group should contain\n const blocksInGroup2 = totalCodewords % ecTotalBlocks\n const blocksInGroup1 = ecTotalBlocks - blocksInGroup2\n\n const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks)\n\n const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks)\n const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1\n\n // Number of EC codewords is the same for both groups\n const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1\n\n // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount\n const rs = new ReedSolomonEncoder(ecCount)\n\n let offset = 0\n const dcData = new Array(ecTotalBlocks)\n const ecData = new Array(ecTotalBlocks)\n let maxDataSize = 0\n const buffer = new Uint8Array(bitBuffer.buffer)\n\n // Divide the buffer into the required number of blocks\n for (let b = 0; b < ecTotalBlocks; b++) {\n const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2\n\n // extract a block of data from buffer\n dcData[b] = buffer.slice(offset, offset + dataSize)\n\n // Calculate EC codewords for this data block\n ecData[b] = rs.encode(dcData[b])\n\n offset += dataSize\n maxDataSize = Math.max(maxDataSize, dataSize)\n }\n\n // Create final data\n // Interleave the data and error correction codewords from each block\n const data = new Uint8Array(totalCodewords)\n let index = 0\n let i, r\n\n // Add data codewords\n for (i = 0; i < maxDataSize; i++) {\n for (r = 0; r < ecTotalBlocks; r++) {\n if (i < dcData[r].length) {\n data[index++] = dcData[r][i]\n }\n }\n }\n\n // Apped EC codewords\n for (i = 0; i < ecCount; i++) {\n for (r = 0; r < ecTotalBlocks; r++) {\n data[index++] = ecData[r][i]\n }\n }\n\n return data\n}\n\n/**\n * Build QR Code symbol\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @param {ErrorCorretionLevel} errorCorrectionLevel Error level\n * @param {MaskPattern} maskPattern Mask pattern\n * @return {Object} Object containing symbol data\n */\nfunction createSymbol (data, version, errorCorrectionLevel, maskPattern) {\n let segments\n\n if (Array.isArray(data)) {\n segments = Segments.fromArray(data)\n } else if (typeof data === 'string') {\n let estimatedVersion = version\n\n if (!estimatedVersion) {\n const rawSegments = Segments.rawSplit(data)\n\n // Estimate best version that can contain raw splitted segments\n estimatedVersion = Version.getBestVersionForData(rawSegments, errorCorrectionLevel)\n }\n\n // Build optimized segments\n // If estimated version is undefined, try with the highest version\n segments = Segments.fromString(data, estimatedVersion || 40)\n } else {\n throw new Error('Invalid data')\n }\n\n // Get the min version that can contain data\n const bestVersion = Version.getBestVersionForData(segments, errorCorrectionLevel)\n\n // If no version is found, data cannot be stored\n if (!bestVersion) {\n throw new Error('The amount of data is too big to be stored in a QR Code')\n }\n\n // If not specified, use min version as default\n if (!version) {\n version = bestVersion\n\n // Check if the specified version can contain the data\n } else if (version < bestVersion) {\n throw new Error('\\n' +\n 'The chosen QR Code version cannot contain this amount of data.\\n' +\n 'Minimum version required to store current data is: ' + bestVersion + '.\\n'\n )\n }\n\n const dataBits = createData(version, errorCorrectionLevel, segments)\n\n // Allocate matrix buffer\n const moduleCount = Utils.getSymbolSize(version)\n const modules = new BitMatrix(moduleCount)\n\n // Add function modules\n setupFinderPattern(modules, version)\n setupTimingPattern(modules)\n setupAlignmentPattern(modules, version)\n\n // Add temporary dummy bits for format info just to set them as reserved.\n // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}\n // since the masking operation must be performed only on the encoding region.\n // These blocks will be replaced with correct values later in code.\n setupFormatInfo(modules, errorCorrectionLevel, 0)\n\n if (version >= 7) {\n setupVersionInfo(modules, version)\n }\n\n // Add data codewords\n setupData(modules, dataBits)\n\n if (isNaN(maskPattern)) {\n // Find best mask pattern\n maskPattern = MaskPattern.getBestMask(modules,\n setupFormatInfo.bind(null, modules, errorCorrectionLevel))\n }\n\n // Apply mask pattern\n MaskPattern.applyMask(maskPattern, modules)\n\n // Replace format info bits with correct values\n setupFormatInfo(modules, errorCorrectionLevel, maskPattern)\n\n return {\n modules: modules,\n version: version,\n errorCorrectionLevel: errorCorrectionLevel,\n maskPattern: maskPattern,\n segments: segments\n }\n}\n\n/**\n * QR Code\n *\n * @param {String | Array} data Input data\n * @param {Object} options Optional configurations\n * @param {Number} options.version QR Code version\n * @param {String} options.errorCorrectionLevel Error correction level\n * @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis\n */\nexports.create = function create (data, options) {\n if (typeof data === 'undefined' || data === '') {\n throw new Error('No input text')\n }\n\n let errorCorrectionLevel = ECLevel.M\n let version\n let mask\n\n if (typeof options !== 'undefined') {\n // Use higher error correction level as default\n errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M)\n version = Version.from(options.version)\n mask = MaskPattern.from(options.maskPattern)\n\n if (options.toSJISFunc) {\n Utils.setToSJISFunction(options.toSJISFunc)\n }\n }\n\n return createSymbol(data, version, errorCorrectionLevel, mask)\n}\n", "function hex2rgba (hex) {\n if (typeof hex === 'number') {\n hex = hex.toString()\n }\n\n if (typeof hex !== 'string') {\n throw new Error('Color should be defined as hex string')\n }\n\n let hexCode = hex.slice().replace('#', '').split('')\n if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {\n throw new Error('Invalid hex color: ' + hex)\n }\n\n // Convert from short to long form (fff -> ffffff)\n if (hexCode.length === 3 || hexCode.length === 4) {\n hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {\n return [c, c]\n }))\n }\n\n // Add default alpha value\n if (hexCode.length === 6) hexCode.push('F', 'F')\n\n const hexValue = parseInt(hexCode.join(''), 16)\n\n return {\n r: (hexValue >> 24) & 255,\n g: (hexValue >> 16) & 255,\n b: (hexValue >> 8) & 255,\n a: hexValue & 255,\n hex: '#' + hexCode.slice(0, 6).join('')\n }\n}\n\nexports.getOptions = function getOptions (options) {\n if (!options) options = {}\n if (!options.color) options.color = {}\n\n const margin = typeof options.margin === 'undefined' ||\n options.margin === null ||\n options.margin < 0\n ? 4\n : options.margin\n\n const width = options.width && options.width >= 21 ? options.width : undefined\n const scale = options.scale || 4\n\n return {\n width: width,\n scale: width ? 4 : scale,\n margin: margin,\n color: {\n dark: hex2rgba(options.color.dark || '#000000ff'),\n light: hex2rgba(options.color.light || '#ffffffff')\n },\n type: options.type,\n rendererOpts: options.rendererOpts || {}\n }\n}\n\nexports.getScale = function getScale (qrSize, opts) {\n return opts.width && opts.width >= qrSize + opts.margin * 2\n ? opts.width / (qrSize + opts.margin * 2)\n : opts.scale\n}\n\nexports.getImageWidth = function getImageWidth (qrSize, opts) {\n const scale = exports.getScale(qrSize, opts)\n return Math.floor((qrSize + opts.margin * 2) * scale)\n}\n\nexports.qrToImageData = function qrToImageData (imgData, qr, opts) {\n const size = qr.modules.size\n const data = qr.modules.data\n const scale = exports.getScale(size, opts)\n const symbolSize = Math.floor((size + opts.margin * 2) * scale)\n const scaledMargin = opts.margin * scale\n const palette = [opts.color.light, opts.color.dark]\n\n for (let i = 0; i < symbolSize; i++) {\n for (let j = 0; j < symbolSize; j++) {\n let posDst = (i * symbolSize + j) * 4\n let pxColor = opts.color.light\n\n if (i >= scaledMargin && j >= scaledMargin &&\n i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {\n const iSrc = Math.floor((i - scaledMargin) / scale)\n const jSrc = Math.floor((j - scaledMargin) / scale)\n pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]\n }\n\n imgData[posDst++] = pxColor.r\n imgData[posDst++] = pxColor.g\n imgData[posDst++] = pxColor.b\n imgData[posDst] = pxColor.a\n }\n }\n}\n", "const Utils = require('./utils')\n\nfunction clearCanvas (ctx, canvas, size) {\n ctx.clearRect(0, 0, canvas.width, canvas.height)\n\n if (!canvas.style) canvas.style = {}\n canvas.height = size\n canvas.width = size\n canvas.style.height = size + 'px'\n canvas.style.width = size + 'px'\n}\n\nfunction getCanvasElement () {\n try {\n return document.createElement('canvas')\n } catch (e) {\n throw new Error('You need to specify a canvas element')\n }\n}\n\nexports.render = function render (qrData, canvas, options) {\n let opts = options\n let canvasEl = canvas\n\n if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {\n opts = canvas\n canvas = undefined\n }\n\n if (!canvas) {\n canvasEl = getCanvasElement()\n }\n\n opts = Utils.getOptions(opts)\n const size = Utils.getImageWidth(qrData.modules.size, opts)\n\n const ctx = canvasEl.getContext('2d')\n const image = ctx.createImageData(size, size)\n Utils.qrToImageData(image.data, qrData, opts)\n\n clearCanvas(ctx, canvasEl, size)\n ctx.putImageData(image, 0, 0)\n\n return canvasEl\n}\n\nexports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {\n let opts = options\n\n if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {\n opts = canvas\n canvas = undefined\n }\n\n if (!opts) opts = {}\n\n const canvasEl = exports.render(qrData, canvas, opts)\n\n const type = opts.type || 'image/png'\n const rendererOpts = opts.rendererOpts || {}\n\n return canvasEl.toDataURL(type, rendererOpts.quality)\n}\n", "const Utils = require('./utils')\n\nfunction getColorAttrib (color, attrib) {\n const alpha = color.a / 255\n const str = attrib + '=\"' + color.hex + '\"'\n\n return alpha < 1\n ? str + ' ' + attrib + '-opacity=\"' + alpha.toFixed(2).slice(1) + '\"'\n : str\n}\n\nfunction svgCmd (cmd, x, y) {\n let str = cmd + x\n if (typeof y !== 'undefined') str += ' ' + y\n\n return str\n}\n\nfunction qrToPath (data, size, margin) {\n let path = ''\n let moveBy = 0\n let newRow = false\n let lineLength = 0\n\n for (let i = 0; i < data.length; i++) {\n const col = Math.floor(i % size)\n const row = Math.floor(i / size)\n\n if (!col && !newRow) newRow = true\n\n if (data[i]) {\n lineLength++\n\n if (!(i > 0 && col > 0 && data[i - 1])) {\n path += newRow\n ? svgCmd('M', col + margin, 0.5 + row + margin)\n : svgCmd('m', moveBy, 0)\n\n moveBy = 0\n newRow = false\n }\n\n if (!(col + 1 < size && data[i + 1])) {\n path += svgCmd('h', lineLength)\n lineLength = 0\n }\n } else {\n moveBy++\n }\n }\n\n return path\n}\n\nexports.render = function render (qrData, options, cb) {\n const opts = Utils.getOptions(options)\n const size = qrData.modules.size\n const data = qrData.modules.data\n const qrcodesize = size + opts.margin * 2\n\n const bg = !opts.color.light.a\n ? ''\n : '<path ' + getColorAttrib(opts.color.light, 'fill') +\n ' d=\"M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z\"/>'\n\n const path =\n '<path ' + getColorAttrib(opts.color.dark, 'stroke') +\n ' d=\"' + qrToPath(data, size, opts.margin) + '\"/>'\n\n const viewBox = 'viewBox=\"' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '\"'\n\n const width = !opts.width ? '' : 'width=\"' + opts.width + '\" height=\"' + opts.width + '\" '\n\n const svgTag = '<svg xmlns=\"http://www.w3.org/2000/svg\" ' + width + viewBox + ' shape-rendering=\"crispEdges\">' + bg + path + '</svg>\\n'\n\n if (typeof cb === 'function') {\n cb(null, svgTag)\n }\n\n return svgTag\n}\n", "\nconst canPromise = require('./can-promise')\n\nconst QRCode = require('./core/qrcode')\nconst CanvasRenderer = require('./renderer/canvas')\nconst SvgRenderer = require('./renderer/svg-tag.js')\n\nfunction renderCanvas (renderFunc, canvas, text, opts, cb) {\n const args = [].slice.call(arguments, 1)\n const argsNum = args.length\n const isLastArgCb = typeof args[argsNum - 1] === 'function'\n\n if (!isLastArgCb && !canPromise()) {\n throw new Error('Callback required as last argument')\n }\n\n if (isLastArgCb) {\n if (argsNum < 2) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 2) {\n cb = text\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 3) {\n if (canvas.getContext && typeof cb === 'undefined') {\n cb = opts\n opts = undefined\n } else {\n cb = opts\n opts = text\n text = canvas\n canvas = undefined\n }\n }\n } else {\n if (argsNum < 1) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 1) {\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 2 && !canvas.getContext) {\n opts = text\n text = canvas\n canvas = undefined\n }\n\n return new Promise(function (resolve, reject) {\n try {\n const data = QRCode.create(text, opts)\n resolve(renderFunc(data, canvas, opts))\n } catch (e) {\n reject(e)\n }\n })\n }\n\n try {\n const data = QRCode.create(text, opts)\n cb(null, renderFunc(data, canvas, opts))\n } catch (e) {\n cb(e)\n }\n}\n\nexports.create = QRCode.create\nexports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)\nexports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)\n\n// only svg for now.\nexports.toString = renderCanvas.bind(null, function (data, _, opts) {\n return SvgRenderer.render(data, opts)\n})\n", "'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n", "'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n", "'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numberic identifiers include numberic identifiers but can be longer.\n// Therefore non-numberic identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n", "'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n", "'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n", "'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n", "'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n", "'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n", "'use strict'\n\nconst parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // If the main part has no difference\n if (lowVersion.compareMain(highVersion) === 0) {\n if (lowVersion.minor && !lowVersion.patch) {\n return 'minor'\n }\n return 'patch'\n }\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n", "'use strict'\n\nconst parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n", "'use strict'\n\nconst compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n", "'use strict'\n\nconst compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n", "'use strict'\n\nconst compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n", "'use strict'\n\nconst compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n", "'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n", "'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n", "'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n", "'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n", "'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n", "'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n", "'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n", "'use strict'\n\nclass LRUCache {\n constructor () {\n this.max = 1000\n this.map = new Map()\n }\n\n get (key) {\n const value = this.map.get(key)\n if (value === undefined) {\n return undefined\n } else {\n // Remove the key from the map and add it to the end\n this.map.delete(key)\n this.map.set(key, value)\n return value\n }\n }\n\n delete (key) {\n return this.map.delete(key)\n }\n\n set (key, value) {\n const deleted = this.delete(key)\n\n if (!deleted && value !== undefined) {\n // If cache is full, delete the least recently used item\n if (this.map.size >= this.max) {\n const firstKey = this.map.keys().next().value\n this.delete(firstKey)\n }\n\n this.map.set(key, value)\n }\n\n return this\n }\n}\n\nmodule.exports = LRUCache\n", "'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n comp = comp.replace(re[t.BUILD], '')\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n", "'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n", "'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n", "'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n", "'use strict'\n\nconst Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n", "'use strict'\n\n// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n", "'use strict'\n\nconst outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n", "'use strict'\n\nconst Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n", "'use strict'\n\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n", "'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n", "'use strict'\n\n// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n", "/** Browser entry: the Host installs its capability fact before DSH boot. */\nimport type { Context } from '@deepseek-ai/cordis'\nimport type { SlotCore } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport { assertRemoteHostCapability } from './adapters/dsh.js'\nimport { SecuritySection } from './settings/section.js'\nimport { monitorSession } from './settings/monitor.js'\nimport { en, zh, type MessageKey } from '../shared/i18n.js'\nimport settingsStyles from './settings/style.css'\nimport accountStyles from './account/style.css'\nimport { manualAccountBinding } from './account/config.js'\nimport { ManualAccountSetting } from './settings/manual-account-setting.js'\nimport { createElement } from 'react'\nimport { installManualAccountLogin, hasManualAccountClient } from './account/index.js'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'auth-remote': MessageKey\n }\n}\n\nexport const name = 'auth-remote'\nexport const inject = ['connection', 'slots', 'locale', 'remote.settings']\n\nexport function apply(ctx: Context): void {\n assertRemoteHostCapability(ctx)\n ctx.effect(() => {\n const tag = document.createElement('style')\n tag.dataset.plugin = 'dsh-auth-remote'\n tag.textContent = settingsStyles + accountStyles\n document.head.appendChild(tag)\n return () => tag.remove()\n }, 'auth-remote: settings styles')\n monitorSession(ctx)\n ctx.effect(() => ctx.locale.register('auth-remote', { en, zh }), 'auth-remote: dictionaries')\n const t = ctx.locale.bind('auth-remote')\n installManualAccountLogin(ctx)\n const slots = ctx.get('slots') as SlotCore & {\n inject(name: string, register: () => () => void): void\n }\n slots.inject('settings.section', () =>\n slots.register(\n {\n name: 'settings.section',\n id: 'security',\n order: 90,\n locale: 'auth-remote',\n label: () => t('settingsSectionLabel'),\n },\n (props) =>\n createElement(SecuritySection, {\n ...props,\n locale: ctx.locale.getSnapshot().active,\n manualAccountSetting: createElement(ManualAccountSetting, {\n binding: manualAccountBinding(ctx),\n t,\n clientAvailable: hasManualAccountClient(ctx),\n }),\n }),\n ),\n )\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport type { ConnectionHandle } from '@deepseek-ai/dsh-client-connection/client'\n\n/** Confirm the Host's early index injection reached Connection construction. */\nexport function assertRemoteHostCapability(ctx: Context): void {\n if (typeof location === 'undefined') return\n const connection = ctx.get('connection') as ConnectionHandle | undefined\n if (connection === undefined) throw new Error('auth-remote: browser Connection is missing')\n const hostname = location.hostname.toLowerCase().replace(/^\\[|\\]$/gu, '')\n const loopback =\n hostname === 'localhost' ||\n hostname === '::1' ||\n /^127(?:\\.[0-9]{1,3}){3}$/u.test(hostname) ||\n /^::ffff:7f[0-9a-f]{2}:[0-9a-f]{1,4}$/u.test(hostname)\n if (!loopback && connection.isLoopback !== true) {\n throw new Error('auth-remote: Host settings capability was not installed before Connection')\n }\n}\n", "import { useEffect, useState, type ReactNode } from 'react'\nimport type { SettingsSectionOwnerProps } from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport {\n accountOverview,\n goToLogin,\n isUnauthorized,\n settingsError,\n type AccountStatus,\n type SettingsMessage,\n} from './api.js'\nimport { PasswordDialog } from './password-dialog.js'\nimport { CredentialDialog, CurrentSessionDialog } from './credential-dialog.js'\nimport { TotpDialog } from './totp-dialog.js'\n\nexport function SecuritySection({\n t,\n manualAccountSetting,\n locale,\n}: SettingsSectionOwnerProps & {\n t: TranslateNS<'auth-remote'>\n manualAccountSetting?: ReactNode\n locale?: string\n}): JSX.Element {\n const [operation, setOperation] = useState<\n 'password' | 'current' | 'all' | 'totp' | 'disable' | null\n >(null)\n const [loading, setLoading] = useState(true)\n const [reload, setReload] = useState(0)\n const [me, setMe] = useState<AccountStatus | null>(null)\n const [message, setMessage] = useState<SettingsMessage | null>(null)\n useEffect(() => {\n let live = true\n setLoading(true)\n void accountOverview().then(\n (value) => {\n if (live) {\n setMe(value)\n setMessage(null)\n setLoading(false)\n }\n },\n (error) => {\n if (isUnauthorized(error)) goToLogin()\n else if (live) {\n setMe(null)\n setMessage(settingsError(error))\n setLoading(false)\n }\n },\n )\n return () => {\n live = false\n }\n }, [reload])\n const dismiss = () => {\n setOperation(null)\n setReload((value) => value + 1)\n }\n const placeholder = <span aria-hidden=\"true\">\u2014</span>\n return (\n <section aria-label={t('settingsSectionAria')} className=\"auth-remote-security\">\n <h2>{t('settingsTitle')}</h2>\n <h3>{t('settingsOverview')}</h3>\n {loading && (\n <span className=\"auth-remote-loading-status\" role=\"status\">\n {t('settingsLoading')}\n </span>\n )}\n <dl className=\"auth-remote-overview\" aria-busy={loading}>\n <div>\n <dt>{t('settingsUsername')}</dt>\n <dd>{me ? me.username : placeholder}</dd>\n </div>\n <div>\n <dt>TOTP</dt>\n <dd className=\"auth-remote-totp-status\">\n {me ? t(me.totpEnabled ? 'settingsTotpEnabled' : 'settingsTotpNotBound') : placeholder}\n {me?.requireTotp && (\n <span\n className=\"auth-remote-policy-hint\"\n role=\"img\"\n tabIndex={0}\n aria-label={t('settingsTotpRequired')}\n title={t('settingsTotpRequired')}\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"8\" cy=\"8\" r=\"6\" stroke=\"currentColor\" />\n <path d=\"M8 7v4M8 4.5v1\" stroke=\"currentColor\" strokeLinecap=\"round\" />\n </svg>\n </span>\n )}\n </dd>\n </div>\n <div>\n <dt>{t('settingsCreatedAt')}</dt>\n <dd>\n {me\n ? new Intl.DateTimeFormat(locale || navigator.language, {\n dateStyle: 'medium',\n timeStyle: 'short',\n }).format(me.createdAt)\n : placeholder}\n </dd>\n </div>\n <div>\n <dt>{t('settingsExpiresAt')}</dt>\n <dd>\n {me\n ? new Intl.DateTimeFormat(locale || navigator.language, {\n dateStyle: 'medium',\n timeStyle: 'short',\n }).format(me.expiresAt)\n : placeholder}\n </dd>\n </div>\n <div>\n <dt>{t('settingsActiveSessions')}</dt>\n <dd>{me ? me.activeSessions : placeholder}</dd>\n </div>\n </dl>\n {!loading && !me && (\n <button className=\"auth-remote-button\" onClick={() => setReload((value) => value + 1)}>\n {t('settingsRetry')}\n </button>\n )}\n {manualAccountSetting}\n <div className=\"auth-remote-operation-row\">\n <h3>{t('settingsPasswordTitle')}</h3>\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('password')}\n >\n {t('settingsChangePassword')}\n </button>\n </div>\n <div className=\"auth-remote-operation-row\">\n <h3>TOTP</h3>\n <div className=\"auth-remote-actions\">\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('totp')}\n >\n {t(me?.totpEnabled ? 'settingsRebindTotp' : 'settingsBindTotp')}\n </button>\n {me?.totpEnabled && !me.requireTotp && (\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('disable')}\n >\n {t('settingsDisableTotp')}\n </button>\n )}\n </div>\n </div>\n <div className=\"auth-remote-operation-row\">\n <h3>{t('settingsSessions')}</h3>\n <div className=\"auth-remote-actions\">\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('current')}\n >\n {t('settingsSignOutCurrent')}\n </button>\n <button className=\"auth-remote-button\" disabled={!me} onClick={() => setOperation('all')}>\n {t('settingsSignOutAll')}\n </button>\n </div>\n </div>\n {operation === 'password' && me && <PasswordDialog me={me} t={t} close={dismiss} />}\n {operation === 'current' && <CurrentSessionDialog t={t} close={dismiss} />}\n {operation === 'all' && me && (\n <CredentialDialog action=\"revoke\" me={me} t={t} close={dismiss} />\n )}\n {operation === 'totp' && me && <TotpDialog me={me} t={t} close={dismiss} />}\n {operation === 'disable' && me && (\n <CredentialDialog action=\"disable\" me={me} t={t} close={dismiss} />\n )}\n <p className=\"auth-remote-error\" role=\"alert\">\n {message && t(message.key, message.params)}\n </p>\n </section>\n )\n}\n", "export type LoginReason = 'expired' | 'updated' | 'signed-out'\n\n/** Let a security operation finish before background checks redirect its page. */\nexport class LoginNavigation {\n private holds = 0\n private expired = false\n private navigating = false\n\n constructor(private readonly assign: (reason: LoginReason) => void) {}\n\n hold(timeoutMs?: number): () => void {\n this.holds++\n let active = true\n let timer: ReturnType<typeof setTimeout> | undefined\n const release = () => {\n if (!active) return\n active = false\n clearTimeout(timer)\n this.holds--\n if (this.holds === 0 && this.expired) this.go('expired')\n }\n if (timeoutMs !== undefined) timer = setTimeout(release, timeoutMs)\n return release\n }\n\n go(reason: LoginReason): void {\n if (this.navigating) return\n if (reason === 'expired' && this.holds > 0) {\n this.expired = true\n return\n }\n this.navigating = true\n this.assign(reason)\n }\n}\n", "import type { AuthErrorResponse, MeResponse } from '../../shared/auth-contract.js'\nimport type { MessageKey } from '../../shared/i18n.js'\nimport { LoginNavigation, type LoginReason } from './navigation.js'\n\nconst loginNavigation = new LoginNavigation((reason) => location.assign(loginLocation(reason)))\n\nexport interface SettingsMessage {\n key: MessageKey\n params?: Record<string, string | number>\n}\n\nexport class SettingsFailure extends Error {\n constructor(\n readonly status: number,\n readonly code: string,\n readonly retryAfter?: number,\n ) {\n super(code)\n }\n}\n\nexport function loginLocation(reason = 'expired'): string {\n const current = new URL(location.href)\n current.searchParams.delete('token')\n const target = new URL('/auth-remote/login', location.origin)\n target.searchParams.set('return', current.pathname + current.search + current.hash)\n target.searchParams.set('reason', reason)\n return target.pathname + target.search\n}\n\nexport function holdLoginRedirect(timeoutMs?: number): () => void {\n return loginNavigation.hold(timeoutMs)\n}\n\nexport function goToLogin(reason: LoginReason = 'expired'): void {\n loginNavigation.go(reason)\n}\n\nexport async function authRequest<T>(path: string, body?: Record<string, unknown>): Promise<T> {\n const response = await fetch(path, {\n method: body === undefined ? 'GET' : 'POST',\n ...(body === undefined\n ? {}\n : { headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) }),\n credentials: 'same-origin',\n cache: 'no-store',\n })\n const value: unknown = await response.json().catch(() => ({}))\n if (!response.ok) {\n const failure = value as AuthErrorResponse\n const seconds = Number(response.headers.get('retry-after'))\n throw new SettingsFailure(\n response.status,\n typeof failure.error === 'string' ? failure.error : 'service_unavailable',\n Number.isFinite(seconds) && seconds > 0 ? seconds : failure.retryAfter,\n )\n }\n return value as T\n}\n\nexport function settingsError(error: unknown): SettingsMessage {\n if (!(error instanceof SettingsFailure)) return { key: 'errorNetwork' }\n switch (error.code) {\n case 'invalid_credentials':\n return { key: 'settingsErrorInvalidCredentials' }\n case 'invalid_factor':\n return { key: 'settingsErrorInvalidFactor' }\n case 'invalid_input':\n return { key: 'settingsErrorInvalidInput' }\n case 'rate_limited':\n case 'busy':\n return { key: 'errorRateLimited', params: { seconds: error.retryAfter ?? 1 } }\n case 'invalid_challenge':\n case 'challenge_expired':\n case 'conflict':\n return { key: 'settingsErrorChallenge' }\n case 'totp_required':\n return { key: 'settingsErrorTotpRequired' }\n case 'unauthorized':\n return { key: 'errorUnauthorized' }\n default:\n return { key: error.status === 503 ? 'errorServiceUnavailable' : 'errorGeneric' }\n }\n}\n\nexport function isUnauthorized(error: unknown): boolean {\n return error instanceof SettingsFailure && error.status === 401 && error.code === 'unauthorized'\n}\n\nexport type AccountStatus = MeResponse\n\nexport async function accountOverview(): Promise<AccountStatus> {\n const value = await authRequest<Partial<AccountStatus> | null>('/auth-remote/me')\n if (\n !value ||\n typeof value.username !== 'string' ||\n typeof value.totpEnabled !== 'boolean' ||\n typeof value.requireTotp !== 'boolean' ||\n !Number.isSafeInteger(value.createdAt) ||\n !Number.isSafeInteger(value.expiresAt) ||\n !Number.isSafeInteger(value.activeSessions) ||\n value.createdAt! < 0 ||\n value.expiresAt! <= value.createdAt! ||\n value.activeSessions! < 1\n )\n throw new SettingsFailure(503, 'service_unavailable')\n return value as AccountStatus\n}\n", "import { useLayoutEffect, useRef, useState, type ReactNode } from 'react'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport {\n goToLogin,\n holdLoginRedirect,\n isUnauthorized,\n settingsError,\n type SettingsMessage,\n} from './api.js'\n\nexport type SecurityTranslate = TranslateNS<'auth-remote'>\n\nexport function SecurityDialog({\n title,\n t,\n close,\n busy = false,\n locked = false,\n children,\n}: {\n title: string\n t: SecurityTranslate\n close: () => void\n busy?: boolean\n locked?: boolean\n children: ReactNode\n}): JSX.Element {\n const ref = useRef<HTMLDialogElement>(null)\n const current = useRef({ busy, locked, close })\n current.current = { busy, locked, close }\n useLayoutEffect(() => {\n const node = ref.current!\n const previous = document.activeElement\n const keyboard = (event: KeyboardEvent) => {\n if (!node.open || event.ctrlKey || event.altKey || event.metaKey) return\n const focusedDialog = document.activeElement?.closest('dialog[open]')\n if (focusedDialog && focusedDialog !== node) return\n if (event.key !== 'Tab' && event.key !== 'Escape') return\n // Own keyboard input before the host Settings layer, including a step\n // transition or disabled form that temporarily leaves focus on body.\n event.preventDefault()\n event.stopImmediatePropagation()\n if (event.key === 'Escape') {\n if (!event.isComposing && !event.repeat && !current.current.busy && !current.current.locked)\n current.current.close()\n return\n }\n const items = [\n ...node.querySelectorAll<HTMLElement>(\n 'button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]',\n ),\n ].filter((item) => item.getClientRects().length > 0 && !item.closest('[hidden], [inert]'))\n const index = items.indexOf(document.activeElement as HTMLElement)\n const next = event.shiftKey\n ? index <= 0\n ? items.length - 1\n : index - 1\n : (index + 1) % items.length\n ;(items[next] ?? node).focus()\n }\n document.addEventListener('keydown', keyboard, true)\n node.showModal()\n ;(node.querySelector('input, [data-autofocus]') as HTMLElement | null)?.focus()\n return () => {\n document.removeEventListener('keydown', keyboard, true)\n node.close()\n if (previous instanceof HTMLElement && previous.isConnected) previous.focus()\n }\n }, [])\n useLayoutEffect(() => {\n const node = ref.current\n if (node?.open && !node.contains(document.activeElement))\n (\n node.querySelector<HTMLElement>(\n 'input:not(:disabled), [data-autofocus], button:not(:disabled)',\n ) ?? node\n ).focus()\n }, [title, locked])\n const dismiss = () => {\n if (!busy && !locked) close()\n }\n return (\n <dialog\n ref={ref}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"auth-remote-operation-title\"\n className=\"auth-remote-security auth-remote-operation-dialog\"\n tabIndex={-1}\n onCancel={(event) => {\n event.preventDefault()\n event.stopPropagation()\n dismiss()\n }}\n onClick={(event) => {\n if (event.target === event.currentTarget) {\n const box = event.currentTarget.getBoundingClientRect()\n if (\n event.clientX < box.left ||\n event.clientX > box.right ||\n event.clientY < box.top ||\n event.clientY > box.bottom\n )\n dismiss()\n }\n }}\n >\n <div className=\"auth-remote-dialog-header\">\n <h2 id=\"auth-remote-operation-title\">{title}</h2>\n {!locked && (\n <button\n className=\"auth-remote-button auth-remote-dialog-close\"\n type=\"button\"\n disabled={busy}\n onClick={dismiss}\n aria-label={t('settingsClose')}\n >\n \u00D7\n </button>\n )}\n </div>\n {children}\n </dialog>\n )\n}\n\n/** One atomic server request owns validation and execution, with a bounded expiry hold. */\nexport function useSecurityOperation() {\n const [busy, setBusy] = useState(false)\n const running = useRef(false)\n const [message, setMessage] = useState<SettingsMessage | null>(null)\n async function run<T>(operation: () => Promise<T>, done: (result: T) => void) {\n if (running.current) return\n running.current = true\n setBusy(true)\n setMessage(null)\n const release = holdLoginRedirect(30_000)\n try {\n done(await operation())\n } catch (error) {\n if (isUnauthorized(error)) goToLogin()\n else setMessage(settingsError(error))\n } finally {\n release()\n running.current = false\n setBusy(false)\n }\n }\n return { busy, message, setMessage, run }\n}\n\nexport function OperationError({\n message,\n t,\n}: {\n message: SettingsMessage | null\n t: SecurityTranslate\n}): JSX.Element {\n return (\n <p className=\"auth-remote-error\" role=\"alert\">\n {message && t(message.key, message.params)}\n </p>\n )\n}\n\nexport function CredentialFields({\n t,\n totpEnabled,\n passwordName = 'password',\n codeName = 'currentCode',\n}: {\n t: SecurityTranslate\n totpEnabled: boolean\n passwordName?: string\n codeName?: string\n}): JSX.Element {\n return (\n <>\n <label className=\"auth-remote-field\">\n {t('settingsCurrentPassword')}\n <input type=\"password\" name={passwordName} autoComplete=\"current-password\" required />\n </label>\n {totpEnabled && (\n <label className=\"auth-remote-field\">\n {t('settingsCurrentCode')}\n <input name={codeName} autoComplete=\"one-time-code\" required />\n </label>\n )}\n </>\n )\n}\n\nexport function CancelButton({\n t,\n close,\n busy,\n}: {\n t: SecurityTranslate\n close: () => void\n busy: boolean\n}): JSX.Element {\n return (\n <button className=\"auth-remote-button\" type=\"button\" onClick={close} disabled={busy}>\n {t('settingsCancel')}\n </button>\n )\n}\n", "import type { AccountStatus } from './api.js'\nimport { authRequest, goToLogin } from './api.js'\nimport {\n SecurityDialog,\n CredentialFields,\n CancelButton,\n OperationError,\n useSecurityOperation,\n type SecurityTranslate,\n} from './dialog.js'\n\nexport function PasswordDialog({\n me,\n t,\n close,\n}: {\n me: AccountStatus\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const { busy, message, setMessage, run } = useSecurityOperation()\n return (\n <SecurityDialog title={t('settingsChangePassword')} t={t} close={close} busy={busy}>\n <p>{t('settingsPasswordDescription')}</p>\n <form\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n const next = String(data.get('newPassword') ?? '')\n if (next !== data.get('confirmPassword')) {\n setMessage({ key: 'settingsPasswordMismatch' })\n return\n }\n void run(\n () =>\n authRequest('/auth-remote/password', {\n currentPassword: data.get('currentPassword'),\n ...(me.totpEnabled ? { currentCode: data.get('currentCode') } : {}),\n newPassword: next,\n }),\n () => goToLogin('updated'),\n )\n }}\n >\n <fieldset disabled={busy}>\n <CredentialFields t={t} totpEnabled={me.totpEnabled} passwordName=\"currentPassword\" />\n <label className=\"auth-remote-field\">\n {t('settingsNewPassword')}\n <input name=\"newPassword\" type=\"password\" autoComplete=\"new-password\" required />\n </label>\n <label className=\"auth-remote-field\">\n {t('settingsConfirmPassword')}\n <input name=\"confirmPassword\" type=\"password\" autoComplete=\"new-password\" required />\n </label>\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button className=\"auth-remote-button auth-remote-primary\" disabled={busy} type=\"submit\">\n {t('settingsSavePassword')}\n </button>\n </div>\n </form>\n </SecurityDialog>\n )\n}\n", "import { authRequest, goToLogin, type AccountStatus } from './api.js'\nimport {\n SecurityDialog,\n CredentialFields,\n CancelButton,\n OperationError,\n useSecurityOperation,\n type SecurityTranslate,\n} from './dialog.js'\n\n/** Verification is never cached: every submit verifies and executes atomically. */\nexport function CredentialDialog({\n action,\n me,\n t,\n close,\n}: {\n action: 'revoke' | 'disable'\n me: AccountStatus\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const { busy, message, run } = useSecurityOperation()\n const label = t(action === 'revoke' ? 'settingsSignOutAll' : 'settingsDisableTotp')\n return (\n <SecurityDialog title={label} t={t} close={close} busy={busy}>\n <p>\n {t(action === 'revoke' ? 'settingsSignOutAllDescription' : 'settingsDisableDescription')}\n </p>\n <form\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n void run(\n () =>\n authRequest(\n action === 'revoke' ? '/auth-remote/revoke-sessions' : '/auth-remote/totp/disable',\n {\n password: data.get('password'),\n ...(me.totpEnabled ? { currentCode: data.get('currentCode') } : {}),\n },\n ),\n () => goToLogin('updated'),\n )\n }}\n >\n <fieldset disabled={busy}>\n <CredentialFields t={t} totpEnabled={me.totpEnabled} />\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button className=\"auth-remote-button auth-remote-primary\" disabled={busy} type=\"submit\">\n {label}\n </button>\n </div>\n </form>\n </SecurityDialog>\n )\n}\n\nexport function CurrentSessionDialog({\n t,\n close,\n}: {\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const { busy, message, run } = useSecurityOperation()\n return (\n <SecurityDialog title={t('settingsSignOutCurrent')} t={t} close={close} busy={busy}>\n <p>{t('settingsSignOutCurrentDescription')}</p>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button\n className=\"auth-remote-button auth-remote-primary\"\n data-autofocus\n disabled={busy}\n onClick={() => {\n void run(\n () => authRequest('/auth-remote/logout', {}),\n () => goToLogin('signed-out'),\n )\n }}\n >\n {t('settingsSignOutCurrent')}\n </button>\n </div>\n </SecurityDialog>\n )\n}\n", "import { useEffect, useRef, useState } from 'react'\nimport QRCode from 'qrcode'\nimport type { BindingResponse } from '../../shared/auth-contract.js'\nimport { authRequest, goToLogin, holdLoginRedirect, type AccountStatus } from './api.js'\nimport {\n SecurityDialog,\n CredentialFields,\n CancelButton,\n OperationError,\n useSecurityOperation,\n type SecurityTranslate,\n} from './dialog.js'\n\ntype Binding = { challenge: string; secret: string }\n\nfunction SecretQr({ uri, t }: { uri: string; t: SecurityTranslate }): JSX.Element {\n const [data, setData] = useState('')\n const [failed, setFailed] = useState(false)\n useEffect(() => {\n let live = true\n setData('')\n setFailed(false)\n void QRCode.toDataURL(uri, { width: 220, margin: 2, errorCorrectionLevel: 'M' }).then(\n (value) => {\n if (live) setData(value)\n },\n () => {\n if (live) setFailed(true)\n },\n )\n return () => {\n live = false\n }\n }, [uri])\n return data ? (\n <img src={data} alt={t('settingsQrAlt')} width={220} height={220} />\n ) : (\n <p>{t(failed ? 'settingsQrUnavailable' : 'settingsQrLoading')}</p>\n )\n}\n\nexport function TotpDialog({\n me,\n t,\n close,\n}: {\n me: AccountStatus\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const [binding, setBinding] = useState<Binding | null>(null)\n const [codes, setCodes] = useState<string[] | null>(null)\n const [copied, setCopied] = useState<'success' | 'failed' | null>(null)\n const releaseCodes = useRef<() => void>()\n const { busy, message, setMessage, run } = useSecurityOperation()\n useEffect(() => () => releaseCodes.current?.(), [])\n const issuer = 'DSH Auth Remote'\n const uri = binding\n ? `otpauth://totp/${encodeURIComponent(`${issuer}:${me.username}`)}?secret=${binding.secret}&issuer=${encodeURIComponent(issuer)}&algorithm=SHA1&digits=6&period=30`\n : ''\n const title = t(\n codes\n ? 'settingsBackupTitle'\n : binding\n ? 'settingsScanQr'\n : me.totpEnabled\n ? 'settingsRebindTotp'\n : 'settingsBindTotp',\n )\n return (\n <SecurityDialog title={title} t={t} close={close} busy={busy} locked={codes !== null}>\n {codes ? (\n <>\n <p>{t('settingsBackupDescription')}</p>\n {me.totpEnabled && <p>{t('settingsOldBackupInvalid')}</p>}\n <ol className=\"auth-remote-backup-codes\">\n {codes.map((code) => (\n <li key={code}>{code}</li>\n ))}\n </ol>\n <p role=\"status\">\n {copied &&\n t(copied === 'success' ? 'settingsBackupCopied' : 'settingsBackupCopyFailed')}\n </p>\n <div className=\"auth-remote-dialog-actions\">\n <button\n className=\"auth-remote-button\"\n onClick={() => {\n void (async () => {\n try {\n await navigator.clipboard.writeText(codes.join('\\n'))\n setCopied('success')\n } catch {\n setCopied('failed')\n }\n })()\n }}\n >\n {t('settingsCopyAll')}\n </button>\n <button\n className=\"auth-remote-button auth-remote-primary\"\n onClick={() => {\n goToLogin('updated')\n setCodes(null)\n setBinding(null)\n setCopied(null)\n releaseCodes.current?.()\n releaseCodes.current = undefined\n }}\n >\n {t('settingsBackupSaved')}\n </button>\n </div>\n </>\n ) : binding ? (\n <form\n key=\"confirm\"\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n void run(\n () =>\n authRequest<BindingResponse>('/auth-remote/totp/confirm', {\n challenge: binding.challenge,\n code: data.get('code'),\n }),\n (result) => {\n releaseCodes.current ??= holdLoginRedirect()\n setCodes(result.backupCodes)\n setBinding(null)\n setCopied(null)\n },\n )\n }}\n >\n <SecretQr uri={uri} t={t} />\n <p>\n {t('settingsManualSecret')} <code>{binding.secret}</code>\n </p>\n <fieldset disabled={busy}>\n <label className=\"auth-remote-field\">\n {t('settingsNewCode')}\n <input name=\"code\" autoComplete=\"one-time-code\" required />\n </label>\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button\n type=\"button\"\n className=\"auth-remote-button\"\n disabled={busy}\n onClick={() => {\n setBinding(null)\n setMessage(null)\n }}\n >\n {t('settingsRestartBinding')}\n </button>\n <button\n className=\"auth-remote-button auth-remote-primary\"\n type=\"submit\"\n disabled={busy}\n >\n {t('settingsConfirmBinding')}\n </button>\n </div>\n </form>\n ) : (\n <form\n key=\"credentials\"\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n void run(\n () =>\n authRequest<Binding>('/auth-remote/totp/start', {\n password: data.get('password'),\n ...(me.totpEnabled ? { currentCode: data.get('currentCode') } : {}),\n }),\n setBinding,\n )\n }}\n >\n <p>{t('settingsBindDescription')}</p>\n <fieldset disabled={busy}>\n <CredentialFields t={t} totpEnabled={me.totpEnabled} />\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button\n className=\"auth-remote-button auth-remote-primary\"\n type=\"submit\"\n disabled={busy}\n >\n {t('settingsStartBinding')}\n </button>\n </div>\n </form>\n )}\n </SecurityDialog>\n )\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport { authRequest, goToLogin, isUnauthorized, type AccountStatus } from './api.js'\n\n/** Keep the official page from remaining open after this browser session expires or is revoked. */\nexport function monitorSession(ctx: Context): void {\n ctx.effect(() => {\n let active = true\n let checking = false\n let timer: ReturnType<typeof setTimeout> | undefined\n const verify = () => {\n if (!active || checking) return\n checking = true\n void authRequest<AccountStatus>('/auth-remote/me')\n .then(\n (me) => {\n if (!active) return\n clearTimeout(timer)\n const remaining = me.expiresAt - Date.now()\n if (remaining <= 0) {\n goToLogin()\n return\n }\n timer = setTimeout(verify, Math.min(remaining + 20, 24 * 60 * 60 * 1000))\n },\n (error: unknown) => {\n if (active && isUnauthorized(error)) goToLogin()\n },\n )\n .finally(() => {\n checking = false\n })\n }\n verify()\n const poll = setInterval(verify, 5000)\n const off = ctx.on('connection/reset', verify)\n return () => {\n active = false\n clearTimeout(timer)\n clearInterval(poll)\n off()\n }\n }, 'auth-remote.session-monitor')\n}\n", "/** Human-facing text only. Protocol identifiers and command names stay unchanged. */\nexport const en = {\n errorNetwork: 'Connection failed. Check your network and try again.',\n errorRateLimited: 'Too many attempts. Try again in about {seconds} seconds.',\n errorUnauthorized: 'Your session has expired. Sign in again.',\n errorServiceUnavailable: 'The service is temporarily unavailable. Try again later.',\n errorGeneric: 'The operation could not be completed. Try again.',\n\n accountLoginDisabled:\n 'Manual account sign-in is disabled. Refresh this page to use the native sign-in entry.',\n settingsLoginConfiguration: 'Sign-in preferences',\n settingsManualDescription: 'Authorize in a new tab, then paste the callback address.',\n settingsManualAccountLogin: 'Remote DeepSeek account sign-in',\n settingsManualConfigUnavailable: 'Sign-in preferences are temporarily unavailable.',\n settingsManualUnavailable: 'Manual account sign-in is unavailable in this DSH environment.',\n settingsManualSaveFailed:\n 'Could not save this preference. Check the current value and try again.',\n settingsSaving: 'Saving\u2026',\n settingsRetry: 'Retry',\n\n accountLoginTitle: 'Sign in to DeepSeek',\n accountLoginStepOpen: 'Sign in to DeepSeek in a new tab.',\n accountLoginStepCopy: 'Copy the full address after authorization and paste it here.',\n accountLoginCallbackLabel: 'Full callback address',\n accountLoginCallbackHint:\n 'A connection error or 404 after authorization is expected. Copy the full address.',\n accountLoginOpen: 'Open sign-in page',\n accountLoginConfirm: 'Confirm sign-in',\n accountLoginCancel: 'Cancel',\n accountLoginUseApiKey: 'Use API key',\n accountLoginClose: 'Close',\n accountLoginRetry: 'Start again',\n accountLoginReopen: 'Reopen authorization page',\n accountLoginPopupBlocked: 'The new tab was blocked.',\n accountLoginInitializing: 'Preparing authorization\u2026',\n accountLoginWaiting: 'Authorization lasts at most 10 minutes.',\n accountLoginExchanging: 'Completing sign-in\u2026',\n accountLoginInvalidCallback:\n 'This callback address does not match the current authorization. Copy the full address, including code and state, from the latest authorization tab.',\n accountLoginExpired: 'This authorization has expired. Start again.',\n accountLoginMismatch:\n 'This authorization is no longer available in this session. Close this dialog and start again.',\n accountLoginBusy:\n 'Another authorization is in progress. Finish or cancel it before starting again.',\n accountLoginUnavailable: 'This DSH version does not provide compatible account sign-in.',\n accountLoginFailed:\n 'Authorization could not be completed. Start again and submit the address from the new tab.',\n accountLoginNoResponse:\n 'The DeepSeek platform did not respond. Check the DSH server\u2019s network connection and start again.',\n\n loginInitialTitle: 'Sign in',\n loginInitialLoading: 'Checking sign-in status\u2026',\n loginLanguageLabel: 'Language',\n loginSetupTitle: 'Set up your account first',\n loginSetupDescription:\n 'Run this command in a terminal on the server running DSH, then create a username and password when prompted. The web page cannot create the account.',\n loginSetupCopy: 'Copy command',\n loginSetupRecheck: 'I finished setup',\n loginSetupCopied: 'Command copied.',\n loginSetupCopyFallback: 'Select and copy the command manually.',\n loginSetupNotFound:\n 'No account was found. Check that the command used this profile, then try again.',\n loginTitle: 'Sign in',\n loginUsername: 'Username',\n loginPassword: 'Password',\n loginContinue: 'Continue',\n loginMfaTitle: 'Verify your second factor',\n loginMfaDescription:\n 'Enter the six-digit code from your authenticator or a one-time backup code. This challenge expires in five minutes.',\n loginMfaCode: 'Verification or backup code',\n loginMfaSubmit: 'Verify and sign in',\n loginBackToPassword: 'Back to password sign-in',\n loginMfaExhausted: 'This challenge is exhausted. Enter your password again.',\n loginBindingTitle: 'Connect an authenticator',\n loginBindingDescription:\n 'Scan the QR code with your authenticator, or enter the secret below. After confirmation, ten one-time backup codes will appear and you will need to sign in again.',\n loginBindingQrAlt: 'Authenticator setup QR code',\n loginBindingManualSecret: 'Manual secret',\n loginBindingCode: 'Six-digit code from the authenticator',\n loginBindingConfirm: 'Confirm setup',\n loginBindingRestart: 'Sign in again',\n loginBindingQrUnavailable: 'The QR code is unavailable. Use the manual secret above.',\n loginBindingExhausted: 'This setup challenge is exhausted. Enter your password again.',\n loginBackupTitle: 'Save your backup codes',\n loginBackupDescription:\n 'These codes are shown only once. Store them safely; each code can be used only once. Sign in again after saving them.',\n loginBackupSaved: 'I saved them; sign in again',\n loginOptionalTitle: 'Protect your account',\n loginOptionalDescription:\n 'This profile lets you connect an authenticator later. Connecting one now adds protection; you can also do it in Security settings.',\n loginOptionalBindNow: 'Connect TOTP now',\n loginOptionalSkip: 'Skip and enter DSH',\n loginOptionalVerifyTitle: 'Verify again before setup',\n loginOptionalVerifyDescription: 'Enter your current password to protect your account.',\n loginOptionalCurrentPassword: 'Current password',\n loginOptionalStart: 'Start setup',\n loginOptionalSkipLater: 'Connect later and enter DSH',\n loginReasonExpired: 'Your session has expired. Sign in again.',\n loginReasonUpdated: 'Security settings changed. Sign in again.',\n loginReasonSignedOut: 'You signed out of this session.',\n loginUnavailableTitle: 'Sign-in is temporarily unavailable',\n loginUnavailableDescription: 'The service status is unavailable. Check the connection and retry.',\n loginRetry: 'Check again',\n loginErrorInvalidCredentials: 'The username or password is incorrect. Try again.',\n loginErrorInvalidFactor:\n 'The verification or backup code is incorrect. After five failed attempts, you must enter your password again.',\n loginErrorChallenge: 'This verification expired. Enter your username and password again.',\n loginErrorUninitialized:\n 'The account is not set up. Run the setup command in the server terminal.',\n\n settingsClose: 'Close',\n settingsCancel: 'Cancel',\n settingsOverview: 'Account overview',\n settingsUsername: 'DSH sign-in username',\n settingsCreatedAt: 'Signed in at',\n settingsExpiresAt: 'Session expires at',\n settingsActiveSessions: 'Active sessions',\n settingsTotpRequired: 'TOTP is required by configuration and cannot be turned off.',\n settingsPasswordTitle: 'Password',\n settingsSignOutCurrentDescription: 'Sign out this session? Other sessions will stay signed in.',\n\n settingsSectionLabel: 'Security & sign-in',\n settingsSectionAria: 'Security & sign-in settings',\n settingsTitle: 'Security & sign-in',\n settingsAccountSummary: 'Account: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: 'Enabled',\n settingsTotpNotBound: 'Not connected',\n settingsLoading: 'Loading account status\u2026',\n settingsChangePassword: 'Change password',\n settingsBindTotp: 'Turn on TOTP',\n settingsRebindTotp: 'Reconnect TOTP',\n settingsSessions: 'Session management',\n settingsPasswordMismatch: 'The new passwords do not match.',\n settingsPasswordDescription: 'After this change, every device must sign in again.',\n settingsCurrentPassword: 'Current password',\n settingsCurrentCode: 'Current verification or backup code',\n settingsNewPassword: 'New password',\n settingsConfirmPassword: 'Confirm new password',\n settingsSavePassword: 'Save new password',\n settingsBindDescription:\n 'Enter your current credentials. After connecting the new authenticator, every device must sign in again.',\n settingsStartBinding: 'Start setup',\n settingsDisableTotp: 'Turn off TOTP',\n settingsDisableDescription: 'After turning off TOTP, every device must sign in again.',\n settingsScanQr: 'Scan the QR code',\n settingsQrAlt: 'Authenticator setup QR code',\n settingsQrUnavailable: 'The QR code is unavailable. Use the manual secret below.',\n settingsQrLoading: 'Generating the QR code; you can use the manual secret below.',\n settingsManualSecret: 'Manual secret:',\n settingsNewCode: 'Six-digit code from the new authenticator',\n settingsConfirmBinding: 'Confirm setup',\n settingsRestartBinding: 'Start over',\n settingsSignOutCurrent: 'Sign out this session',\n settingsSignOutAll: 'Sign out all sessions',\n settingsSignOutAllDescription:\n 'Enter your current credentials. All sessions, including this one, and open connections will be revoked.',\n settingsOldBackupInvalid: 'Your previous backup codes no longer work.',\n settingsCopyAll: 'Copy all',\n settingsBackupCopied: 'Backup codes copied.',\n settingsBackupCopyFailed: 'Could not copy. Select the codes and copy them manually.',\n\n settingsBackupTitle: 'Save your backup codes',\n settingsBackupDescription:\n 'These codes are shown only once. Store them safely; each code can be used only once.',\n settingsBackupSaved: 'I saved them; sign in again',\n settingsErrorInvalidCredentials: 'The current password is incorrect.',\n settingsErrorInvalidFactor: 'The current verification or backup code is incorrect.',\n settingsErrorInvalidInput: 'The input is invalid. Passwords must meet the server length rules.',\n settingsErrorChallenge: 'The setup challenge expired. Start setup again.',\n settingsErrorTotpRequired: 'This profile requires TOTP, so it cannot be turned off.',\n\n cliHelp: `dsh-auth-remote {version}\n\nUsage:\n dsh plugin --profile web exec dsh-auth-remote [--lang en|zh] COMMAND\n\nCommands:\n init Create the single account interactively\n status [--json] Show non-sensitive authentication status\n reset-password Reset the password and revoke all sessions\n reset-totp Clear TOTP, backup codes and all sessions\n revoke-sessions Sign out every device\n\nOptions:\n --lang en|zh Choose the language for human-readable output\n --help, -h Show this help\n --version, -v Show the package version\n\nThe command uses the profile selected by dsh plugin exec and the caller's DSH_HOME.\n`,\n cliPromptUsername: 'Username: ',\n cliPromptPassword: 'Password: ',\n cliPromptPasswordAgain: 'Enter password again: ',\n cliPromptNewPassword: 'New password: ',\n cliPromptNewPasswordAgain: 'Enter new password again: ',\n cliPromptConfirmTarget: 'Enter {profile} to confirm {command}: ',\n cliTargetProfile: 'Target profile: {profile}',\n cliDataFile: 'State file: {path}',\n cliStatusProfile: 'Profile: {profile}',\n cliStatusAccount: 'Account: {state}',\n cliStatusTotp: 'TOTP: {state}',\n cliStatusSessions: 'Active sessions: {count}',\n cliStatusService: 'Service: {state}',\n cliInitialized: 'Initialized',\n cliNotInitialized: 'Not initialized',\n cliTotpEnabled: 'Enabled',\n cliTotpDisabled: 'Disabled',\n cliOnlineReady: 'Online and ready',\n cliOnlineNotReady: 'Online but not ready',\n cliOffline: 'Offline',\n cliCompleted: '{command} completed; the change is durable and effective.',\n cliErrorInvalidArguments: 'Invalid command or arguments. Use --help.',\n cliErrorInvalidLanguage: 'Invalid --lang value. Use en or zh.',\n cliErrorDuplicateLanguage: 'Specify --lang only once.',\n cliErrorMissingLanguage: 'Missing value for --lang. Use en or zh.',\n cliErrorPasswordsMismatch: 'The passwords do not match.',\n cliErrorConfirmationMismatch: 'The confirmation did not match the target profile.',\n cliErrorPasswordLength: 'Password must contain 12\u2013256 Unicode characters.',\n cliErrorTerminalRequired: 'An interactive terminal is required.',\n cliErrorTerminalClosed: 'Terminal input closed.',\n cliErrorCancelled: 'Cancelled.',\n cliErrorProfileDirectory: 'The current directory is not the selected DSH profile under DSH_HOME.',\n cliErrorProfileManifest: 'The profile package.json is missing.',\n cliErrorUnsafeManagementDirectory: 'The management directory has unsafe permissions.',\n cliErrorUnsafeManagementSocket: 'The management socket has unsafe permissions.',\n cliErrorManagementUnavailable: 'The management socket is unavailable.',\n cliErrorOutcomeUnknown:\n 'The management request disconnected or timed out. Its result is unknown; check status before trying again.',\n cliErrorOfflineLock:\n 'The management socket is unavailable while the service holds the profile lock. Offline access was refused.',\n cliErrorInvalidCredentials: 'The current credentials are incorrect.',\n cliErrorAlreadyInitialized: 'The account is already initialized.',\n cliErrorInvalidInput: 'The input is invalid.',\n cliErrorInvalidFactor: 'The verification or backup code is incorrect.',\n cliErrorUninitialized: 'The account is not initialized.',\n cliErrorTotpRequired: 'This profile requires TOTP.',\n cliErrorConflict: 'The account state changed. Check status and retry.',\n cliErrorBusy: 'The service is busy. Try again later.',\n cliErrorUnknown: 'The operation failed. Check status before trying again.',\n} as const\n", "import type { en } from './en.js'\n\nexport const zh = {\n errorNetwork: '\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002',\n errorRateLimited: '\u5C1D\u8BD5\u8FC7\u4E8E\u9891\u7E41\uFF0C\u8BF7\u7EA6 {seconds} \u79D2\u540E\u91CD\u8BD5\u3002',\n errorUnauthorized: '\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002',\n errorServiceUnavailable: '\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002',\n errorGeneric: '\u64CD\u4F5C\u672A\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002',\n\n accountLoginDisabled: '\u624B\u52A8\u8D26\u53F7\u767B\u5F55\u5DF2\u5173\u95ED\u3002\u8BF7\u5237\u65B0\u9875\u9762\uFF0C\u4F7F\u7528\u539F\u751F\u767B\u5F55\u5165\u53E3\u3002',\n settingsLoginConfiguration: '\u767B\u5F55\u914D\u7F6E',\n settingsManualDescription: '\u5728\u65B0\u6807\u7B7E\u9875\u6388\u6743\u540E\uFF0C\u7C98\u8D34\u56DE\u8C03\u5730\u5740\u767B\u5F55\u3002',\n settingsManualAccountLogin: '\u8FDC\u7A0B DeepSeek \u8D26\u53F7\u767B\u5F55',\n settingsManualConfigUnavailable: '\u767B\u5F55\u914D\u7F6E\u6682\u65F6\u4E0D\u53EF\u7528\u3002',\n settingsManualUnavailable: '\u5F53\u524D DSH \u73AF\u5883\u4E0D\u652F\u6301\u624B\u52A8\u8D26\u53F7\u767B\u5F55\u3002',\n settingsManualSaveFailed: '\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u5F53\u524D\u503C\u540E\u91CD\u8BD5\u3002',\n settingsSaving: '\u6B63\u5728\u4FDD\u5B58\u2026',\n settingsRetry: '\u91CD\u8BD5',\n\n accountLoginTitle: '\u767B\u5F55 DeepSeek \u8D26\u53F7',\n accountLoginStepOpen: '\u5728\u65B0\u6807\u7B7E\u9875\u5B8C\u6210 DeepSeek \u767B\u5F55\u3002',\n accountLoginStepCopy: '\u590D\u5236\u6388\u6743\u540E\u5730\u5740\u680F\u7684\u5B8C\u6574\u5730\u5740\uFF0C\u8FD4\u56DE\u6B64\u5904\u7C98\u8D34\u3002',\n accountLoginCallbackLabel: '\u5B8C\u6574\u56DE\u8C03\u5730\u5740',\n accountLoginCallbackHint: '\u6388\u6743\u540E\u5373\u4F7F\u9875\u9762\u663E\u793A\u8FDE\u63A5\u5931\u8D25\u6216 404\uFF0C\u4E5F\u53EF\u4EE5\u590D\u5236\u5B8C\u6574\u5730\u5740\u3002',\n accountLoginOpen: '\u6253\u5F00\u767B\u5F55\u9875',\n accountLoginConfirm: '\u786E\u8BA4\u767B\u5F55',\n accountLoginCancel: '\u53D6\u6D88',\n accountLoginUseApiKey: '\u4F7F\u7528 API Key',\n accountLoginClose: '\u5173\u95ED',\n accountLoginRetry: '\u91CD\u65B0\u5F00\u59CB',\n accountLoginReopen: '\u91CD\u65B0\u6253\u5F00\u6388\u6743\u9875',\n accountLoginPopupBlocked: '\u65B0\u6807\u7B7E\u9875\u88AB\u6D4F\u89C8\u5668\u62E6\u622A\u3002',\n accountLoginInitializing: '\u6B63\u5728\u51C6\u5907\u6388\u6743\u2026',\n accountLoginWaiting: '\u6388\u6743\u6709\u6548\u671F\u6700\u957F 10 \u5206\u949F\u3002',\n accountLoginExchanging: '\u6B63\u5728\u5B8C\u6210\u767B\u5F55\u2026',\n accountLoginInvalidCallback:\n '\u56DE\u8C03\u5730\u5740\u4E0E\u5F53\u524D\u6388\u6743\u4E0D\u5339\u914D\uFF0C\u8BF7\u4ECE\u6700\u8FD1\u4E00\u6B21\u6388\u6743\u6807\u7B7E\u9875\u590D\u5236\u5305\u542B code \u548C state \u7684\u5B8C\u6574\u5730\u5740\u3002',\n accountLoginExpired: '\u672C\u6B21\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u3002',\n accountLoginMismatch: '\u5F53\u524D\u4F1A\u8BDD\u5DF2\u65E0\u6CD5\u7EE7\u7EED\u6B64\u6388\u6743\uFF0C\u8BF7\u5173\u95ED\u5F39\u7A97\u540E\u91CD\u65B0\u5F00\u59CB\u3002',\n accountLoginBusy: '\u5DF2\u6709\u6388\u6743\u6B63\u5728\u8FDB\u884C\uFF0C\u8BF7\u5148\u5B8C\u6210\u6216\u53D6\u6D88\u540E\u518D\u5F00\u59CB\u3002',\n accountLoginUnavailable: '\u5F53\u524D DSH \u7248\u672C\u672A\u63D0\u4F9B\u517C\u5BB9\u7684\u8D26\u53F7\u767B\u5F55\u529F\u80FD\u3002',\n accountLoginFailed: '\u672A\u80FD\u5B8C\u6210\u6388\u6743\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\uFF0C\u5E76\u63D0\u4EA4\u65B0\u6807\u7B7E\u9875\u4E2D\u7684\u56DE\u8C03\u5730\u5740\u3002',\n accountLoginNoResponse: 'DeepSeek \u5E73\u53F0\u672A\u54CD\u5E94\uFF0C\u8BF7\u68C0\u67E5 DSH \u670D\u52A1\u5668\u7684\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u65B0\u5F00\u59CB\u3002',\n\n loginInitialTitle: '\u767B\u5F55',\n loginInitialLoading: '\u6B63\u5728\u68C0\u67E5\u767B\u5F55\u72B6\u6001\u2026',\n loginLanguageLabel: '\u8BED\u8A00',\n loginSetupTitle: '\u5148\u521D\u59CB\u5316\u8D26\u53F7',\n loginSetupDescription:\n '\u8BF7\u5728\u8FD0\u884C DSH \u7684\u670D\u52A1\u5668\u7EC8\u7AEF\u8F93\u5165\u4E0B\u5217\u547D\u4EE4\uFF0C\u7136\u540E\u6309\u63D0\u793A\u521B\u5EFA\u7528\u6237\u540D\u548C\u5BC6\u7801\u3002\u7F51\u9875\u4E0D\u4F1A\u521B\u5EFA\u8D26\u53F7\u3002',\n loginSetupCopy: '\u590D\u5236\u547D\u4EE4',\n loginSetupRecheck: '\u6211\u5DF2\u5B8C\u6210\u521D\u59CB\u5316',\n loginSetupCopied: '\u547D\u4EE4\u5DF2\u590D\u5236\u3002',\n loginSetupCopyFallback: '\u8BF7\u624B\u52A8\u9009\u62E9\u5E76\u590D\u5236\u547D\u4EE4\u3002',\n loginSetupNotFound: '\u5C1A\u672A\u68C0\u6D4B\u5230\u8D26\u53F7\u3002\u8BF7\u786E\u8BA4\u547D\u4EE4\u4F7F\u7528\u4E86\u5F53\u524D profile\uFF0C\u518D\u91CD\u65B0\u68C0\u67E5\u3002',\n loginTitle: '\u767B\u5F55',\n loginUsername: '\u7528\u6237\u540D',\n loginPassword: '\u5BC6\u7801',\n loginContinue: '\u7EE7\u7EED',\n loginMfaTitle: '\u9A8C\u8BC1\u7B2C\u4E8C\u56E0\u7D20',\n loginMfaDescription: '\u8F93\u5165\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u4E2D\u7684 6 \u4F4D\u6570\u5B57\uFF0C\u6216\u8F93\u5165\u4E00\u6B21\u6027\u5907\u7528\u7801\u3002\u6311\u6218 5 \u5206\u949F\u540E\u5931\u6548\u3002',\n loginMfaCode: '\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801',\n loginMfaSubmit: '\u9A8C\u8BC1\u5E76\u767B\u5F55',\n loginBackToPassword: '\u8FD4\u56DE\u5BC6\u7801\u767B\u5F55',\n loginMfaExhausted: '\u672C\u6B21\u6311\u6218\u5DF2\u7528\u5C3D\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002',\n loginBindingTitle: '\u7ED1\u5B9A\u8EAB\u4EFD\u9A8C\u8BC1\u5668',\n loginBindingDescription:\n '\u4F7F\u7528\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u626B\u63CF\u4E8C\u7EF4\u7801\uFF0C\u6216\u624B\u52A8\u8F93\u5165\u4E0B\u65B9\u5BC6\u94A5\u3002\u786E\u8BA4\u6210\u529F\u540E\u5C06\u663E\u793A 10 \u4E2A\u4E00\u6B21\u6027\u5907\u7528\u7801\uFF0C\u5E76\u8981\u6C42\u91CD\u65B0\u767B\u5F55\u3002',\n loginBindingQrAlt: '\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7ED1\u5B9A\u4E8C\u7EF4\u7801',\n loginBindingManualSecret: '\u624B\u5DE5\u5BC6\u94A5',\n loginBindingCode: '\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u4E2D\u7684 6 \u4F4D\u9A8C\u8BC1\u7801',\n loginBindingConfirm: '\u786E\u8BA4\u7ED1\u5B9A',\n loginBindingRestart: '\u91CD\u65B0\u767B\u5F55',\n loginBindingQrUnavailable: '\u4E8C\u7EF4\u7801\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u4F7F\u7528\u4E0A\u65B9\u624B\u5DE5\u5BC6\u94A5\u3002',\n loginBindingExhausted: '\u7ED1\u5B9A\u6311\u6218\u5DF2\u7528\u5C3D\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002',\n loginBackupTitle: '\u4FDD\u5B58\u5907\u7528\u7801',\n loginBackupDescription:\n '\u8FD9\u4E9B\u5907\u7528\u7801\u53EA\u4F1A\u663E\u793A\u8FD9\u4E00\u6B21\u3002\u8BF7\u5B58\u653E\u5728\u5B89\u5168\u7684\u4F4D\u7F6E\uFF0C\u6BCF\u4E2A\u5907\u7528\u7801\u53EA\u80FD\u4F7F\u7528\u4E00\u6B21\u3002\u4FDD\u5B58\u540E\u91CD\u65B0\u767B\u5F55\u3002',\n loginBackupSaved: '\u6211\u5DF2\u4FDD\u5B58\uFF0C\u91CD\u65B0\u767B\u5F55',\n loginOptionalTitle: '\u4FDD\u62A4\u4F60\u7684\u8D26\u53F7',\n loginOptionalDescription:\n '\u5F53\u524D profile \u5141\u8BB8\u7A0D\u540E\u7ED1\u5B9A\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u3002\u73B0\u5728\u7ED1\u5B9A\u53EF\u4EE5\u589E\u52A0\u4FDD\u62A4\uFF1B\u8DF3\u8FC7\u540E\u4E5F\u53EF\u5728\u5B89\u5168\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u3002',\n loginOptionalBindNow: '\u73B0\u5728\u7ED1\u5B9A TOTP',\n loginOptionalSkip: '\u8DF3\u8FC7\uFF0C\u8FDB\u5165 DSH',\n loginOptionalVerifyTitle: '\u518D\u6B21\u9A8C\u8BC1\u540E\u7ED1\u5B9A',\n loginOptionalVerifyDescription: '\u4E3A\u4FDD\u62A4\u8D26\u53F7\uFF0C\u8BF7\u518D\u6B21\u8F93\u5165\u5F53\u524D\u5BC6\u7801\u3002',\n loginOptionalCurrentPassword: '\u5F53\u524D\u5BC6\u7801',\n loginOptionalStart: '\u5F00\u59CB\u7ED1\u5B9A',\n loginOptionalSkipLater: '\u7A0D\u540E\u7ED1\u5B9A\uFF0C\u8FDB\u5165 DSH',\n loginReasonExpired: '\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002',\n loginReasonUpdated: '\u5B89\u5168\u8BBE\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002',\n loginReasonSignedOut: '\u5DF2\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD\u3002',\n loginUnavailableTitle: '\u6682\u65F6\u65E0\u6CD5\u767B\u5F55',\n loginUnavailableDescription: '\u670D\u52A1\u72B6\u6001\u6682\u65F6\u65E0\u6CD5\u53D6\u5F97\uFF0C\u8BF7\u68C0\u67E5\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002',\n loginRetry: '\u91CD\u65B0\u68C0\u67E5',\n loginErrorInvalidCredentials: '\u7528\u6237\u540D\u6216\u5BC6\u7801\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u8BD5\u3002',\n loginErrorInvalidFactor: '\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801\u4E0D\u6B63\u786E\uFF1B\u8FDE\u7EED\u5931\u8D25 5 \u6B21\u540E\u9700\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002',\n loginErrorChallenge: '\u672C\u6B21\u9A8C\u8BC1\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u7528\u6237\u540D\u548C\u5BC6\u7801\u3002',\n loginErrorUninitialized: '\u8D26\u53F7\u5C1A\u672A\u521D\u59CB\u5316\uFF0C\u8BF7\u5148\u5728\u670D\u52A1\u5668\u7EC8\u7AEF\u8FD0\u884C\u521D\u59CB\u5316\u547D\u4EE4\u3002',\n\n settingsClose: '\u5173\u95ED',\n settingsCancel: '\u53D6\u6D88',\n settingsOverview: '\u8D26\u6237\u6982\u89C8',\n settingsUsername: 'DSH \u767B\u5F55\u7528\u6237\u540D',\n settingsCreatedAt: '\u672C\u6B21\u767B\u5F55\u65F6\u95F4',\n settingsExpiresAt: '\u5F53\u524D\u4F1A\u8BDD\u5230\u671F\u65F6\u95F4',\n settingsActiveSessions: '\u6709\u6548\u4F1A\u8BDD\u6570\u91CF',\n settingsTotpRequired: '\u914D\u7F6E\u8981\u6C42\u5F00\u542F TOTP\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002',\n settingsPasswordTitle: '\u5BC6\u7801',\n settingsSignOutCurrentDescription: '\u786E\u5B9A\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD\uFF1F\u5176\u4ED6\u4F1A\u8BDD\u5C06\u7EE7\u7EED\u4FDD\u6301\u767B\u5F55\u3002',\n\n settingsSectionLabel: '\u5B89\u5168\u4E0E\u767B\u5F55',\n settingsSectionAria: '\u5B89\u5168\u4E0E\u767B\u5F55\u8BBE\u7F6E',\n settingsTitle: '\u5B89\u5168\u4E0E\u767B\u5F55',\n settingsAccountSummary: '\u8D26\u53F7\uFF1A{username} \u00B7 TOTP\uFF1A{totp}',\n settingsTotpEnabled: '\u5DF2\u542F\u7528',\n settingsTotpNotBound: '\u672A\u7ED1\u5B9A',\n settingsLoading: '\u6B63\u5728\u8BFB\u53D6\u8D26\u53F7\u72B6\u6001\u2026',\n settingsChangePassword: '\u4FEE\u6539\u5BC6\u7801',\n settingsBindTotp: '\u5F00\u542F TOTP',\n settingsRebindTotp: '\u91CD\u65B0\u7ED1\u5B9A TOTP',\n settingsSessions: '\u4F1A\u8BDD\u7BA1\u7406',\n settingsPasswordMismatch: '\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4\u3002',\n settingsPasswordDescription: '\u5B8C\u6210\u540E\u6240\u6709\u8BBE\u5907\u90FD\u9700\u8981\u91CD\u65B0\u767B\u5F55\u3002',\n settingsCurrentPassword: '\u5F53\u524D\u5BC6\u7801',\n settingsCurrentCode: '\u5F53\u524D\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801',\n settingsNewPassword: '\u65B0\u5BC6\u7801',\n settingsConfirmPassword: '\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801',\n settingsSavePassword: '\u4FDD\u5B58\u65B0\u5BC6\u7801',\n settingsBindDescription: '\u8BF7\u8F93\u5165\u5F53\u524D\u51ED\u8BC1\uFF1B\u65B0\u7ED1\u5B9A\u5B8C\u6210\u540E\u6240\u6709\u8BBE\u5907\u90FD\u9700\u8981\u91CD\u65B0\u767B\u5F55\u3002',\n settingsStartBinding: '\u5F00\u59CB\u7ED1\u5B9A',\n settingsDisableTotp: '\u5173\u95ED TOTP',\n settingsDisableDescription: '\u5173\u95ED\u540E\u6240\u6709\u8BBE\u5907\u90FD\u9700\u8981\u91CD\u65B0\u767B\u5F55\u3002',\n settingsScanQr: '\u626B\u63CF\u4E8C\u7EF4\u7801',\n settingsQrAlt: '\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7ED1\u5B9A\u4E8C\u7EF4\u7801',\n settingsQrUnavailable: '\u4E8C\u7EF4\u7801\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u65B9\u624B\u5DE5\u5BC6\u94A5\u3002',\n settingsQrLoading: '\u4E8C\u7EF4\u7801\u751F\u6210\u4E2D\uFF1B\u4E5F\u53EF\u4EE5\u4F7F\u7528\u4E0B\u65B9\u624B\u5DE5\u5BC6\u94A5\u3002',\n settingsManualSecret: '\u624B\u5DE5\u5BC6\u94A5\uFF1A',\n settingsNewCode: '\u65B0\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7684 6 \u4F4D\u9A8C\u8BC1\u7801',\n settingsConfirmBinding: '\u786E\u8BA4\u7ED1\u5B9A',\n settingsRestartBinding: '\u91CD\u65B0\u5F00\u59CB',\n settingsSignOutCurrent: '\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD',\n settingsSignOutAll: '\u9000\u51FA\u6240\u6709\u4F1A\u8BDD',\n settingsSignOutAllDescription:\n '\u8BF7\u8F93\u5165\u5F53\u524D\u51ED\u8BC1\uFF1B\u63D0\u4EA4\u540E\u5305\u62EC\u5F53\u524D\u4F1A\u8BDD\u5728\u5185\u7684\u5168\u90E8\u4F1A\u8BDD\u548C\u957F\u8FDE\u63A5\u90FD\u4F1A\u5931\u6548\u3002',\n settingsOldBackupInvalid: '\u65E7\u5907\u7528\u7801\u5DF2\u5931\u6548\u3002',\n settingsCopyAll: '\u590D\u5236\u5168\u90E8',\n settingsBackupCopied: '\u5907\u7528\u7801\u5DF2\u590D\u5236\u3002',\n settingsBackupCopyFailed: '\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u9009\u4E2D\u5907\u7528\u7801\u624B\u52A8\u590D\u5236\u3002',\n\n settingsBackupTitle: '\u4FDD\u5B58\u5907\u7528\u7801',\n settingsBackupDescription:\n '\u8FD9\u4E9B\u5907\u7528\u7801\u53EA\u4F1A\u663E\u793A\u8FD9\u4E00\u6B21\u3002\u8BF7\u5B58\u653E\u5728\u5B89\u5168\u7684\u4F4D\u7F6E\uFF0C\u6BCF\u4E2A\u5907\u7528\u7801\u53EA\u80FD\u4F7F\u7528\u4E00\u6B21\u3002',\n settingsBackupSaved: '\u6211\u5DF2\u4FDD\u5B58\uFF0C\u91CD\u65B0\u767B\u5F55',\n settingsErrorInvalidCredentials: '\u5F53\u524D\u5BC6\u7801\u4E0D\u6B63\u786E\u3002',\n settingsErrorInvalidFactor: '\u5F53\u524D\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801\u4E0D\u6B63\u786E\u3002',\n settingsErrorInvalidInput: '\u8F93\u5165\u4E0D\u7B26\u5408\u8981\u6C42\uFF1B\u5BC6\u7801\u9700\u7B26\u5408\u670D\u52A1\u7AEF\u957F\u5EA6\u89C4\u5219\u3002',\n settingsErrorChallenge: '\u7ED1\u5B9A\u6311\u6218\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u7ED1\u5B9A\u3002',\n settingsErrorTotpRequired: '\u5F53\u524D profile \u8981\u6C42 TOTP\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002',\n\n cliHelp: `dsh-auth-remote {version}\n\n\u7528\u6CD5\uFF1A\n dsh plugin --profile web exec dsh-auth-remote [--lang en|zh] COMMAND\n\n\u547D\u4EE4\uFF1A\n init \u5728\u7EC8\u7AEF\u4EA4\u4E92\u521D\u59CB\u5316\u5355\u7528\u6237\u8D26\u53F7\n status [--json] \u67E5\u770B\u4E0D\u542B\u79D8\u5BC6\u7684\u8BA4\u8BC1\u72B6\u6001\n reset-password \u91CD\u7F6E\u5BC6\u7801\u5E76\u64A4\u9500\u5168\u90E8\u4F1A\u8BDD\n reset-totp \u6E05\u9664 TOTP\u3001\u5907\u7528\u7801\u53CA\u5168\u90E8\u4F1A\u8BDD\n revoke-sessions \u9000\u51FA\u6240\u6709\u8BBE\u5907\n\n\u9009\u9879\uFF1A\n --lang en|zh \u9009\u62E9\u4EBA\u7C7B\u53EF\u8BFB\u8F93\u51FA\u7684\u8BED\u8A00\n --help, -h \u663E\u793A\u5E2E\u52A9\n --version, -v \u663E\u793A\u5305\u7248\u672C\n\n\u547D\u4EE4\u4F7F\u7528 dsh plugin exec \u9009\u5B9A\u7684 profile \u548C\u8C03\u7528\u8005\u7684 DSH_HOME\u3002\n`,\n cliPromptUsername: '\u7528\u6237\u540D: ',\n cliPromptPassword: '\u5BC6\u7801: ',\n cliPromptPasswordAgain: '\u518D\u6B21\u8F93\u5165\u5BC6\u7801: ',\n cliPromptNewPassword: '\u65B0\u5BC6\u7801: ',\n cliPromptNewPasswordAgain: '\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801: ',\n cliPromptConfirmTarget: '\u8F93\u5165 {profile} \u4EE5\u786E\u8BA4 {command}: ',\n cliTargetProfile: '\u76EE\u6807 profile: {profile}',\n cliDataFile: '\u6570\u636E\u6587\u4EF6: {path}',\n cliStatusProfile: 'profile: {profile}',\n cliStatusAccount: '\u8D26\u53F7: {state}',\n cliStatusTotp: 'TOTP: {state}',\n cliStatusSessions: '\u6709\u6548\u4F1A\u8BDD: {count}',\n cliStatusService: '\u670D\u52A1: {state}',\n cliInitialized: '\u5DF2\u521D\u59CB\u5316',\n cliNotInitialized: '\u672A\u521D\u59CB\u5316',\n cliTotpEnabled: '\u5DF2\u542F\u7528',\n cliTotpDisabled: '\u672A\u542F\u7528',\n cliOnlineReady: '\u5728\u7EBF\u4E14\u5C31\u7EEA',\n cliOnlineNotReady: '\u5728\u7EBF\u4F46\u672A\u5C31\u7EEA',\n cliOffline: '\u79BB\u7EBF',\n cliCompleted: '{command} \u5DF2\u5B8C\u6210\uFF1B\u53D8\u66F4\u5DF2\u6301\u4E45\u5316\u5E76\u751F\u6548\u3002',\n cliErrorInvalidArguments: '\u547D\u4EE4\u6216\u53C2\u6570\u65E0\u6548\uFF0C\u8BF7\u4F7F\u7528 --help\u3002',\n cliErrorInvalidLanguage: '--lang \u7684\u503C\u65E0\u6548\uFF0C\u8BF7\u4F7F\u7528 en \u6216 zh\u3002',\n cliErrorDuplicateLanguage: '--lang \u53EA\u80FD\u6307\u5B9A\u4E00\u6B21\u3002',\n cliErrorMissingLanguage: '--lang \u7F3A\u5C11\u503C\uFF0C\u8BF7\u4F7F\u7528 en \u6216 zh\u3002',\n cliErrorPasswordsMismatch: '\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4\u3002',\n cliErrorConfirmationMismatch: '\u786E\u8BA4\u8F93\u5165\u4E0E\u76EE\u6807 profile \u4E0D\u4E00\u81F4\u3002',\n cliErrorPasswordLength: '\u5BC6\u7801\u987B\u5305\u542B 12\u2013256 \u4E2A Unicode \u5B57\u7B26\u3002',\n cliErrorTerminalRequired: '\u6B64\u64CD\u4F5C\u9700\u8981\u4EA4\u4E92\u7EC8\u7AEF\u3002',\n cliErrorTerminalClosed: '\u7EC8\u7AEF\u8F93\u5165\u5DF2\u5173\u95ED\u3002',\n cliErrorCancelled: '\u5DF2\u53D6\u6D88\u3002',\n cliErrorProfileDirectory: '\u5F53\u524D\u76EE\u5F55\u4E0D\u662F DSH_HOME \u4E0B\u9009\u5B9A\u7684 DSH profile\u3002',\n cliErrorProfileManifest: '\u7F3A\u5C11 profile \u7684 package.json\u3002',\n cliErrorUnsafeManagementDirectory: '\u7BA1\u7406\u76EE\u5F55\u6743\u9650\u4E0D\u5B89\u5168\u3002',\n cliErrorUnsafeManagementSocket: '\u7BA1\u7406 socket \u6743\u9650\u4E0D\u5B89\u5168\u3002',\n cliErrorManagementUnavailable: '\u7BA1\u7406 socket \u4E0D\u53EF\u7528\u3002',\n cliErrorOutcomeUnknown: '\u7BA1\u7406\u8BF7\u6C42\u5DF2\u65AD\u5F00\u6216\u8D85\u65F6\uFF0C\u7ED3\u679C\u672A\u77E5\uFF1B\u518D\u6B21\u64CD\u4F5C\u524D\u8BF7\u5148\u68C0\u67E5\u72B6\u6001\u3002',\n cliErrorOfflineLock: '\u670D\u52A1\u4ECD\u6301\u6709 profile \u9501\u4E14\u7BA1\u7406 socket \u4E0D\u53EF\u7528\uFF0C\u5DF2\u62D2\u7EDD\u79BB\u7EBF\u64CD\u4F5C\u3002',\n cliErrorInvalidCredentials: '\u5F53\u524D\u51ED\u8BC1\u4E0D\u6B63\u786E\u3002',\n cliErrorAlreadyInitialized: '\u8D26\u53F7\u5DF2\u521D\u59CB\u5316\u3002',\n cliErrorInvalidInput: '\u8F93\u5165\u65E0\u6548\u3002',\n cliErrorInvalidFactor: '\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801\u4E0D\u6B63\u786E\u3002',\n cliErrorUninitialized: '\u8D26\u53F7\u5C1A\u672A\u521D\u59CB\u5316\u3002',\n cliErrorTotpRequired: '\u6B64 profile \u8981\u6C42 TOTP\u3002',\n cliErrorConflict: '\u8D26\u53F7\u72B6\u6001\u5DF2\u53D8\u5316\uFF0C\u8BF7\u68C0\u67E5\u72B6\u6001\u540E\u91CD\u8BD5\u3002',\n cliErrorBusy: '\u670D\u52A1\u6B63\u5FD9\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002',\n cliErrorUnknown: '\u64CD\u4F5C\u5931\u8D25\uFF1B\u518D\u6B21\u64CD\u4F5C\u524D\u8BF7\u5148\u68C0\u67E5\u72B6\u6001\u3002',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "/* Inherit the host's live DSH theme. Scope every rule to this settings section.\n * Radius fallbacks match 0.1.7, before DSH published the shared radius tokens. */\n.auth-remote-security {\n min-width: 0;\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-security h2 {\n margin: 0 0 8px;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.auth-remote-security h3 {\n margin: 0 0 8px;\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n}\n\n.auth-remote-security p {\n margin: 0 0 16px;\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 4px 0 20px;\n}\n\n.auth-remote-security form {\n margin: 0;\n padding: 20px 0;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n}\n\n.auth-remote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-bottom: 16px;\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-field input {\n box-sizing: border-box;\n width: 100%;\n max-width: 420px;\n min-width: 0;\n height: 32px;\n padding: 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md, 8px);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-field input:focus {\n outline: none;\n border-color: var(--dsw-alias-state-business-primary);\n}\n\n.auth-remote-button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n max-width: 100%;\n padding: 6px 14px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-md, 18px);\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n cursor: pointer;\n}\n\n.auth-remote-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.auth-remote-button[aria-pressed='true'] {\n background: var(--dsw-alias-bg-module-platform);\n border-color: var(--dsw-static-neutral-bluish-400);\n}\n\n.auth-remote-primary {\n border-color: transparent;\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-foreground);\n}\n\n.auth-remote-primary:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n\n.auth-remote-button:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.auth-remote-button:focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 2px;\n}\n\n.auth-remote-restart {\n margin-left: 8px;\n}\n\n.auth-remote-security img {\n display: block;\n max-width: 100%;\n height: auto;\n margin: 16px 0;\n border-radius: var(--dsw-radius-md, 8px);\n}\n\n.auth-remote-security code,\n.auth-remote-backup-codes {\n font-family: var(--ds-font-family-code);\n overflow-wrap: anywhere;\n user-select: all;\n}\n\n.auth-remote-backup-codes {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px 24px;\n margin: 20px 0;\n padding: 16px 16px 16px 40px;\n border-radius: var(--dsw-radius-lg, 16px);\n background: var(--dsw-alias-bg-module-platform);\n}\n\n.auth-remote-security .auth-remote-error {\n margin: 12px 0 0;\n color: var(--dsw-alias-state-error-primary);\n}\n\n.auth-remote-error:empty {\n display: none;\n}\n\n.auth-remote-security .auth-remote-manual-setting {\n margin-block: 20px 16px;\n}\n.auth-remote-manual-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px 16px;\n}\n.auth-remote-manual-copy {\n flex: 1 1 180px;\n min-width: 0;\n}\n.auth-remote-security .auth-remote-manual-copy p {\n margin: 4px 0 0;\n}\n.auth-remote-switch {\n box-sizing: border-box;\n flex: 0 0 auto;\n width: 36px;\n height: 20px;\n margin-left: auto;\n padding: 2px;\n border: 0;\n border-radius: 999px;\n corner-shape: round;\n background: var(--dsw-alias-border-l3);\n cursor: pointer;\n}\n.auth-remote-switch > span {\n display: block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n corner-shape: round;\n background: var(--dsw-alias-switch-thumb, var(--dsw-alias-label-primary-foreground));\n transition: transform 120ms ease;\n}\n.auth-remote-switch[aria-checked='true'] {\n background: var(--dsw-alias-brand-primary);\n}\n.auth-remote-switch[aria-checked='true'] > span {\n transform: translateX(16px);\n background: var(--dsw-alias-label-primary-foreground);\n}\n.auth-remote-switch:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.auth-remote-switch:focus-visible,\n.auth-remote-policy-hint:focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 2px;\n}\n\n.auth-remote-overview {\n margin: 12px 0 20px;\n display: grid;\n gap: 8px;\n}\n.auth-remote-overview > div {\n display: grid;\n grid-template-columns: minmax(100px, 1fr) 2fr;\n gap: 16px;\n}\n.auth-remote-overview dt {\n min-height: 22px;\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-overview dd {\n min-height: 22px;\n margin: 0;\n overflow-wrap: anywhere;\n}\n.auth-remote-loading-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n.auth-remote-totp-status {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.auth-remote-policy-hint {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--dsw-alias-label-secondary);\n border-radius: 50%;\n cursor: help;\n}\n.auth-remote-operation-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 8px 12px;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n padding: 10px 0;\n}\n.auth-remote-security .auth-remote-operation-row h3 {\n margin: 0;\n}\n.auth-remote-operation-row .auth-remote-actions {\n padding: 0;\n justify-content: flex-end;\n}\n.auth-remote-operation-row .auth-remote-button {\n min-height: 32px;\n padding: 4px 10px;\n line-height: 22px;\n}\n.auth-remote-operation-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 20px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg, 16px);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n overflow: auto;\n}\n.auth-remote-operation-dialog::backdrop {\n background: rgba(0, 0, 0, 0.45);\n}\n.auth-remote-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n margin-bottom: 16px;\n}\n.auth-remote-dialog-header h2 {\n margin: 0;\n}\n.auth-remote-dialog-close {\n flex: none;\n width: 28px;\n min-height: 28px;\n padding: 0;\n border: 0;\n font-size: 20px;\n line-height: 20px;\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-dialog-actions {\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 20px;\n}\n.auth-remote-operation-dialog fieldset {\n border: 0;\n margin: 0;\n padding: 0;\n min-width: 0;\n}\n.auth-remote-operation-dialog form {\n border: 0;\n padding: 0;\n}\n@media (max-width: 600px) {\n .auth-remote-overview > div {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .auth-remote-switch > span {\n transition: none;\n }\n}\n", "/* Match DSH's account modal typography and shared control/surface tokens. */\n.auth-remote-account-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 0;\n overflow: hidden;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg, 16px);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n.auth-remote-account-dialog::backdrop {\n background: rgba(0, 0, 0, 0.45);\n}\n.auth-remote-account-dialog form {\n display: flex;\n flex-direction: column;\n max-height: inherit;\n margin: 0;\n}\n.auth-remote-account-header {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 20px 20px 16px;\n}\n.auth-remote-account-header h2 {\n margin: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n.auth-remote-account-dialog button {\n font: inherit;\n cursor: pointer;\n}\n.auth-remote-account-dialog .auth-remote-account-close {\n box-sizing: border-box;\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-md, 8px);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n font-size: 20px;\n line-height: 20px;\n}\n.auth-remote-account-close:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n.auth-remote-account-body {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-height: 0;\n padding: 0 20px;\n overflow-y: auto;\n}\n.auth-remote-account-steps,\n.auth-remote-account-hint,\n.auth-remote-account-reopen,\n.auth-remote-account-status,\n.auth-remote-account-error {\n margin: 0;\n font: inherit;\n}\n.auth-remote-account-hint,\n.auth-remote-account-status {\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-account-steps {\n padding-left: 20px;\n}\n.auth-remote-account-steps li + li {\n margin-top: 4px;\n}\n.auth-remote-account-callback,\n.auth-remote-account-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.auth-remote-account-field textarea {\n box-sizing: border-box;\n width: 100%;\n min-height: 72px;\n resize: vertical;\n padding: 8px 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md, 8px);\n background: var(--dsw-alias-bg-layer-1);\n color: inherit;\n font: inherit;\n overflow-wrap: anywhere;\n}\n.auth-remote-account-field textarea::placeholder {\n color: var(--dsw-alias-label-secondary);\n opacity: 1;\n}\n.auth-remote-account-field textarea:focus {\n border-color: var(--dsw-alias-state-business-primary);\n}\n.auth-remote-account-hint {\n font-size: 13px;\n line-height: 20px;\n}\n.auth-remote-account-dialog a {\n color: var(--dsw-alias-link);\n font-weight: 500;\n text-decoration: none;\n}\n.auth-remote-account-dialog a:hover,\n.auth-remote-account-dialog a:focus-visible {\n text-decoration: underline dotted;\n text-underline-offset: 3px;\n}\n.auth-remote-account-error {\n color: var(--dsw-alias-state-error-primary);\n}\n.auth-remote-account-status:empty,\n.auth-remote-account-error:empty {\n display: none;\n}\n.auth-remote-account-actions {\n display: flex;\n flex: none;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding: 16px 20px 20px;\n}\n.auth-remote-account-actions button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 72px;\n height: 36px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-md, 18px);\n padding: 0 14px;\n background: transparent;\n color: inherit;\n}\n.auth-remote-account-actions button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n.auth-remote-account-actions .auth-remote-account-primary {\n padding: 0 16px;\n background: var(--dsw-alias-button-primary-fill);\n border-color: transparent;\n color: var(--dsw-alias-label-primary-foreground);\n font-weight: 500;\n}\n.auth-remote-account-actions .auth-remote-account-primary:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n.auth-remote-account-dialog :disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n.auth-remote-account-dialog :focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));\n outline-offset: 2px;\n}\n@media (max-width: 480px) {\n .auth-remote-account-actions {\n flex-wrap: wrap;\n }\n .auth-remote-account-actions button {\n flex: 1;\n min-width: max-content;\n padding: 0 12px;\n white-space: nowrap;\n }\n}\n", "/** The manual callback is transported in an authenticated POST, never fetched. */\nexport const ACCOUNT_LOGIN_BASE = '/auth-remote/account'\nexport const ACCOUNT_CALLBACK_PATH = '/oauth/callback'\nexport const ACCOUNT_LOGIN_CAPABILITY = '__DSH_AUTH_REMOTE_MANUAL_ACCOUNT_LOGIN__'\n\nimport { satisfies } from 'semver'\n\n/** Forward admission is separate from the exact releases verified by tests. */\nexport function supportsManualAccountLogin(version: string): boolean {\n return satisfies(version, '>=0.2.1-alpha.3', { includePrerelease: true })\n}\n\nexport type AccountLoginPhase =\n | 'initializing'\n | 'waiting-browser'\n | 'exchanging'\n | 'committing'\n | 'succeeded'\n | 'failed'\n | 'expired'\n | 'cancelled'\n\nexport interface AccountLoginAttempt {\n id: string\n phase: AccountLoginPhase\n authorizeUrl?: string\n expiresAt?: number\n errorCode?: string\n}\n\nexport interface AccountLoginState {\n supported: boolean\n enabled: boolean\n status: 'signed-out' | 'credential-stored'\n attempt: AccountLoginAttempt | null\n}\n\nexport function isActiveAccountLogin(phase: AccountLoginPhase): boolean {\n return ['initializing', 'waiting-browser', 'exchanging', 'committing'].includes(phase)\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport type {\n ConfigForm,\n ConfigForms,\n SettingsDescribeView,\n SettingsDescribeFace,\n} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport { ACCOUNT_LOGIN_CAPABILITY } from '../../shared/account-login.js'\n\nexport interface ManualAccountPreferences {\n manualAccountLogin: boolean\n}\nexport interface ManualAccountBinding {\n form?: ConfigForm<ManualAccountPreferences>\n mirror?: SettingsDescribeFace\n refresh(): Promise<boolean>\n}\n\n/** All accepted values remain in the native form mirror and its revision queue. */\nexport function manualAccountBinding(ctx: Context): ManualAccountBinding {\n const forms = ctx.get('configForms') as ConfigForms | undefined\n const form = forms?.get<ManualAccountPreferences>('auth-remote')\n const mirror = forms?.describe()\n return {\n ...(form ? { form } : {}),\n ...(mirror ? { mirror } : {}),\n async refresh() {\n if (!mirror || !form) return false\n // A namespace fold cannot publish a document before the first successful\n // read. Let the native mirror recover that read through its own transport.\n if (!mirror.getSnapshot().view) {\n await mirror.ensure()\n return form.getSnapshot().status === 'ready'\n }\n const remote = ctx.get('remote') as\n | {\n settings?: { describe(): Promise<{ ok: boolean; value?: SettingsDescribeView }> }\n }\n | undefined\n const result = await remote?.settings?.describe()\n const view = result?.ok && result.value?.namespaces.find((view) => view.ns === 'auth-remote')\n if (!view) return false\n mirror.acceptView(view)\n return true\n },\n }\n}\n\nexport function hasManualAccountRuntime(): boolean {\n return (globalThis as Record<string, unknown>)[ACCOUNT_LOGIN_CAPABILITY] === true\n}\n", "import { useEffect, useRef, useState, useSyncExternalStore } from 'react'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { ConfigFormSnapshot } from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type { AccountLoginState } from '../../shared/account-login.js'\nimport {\n hasManualAccountRuntime,\n type ManualAccountBinding,\n type ManualAccountPreferences,\n} from '../account/config.js'\nimport { authRequest } from './api.js'\n\nconst unavailable: ConfigFormSnapshot<ManualAccountPreferences> = {\n status: 'unavailable',\n value: undefined,\n base: undefined,\n user: undefined,\n revision: undefined,\n writable: false,\n}\n\nexport function ManualAccountSetting({\n binding,\n t,\n clientAvailable,\n}: {\n binding: ManualAccountBinding\n t: TranslateNS<'auth-remote'>\n clientAvailable: boolean\n}): JSX.Element {\n const form = binding.form\n const snapshot = useSyncExternalStore(\n (listener) => form?.subscribe(listener) ?? (() => {}),\n () => form?.getSnapshot() ?? unavailable,\n )\n const mirrorError = useSyncExternalStore(\n (listener) => binding.mirror?.subscribe(listener) ?? (() => {}),\n () => binding.mirror?.getSnapshot().error ?? null,\n )\n const [supported, setSupported] = useState<boolean | undefined>(\n hasManualAccountRuntime() ? undefined : false,\n )\n const [pending, setPending] = useState<{ previous: boolean } | null>(null)\n const saving = useRef(false)\n const [failed, setFailed] = useState(false)\n const [known, setKnown] = useState(true)\n useEffect(() => {\n let live = true\n void authRequest<AccountLoginState>('/auth-remote/account/state').then(\n (value) => {\n if (live) setSupported(value.supported)\n },\n () => {\n if (live) setSupported(false)\n },\n )\n return () => {\n live = false\n }\n }, [])\n const ready =\n known && snapshot.status === 'ready' && typeof snapshot.value?.manualAccountLogin === 'boolean'\n const available = supported === true && clientAvailable\n async function save(value: boolean) {\n if (!form || !ready || saving.current) return\n saving.current = true\n setPending({ previous: snapshot.value!.manualAccountLogin })\n setFailed(false)\n try {\n if (!(await form.set('manualAccountLogin', value))) setFailed(true)\n } catch {\n setFailed(true)\n setKnown(false)\n try {\n setKnown(await binding.refresh())\n } catch {\n /* Retry can re-read the native configuration. */\n }\n } finally {\n saving.current = false\n setPending(null)\n }\n }\n return (\n <div className=\"auth-remote-manual-setting\">\n <h3>{t('settingsLoginConfiguration')}</h3>\n <div className=\"auth-remote-manual-row\">\n <div className=\"auth-remote-manual-copy\">\n <span id=\"auth-remote-manual-label\">{t('settingsManualAccountLogin')}</span>\n <p id=\"auth-remote-manual-description\">{t('settingsManualDescription')}</p>\n </div>\n {ready && (\n <button\n type=\"button\"\n role=\"switch\"\n className=\"auth-remote-switch\"\n aria-labelledby=\"auth-remote-manual-label\"\n aria-describedby=\"auth-remote-manual-description\"\n aria-checked={pending?.previous ?? snapshot.value!.manualAccountLogin}\n disabled={pending !== null || !snapshot.writable || !available}\n onClick={() => {\n void save(!snapshot.value!.manualAccountLogin)\n }}\n >\n <span aria-hidden=\"true\" />\n </button>\n )}\n </div>\n {!ready && (\n <p role=\"status\">\n {t(\n snapshot.status === 'loading' && !mirrorError\n ? 'settingsLoading'\n : 'settingsManualConfigUnavailable',\n )}\n </p>\n )}\n {(supported === false || !clientAvailable) && (\n <p role=\"status\">{t('settingsManualUnavailable')}</p>\n )}\n {pending && <p role=\"status\">{t('settingsSaving')}</p>}\n {failed && <p role=\"alert\">{t('settingsManualSaveFailed')}</p>}\n {(!known || !ready) && (\n <button\n className=\"auth-remote-button\"\n onClick={() => {\n void binding.refresh().then(\n (value) => {\n setKnown(value)\n setFailed(!value)\n },\n () => setFailed(true),\n )\n }}\n >\n {t('settingsRetry')}\n </button>\n )}\n </div>\n )\n}\n", "import { createElement, useEffect, useRef, useSyncExternalStore, type ComponentType } from 'react'\nimport type { Context } from '@deepseek-ai/cordis'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport { ManualSignInDialog } from './dialog.js'\nimport { hasManualAccountRuntime, manualAccountBinding } from './config.js'\n\ntype NativeProps = Record<string, unknown> & {\n complete?: () => void\n showLogin?: (visible: boolean) => void\n useApiKey?: () => void\n openOnboarding?: (id: string) => void\n start?: () => Promise<void>\n}\n\ninterface DialogOwner {\n complete?: () => void\n useApiKey?: () => void\n}\n\ninterface NativeEntry {\n component: ComponentType<NativeProps>\n options: { priority?: number }\n locale?: string\n inject?: (...args: never[]) => object\n}\n\n/** Narrow adapter for alpha.3's public slot inspection and shadowing APIs. */\ninterface AccountSlots {\n entries(name: string): readonly NativeEntry[]\n subscribe(name: string, callback: () => void): () => void\n inject(name: string, callback: () => () => void): void\n register(\n options: {\n name: string\n id?: string\n priority?: number\n locale?: string\n inject?: NativeEntry['inject']\n },\n component: ComponentType<NativeProps>,\n ): () => void\n}\n\nexport function hasManualAccountClient(ctx: Context, requireEntry = true): boolean {\n const slots = ctx.get('slots') as AccountSlots | undefined\n return (\n hasManualAccountRuntime() &&\n !!slots &&\n ['entries', 'subscribe', 'inject', 'register'].every(\n (key) => typeof slots[key as keyof AccountSlots] === 'function',\n ) &&\n (!requireEntry ||\n slots\n .entries('settings.launcher')\n .some((entry) => entry.locale === 'settings.account' && typeof entry.inject === 'function'))\n )\n}\n\nexport function installManualAccountLogin(ctx: Context): void {\n if (!hasManualAccountClient(ctx, false)) return\n const slots = ctx.get('slots') as AccountSlots\n const t = ctx.locale.bind('auth-remote')\n const locale = () => ctx.locale.getSnapshot().active\n let dialog: DialogOwner | undefined\n const listeners = new Set<() => void>()\n const completions = new Set<() => void>()\n const notify = () => {\n for (const listener of listeners) listener()\n }\n const show = (owner: DialogOwner = {}) => {\n if (owner.complete) completions.add(owner.complete)\n dialog = owner\n notify()\n }\n const close = () => {\n dialog = undefined\n const pending = [...completions]\n completions.clear()\n notify()\n for (const complete of pending) complete()\n }\n const useApiKey = () => {\n const action = dialog?.useApiKey\n if (!action) return\n dialog = undefined\n // Selecting credentials continues native onboarding; it must not complete it.\n completions.clear()\n notify()\n action()\n }\n const subscribe = (listener: () => void) => {\n listeners.add(listener)\n return () => {\n listeners.delete(listener)\n }\n }\n function AccountOverlay(): JSX.Element | null {\n const owner = useSyncExternalStore(subscribe, () => dialog)\n return owner ? (\n <ManualSignInDialog\n t={t as TranslateNS<'auth-remote'>}\n locale={locale}\n close={close}\n {...(owner.useApiKey ? { useApiKey } : {})}\n />\n ) : null\n }\n // The sidebar and onboarding can remount while initial workspace/settings\n // data settles. Keep the pending dialog in the stable frame overlay instead.\n slots.inject('shell.overlay', () =>\n slots.register(\n {\n name: 'shell.overlay',\n id: 'auth-remote.account-sign-in',\n locale: 'auth-remote',\n },\n AccountOverlay,\n ),\n )\n ctx.inject(['configForms'], (configCtx) => {\n const { form: nativeForm, mirror } = manualAccountBinding(configCtx)\n const form = nativeForm!\n const subscribePreference = (listener: () => void) => {\n const stopForm = form.subscribe(listener)\n const stopMirror = mirror?.subscribe(listener)\n return () => {\n stopForm()\n stopMirror?.()\n }\n }\n const preference = () => {\n const snapshot = form.getSnapshot()\n return snapshot.status === 'ready'\n ? snapshot.value?.manualAccountLogin === true\n : snapshot.status === 'unavailable' || mirror?.getSnapshot().error\n ? false\n : undefined\n }\n const wrappers = new WeakSet<object>()\n for (const name of ['settings.launcher', 'settings.models.sign-in']) {\n const activeSlots = configCtx.get('slots') as AccountSlots\n activeSlots.inject(name, () => {\n let current: NativeEntry | undefined\n let unregister: (() => void) | undefined\n const update = () => {\n const native = slots\n .entries(name)\n .find(\n (entry) =>\n entry.locale === 'settings.account' &&\n entry.inject !== undefined &&\n !wrappers.has(entry.component),\n )\n if (native === current) return\n current = native\n unregister?.()\n unregister = undefined\n if (!native) return\n const Native = native.component\n function ManualAccountEntry(props: NativeProps): JSX.Element | null {\n const latest = useRef(props)\n latest.current = props\n const enabled = useSyncExternalStore(subscribePreference, preference)\n // Keep an already open native or manual onboarding task in its original mode.\n const initialMode = useRef<boolean>()\n if (initialMode.current === undefined && enabled !== undefined)\n initialMode.current = enabled\n const manualOnboarding = initialMode.current\n useEffect(() => {\n if (name !== 'settings.launcher' && manualOnboarding === true) {\n const complete = () => {\n latest.current.showLogin?.(false)\n latest.current.complete?.()\n }\n const owner: DialogOwner = {\n complete,\n ...(latest.current.useApiKey\n ? {\n useApiKey: () => {\n latest.current.showLogin?.(false)\n latest.current.useApiKey?.()\n },\n }\n : {}),\n }\n show(owner)\n return () => {\n completions.delete(complete)\n if (dialog === owner && owner.useApiKey) {\n dialog = {}\n notify()\n }\n }\n }\n }, [manualOnboarding])\n return name === 'settings.launcher'\n ? createElement(Native, {\n ...props,\n start: async () => {\n // Loading is not an accepted false preference. Keep\n // this click pending on the shared native read, then\n // choose the route from the latest accepted value.\n if (preference() === undefined) await mirror?.ensure()\n const manual = preference()\n if (manual === undefined) return\n if (!manual) return latest.current.start?.()\n show(\n latest.current.openOnboarding\n ? {\n useApiKey: () => {\n latest.current.showLogin?.(false)\n latest.current.openOnboarding?.('deepseek-official')\n },\n }\n : {},\n )\n },\n })\n : manualOnboarding === false\n ? createElement(Native, props)\n : null\n }\n wrappers.add(ManualAccountEntry)\n unregister = slots.register(\n {\n name,\n priority: (native.options.priority ?? 0) - 100,\n // Framework still binds the native menu's translations and Hooks.\n ...(native.locale ? { locale: native.locale } : {}),\n inject: native.inject,\n },\n ManualAccountEntry,\n )\n }\n const stop = slots.subscribe(name, update)\n update()\n return () => {\n stop()\n unregister?.()\n }\n })\n }\n })\n}\n", "import { useEffect, useRef, useState, type FormEvent } from 'react'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport {\n ACCOUNT_LOGIN_BASE,\n isActiveAccountLogin,\n type AccountLoginState,\n} from '../../shared/account-login.js'\nimport type { MessageKey } from '../../shared/i18n.js'\nimport { authRequest, goToLogin, isUnauthorized, SettingsFailure } from '../settings/api.js'\n\nfunction failureMessage(error: unknown): MessageKey {\n if (!(error instanceof SettingsFailure)) return 'errorNetwork'\n switch (error.code) {\n case 'account_invalid_callback':\n return 'accountLoginInvalidCallback'\n case 'account_attempt_expired':\n return 'accountLoginExpired'\n case 'account_attempt_mismatch':\n return 'accountLoginMismatch'\n case 'account_busy':\n return 'accountLoginBusy'\n case 'account_disabled':\n return 'accountLoginDisabled'\n case 'account_unavailable':\n return 'accountLoginUnavailable'\n case 'account_exchange_failed':\n return 'accountLoginFailed'\n default:\n return 'errorServiceUnavailable'\n }\n}\n\nexport function ManualSignInDialog({\n t,\n locale,\n close,\n useApiKey,\n}: {\n t: TranslateNS<'auth-remote'>\n locale: () => string\n close: () => void\n useApiKey?: () => void\n}): JSX.Element {\n const dialog = useRef<HTMLDialogElement>(null)\n const popup = useRef<Window | null>(null)\n const navigated = useRef<string>()\n const latest = useRef<AccountLoginState>()\n const live = useRef(true)\n const revision = useRef(0)\n const onClose = useRef(close)\n onClose.current = close\n const [state, setState] = useState<AccountLoginState>()\n const [callbackUrl, setCallbackUrl] = useState('')\n const [busy, setBusy] = useState(false)\n const [message, setMessage] = useState<MessageKey>()\n const [blocked, setBlocked] = useState(false)\n\n const accept = (value: AccountLoginState) => {\n latest.current = value\n if (!live.current) return\n setState(value)\n if (value.status === 'credential-stored') {\n setCallbackUrl('')\n onClose.current()\n return\n }\n const attempt = value.attempt\n if (\n attempt?.authorizeUrl &&\n navigated.current !== attempt.id &&\n popup.current &&\n !popup.current.closed\n ) {\n const target = new URL(attempt.authorizeUrl)\n target.searchParams.set(\n 'theme',\n document.body.hasAttribute('data-ds-dark-theme') ? 'dark' : 'light',\n )\n popup.current.location.replace(target.href)\n navigated.current = attempt.id\n }\n }\n\n useEffect(() => {\n live.current = true\n dialog.current?.showModal()\n let timer: ReturnType<typeof setTimeout> | undefined\n const poll = async () => {\n const generation = revision.current\n try {\n const value = await authRequest<AccountLoginState>(`${ACCOUNT_LOGIN_BASE}/state`)\n if (generation === revision.current) accept(value)\n } catch (error) {\n if (isUnauthorized(error)) goToLogin()\n else if (live.current) setMessage(failureMessage(error))\n }\n if (live.current) timer = setTimeout(() => void poll(), 1000)\n }\n void poll()\n return () => {\n live.current = false\n clearTimeout(timer)\n popup.current?.close()\n const attempt = latest.current?.attempt\n if (attempt && isActiveAccountLogin(attempt.phase))\n void authRequest(`${ACCOUNT_LOGIN_BASE}/cancel`, { id: attempt.id }).catch(() => {})\n }\n }, [])\n\n const attempt = state?.attempt\n const phase = attempt?.phase\n const waiting = phase === 'waiting-browser'\n const pending = phase === 'initializing' || phase === 'exchanging' || phase === 'committing'\n const active = attempt && isActiveAccountLogin(attempt.phase)\n const statusMessage =\n phase === 'expired'\n ? 'accountLoginExpired'\n : phase === 'failed'\n ? attempt?.errorCode === 'no-response'\n ? 'accountLoginNoResponse'\n : 'accountLoginFailed'\n : undefined\n\n async function run(operation: () => Promise<void>): Promise<void> {\n if (busy) return\n setBusy(true)\n revision.current++\n setMessage(undefined)\n try {\n await operation()\n } catch (error) {\n if (isUnauthorized(error)) goToLogin()\n else if (live.current) setMessage(failureMessage(error))\n } finally {\n if (live.current) setBusy(false)\n }\n }\n\n function start(): void {\n // The only popup is opened by this explicit button click, before the POST.\n popup.current?.close()\n popup.current = window.open('about:blank', '_blank')\n if (popup.current) popup.current.opener = null\n setBlocked(popup.current === null)\n navigated.current = undefined\n setCallbackUrl('')\n void run(async () => {\n try {\n accept(\n await authRequest<AccountLoginState>(`${ACCOUNT_LOGIN_BASE}/start`, {\n locale: locale(),\n timezoneOffsetSeconds: -new Date().getTimezoneOffset() * 60,\n }),\n )\n } catch (error) {\n popup.current?.close()\n throw error\n }\n })\n }\n\n function dismiss(): void {\n if (busy || phase === 'committing') return\n void run(async () => {\n if (active) await authRequest(`${ACCOUNT_LOGIN_BASE}/cancel`, { id: attempt.id })\n setCallbackUrl('')\n onClose.current()\n })\n }\n\n function submit(event: FormEvent<HTMLFormElement>): void {\n event.preventDefault()\n if (!waiting || !attempt) return\n void run(async () => {\n accept(\n await authRequest<AccountLoginState>(`${ACCOUNT_LOGIN_BASE}/submit`, {\n id: attempt.id,\n callbackUrl,\n }),\n )\n })\n }\n\n return (\n <dialog\n ref={dialog}\n className=\"auth-remote-account-dialog\"\n aria-labelledby=\"auth-remote-account-title\"\n onCancel={(event) => {\n event.preventDefault()\n dismiss()\n }}\n >\n <form onSubmit={submit}>\n <div className=\"auth-remote-account-header\">\n <h2 id=\"auth-remote-account-title\">{t('accountLoginTitle')}</h2>\n <button\n type=\"button\"\n className=\"auth-remote-account-close\"\n aria-label={t('accountLoginClose')}\n disabled={busy || phase === 'committing'}\n onClick={dismiss}\n >\n \u00D7\n </button>\n </div>\n <div className=\"auth-remote-account-body\">\n {!active && (\n <ol className=\"auth-remote-account-steps\">\n <li>{t('accountLoginStepOpen')}</li>\n <li>{t('accountLoginStepCopy')}</li>\n </ol>\n )}\n <div className=\"auth-remote-account-callback\">\n <label className=\"auth-remote-account-field\">\n {t('accountLoginCallbackLabel')}\n <textarea\n rows={3}\n value={callbackUrl}\n onChange={(event) => setCallbackUrl(event.currentTarget.value)}\n placeholder=\"http://127.0.0.1:49183/oauth/callback?code=\u2026&state=\u2026\"\n autoComplete=\"off\"\n autoCapitalize=\"none\"\n spellCheck={false}\n maxLength={8192}\n disabled={!waiting || busy}\n required\n aria-describedby=\"auth-remote-account-hint\"\n />\n </label>\n <p id=\"auth-remote-account-hint\" className=\"auth-remote-account-hint\">\n {t('accountLoginCallbackHint')}\n </p>\n </div>\n {attempt?.authorizeUrl && waiting && (\n <p className=\"auth-remote-account-reopen\">\n {blocked && <span>{t('accountLoginPopupBlocked')} </span>}\n <a href={attempt.authorizeUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n {t('accountLoginReopen')}\n </a>\n </p>\n )}\n <p className=\"auth-remote-account-status\" role=\"status\" aria-live=\"polite\">\n {pending\n ? t(phase === 'initializing' ? 'accountLoginInitializing' : 'accountLoginExchanging')\n : waiting\n ? t('accountLoginWaiting')\n : ''}\n </p>\n <p className=\"auth-remote-account-error\" role=\"alert\">\n {state?.supported === false\n ? t('accountLoginUnavailable')\n : state?.enabled === false && !active\n ? t('accountLoginDisabled')\n : message || statusMessage\n ? t(message ?? statusMessage!)\n : ''}\n </p>\n </div>\n <div className=\"auth-remote-account-actions\">\n <button\n type=\"button\"\n disabled={busy || phase === 'committing'}\n onClick={active || !useApiKey ? dismiss : useApiKey}\n >\n {t(active || !useApiKey ? 'accountLoginCancel' : 'accountLoginUseApiKey')}\n </button>\n {active ? (\n <button\n type=\"submit\"\n className=\"auth-remote-account-primary\"\n disabled={busy || !waiting || !callbackUrl.trim()}\n >\n {t(\n busy || phase === 'exchanging' || phase === 'committing'\n ? 'accountLoginExchanging'\n : 'accountLoginConfirm',\n )}\n </button>\n ) : (\n <button\n type=\"button\"\n className=\"auth-remote-account-primary\"\n onClick={start}\n disabled={busy || !state?.supported}\n >\n {t(attempt ? 'accountLoginRetry' : 'accountLoginOpen')}\n </button>\n )}\n </div>\n </form>\n </dialog>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,oFAAAA,SAAA;AAAA;AAIA,IAAAA,QAAO,UAAU,WAAY;AAC3B,aAAO,OAAO,YAAY,cAAc,QAAQ,aAAa,QAAQ,UAAU;AAAA,IACjF;AAAA;AAAA;;;ACNA;AAAA;AAAA;AAAA,QAAI;AACJ,QAAM,kBAAkB;AAAA,MACtB;AAAA;AAAA,MACA;AAAA,MAAI;AAAA,MAAI;AAAA,MAAI;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAC1C;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAAK;AAAA,MAC7C;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MACtD;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,MAAM;AAAA,IACxD;AAQA,YAAQ,gBAAgB,SAAS,cAAe,SAAS;AACvD,UAAI,CAA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AA0B,GAAG;AAC7B,QAAM,QAAQ,IAAI,IAAI,OAAO;AAG7B,QAAM;AAAA,IAAO;AAAA,IAAoB,MAC/B,MAAM;AAAA,MACJ;AAAA,QACE,MAAM;AAAA,QACN,IAAI;AAAA,QACJ,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO,MAAM,EAAE,sBAAsB;AAAA,MACvC;AAAA,MACA,CAAC,cACC,6BAAc,iBAAiB;AAAA,QAC7B,GAAG;AAAA,QACH,QAAQ,IAAI,OAAO,YAAY,EAAE;AAAA,QACjC,0BAAsB,6BAAc,sBAAsB;AAAA,UACxD,SAAS,qBAAqB,GAAG;AAAA,UACjC;AAAA,UACA,iBAAiB,uBAAuB,GAAG;AAAA,QAC7C,CAAC;AAAA,MACH,CAAC;AAAA,IACL;AAAA,EACF;AACF;",
3
+ "sources": ["../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js", "../node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js", "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js", "../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js", "../src/client/index.ts", "../src/client/adapters/dsh.ts", "../src/client/settings/section.tsx", "../src/client/settings/navigation.ts", "../src/client/settings/api.ts", "../src/client/settings/dialog.tsx", "../src/client/settings/password-dialog.tsx", "../src/client/settings/credential-dialog.tsx", "../src/client/settings/totp-dialog.tsx", "../src/client/settings/monitor.ts", "../src/shared/locales/en.ts", "../src/shared/locales/zh.ts", "../src/shared/locales/ja.ts", "../src/shared/locales/es.ts", "../src/shared/locales/fr.ts", "../src/shared/locales/de.ts", "../src/shared/locales/ru.ts", "../src/shared/locales/pt.ts", "../src/shared/i18n.ts", "../src/client/settings/locale-memory.ts", "../src/client/settings/style.css", "../src/client/account/style.css", "../src/shared/account-login.ts", "../src/client/account/config.ts", "../src/client/settings/manual-account-setting.tsx", "../src/client/account/index.tsx", "../src/client/account/dialog.tsx"],
4
+ "sourcesContent": ["// can-promise has a crash in some versions of react native that dont have\n// standard global objects\n// https://github.com/soldair/node-qrcode/issues/157\n\nmodule.exports = function () {\n return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then\n}\n", "let toSJISFunction\nconst CODEWORDS_COUNT = [\n 0, // Not used\n 26, 44, 70, 100, 134, 172, 196, 242, 292, 346,\n 404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,\n 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,\n 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706\n]\n\n/**\n * Returns the QR Code size for the specified version\n *\n * @param {Number} version QR Code version\n * @return {Number} size of QR code\n */\nexports.getSymbolSize = function getSymbolSize (version) {\n if (!version) throw new Error('\"version\" cannot be null or undefined')\n if (version < 1 || version > 40) throw new Error('\"version\" should be in range from 1 to 40')\n return version * 4 + 17\n}\n\n/**\n * Returns the total number of codewords used to store data and EC information.\n *\n * @param {Number} version QR Code version\n * @return {Number} Data length in bits\n */\nexports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {\n return CODEWORDS_COUNT[version]\n}\n\n/**\n * Encode data with Bose-Chaudhuri-Hocquenghem\n *\n * @param {Number} data Value to encode\n * @return {Number} Encoded value\n */\nexports.getBCHDigit = function (data) {\n let digit = 0\n\n while (data !== 0) {\n digit++\n data >>>= 1\n }\n\n return digit\n}\n\nexports.setToSJISFunction = function setToSJISFunction (f) {\n if (typeof f !== 'function') {\n throw new Error('\"toSJISFunc\" is not a valid function.')\n }\n\n toSJISFunction = f\n}\n\nexports.isKanjiModeEnabled = function () {\n return typeof toSJISFunction !== 'undefined'\n}\n\nexports.toSJIS = function toSJIS (kanji) {\n return toSJISFunction(kanji)\n}\n", "exports.L = { bit: 1 }\nexports.M = { bit: 0 }\nexports.Q = { bit: 3 }\nexports.H = { bit: 2 }\n\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'l':\n case 'low':\n return exports.L\n\n case 'm':\n case 'medium':\n return exports.M\n\n case 'q':\n case 'quartile':\n return exports.Q\n\n case 'h':\n case 'high':\n return exports.H\n\n default:\n throw new Error('Unknown EC Level: ' + string)\n }\n}\n\nexports.isValid = function isValid (level) {\n return level && typeof level.bit !== 'undefined' &&\n level.bit >= 0 && level.bit < 4\n}\n\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n", "function BitBuffer () {\n this.buffer = []\n this.length = 0\n}\n\nBitBuffer.prototype = {\n\n get: function (index) {\n const bufIndex = Math.floor(index / 8)\n return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1\n },\n\n put: function (num, length) {\n for (let i = 0; i < length; i++) {\n this.putBit(((num >>> (length - i - 1)) & 1) === 1)\n }\n },\n\n getLengthInBits: function () {\n return this.length\n },\n\n putBit: function (bit) {\n const bufIndex = Math.floor(this.length / 8)\n if (this.buffer.length <= bufIndex) {\n this.buffer.push(0)\n }\n\n if (bit) {\n this.buffer[bufIndex] |= (0x80 >>> (this.length % 8))\n }\n\n this.length++\n }\n}\n\nmodule.exports = BitBuffer\n", "/**\n * Helper class to handle QR Code symbol modules\n *\n * @param {Number} size Symbol size\n */\nfunction BitMatrix (size) {\n if (!size || size < 1) {\n throw new Error('BitMatrix size must be defined and greater than 0')\n }\n\n this.size = size\n this.data = new Uint8Array(size * size)\n this.reservedBit = new Uint8Array(size * size)\n}\n\n/**\n * Set bit value at specified location\n * If reserved flag is set, this bit will be ignored during masking process\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n * @param {Boolean} reserved\n */\nBitMatrix.prototype.set = function (row, col, value, reserved) {\n const index = row * this.size + col\n this.data[index] = value\n if (reserved) this.reservedBit[index] = true\n}\n\n/**\n * Returns bit value at specified location\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.get = function (row, col) {\n return this.data[row * this.size + col]\n}\n\n/**\n * Applies xor operator at specified location\n * (used during masking process)\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n */\nBitMatrix.prototype.xor = function (row, col, value) {\n this.data[row * this.size + col] ^= value\n}\n\n/**\n * Check if bit at specified location is reserved\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.isReserved = function (row, col) {\n return this.reservedBit[row * this.size + col]\n}\n\nmodule.exports = BitMatrix\n", "/**\n * Alignment pattern are fixed reference pattern in defined positions\n * in a matrix symbology, which enables the decode software to re-synchronise\n * the coordinate mapping of the image modules in the event of moderate amounts\n * of distortion of the image.\n *\n * Alignment patterns are present only in QR Code symbols of version 2 or larger\n * and their number depends on the symbol version.\n */\n\nconst getSymbolSize = require('./utils').getSymbolSize\n\n/**\n * Calculate the row/column coordinates of the center module of each alignment pattern\n * for the specified QR Code version.\n *\n * The alignment patterns are positioned symmetrically on either side of the diagonal\n * running from the top left corner of the symbol to the bottom right corner.\n *\n * Since positions are simmetrical only half of the coordinates are returned.\n * Each item of the array will represent in turn the x and y coordinate.\n * @see {@link getPositions}\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinate\n */\nexports.getRowColCoords = function getRowColCoords (version) {\n if (version === 1) return []\n\n const posCount = Math.floor(version / 7) + 2\n const size = getSymbolSize(version)\n const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2\n const positions = [size - 7] // Last coord is always (size - 7)\n\n for (let i = 1; i < posCount - 1; i++) {\n positions[i] = positions[i - 1] - intervals\n }\n\n positions.push(6) // First coord is always 6\n\n return positions.reverse()\n}\n\n/**\n * Returns an array containing the positions of each alignment pattern.\n * Each array's element represent the center point of the pattern as (x, y) coordinates\n *\n * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}\n * and filtering out the items that overlaps with finder pattern\n *\n * @example\n * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.\n * The alignment patterns, therefore, are to be centered on (row, column)\n * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).\n * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns\n * and are not therefore used for alignment patterns.\n *\n * let pos = getPositions(7)\n * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const coords = []\n const pos = exports.getRowColCoords(version)\n const posLength = pos.length\n\n for (let i = 0; i < posLength; i++) {\n for (let j = 0; j < posLength; j++) {\n // Skip if position is occupied by finder patterns\n if ((i === 0 && j === 0) || // top-left\n (i === 0 && j === posLength - 1) || // bottom-left\n (i === posLength - 1 && j === 0)) { // top-right\n continue\n }\n\n coords.push([pos[i], pos[j]])\n }\n }\n\n return coords\n}\n", "const getSymbolSize = require('./utils').getSymbolSize\nconst FINDER_PATTERN_SIZE = 7\n\n/**\n * Returns an array containing the positions of each finder pattern.\n * Each array's element represent the top-left point of the pattern as (x, y) coordinates\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const size = getSymbolSize(version)\n\n return [\n // top-left\n [0, 0],\n // top-right\n [size - FINDER_PATTERN_SIZE, 0],\n // bottom-left\n [0, size - FINDER_PATTERN_SIZE]\n ]\n}\n", "/**\n * Data mask pattern reference\n * @type {Object}\n */\nexports.Patterns = {\n PATTERN000: 0,\n PATTERN001: 1,\n PATTERN010: 2,\n PATTERN011: 3,\n PATTERN100: 4,\n PATTERN101: 5,\n PATTERN110: 6,\n PATTERN111: 7\n}\n\n/**\n * Weighted penalty scores for the undesirable features\n * @type {Object}\n */\nconst PenaltyScores = {\n N1: 3,\n N2: 3,\n N3: 40,\n N4: 10\n}\n\n/**\n * Check if mask pattern value is valid\n *\n * @param {Number} mask Mask pattern\n * @return {Boolean} true if valid, false otherwise\n */\nexports.isValid = function isValid (mask) {\n return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7\n}\n\n/**\n * Returns mask pattern from a value.\n * If value is not valid, returns undefined\n *\n * @param {Number|String} value Mask pattern value\n * @return {Number} Valid mask pattern or undefined\n */\nexports.from = function from (value) {\n return exports.isValid(value) ? parseInt(value, 10) : undefined\n}\n\n/**\n* Find adjacent modules in row/column with the same color\n* and assign a penalty value.\n*\n* Points: N1 + i\n* i is the amount by which the number of adjacent modules of the same color exceeds 5\n*/\nexports.getPenaltyN1 = function getPenaltyN1 (data) {\n const size = data.size\n let points = 0\n let sameCountCol = 0\n let sameCountRow = 0\n let lastCol = null\n let lastRow = null\n\n for (let row = 0; row < size; row++) {\n sameCountCol = sameCountRow = 0\n lastCol = lastRow = null\n\n for (let col = 0; col < size; col++) {\n let module = data.get(row, col)\n if (module === lastCol) {\n sameCountCol++\n } else {\n if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)\n lastCol = module\n sameCountCol = 1\n }\n\n module = data.get(col, row)\n if (module === lastRow) {\n sameCountRow++\n } else {\n if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)\n lastRow = module\n sameCountRow = 1\n }\n }\n\n if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)\n if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)\n }\n\n return points\n}\n\n/**\n * Find 2x2 blocks with the same color and assign a penalty value\n *\n * Points: N2 * (m - 1) * (n - 1)\n */\nexports.getPenaltyN2 = function getPenaltyN2 (data) {\n const size = data.size\n let points = 0\n\n for (let row = 0; row < size - 1; row++) {\n for (let col = 0; col < size - 1; col++) {\n const last = data.get(row, col) +\n data.get(row, col + 1) +\n data.get(row + 1, col) +\n data.get(row + 1, col + 1)\n\n if (last === 4 || last === 0) points++\n }\n }\n\n return points * PenaltyScores.N2\n}\n\n/**\n * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,\n * preceded or followed by light area 4 modules wide\n *\n * Points: N3 * number of pattern found\n */\nexports.getPenaltyN3 = function getPenaltyN3 (data) {\n const size = data.size\n let points = 0\n let bitsCol = 0\n let bitsRow = 0\n\n for (let row = 0; row < size; row++) {\n bitsCol = bitsRow = 0\n for (let col = 0; col < size; col++) {\n bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col)\n if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++\n\n bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row)\n if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++\n }\n }\n\n return points * PenaltyScores.N3\n}\n\n/**\n * Calculate proportion of dark modules in entire symbol\n *\n * Points: N4 * k\n *\n * k is the rating of the deviation of the proportion of dark modules\n * in the symbol from 50% in steps of 5%\n */\nexports.getPenaltyN4 = function getPenaltyN4 (data) {\n let darkCount = 0\n const modulesCount = data.data.length\n\n for (let i = 0; i < modulesCount; i++) darkCount += data.data[i]\n\n const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10)\n\n return k * PenaltyScores.N4\n}\n\n/**\n * Return mask value at given position\n *\n * @param {Number} maskPattern Pattern reference value\n * @param {Number} i Row\n * @param {Number} j Column\n * @return {Boolean} Mask value\n */\nfunction getMaskAt (maskPattern, i, j) {\n switch (maskPattern) {\n case exports.Patterns.PATTERN000: return (i + j) % 2 === 0\n case exports.Patterns.PATTERN001: return i % 2 === 0\n case exports.Patterns.PATTERN010: return j % 3 === 0\n case exports.Patterns.PATTERN011: return (i + j) % 3 === 0\n case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0\n case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0\n case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0\n case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0\n\n default: throw new Error('bad maskPattern:' + maskPattern)\n }\n}\n\n/**\n * Apply a mask pattern to a BitMatrix\n *\n * @param {Number} pattern Pattern reference number\n * @param {BitMatrix} data BitMatrix data\n */\nexports.applyMask = function applyMask (pattern, data) {\n const size = data.size\n\n for (let col = 0; col < size; col++) {\n for (let row = 0; row < size; row++) {\n if (data.isReserved(row, col)) continue\n data.xor(row, col, getMaskAt(pattern, row, col))\n }\n }\n}\n\n/**\n * Returns the best mask pattern for data\n *\n * @param {BitMatrix} data\n * @return {Number} Mask pattern reference number\n */\nexports.getBestMask = function getBestMask (data, setupFormatFunc) {\n const numPatterns = Object.keys(exports.Patterns).length\n let bestPattern = 0\n let lowerPenalty = Infinity\n\n for (let p = 0; p < numPatterns; p++) {\n setupFormatFunc(p)\n exports.applyMask(p, data)\n\n // Calculate penalty\n const penalty =\n exports.getPenaltyN1(data) +\n exports.getPenaltyN2(data) +\n exports.getPenaltyN3(data) +\n exports.getPenaltyN4(data)\n\n // Undo previously applied mask\n exports.applyMask(p, data)\n\n if (penalty < lowerPenalty) {\n lowerPenalty = penalty\n bestPattern = p\n }\n }\n\n return bestPattern\n}\n", "const ECLevel = require('./error-correction-level')\r\n\r\nconst EC_BLOCKS_TABLE = [\r\n// L M Q H\r\n 1, 1, 1, 1,\r\n 1, 1, 1, 1,\r\n 1, 1, 2, 2,\r\n 1, 2, 2, 4,\r\n 1, 2, 4, 4,\r\n 2, 4, 4, 4,\r\n 2, 4, 6, 5,\r\n 2, 4, 6, 6,\r\n 2, 5, 8, 8,\r\n 4, 5, 8, 8,\r\n 4, 5, 8, 11,\r\n 4, 8, 10, 11,\r\n 4, 9, 12, 16,\r\n 4, 9, 16, 16,\r\n 6, 10, 12, 18,\r\n 6, 10, 17, 16,\r\n 6, 11, 16, 19,\r\n 6, 13, 18, 21,\r\n 7, 14, 21, 25,\r\n 8, 16, 20, 25,\r\n 8, 17, 23, 25,\r\n 9, 17, 23, 34,\r\n 9, 18, 25, 30,\r\n 10, 20, 27, 32,\r\n 12, 21, 29, 35,\r\n 12, 23, 34, 37,\r\n 12, 25, 34, 40,\r\n 13, 26, 35, 42,\r\n 14, 28, 38, 45,\r\n 15, 29, 40, 48,\r\n 16, 31, 43, 51,\r\n 17, 33, 45, 54,\r\n 18, 35, 48, 57,\r\n 19, 37, 51, 60,\r\n 19, 38, 53, 63,\r\n 20, 40, 56, 66,\r\n 21, 43, 59, 70,\r\n 22, 45, 62, 74,\r\n 24, 47, 65, 77,\r\n 25, 49, 68, 81\r\n]\r\n\r\nconst EC_CODEWORDS_TABLE = [\r\n// L M Q H\r\n 7, 10, 13, 17,\r\n 10, 16, 22, 28,\r\n 15, 26, 36, 44,\r\n 20, 36, 52, 64,\r\n 26, 48, 72, 88,\r\n 36, 64, 96, 112,\r\n 40, 72, 108, 130,\r\n 48, 88, 132, 156,\r\n 60, 110, 160, 192,\r\n 72, 130, 192, 224,\r\n 80, 150, 224, 264,\r\n 96, 176, 260, 308,\r\n 104, 198, 288, 352,\r\n 120, 216, 320, 384,\r\n 132, 240, 360, 432,\r\n 144, 280, 408, 480,\r\n 168, 308, 448, 532,\r\n 180, 338, 504, 588,\r\n 196, 364, 546, 650,\r\n 224, 416, 600, 700,\r\n 224, 442, 644, 750,\r\n 252, 476, 690, 816,\r\n 270, 504, 750, 900,\r\n 300, 560, 810, 960,\r\n 312, 588, 870, 1050,\r\n 336, 644, 952, 1110,\r\n 360, 700, 1020, 1200,\r\n 390, 728, 1050, 1260,\r\n 420, 784, 1140, 1350,\r\n 450, 812, 1200, 1440,\r\n 480, 868, 1290, 1530,\r\n 510, 924, 1350, 1620,\r\n 540, 980, 1440, 1710,\r\n 570, 1036, 1530, 1800,\r\n 570, 1064, 1590, 1890,\r\n 600, 1120, 1680, 1980,\r\n 630, 1204, 1770, 2100,\r\n 660, 1260, 1860, 2220,\r\n 720, 1316, 1950, 2310,\r\n 750, 1372, 2040, 2430\r\n]\r\n\r\n/**\r\n * Returns the number of error correction block that the QR Code should contain\r\n * for the specified version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction blocks\r\n */\r\nexports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n\r\n/**\r\n * Returns the number of error correction codewords to use for the specified\r\n * version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction codewords\r\n */\r\nexports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n", "const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n", "const GF = require('./galois-field')\n\n/**\n * Multiplies two polynomials inside Galois Field\n *\n * @param {Uint8Array} p1 Polynomial\n * @param {Uint8Array} p2 Polynomial\n * @return {Uint8Array} Product of p1 and p2\n */\nexports.mul = function mul (p1, p2) {\n const coeff = new Uint8Array(p1.length + p2.length - 1)\n\n for (let i = 0; i < p1.length; i++) {\n for (let j = 0; j < p2.length; j++) {\n coeff[i + j] ^= GF.mul(p1[i], p2[j])\n }\n }\n\n return coeff\n}\n\n/**\n * Calculate the remainder of polynomials division\n *\n * @param {Uint8Array} divident Polynomial\n * @param {Uint8Array} divisor Polynomial\n * @return {Uint8Array} Remainder\n */\nexports.mod = function mod (divident, divisor) {\n let result = new Uint8Array(divident)\n\n while ((result.length - divisor.length) >= 0) {\n const coeff = result[0]\n\n for (let i = 0; i < divisor.length; i++) {\n result[i] ^= GF.mul(divisor[i], coeff)\n }\n\n // remove all zeros from buffer head\n let offset = 0\n while (offset < result.length && result[offset] === 0) offset++\n result = result.slice(offset)\n }\n\n return result\n}\n\n/**\n * Generate an irreducible generator polynomial of specified degree\n * (used by Reed-Solomon encoder)\n *\n * @param {Number} degree Degree of the generator polynomial\n * @return {Uint8Array} Buffer containing polynomial coefficients\n */\nexports.generateECPolynomial = function generateECPolynomial (degree) {\n let poly = new Uint8Array([1])\n for (let i = 0; i < degree; i++) {\n poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]))\n }\n\n return poly\n}\n", "const Polynomial = require('./polynomial')\n\nfunction ReedSolomonEncoder (degree) {\n this.genPoly = undefined\n this.degree = degree\n\n if (this.degree) this.initialize(this.degree)\n}\n\n/**\n * Initialize the encoder.\n * The input param should correspond to the number of error correction codewords.\n *\n * @param {Number} degree\n */\nReedSolomonEncoder.prototype.initialize = function initialize (degree) {\n // create an irreducible generator polynomial\n this.degree = degree\n this.genPoly = Polynomial.generateECPolynomial(this.degree)\n}\n\n/**\n * Encodes a chunk of data\n *\n * @param {Uint8Array} data Buffer containing input data\n * @return {Uint8Array} Buffer containing encoded data\n */\nReedSolomonEncoder.prototype.encode = function encode (data) {\n if (!this.genPoly) {\n throw new Error('Encoder not initialized')\n }\n\n // Calculate EC for this data block\n // extends data size to data+genPoly size\n const paddedData = new Uint8Array(data.length + this.degree)\n paddedData.set(data)\n\n // The error correction codewords are the remainder after dividing the data codewords\n // by a generator polynomial\n const remainder = Polynomial.mod(paddedData, this.genPoly)\n\n // return EC data blocks (last n byte, where n is the degree of genPoly)\n // If coefficients number in remainder are less than genPoly degree,\n // pad with 0s to the left to reach the needed number of coefficients\n const start = this.degree - remainder.length\n if (start > 0) {\n const buff = new Uint8Array(this.degree)\n buff.set(remainder, start)\n\n return buff\n }\n\n return remainder\n}\n\nmodule.exports = ReedSolomonEncoder\n", "/**\n * Check if QR Code version is valid\n *\n * @param {Number} version QR Code version\n * @return {Boolean} true if valid version, false otherwise\n */\nexports.isValid = function isValid (version) {\n return !isNaN(version) && version >= 1 && version <= 40\n}\n", "const numeric = '[0-9]+'\nconst alphanumeric = '[A-Z $%*+\\\\-./:]+'\nlet kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +\n '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +\n '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +\n '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'\nkanji = kanji.replace(/u/g, '\\\\u')\n\nconst byte = '(?:(?![A-Z0-9 $%*+\\\\-./:]|' + kanji + ')(?:.|[\\r\\n]))+'\n\nexports.KANJI = new RegExp(kanji, 'g')\nexports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\\\-./:]+', 'g')\nexports.BYTE = new RegExp(byte, 'g')\nexports.NUMERIC = new RegExp(numeric, 'g')\nexports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')\n\nconst TEST_KANJI = new RegExp('^' + kanji + '$')\nconst TEST_NUMERIC = new RegExp('^' + numeric + '$')\nconst TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\\\-./:]+$')\n\nexports.testKanji = function testKanji (str) {\n return TEST_KANJI.test(str)\n}\n\nexports.testNumeric = function testNumeric (str) {\n return TEST_NUMERIC.test(str)\n}\n\nexports.testAlphanumeric = function testAlphanumeric (str) {\n return TEST_ALPHANUMERIC.test(str)\n}\n", "const VersionCheck = require('./version-check')\nconst Regex = require('./regex')\n\n/**\n * Numeric mode encodes data from the decimal digit set (0 - 9)\n * (byte values 30HEX to 39HEX).\n * Normally, 3 data characters are represented by 10 bits.\n *\n * @type {Object}\n */\nexports.NUMERIC = {\n id: 'Numeric',\n bit: 1 << 0,\n ccBits: [10, 12, 14]\n}\n\n/**\n * Alphanumeric mode encodes data from a set of 45 characters,\n * i.e. 10 numeric digits (0 - 9),\n * 26 alphabetic characters (A - Z),\n * and 9 symbols (SP, $, %, *, +, -, ., /, :).\n * Normally, two input characters are represented by 11 bits.\n *\n * @type {Object}\n */\nexports.ALPHANUMERIC = {\n id: 'Alphanumeric',\n bit: 1 << 1,\n ccBits: [9, 11, 13]\n}\n\n/**\n * In byte mode, data is encoded at 8 bits per character.\n *\n * @type {Object}\n */\nexports.BYTE = {\n id: 'Byte',\n bit: 1 << 2,\n ccBits: [8, 16, 16]\n}\n\n/**\n * The Kanji mode efficiently encodes Kanji characters in accordance with\n * the Shift JIS system based on JIS X 0208.\n * The Shift JIS values are shifted from the JIS X 0208 values.\n * JIS X 0208 gives details of the shift coded representation.\n * Each two-byte character value is compacted to a 13-bit binary codeword.\n *\n * @type {Object}\n */\nexports.KANJI = {\n id: 'Kanji',\n bit: 1 << 3,\n ccBits: [8, 10, 12]\n}\n\n/**\n * Mixed mode will contain a sequences of data in a combination of any of\n * the modes described above\n *\n * @type {Object}\n */\nexports.MIXED = {\n bit: -1\n}\n\n/**\n * Returns the number of bits needed to store the data length\n * according to QR Code specifications.\n *\n * @param {Mode} mode Data mode\n * @param {Number} version QR Code version\n * @return {Number} Number of bits\n */\nexports.getCharCountIndicator = function getCharCountIndicator (mode, version) {\n if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)\n\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid version: ' + version)\n }\n\n if (version >= 1 && version < 10) return mode.ccBits[0]\n else if (version < 27) return mode.ccBits[1]\n return mode.ccBits[2]\n}\n\n/**\n * Returns the most efficient mode to store the specified data\n *\n * @param {String} dataStr Input data string\n * @return {Mode} Best mode\n */\nexports.getBestModeForData = function getBestModeForData (dataStr) {\n if (Regex.testNumeric(dataStr)) return exports.NUMERIC\n else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC\n else if (Regex.testKanji(dataStr)) return exports.KANJI\n else return exports.BYTE\n}\n\n/**\n * Return mode name as string\n *\n * @param {Mode} mode Mode object\n * @returns {String} Mode name\n */\nexports.toString = function toString (mode) {\n if (mode && mode.id) return mode.id\n throw new Error('Invalid mode')\n}\n\n/**\n * Check if input param is a valid mode object\n *\n * @param {Mode} mode Mode object\n * @returns {Boolean} True if valid mode, false otherwise\n */\nexports.isValid = function isValid (mode) {\n return mode && mode.bit && mode.ccBits\n}\n\n/**\n * Get mode object from its name\n *\n * @param {String} string Mode name\n * @returns {Mode} Mode object\n */\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'numeric':\n return exports.NUMERIC\n case 'alphanumeric':\n return exports.ALPHANUMERIC\n case 'kanji':\n return exports.KANJI\n case 'byte':\n return exports.BYTE\n default:\n throw new Error('Unknown mode: ' + string)\n }\n}\n\n/**\n * Returns mode from a value.\n * If value is not a valid mode, returns defaultValue\n *\n * @param {Mode|String} value Encoding mode\n * @param {Mode} defaultValue Fallback value\n * @return {Mode} Encoding mode\n */\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n", "const Utils = require('./utils')\nconst ECCode = require('./error-correction-code')\nconst ECLevel = require('./error-correction-level')\nconst Mode = require('./mode')\nconst VersionCheck = require('./version-check')\n\n// Generator polynomial used to encode version information\nconst G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)\nconst G18_BCH = Utils.getBCHDigit(G18)\n\nfunction getBestVersionForDataLength (mode, length, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\nfunction getReservedBitsCount (mode, version) {\n // Character count indicator + mode indicator bits\n return Mode.getCharCountIndicator(mode, version) + 4\n}\n\nfunction getTotalBitsFromDataArray (segments, version) {\n let totalBits = 0\n\n segments.forEach(function (data) {\n const reservedBits = getReservedBitsCount(data.mode, version)\n totalBits += reservedBits + data.getBitsLength()\n })\n\n return totalBits\n}\n\nfunction getBestVersionForMixedData (segments, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n const length = getTotalBitsFromDataArray(segments, currentVersion)\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\n/**\n * Returns version number from a value.\n * If value is not a valid version, returns defaultValue\n *\n * @param {Number|String} value QR Code version\n * @param {Number} defaultValue Fallback value\n * @return {Number} QR Code version number\n */\nexports.from = function from (value, defaultValue) {\n if (VersionCheck.isValid(value)) {\n return parseInt(value, 10)\n }\n\n return defaultValue\n}\n\n/**\n * Returns how much data can be stored with the specified QR code version\n * and error correction level\n *\n * @param {Number} version QR Code version (1-40)\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} Quantity of storable data\n */\nexports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid QR Code version')\n }\n\n // Use Byte mode as default\n if (typeof mode === 'undefined') mode = Mode.BYTE\n\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n if (mode === Mode.MIXED) return dataTotalCodewordsBits\n\n const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)\n\n // Return max number of storable codewords\n switch (mode) {\n case Mode.NUMERIC:\n return Math.floor((usableBits / 10) * 3)\n\n case Mode.ALPHANUMERIC:\n return Math.floor((usableBits / 11) * 2)\n\n case Mode.KANJI:\n return Math.floor(usableBits / 13)\n\n case Mode.BYTE:\n default:\n return Math.floor(usableBits / 8)\n }\n}\n\n/**\n * Returns the minimum version needed to contain the amount of data\n *\n * @param {Segment} data Segment of data\n * @param {Number} [errorCorrectionLevel=H] Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} QR Code version\n */\nexports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {\n let seg\n\n const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)\n\n if (Array.isArray(data)) {\n if (data.length > 1) {\n return getBestVersionForMixedData(data, ecl)\n }\n\n if (data.length === 0) {\n return 1\n }\n\n seg = data[0]\n } else {\n seg = data\n }\n\n return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)\n}\n\n/**\n * Returns version information with relative error correction bits\n *\n * The version information is included in QR Code symbols of version 7 or larger.\n * It consists of an 18-bit sequence containing 6 data bits,\n * with 12 error correction bits calculated using the (18, 6) Golay code.\n *\n * @param {Number} version QR Code version\n * @return {Number} Encoded version info bits\n */\nexports.getEncodedBits = function getEncodedBits (version) {\n if (!VersionCheck.isValid(version) || version < 7) {\n throw new Error('Invalid QR Code version')\n }\n\n let d = version << 12\n\n while (Utils.getBCHDigit(d) - G18_BCH >= 0) {\n d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))\n }\n\n return (version << 12) | d\n}\n", "const Utils = require('./utils')\n\nconst G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)\nconst G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)\nconst G15_BCH = Utils.getBCHDigit(G15)\n\n/**\n * Returns format information with relative error correction bits\n *\n * The format information is a 15-bit sequence containing 5 data bits,\n * with 10 error correction bits calculated using the (15, 5) BCH code.\n *\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Number} mask Mask pattern\n * @return {Number} Encoded format information bits\n */\nexports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {\n const data = ((errorCorrectionLevel.bit << 3) | mask)\n let d = data << 10\n\n while (Utils.getBCHDigit(d) - G15_BCH >= 0) {\n d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))\n }\n\n // xor final data with mask pattern in order to ensure that\n // no combination of Error Correction Level and data mask pattern\n // will result in an all-zero data string\n return ((data << 10) | d) ^ G15_MASK\n}\n", "const Mode = require('./mode')\n\nfunction NumericData (data) {\n this.mode = Mode.NUMERIC\n this.data = data.toString()\n}\n\nNumericData.getBitsLength = function getBitsLength (length) {\n return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)\n}\n\nNumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nNumericData.prototype.getBitsLength = function getBitsLength () {\n return NumericData.getBitsLength(this.data.length)\n}\n\nNumericData.prototype.write = function write (bitBuffer) {\n let i, group, value\n\n // The input data string is divided into groups of three digits,\n // and each group is converted to its 10-bit binary equivalent.\n for (i = 0; i + 3 <= this.data.length; i += 3) {\n group = this.data.substr(i, 3)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, 10)\n }\n\n // If the number of input digits is not an exact multiple of three,\n // the final one or two digits are converted to 4 or 7 bits respectively.\n const remainingNum = this.data.length - i\n if (remainingNum > 0) {\n group = this.data.substr(i)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, remainingNum * 3 + 1)\n }\n}\n\nmodule.exports = NumericData\n", "const Mode = require('./mode')\n\n/**\n * Array of characters available in alphanumeric mode\n *\n * As per QR Code specification, to each character\n * is assigned a value from 0 to 44 which in this case coincides\n * with the array index\n *\n * @type {Array}\n */\nconst ALPHA_NUM_CHARS = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',\n 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',\n ' ', '$', '%', '*', '+', '-', '.', '/', ':'\n]\n\nfunction AlphanumericData (data) {\n this.mode = Mode.ALPHANUMERIC\n this.data = data\n}\n\nAlphanumericData.getBitsLength = function getBitsLength (length) {\n return 11 * Math.floor(length / 2) + 6 * (length % 2)\n}\n\nAlphanumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nAlphanumericData.prototype.getBitsLength = function getBitsLength () {\n return AlphanumericData.getBitsLength(this.data.length)\n}\n\nAlphanumericData.prototype.write = function write (bitBuffer) {\n let i\n\n // Input data characters are divided into groups of two characters\n // and encoded as 11-bit binary codes.\n for (i = 0; i + 2 <= this.data.length; i += 2) {\n // The character value of the first character is multiplied by 45\n let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45\n\n // The character value of the second digit is added to the product\n value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])\n\n // The sum is then stored as 11-bit binary number\n bitBuffer.put(value, 11)\n }\n\n // If the number of input data characters is not a multiple of two,\n // the character value of the final character is encoded as a 6-bit binary number.\n if (this.data.length % 2) {\n bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)\n }\n}\n\nmodule.exports = AlphanumericData\n", "const Mode = require('./mode')\n\nfunction ByteData (data) {\n this.mode = Mode.BYTE\n if (typeof (data) === 'string') {\n this.data = new TextEncoder().encode(data)\n } else {\n this.data = new Uint8Array(data)\n }\n}\n\nByteData.getBitsLength = function getBitsLength (length) {\n return length * 8\n}\n\nByteData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nByteData.prototype.getBitsLength = function getBitsLength () {\n return ByteData.getBitsLength(this.data.length)\n}\n\nByteData.prototype.write = function (bitBuffer) {\n for (let i = 0, l = this.data.length; i < l; i++) {\n bitBuffer.put(this.data[i], 8)\n }\n}\n\nmodule.exports = ByteData\n", "const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n", "'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n", "const Mode = require('./mode')\nconst NumericData = require('./numeric-data')\nconst AlphanumericData = require('./alphanumeric-data')\nconst ByteData = require('./byte-data')\nconst KanjiData = require('./kanji-data')\nconst Regex = require('./regex')\nconst Utils = require('./utils')\nconst dijkstra = require('dijkstrajs')\n\n/**\n * Returns UTF8 byte length\n *\n * @param {String} str Input string\n * @return {Number} Number of byte\n */\nfunction getStringByteLength (str) {\n return unescape(encodeURIComponent(str)).length\n}\n\n/**\n * Get a list of segments of the specified mode\n * from a string\n *\n * @param {Mode} mode Segment mode\n * @param {String} str String to process\n * @return {Array} Array of object with segments data\n */\nfunction getSegments (regex, mode, str) {\n const segments = []\n let result\n\n while ((result = regex.exec(str)) !== null) {\n segments.push({\n data: result[0],\n index: result.index,\n mode: mode,\n length: result[0].length\n })\n }\n\n return segments\n}\n\n/**\n * Extracts a series of segments with the appropriate\n * modes from a string\n *\n * @param {String} dataStr Input string\n * @return {Array} Array of object with segments data\n */\nfunction getSegmentsFromString (dataStr) {\n const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)\n const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)\n let byteSegs\n let kanjiSegs\n\n if (Utils.isKanjiModeEnabled()) {\n byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)\n kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)\n } else {\n byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)\n kanjiSegs = []\n }\n\n const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)\n\n return segs\n .sort(function (s1, s2) {\n return s1.index - s2.index\n })\n .map(function (obj) {\n return {\n data: obj.data,\n mode: obj.mode,\n length: obj.length\n }\n })\n}\n\n/**\n * Returns how many bits are needed to encode a string of\n * specified length with the specified mode\n *\n * @param {Number} length String length\n * @param {Mode} mode Segment mode\n * @return {Number} Bit length\n */\nfunction getSegmentBitsLength (length, mode) {\n switch (mode) {\n case Mode.NUMERIC:\n return NumericData.getBitsLength(length)\n case Mode.ALPHANUMERIC:\n return AlphanumericData.getBitsLength(length)\n case Mode.KANJI:\n return KanjiData.getBitsLength(length)\n case Mode.BYTE:\n return ByteData.getBitsLength(length)\n }\n}\n\n/**\n * Merges adjacent segments which have the same mode\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction mergeSegments (segs) {\n return segs.reduce(function (acc, curr) {\n const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null\n if (prevSeg && prevSeg.mode === curr.mode) {\n acc[acc.length - 1].data += curr.data\n return acc\n }\n\n acc.push(curr)\n return acc\n }, [])\n}\n\n/**\n * Generates a list of all possible nodes combination which\n * will be used to build a segments graph.\n *\n * Nodes are divided by groups. Each group will contain a list of all the modes\n * in which is possible to encode the given text.\n *\n * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.\n * The group for '12345' will contain then 3 objects, one for each\n * possible encoding mode.\n *\n * Each node represents a possible segment.\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction buildNodes (segs) {\n const nodes = []\n for (let i = 0; i < segs.length; i++) {\n const seg = segs[i]\n\n switch (seg.mode) {\n case Mode.NUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.ALPHANUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.KANJI:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n break\n case Mode.BYTE:\n nodes.push([\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n }\n }\n\n return nodes\n}\n\n/**\n * Builds a graph from a list of nodes.\n * All segments in each node group will be connected with all the segments of\n * the next group and so on.\n *\n * At each connection will be assigned a weight depending on the\n * segment's byte length.\n *\n * @param {Array} nodes Array of object with segments data\n * @param {Number} version QR Code version\n * @return {Object} Graph of all possible segments\n */\nfunction buildGraph (nodes, version) {\n const table = {}\n const graph = { start: {} }\n let prevNodeIds = ['start']\n\n for (let i = 0; i < nodes.length; i++) {\n const nodeGroup = nodes[i]\n const currentNodeIds = []\n\n for (let j = 0; j < nodeGroup.length; j++) {\n const node = nodeGroup[j]\n const key = '' + i + j\n\n currentNodeIds.push(key)\n table[key] = { node: node, lastCount: 0 }\n graph[key] = {}\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n const prevNodeId = prevNodeIds[n]\n\n if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {\n graph[prevNodeId][key] =\n getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -\n getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)\n\n table[prevNodeId].lastCount += node.length\n } else {\n if (table[prevNodeId]) table[prevNodeId].lastCount = node.length\n\n graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +\n 4 + Mode.getCharCountIndicator(node.mode, version) // switch cost\n }\n }\n }\n\n prevNodeIds = currentNodeIds\n }\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n graph[prevNodeIds[n]].end = 0\n }\n\n return { map: graph, table: table }\n}\n\n/**\n * Builds a segment from a specified data and mode.\n * If a mode is not specified, the more suitable will be used.\n *\n * @param {String} data Input data\n * @param {Mode | String} modesHint Data mode\n * @return {Segment} Segment\n */\nfunction buildSingleSegment (data, modesHint) {\n let mode\n const bestMode = Mode.getBestModeForData(data)\n\n mode = Mode.from(modesHint, bestMode)\n\n // Make sure data can be encoded\n if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {\n throw new Error('\"' + data + '\"' +\n ' cannot be encoded with mode ' + Mode.toString(mode) +\n '.\\n Suggested mode is: ' + Mode.toString(bestMode))\n }\n\n // Use Mode.BYTE if Kanji support is disabled\n if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {\n mode = Mode.BYTE\n }\n\n switch (mode) {\n case Mode.NUMERIC:\n return new NumericData(data)\n\n case Mode.ALPHANUMERIC:\n return new AlphanumericData(data)\n\n case Mode.KANJI:\n return new KanjiData(data)\n\n case Mode.BYTE:\n return new ByteData(data)\n }\n}\n\n/**\n * Builds a list of segments from an array.\n * Array can contain Strings or Objects with segment's info.\n *\n * For each item which is a string, will be generated a segment with the given\n * string and the more appropriate encoding mode.\n *\n * For each item which is an object, will be generated a segment with the given\n * data and mode.\n * Objects must contain at least the property \"data\".\n * If property \"mode\" is not present, the more suitable mode will be used.\n *\n * @param {Array} array Array of objects with segments data\n * @return {Array} Array of Segments\n */\nexports.fromArray = function fromArray (array) {\n return array.reduce(function (acc, seg) {\n if (typeof seg === 'string') {\n acc.push(buildSingleSegment(seg, null))\n } else if (seg.data) {\n acc.push(buildSingleSegment(seg.data, seg.mode))\n }\n\n return acc\n }, [])\n}\n\n/**\n * Builds an optimized sequence of segments from a string,\n * which will produce the shortest possible bitstream.\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @return {Array} Array of segments\n */\nexports.fromString = function fromString (data, version) {\n const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n\n const nodes = buildNodes(segs)\n const graph = buildGraph(nodes, version)\n const path = dijkstra.find_path(graph.map, 'start', 'end')\n\n const optimizedSegs = []\n for (let i = 1; i < path.length - 1; i++) {\n optimizedSegs.push(graph.table[path[i]].node)\n }\n\n return exports.fromArray(mergeSegments(optimizedSegs))\n}\n\n/**\n * Splits a string in various segments with the modes which\n * best represent their content.\n * The produced segments are far from being optimized.\n * The output of this function is only used to estimate a QR Code version\n * which may contain the data.\n *\n * @param {string} data Input string\n * @return {Array} Array of segments\n */\nexports.rawSplit = function rawSplit (data) {\n return exports.fromArray(\n getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n )\n}\n", "const Utils = require('./utils')\nconst ECLevel = require('./error-correction-level')\nconst BitBuffer = require('./bit-buffer')\nconst BitMatrix = require('./bit-matrix')\nconst AlignmentPattern = require('./alignment-pattern')\nconst FinderPattern = require('./finder-pattern')\nconst MaskPattern = require('./mask-pattern')\nconst ECCode = require('./error-correction-code')\nconst ReedSolomonEncoder = require('./reed-solomon-encoder')\nconst Version = require('./version')\nconst FormatInfo = require('./format-info')\nconst Mode = require('./mode')\nconst Segments = require('./segments')\n\n/**\n * QRCode for JavaScript\n *\n * modified by Ryan Day for nodejs support\n * Copyright (c) 2011 Ryan Day\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licenses/mit-license.php\n *\n//---------------------------------------------------------------------\n// QRCode for JavaScript\n//\n// Copyright (c) 2009 Kazuhiko Arase\n//\n// URL: http://www.d-project.com/\n//\n// Licensed under the MIT license:\n// http://www.opensource.org/licenses/mit-license.php\n//\n// The word \"QR Code\" is registered trademark of\n// DENSO WAVE INCORPORATED\n// http://www.denso-wave.com/qrcode/faqpatent-e.html\n//\n//---------------------------------------------------------------------\n*/\n\n/**\n * Add finder patterns bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupFinderPattern (matrix, version) {\n const size = matrix.size\n const pos = FinderPattern.getPositions(version)\n\n for (let i = 0; i < pos.length; i++) {\n const row = pos[i][0]\n const col = pos[i][1]\n\n for (let r = -1; r <= 7; r++) {\n if (row + r <= -1 || size <= row + r) continue\n\n for (let c = -1; c <= 7; c++) {\n if (col + c <= -1 || size <= col + c) continue\n\n if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||\n (c >= 0 && c <= 6 && (r === 0 || r === 6)) ||\n (r >= 2 && r <= 4 && c >= 2 && c <= 4)) {\n matrix.set(row + r, col + c, true, true)\n } else {\n matrix.set(row + r, col + c, false, true)\n }\n }\n }\n }\n}\n\n/**\n * Add timing pattern bits to matrix\n *\n * Note: this function must be called before {@link setupAlignmentPattern}\n *\n * @param {BitMatrix} matrix Modules matrix\n */\nfunction setupTimingPattern (matrix) {\n const size = matrix.size\n\n for (let r = 8; r < size - 8; r++) {\n const value = r % 2 === 0\n matrix.set(r, 6, value, true)\n matrix.set(6, r, value, true)\n }\n}\n\n/**\n * Add alignment patterns bits to matrix\n *\n * Note: this function must be called after {@link setupTimingPattern}\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupAlignmentPattern (matrix, version) {\n const pos = AlignmentPattern.getPositions(version)\n\n for (let i = 0; i < pos.length; i++) {\n const row = pos[i][0]\n const col = pos[i][1]\n\n for (let r = -2; r <= 2; r++) {\n for (let c = -2; c <= 2; c++) {\n if (r === -2 || r === 2 || c === -2 || c === 2 ||\n (r === 0 && c === 0)) {\n matrix.set(row + r, col + c, true, true)\n } else {\n matrix.set(row + r, col + c, false, true)\n }\n }\n }\n }\n}\n\n/**\n * Add version info bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupVersionInfo (matrix, version) {\n const size = matrix.size\n const bits = Version.getEncodedBits(version)\n let row, col, mod\n\n for (let i = 0; i < 18; i++) {\n row = Math.floor(i / 3)\n col = i % 3 + size - 8 - 3\n mod = ((bits >> i) & 1) === 1\n\n matrix.set(row, col, mod, true)\n matrix.set(col, row, mod, true)\n }\n}\n\n/**\n * Add format info bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @param {Number} maskPattern Mask pattern reference value\n */\nfunction setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {\n const size = matrix.size\n const bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern)\n let i, mod\n\n for (i = 0; i < 15; i++) {\n mod = ((bits >> i) & 1) === 1\n\n // vertical\n if (i < 6) {\n matrix.set(i, 8, mod, true)\n } else if (i < 8) {\n matrix.set(i + 1, 8, mod, true)\n } else {\n matrix.set(size - 15 + i, 8, mod, true)\n }\n\n // horizontal\n if (i < 8) {\n matrix.set(8, size - i - 1, mod, true)\n } else if (i < 9) {\n matrix.set(8, 15 - i - 1 + 1, mod, true)\n } else {\n matrix.set(8, 15 - i - 1, mod, true)\n }\n }\n\n // fixed module\n matrix.set(size - 8, 8, 1, true)\n}\n\n/**\n * Add encoded data bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Uint8Array} data Data codewords\n */\nfunction setupData (matrix, data) {\n const size = matrix.size\n let inc = -1\n let row = size - 1\n let bitIndex = 7\n let byteIndex = 0\n\n for (let col = size - 1; col > 0; col -= 2) {\n if (col === 6) col--\n\n while (true) {\n for (let c = 0; c < 2; c++) {\n if (!matrix.isReserved(row, col - c)) {\n let dark = false\n\n if (byteIndex < data.length) {\n dark = (((data[byteIndex] >>> bitIndex) & 1) === 1)\n }\n\n matrix.set(row, col - c, dark)\n bitIndex--\n\n if (bitIndex === -1) {\n byteIndex++\n bitIndex = 7\n }\n }\n }\n\n row += inc\n\n if (row < 0 || size <= row) {\n row -= inc\n inc = -inc\n break\n }\n }\n }\n}\n\n/**\n * Create encoded codewords from data input\n *\n * @param {Number} version QR Code version\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @param {ByteData} data Data input\n * @return {Uint8Array} Buffer containing encoded codewords\n */\nfunction createData (version, errorCorrectionLevel, segments) {\n // Prepare data buffer\n const buffer = new BitBuffer()\n\n segments.forEach(function (data) {\n // prefix data with mode indicator (4 bits)\n buffer.put(data.mode.bit, 4)\n\n // Prefix data with character count indicator.\n // The character count indicator is a string of bits that represents the\n // number of characters that are being encoded.\n // The character count indicator must be placed after the mode indicator\n // and must be a certain number of bits long, depending on the QR version\n // and data mode\n // @see {@link Mode.getCharCountIndicator}.\n buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version))\n\n // add binary data sequence to buffer\n data.write(buffer)\n })\n\n // Calculate required number of bits\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n // Add a terminator.\n // If the bit string is shorter than the total number of required bits,\n // a terminator of up to four 0s must be added to the right side of the string.\n // If the bit string is more than four bits shorter than the required number of bits,\n // add four 0s to the end.\n if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {\n buffer.put(0, 4)\n }\n\n // If the bit string is fewer than four bits shorter, add only the number of 0s that\n // are needed to reach the required number of bits.\n\n // After adding the terminator, if the number of bits in the string is not a multiple of 8,\n // pad the string on the right with 0s to make the string's length a multiple of 8.\n while (buffer.getLengthInBits() % 8 !== 0) {\n buffer.putBit(0)\n }\n\n // Add pad bytes if the string is still shorter than the total number of required bits.\n // Extend the buffer to fill the data capacity of the symbol corresponding to\n // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)\n // and 00010001 (0x11) alternately.\n const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8\n for (let i = 0; i < remainingByte; i++) {\n buffer.put(i % 2 ? 0x11 : 0xEC, 8)\n }\n\n return createCodewords(buffer, version, errorCorrectionLevel)\n}\n\n/**\n * Encode input data with Reed-Solomon and return codewords with\n * relative error correction bits\n *\n * @param {BitBuffer} bitBuffer Data to encode\n * @param {Number} version QR Code version\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @return {Uint8Array} Buffer containing encoded codewords\n */\nfunction createCodewords (bitBuffer, version, errorCorrectionLevel) {\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewords = totalCodewords - ecTotalCodewords\n\n // Total number of blocks\n const ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel)\n\n // Calculate how many blocks each group should contain\n const blocksInGroup2 = totalCodewords % ecTotalBlocks\n const blocksInGroup1 = ecTotalBlocks - blocksInGroup2\n\n const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks)\n\n const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks)\n const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1\n\n // Number of EC codewords is the same for both groups\n const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1\n\n // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount\n const rs = new ReedSolomonEncoder(ecCount)\n\n let offset = 0\n const dcData = new Array(ecTotalBlocks)\n const ecData = new Array(ecTotalBlocks)\n let maxDataSize = 0\n const buffer = new Uint8Array(bitBuffer.buffer)\n\n // Divide the buffer into the required number of blocks\n for (let b = 0; b < ecTotalBlocks; b++) {\n const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2\n\n // extract a block of data from buffer\n dcData[b] = buffer.slice(offset, offset + dataSize)\n\n // Calculate EC codewords for this data block\n ecData[b] = rs.encode(dcData[b])\n\n offset += dataSize\n maxDataSize = Math.max(maxDataSize, dataSize)\n }\n\n // Create final data\n // Interleave the data and error correction codewords from each block\n const data = new Uint8Array(totalCodewords)\n let index = 0\n let i, r\n\n // Add data codewords\n for (i = 0; i < maxDataSize; i++) {\n for (r = 0; r < ecTotalBlocks; r++) {\n if (i < dcData[r].length) {\n data[index++] = dcData[r][i]\n }\n }\n }\n\n // Apped EC codewords\n for (i = 0; i < ecCount; i++) {\n for (r = 0; r < ecTotalBlocks; r++) {\n data[index++] = ecData[r][i]\n }\n }\n\n return data\n}\n\n/**\n * Build QR Code symbol\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @param {ErrorCorretionLevel} errorCorrectionLevel Error level\n * @param {MaskPattern} maskPattern Mask pattern\n * @return {Object} Object containing symbol data\n */\nfunction createSymbol (data, version, errorCorrectionLevel, maskPattern) {\n let segments\n\n if (Array.isArray(data)) {\n segments = Segments.fromArray(data)\n } else if (typeof data === 'string') {\n let estimatedVersion = version\n\n if (!estimatedVersion) {\n const rawSegments = Segments.rawSplit(data)\n\n // Estimate best version that can contain raw splitted segments\n estimatedVersion = Version.getBestVersionForData(rawSegments, errorCorrectionLevel)\n }\n\n // Build optimized segments\n // If estimated version is undefined, try with the highest version\n segments = Segments.fromString(data, estimatedVersion || 40)\n } else {\n throw new Error('Invalid data')\n }\n\n // Get the min version that can contain data\n const bestVersion = Version.getBestVersionForData(segments, errorCorrectionLevel)\n\n // If no version is found, data cannot be stored\n if (!bestVersion) {\n throw new Error('The amount of data is too big to be stored in a QR Code')\n }\n\n // If not specified, use min version as default\n if (!version) {\n version = bestVersion\n\n // Check if the specified version can contain the data\n } else if (version < bestVersion) {\n throw new Error('\\n' +\n 'The chosen QR Code version cannot contain this amount of data.\\n' +\n 'Minimum version required to store current data is: ' + bestVersion + '.\\n'\n )\n }\n\n const dataBits = createData(version, errorCorrectionLevel, segments)\n\n // Allocate matrix buffer\n const moduleCount = Utils.getSymbolSize(version)\n const modules = new BitMatrix(moduleCount)\n\n // Add function modules\n setupFinderPattern(modules, version)\n setupTimingPattern(modules)\n setupAlignmentPattern(modules, version)\n\n // Add temporary dummy bits for format info just to set them as reserved.\n // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}\n // since the masking operation must be performed only on the encoding region.\n // These blocks will be replaced with correct values later in code.\n setupFormatInfo(modules, errorCorrectionLevel, 0)\n\n if (version >= 7) {\n setupVersionInfo(modules, version)\n }\n\n // Add data codewords\n setupData(modules, dataBits)\n\n if (isNaN(maskPattern)) {\n // Find best mask pattern\n maskPattern = MaskPattern.getBestMask(modules,\n setupFormatInfo.bind(null, modules, errorCorrectionLevel))\n }\n\n // Apply mask pattern\n MaskPattern.applyMask(maskPattern, modules)\n\n // Replace format info bits with correct values\n setupFormatInfo(modules, errorCorrectionLevel, maskPattern)\n\n return {\n modules: modules,\n version: version,\n errorCorrectionLevel: errorCorrectionLevel,\n maskPattern: maskPattern,\n segments: segments\n }\n}\n\n/**\n * QR Code\n *\n * @param {String | Array} data Input data\n * @param {Object} options Optional configurations\n * @param {Number} options.version QR Code version\n * @param {String} options.errorCorrectionLevel Error correction level\n * @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis\n */\nexports.create = function create (data, options) {\n if (typeof data === 'undefined' || data === '') {\n throw new Error('No input text')\n }\n\n let errorCorrectionLevel = ECLevel.M\n let version\n let mask\n\n if (typeof options !== 'undefined') {\n // Use higher error correction level as default\n errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M)\n version = Version.from(options.version)\n mask = MaskPattern.from(options.maskPattern)\n\n if (options.toSJISFunc) {\n Utils.setToSJISFunction(options.toSJISFunc)\n }\n }\n\n return createSymbol(data, version, errorCorrectionLevel, mask)\n}\n", "function hex2rgba (hex) {\n if (typeof hex === 'number') {\n hex = hex.toString()\n }\n\n if (typeof hex !== 'string') {\n throw new Error('Color should be defined as hex string')\n }\n\n let hexCode = hex.slice().replace('#', '').split('')\n if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {\n throw new Error('Invalid hex color: ' + hex)\n }\n\n // Convert from short to long form (fff -> ffffff)\n if (hexCode.length === 3 || hexCode.length === 4) {\n hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {\n return [c, c]\n }))\n }\n\n // Add default alpha value\n if (hexCode.length === 6) hexCode.push('F', 'F')\n\n const hexValue = parseInt(hexCode.join(''), 16)\n\n return {\n r: (hexValue >> 24) & 255,\n g: (hexValue >> 16) & 255,\n b: (hexValue >> 8) & 255,\n a: hexValue & 255,\n hex: '#' + hexCode.slice(0, 6).join('')\n }\n}\n\nexports.getOptions = function getOptions (options) {\n if (!options) options = {}\n if (!options.color) options.color = {}\n\n const margin = typeof options.margin === 'undefined' ||\n options.margin === null ||\n options.margin < 0\n ? 4\n : options.margin\n\n const width = options.width && options.width >= 21 ? options.width : undefined\n const scale = options.scale || 4\n\n return {\n width: width,\n scale: width ? 4 : scale,\n margin: margin,\n color: {\n dark: hex2rgba(options.color.dark || '#000000ff'),\n light: hex2rgba(options.color.light || '#ffffffff')\n },\n type: options.type,\n rendererOpts: options.rendererOpts || {}\n }\n}\n\nexports.getScale = function getScale (qrSize, opts) {\n return opts.width && opts.width >= qrSize + opts.margin * 2\n ? opts.width / (qrSize + opts.margin * 2)\n : opts.scale\n}\n\nexports.getImageWidth = function getImageWidth (qrSize, opts) {\n const scale = exports.getScale(qrSize, opts)\n return Math.floor((qrSize + opts.margin * 2) * scale)\n}\n\nexports.qrToImageData = function qrToImageData (imgData, qr, opts) {\n const size = qr.modules.size\n const data = qr.modules.data\n const scale = exports.getScale(size, opts)\n const symbolSize = Math.floor((size + opts.margin * 2) * scale)\n const scaledMargin = opts.margin * scale\n const palette = [opts.color.light, opts.color.dark]\n\n for (let i = 0; i < symbolSize; i++) {\n for (let j = 0; j < symbolSize; j++) {\n let posDst = (i * symbolSize + j) * 4\n let pxColor = opts.color.light\n\n if (i >= scaledMargin && j >= scaledMargin &&\n i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {\n const iSrc = Math.floor((i - scaledMargin) / scale)\n const jSrc = Math.floor((j - scaledMargin) / scale)\n pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]\n }\n\n imgData[posDst++] = pxColor.r\n imgData[posDst++] = pxColor.g\n imgData[posDst++] = pxColor.b\n imgData[posDst] = pxColor.a\n }\n }\n}\n", "const Utils = require('./utils')\n\nfunction clearCanvas (ctx, canvas, size) {\n ctx.clearRect(0, 0, canvas.width, canvas.height)\n\n if (!canvas.style) canvas.style = {}\n canvas.height = size\n canvas.width = size\n canvas.style.height = size + 'px'\n canvas.style.width = size + 'px'\n}\n\nfunction getCanvasElement () {\n try {\n return document.createElement('canvas')\n } catch (e) {\n throw new Error('You need to specify a canvas element')\n }\n}\n\nexports.render = function render (qrData, canvas, options) {\n let opts = options\n let canvasEl = canvas\n\n if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {\n opts = canvas\n canvas = undefined\n }\n\n if (!canvas) {\n canvasEl = getCanvasElement()\n }\n\n opts = Utils.getOptions(opts)\n const size = Utils.getImageWidth(qrData.modules.size, opts)\n\n const ctx = canvasEl.getContext('2d')\n const image = ctx.createImageData(size, size)\n Utils.qrToImageData(image.data, qrData, opts)\n\n clearCanvas(ctx, canvasEl, size)\n ctx.putImageData(image, 0, 0)\n\n return canvasEl\n}\n\nexports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {\n let opts = options\n\n if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {\n opts = canvas\n canvas = undefined\n }\n\n if (!opts) opts = {}\n\n const canvasEl = exports.render(qrData, canvas, opts)\n\n const type = opts.type || 'image/png'\n const rendererOpts = opts.rendererOpts || {}\n\n return canvasEl.toDataURL(type, rendererOpts.quality)\n}\n", "const Utils = require('./utils')\n\nfunction getColorAttrib (color, attrib) {\n const alpha = color.a / 255\n const str = attrib + '=\"' + color.hex + '\"'\n\n return alpha < 1\n ? str + ' ' + attrib + '-opacity=\"' + alpha.toFixed(2).slice(1) + '\"'\n : str\n}\n\nfunction svgCmd (cmd, x, y) {\n let str = cmd + x\n if (typeof y !== 'undefined') str += ' ' + y\n\n return str\n}\n\nfunction qrToPath (data, size, margin) {\n let path = ''\n let moveBy = 0\n let newRow = false\n let lineLength = 0\n\n for (let i = 0; i < data.length; i++) {\n const col = Math.floor(i % size)\n const row = Math.floor(i / size)\n\n if (!col && !newRow) newRow = true\n\n if (data[i]) {\n lineLength++\n\n if (!(i > 0 && col > 0 && data[i - 1])) {\n path += newRow\n ? svgCmd('M', col + margin, 0.5 + row + margin)\n : svgCmd('m', moveBy, 0)\n\n moveBy = 0\n newRow = false\n }\n\n if (!(col + 1 < size && data[i + 1])) {\n path += svgCmd('h', lineLength)\n lineLength = 0\n }\n } else {\n moveBy++\n }\n }\n\n return path\n}\n\nexports.render = function render (qrData, options, cb) {\n const opts = Utils.getOptions(options)\n const size = qrData.modules.size\n const data = qrData.modules.data\n const qrcodesize = size + opts.margin * 2\n\n const bg = !opts.color.light.a\n ? ''\n : '<path ' + getColorAttrib(opts.color.light, 'fill') +\n ' d=\"M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z\"/>'\n\n const path =\n '<path ' + getColorAttrib(opts.color.dark, 'stroke') +\n ' d=\"' + qrToPath(data, size, opts.margin) + '\"/>'\n\n const viewBox = 'viewBox=\"' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '\"'\n\n const width = !opts.width ? '' : 'width=\"' + opts.width + '\" height=\"' + opts.width + '\" '\n\n const svgTag = '<svg xmlns=\"http://www.w3.org/2000/svg\" ' + width + viewBox + ' shape-rendering=\"crispEdges\">' + bg + path + '</svg>\\n'\n\n if (typeof cb === 'function') {\n cb(null, svgTag)\n }\n\n return svgTag\n}\n", "\nconst canPromise = require('./can-promise')\n\nconst QRCode = require('./core/qrcode')\nconst CanvasRenderer = require('./renderer/canvas')\nconst SvgRenderer = require('./renderer/svg-tag.js')\n\nfunction renderCanvas (renderFunc, canvas, text, opts, cb) {\n const args = [].slice.call(arguments, 1)\n const argsNum = args.length\n const isLastArgCb = typeof args[argsNum - 1] === 'function'\n\n if (!isLastArgCb && !canPromise()) {\n throw new Error('Callback required as last argument')\n }\n\n if (isLastArgCb) {\n if (argsNum < 2) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 2) {\n cb = text\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 3) {\n if (canvas.getContext && typeof cb === 'undefined') {\n cb = opts\n opts = undefined\n } else {\n cb = opts\n opts = text\n text = canvas\n canvas = undefined\n }\n }\n } else {\n if (argsNum < 1) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 1) {\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 2 && !canvas.getContext) {\n opts = text\n text = canvas\n canvas = undefined\n }\n\n return new Promise(function (resolve, reject) {\n try {\n const data = QRCode.create(text, opts)\n resolve(renderFunc(data, canvas, opts))\n } catch (e) {\n reject(e)\n }\n })\n }\n\n try {\n const data = QRCode.create(text, opts)\n cb(null, renderFunc(data, canvas, opts))\n } catch (e) {\n cb(e)\n }\n}\n\nexports.create = QRCode.create\nexports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)\nexports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)\n\n// only svg for now.\nexports.toString = renderCanvas.bind(null, function (data, _, opts) {\n return SvgRenderer.render(data, opts)\n})\n", "'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n", "'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n", "'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numberic identifiers include numberic identifiers but can be longer.\n// Therefore non-numberic identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n", "'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n", "'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n", "'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n", "'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n", "'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n", "'use strict'\n\nconst parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // If the main part has no difference\n if (lowVersion.compareMain(highVersion) === 0) {\n if (lowVersion.minor && !lowVersion.patch) {\n return 'minor'\n }\n return 'patch'\n }\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n", "'use strict'\n\nconst parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n", "'use strict'\n\nconst compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n", "'use strict'\n\nconst compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n", "'use strict'\n\nconst compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n", "'use strict'\n\nconst compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n", "'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n", "'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n", "'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n", "'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n", "'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n", "'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n", "'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n", "'use strict'\n\nclass LRUCache {\n constructor () {\n this.max = 1000\n this.map = new Map()\n }\n\n get (key) {\n const value = this.map.get(key)\n if (value === undefined) {\n return undefined\n } else {\n // Remove the key from the map and add it to the end\n this.map.delete(key)\n this.map.set(key, value)\n return value\n }\n }\n\n delete (key) {\n return this.map.delete(key)\n }\n\n set (key, value) {\n const deleted = this.delete(key)\n\n if (!deleted && value !== undefined) {\n // If cache is full, delete the least recently used item\n if (this.map.size >= this.max) {\n const firstKey = this.map.keys().next().value\n this.delete(firstKey)\n }\n\n this.map.set(key, value)\n }\n\n return this\n }\n}\n\nmodule.exports = LRUCache\n", "'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n comp = comp.replace(re[t.BUILD], '')\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n", "'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n", "'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n", "'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n", "'use strict'\n\nconst Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n", "'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n", "'use strict'\n\n// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n", "'use strict'\n\nconst outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n", "'use strict'\n\nconst Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n", "'use strict'\n\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n", "'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n", "'use strict'\n\n// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n", "/** Browser entry: the Host installs its capability fact before DSH boot. */\nimport type { Context } from '@deepseek-ai/cordis'\nimport type { SlotCore } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport { assertRemoteHostCapability, isAdministratorPage } from './adapters/dsh.js'\nimport { SecuritySection } from './settings/section.js'\nimport { monitorSession } from './settings/monitor.js'\nimport { installLocaleMemory } from './settings/locale-memory.js'\nimport { dictionaries, type MessageKey } from '../shared/i18n.js'\nimport settingsStyles from './settings/style.css'\nimport accountStyles from './account/style.css'\nimport { manualAccountBinding } from './account/config.js'\nimport { ManualAccountSetting } from './settings/manual-account-setting.js'\nimport { createElement } from 'react'\nimport { installManualAccountLogin, hasManualAccountClient } from './account/index.js'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'auth-remote': MessageKey\n }\n}\n\nexport const name = 'auth-remote'\nexport const inject = ['connection', 'slots', 'locale', 'remote.settings']\n\nexport function apply(ctx: Context): void {\n if (!isAdministratorPage()) return\n assertRemoteHostCapability(ctx)\n installLocaleMemory(ctx)\n ctx.effect(() => {\n const tag = document.createElement('style')\n tag.dataset.plugin = 'dsh-auth-remote'\n tag.textContent = settingsStyles + accountStyles\n document.head.appendChild(tag)\n return () => tag.remove()\n }, 'auth-remote: settings styles')\n monitorSession(ctx)\n ctx.effect(() => ctx.locale.register('auth-remote', dictionaries), 'auth-remote: dictionaries')\n const t = ctx.locale.bind('auth-remote')\n installManualAccountLogin(ctx)\n const slots = ctx.get('slots') as SlotCore & {\n inject(name: string, register: () => () => void): void\n }\n slots.inject('settings.section', () =>\n slots.register(\n {\n name: 'settings.section',\n id: 'security',\n order: 90,\n locale: 'auth-remote',\n label: () => t('settingsSectionLabel'),\n },\n (props) =>\n createElement(SecuritySection, {\n ...props,\n locale: ctx.locale.getSnapshot().active,\n manualAccountSetting: createElement(ManualAccountSetting, {\n binding: manualAccountBinding(ctx),\n t,\n clientAvailable: hasManualAccountClient(ctx),\n }),\n }),\n ),\n )\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport type { ConnectionHandle } from '@deepseek-ai/dsh-client-connection/client'\n\n/** The public native opening baseline is authoritative before any plugin effect. */\nexport function isAdministratorPage(): boolean {\n if (!Reflect.has(globalThis, '__DSH_REMOTE_ACCESS__')) return true\n const baseline: unknown = Reflect.get(globalThis, '__DSH_REMOTE_ACCESS__')\n return (\n typeof baseline === 'object' &&\n baseline !== null &&\n !Array.isArray(baseline) &&\n Reflect.get(baseline, 'type') === 'baseline' &&\n Reflect.get(baseline, 'owner') === true\n )\n}\n\n/** Confirm the Host's early index injection reached Connection construction. */\nexport function assertRemoteHostCapability(ctx: Context): void {\n if (typeof location === 'undefined') return\n const connection = ctx.get('connection') as ConnectionHandle | undefined\n if (connection === undefined) throw new Error('auth-remote: browser Connection is missing')\n const hostname = location.hostname.toLowerCase().replace(/^\\[|\\]$/gu, '')\n const loopback =\n hostname === 'localhost' ||\n hostname === '::1' ||\n /^127(?:\\.[0-9]{1,3}){3}$/u.test(hostname) ||\n /^::ffff:7f[0-9a-f]{2}:[0-9a-f]{1,4}$/u.test(hostname)\n if (!loopback && connection.isLoopback !== true) {\n throw new Error('auth-remote: Host settings capability was not installed before Connection')\n }\n}\n", "import { useEffect, useState, type ReactNode } from 'react'\nimport type { SettingsSectionOwnerProps } from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport {\n accountOverview,\n goToLogin,\n isUnauthorized,\n settingsError,\n type AccountStatus,\n type SettingsMessage,\n} from './api.js'\nimport { PasswordDialog } from './password-dialog.js'\nimport { CredentialDialog, CurrentSessionDialog } from './credential-dialog.js'\nimport { TotpDialog } from './totp-dialog.js'\n\nexport function SecuritySection({\n t,\n manualAccountSetting,\n locale,\n}: SettingsSectionOwnerProps & {\n t: TranslateNS<'auth-remote'>\n manualAccountSetting?: ReactNode\n locale?: string\n}): JSX.Element {\n const [operation, setOperation] = useState<\n 'password' | 'current' | 'all' | 'totp' | 'disable' | null\n >(null)\n const [loading, setLoading] = useState(true)\n const [reload, setReload] = useState(0)\n const [me, setMe] = useState<AccountStatus | null>(null)\n const [message, setMessage] = useState<SettingsMessage | null>(null)\n useEffect(() => {\n let live = true\n setLoading(true)\n void accountOverview().then(\n (value) => {\n if (live) {\n setMe(value)\n setMessage(null)\n setLoading(false)\n }\n },\n (error) => {\n if (isUnauthorized(error)) goToLogin()\n else if (live) {\n setMe(null)\n setMessage(settingsError(error))\n setLoading(false)\n }\n },\n )\n return () => {\n live = false\n }\n }, [reload])\n const dismiss = () => {\n setOperation(null)\n setReload((value) => value + 1)\n }\n const placeholder = <span aria-hidden=\"true\">\u2014</span>\n return (\n <section aria-label={t('settingsSectionAria')} className=\"auth-remote-security\">\n <h2>{t('settingsTitle')}</h2>\n <h3>{t('settingsOverview')}</h3>\n {loading && (\n <span className=\"auth-remote-loading-status\" role=\"status\">\n {t('settingsLoading')}\n </span>\n )}\n <dl className=\"auth-remote-overview\" aria-busy={loading}>\n <div>\n <dt>{t('settingsUsername')}</dt>\n <dd>{me ? me.username : placeholder}</dd>\n </div>\n <div>\n <dt>TOTP</dt>\n <dd className=\"auth-remote-totp-status\">\n {me ? t(me.totpEnabled ? 'settingsTotpEnabled' : 'settingsTotpNotBound') : placeholder}\n {me?.requireTotp && (\n <span\n className=\"auth-remote-policy-hint\"\n role=\"img\"\n tabIndex={0}\n aria-label={t('settingsTotpRequired')}\n title={t('settingsTotpRequired')}\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"8\" cy=\"8\" r=\"6\" stroke=\"currentColor\" />\n <path d=\"M8 7v4M8 4.5v1\" stroke=\"currentColor\" strokeLinecap=\"round\" />\n </svg>\n </span>\n )}\n </dd>\n </div>\n <div>\n <dt>{t('settingsCreatedAt')}</dt>\n <dd>\n {me\n ? new Intl.DateTimeFormat(locale || navigator.language, {\n dateStyle: 'medium',\n timeStyle: 'short',\n }).format(me.createdAt)\n : placeholder}\n </dd>\n </div>\n <div>\n <dt>{t('settingsExpiresAt')}</dt>\n <dd>\n {me\n ? new Intl.DateTimeFormat(locale || navigator.language, {\n dateStyle: 'medium',\n timeStyle: 'short',\n }).format(me.expiresAt)\n : placeholder}\n </dd>\n </div>\n <div>\n <dt>{t('settingsActiveSessions')}</dt>\n <dd>{me ? me.activeSessions : placeholder}</dd>\n </div>\n </dl>\n {!loading && !me && (\n <button className=\"auth-remote-button\" onClick={() => setReload((value) => value + 1)}>\n {t('settingsRetry')}\n </button>\n )}\n {manualAccountSetting}\n <div className=\"auth-remote-operation-row\">\n <h3>{t('settingsPasswordTitle')}</h3>\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('password')}\n >\n {t('settingsChangePassword')}\n </button>\n </div>\n <div className=\"auth-remote-operation-row\">\n <h3>TOTP</h3>\n <div className=\"auth-remote-actions\">\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('totp')}\n >\n {t(me?.totpEnabled ? 'settingsRebindTotp' : 'settingsBindTotp')}\n </button>\n {me?.totpEnabled && !me.requireTotp && (\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('disable')}\n >\n {t('settingsDisableTotp')}\n </button>\n )}\n </div>\n </div>\n <div className=\"auth-remote-operation-row\">\n <h3>{t('settingsSessions')}</h3>\n <div className=\"auth-remote-actions\">\n <button\n className=\"auth-remote-button\"\n disabled={!me}\n onClick={() => setOperation('current')}\n >\n {t('settingsSignOutCurrent')}\n </button>\n <button className=\"auth-remote-button\" disabled={!me} onClick={() => setOperation('all')}>\n {t('settingsSignOutAll')}\n </button>\n </div>\n </div>\n {operation === 'password' && me && <PasswordDialog me={me} t={t} close={dismiss} />}\n {operation === 'current' && <CurrentSessionDialog t={t} close={dismiss} />}\n {operation === 'all' && me && (\n <CredentialDialog action=\"revoke\" me={me} t={t} close={dismiss} />\n )}\n {operation === 'totp' && me && <TotpDialog me={me} t={t} close={dismiss} />}\n {operation === 'disable' && me && (\n <CredentialDialog action=\"disable\" me={me} t={t} close={dismiss} />\n )}\n <p className=\"auth-remote-error\" role=\"alert\">\n {message && t(message.key, message.params)}\n </p>\n </section>\n )\n}\n", "export type LoginReason = 'expired' | 'updated' | 'signed-out'\n\n/** Let a security operation finish before background checks redirect its page. */\nexport class LoginNavigation {\n private holds = 0\n private expired = false\n private navigating = false\n\n constructor(private readonly assign: (reason: LoginReason) => void) {}\n\n hold(timeoutMs?: number): () => void {\n this.holds++\n let active = true\n let timer: ReturnType<typeof setTimeout> | undefined\n const release = () => {\n if (!active) return\n active = false\n clearTimeout(timer)\n this.holds--\n if (this.holds === 0 && this.expired) this.go('expired')\n }\n if (timeoutMs !== undefined) timer = setTimeout(release, timeoutMs)\n return release\n }\n\n go(reason: LoginReason): void {\n if (this.navigating) return\n if (reason === 'expired' && this.holds > 0) {\n this.expired = true\n return\n }\n this.navigating = true\n this.assign(reason)\n }\n}\n", "import type { AuthErrorResponse, MeResponse } from '../../shared/auth-contract.js'\nimport type { MessageKey } from '../../shared/i18n.js'\nimport { LoginNavigation, type LoginReason } from './navigation.js'\n\nconst loginNavigation = new LoginNavigation((reason) => location.assign(loginLocation(reason)))\n\nexport interface SettingsMessage {\n key: MessageKey\n params?: Record<string, string | number>\n}\n\nexport class SettingsFailure extends Error {\n constructor(\n readonly status: number,\n readonly code: string,\n readonly retryAfter?: number,\n ) {\n super(code)\n }\n}\n\nexport function loginLocation(reason = 'expired'): string {\n const current = new URL(location.href)\n current.searchParams.delete('token')\n const target = new URL('/auth-remote/login', location.origin)\n target.searchParams.set('return', current.pathname + current.search + current.hash)\n target.searchParams.set('reason', reason)\n return target.pathname + target.search\n}\n\nexport function holdLoginRedirect(timeoutMs?: number): () => void {\n return loginNavigation.hold(timeoutMs)\n}\n\nexport function goToLogin(reason: LoginReason = 'expired'): void {\n loginNavigation.go(reason)\n}\n\nexport async function authRequest<T>(path: string, body?: Record<string, unknown>): Promise<T> {\n const response = await fetch(path, {\n method: body === undefined ? 'GET' : 'POST',\n ...(body === undefined\n ? {}\n : { headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) }),\n credentials: 'same-origin',\n cache: 'no-store',\n })\n const value: unknown = await response.json().catch(() => ({}))\n if (!response.ok) {\n const failure = value as AuthErrorResponse\n const seconds = Number(response.headers.get('retry-after'))\n throw new SettingsFailure(\n response.status,\n typeof failure.error === 'string' ? failure.error : 'service_unavailable',\n Number.isFinite(seconds) && seconds > 0 ? seconds : failure.retryAfter,\n )\n }\n return value as T\n}\n\nexport function settingsError(error: unknown): SettingsMessage {\n if (!(error instanceof SettingsFailure)) return { key: 'errorNetwork' }\n switch (error.code) {\n case 'invalid_credentials':\n return { key: 'settingsErrorInvalidCredentials' }\n case 'invalid_factor':\n return { key: 'settingsErrorInvalidFactor' }\n case 'invalid_input':\n return { key: 'settingsErrorInvalidInput' }\n case 'rate_limited':\n case 'busy':\n return { key: 'errorRateLimited', params: { seconds: error.retryAfter ?? 1 } }\n case 'invalid_challenge':\n case 'challenge_expired':\n case 'conflict':\n return { key: 'settingsErrorChallenge' }\n case 'totp_required':\n return { key: 'settingsErrorTotpRequired' }\n case 'unauthorized':\n return { key: 'errorUnauthorized' }\n default:\n return { key: error.status === 503 ? 'errorServiceUnavailable' : 'errorGeneric' }\n }\n}\n\nexport function isUnauthorized(error: unknown): boolean {\n return error instanceof SettingsFailure && error.status === 401 && error.code === 'unauthorized'\n}\n\nexport type AccountStatus = MeResponse\n\nexport async function accountOverview(): Promise<AccountStatus> {\n const value = await authRequest<Partial<AccountStatus> | null>('/auth-remote/me')\n if (\n !value ||\n typeof value.username !== 'string' ||\n typeof value.totpEnabled !== 'boolean' ||\n typeof value.requireTotp !== 'boolean' ||\n !Number.isSafeInteger(value.createdAt) ||\n !Number.isSafeInteger(value.expiresAt) ||\n !Number.isSafeInteger(value.activeSessions) ||\n value.createdAt! < 0 ||\n value.expiresAt! <= value.createdAt! ||\n value.activeSessions! < 1\n )\n throw new SettingsFailure(503, 'service_unavailable')\n return value as AccountStatus\n}\n", "import { useLayoutEffect, useRef, useState, type ReactNode } from 'react'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport {\n goToLogin,\n holdLoginRedirect,\n isUnauthorized,\n settingsError,\n type SettingsMessage,\n} from './api.js'\n\nexport type SecurityTranslate = TranslateNS<'auth-remote'>\n\nexport function SecurityDialog({\n title,\n t,\n close,\n busy = false,\n locked = false,\n children,\n}: {\n title: string\n t: SecurityTranslate\n close: () => void\n busy?: boolean\n locked?: boolean\n children: ReactNode\n}): JSX.Element {\n const ref = useRef<HTMLDialogElement>(null)\n const current = useRef({ busy, locked, close })\n current.current = { busy, locked, close }\n useLayoutEffect(() => {\n const node = ref.current!\n const previous = document.activeElement\n const keyboard = (event: KeyboardEvent) => {\n if (!node.open || event.ctrlKey || event.altKey || event.metaKey) return\n const focusedDialog = document.activeElement?.closest('dialog[open]')\n if (focusedDialog && focusedDialog !== node) return\n if (event.key !== 'Tab' && event.key !== 'Escape') return\n // Own keyboard input before the host Settings layer, including a step\n // transition or disabled form that temporarily leaves focus on body.\n event.preventDefault()\n event.stopImmediatePropagation()\n if (event.key === 'Escape') {\n if (!event.isComposing && !event.repeat && !current.current.busy && !current.current.locked)\n current.current.close()\n return\n }\n const items = [\n ...node.querySelectorAll<HTMLElement>(\n 'button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]',\n ),\n ].filter((item) => item.getClientRects().length > 0 && !item.closest('[hidden], [inert]'))\n const index = items.indexOf(document.activeElement as HTMLElement)\n const next = event.shiftKey\n ? index <= 0\n ? items.length - 1\n : index - 1\n : (index + 1) % items.length\n ;(items[next] ?? node).focus()\n }\n document.addEventListener('keydown', keyboard, true)\n node.showModal()\n ;(node.querySelector('input, [data-autofocus]') as HTMLElement | null)?.focus()\n return () => {\n document.removeEventListener('keydown', keyboard, true)\n node.close()\n if (previous instanceof HTMLElement && previous.isConnected) previous.focus()\n }\n }, [])\n useLayoutEffect(() => {\n const node = ref.current\n if (node?.open && !node.contains(document.activeElement))\n (\n node.querySelector<HTMLElement>(\n 'input:not(:disabled), [data-autofocus], button:not(:disabled)',\n ) ?? node\n ).focus()\n }, [title, locked])\n const dismiss = () => {\n if (!busy && !locked) close()\n }\n return (\n <dialog\n ref={ref}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"auth-remote-operation-title\"\n className=\"auth-remote-security auth-remote-operation-dialog\"\n tabIndex={-1}\n onCancel={(event) => {\n event.preventDefault()\n event.stopPropagation()\n dismiss()\n }}\n onClick={(event) => {\n if (event.target === event.currentTarget) {\n const box = event.currentTarget.getBoundingClientRect()\n if (\n event.clientX < box.left ||\n event.clientX > box.right ||\n event.clientY < box.top ||\n event.clientY > box.bottom\n )\n dismiss()\n }\n }}\n >\n <div className=\"auth-remote-dialog-header\">\n <h2 id=\"auth-remote-operation-title\">{title}</h2>\n {!locked && (\n <button\n className=\"auth-remote-button auth-remote-dialog-close\"\n type=\"button\"\n disabled={busy}\n onClick={dismiss}\n aria-label={t('settingsClose')}\n >\n \u00D7\n </button>\n )}\n </div>\n {children}\n </dialog>\n )\n}\n\n/** One atomic server request owns validation and execution, with a bounded expiry hold. */\nexport function useSecurityOperation() {\n const [busy, setBusy] = useState(false)\n const running = useRef(false)\n const [message, setMessage] = useState<SettingsMessage | null>(null)\n async function run<T>(operation: () => Promise<T>, done: (result: T) => void) {\n if (running.current) return\n running.current = true\n setBusy(true)\n setMessage(null)\n const release = holdLoginRedirect(30_000)\n try {\n done(await operation())\n } catch (error) {\n if (isUnauthorized(error)) goToLogin()\n else setMessage(settingsError(error))\n } finally {\n release()\n running.current = false\n setBusy(false)\n }\n }\n return { busy, message, setMessage, run }\n}\n\nexport function OperationError({\n message,\n t,\n}: {\n message: SettingsMessage | null\n t: SecurityTranslate\n}): JSX.Element {\n return (\n <p className=\"auth-remote-error\" role=\"alert\">\n {message && t(message.key, message.params)}\n </p>\n )\n}\n\nexport function CredentialFields({\n t,\n totpEnabled,\n passwordName = 'password',\n codeName = 'currentCode',\n}: {\n t: SecurityTranslate\n totpEnabled: boolean\n passwordName?: string\n codeName?: string\n}): JSX.Element {\n return (\n <>\n <label className=\"auth-remote-field\">\n {t('settingsCurrentPassword')}\n <input type=\"password\" name={passwordName} autoComplete=\"current-password\" required />\n </label>\n {totpEnabled && (\n <label className=\"auth-remote-field\">\n {t('settingsCurrentCode')}\n <input name={codeName} autoComplete=\"one-time-code\" required />\n </label>\n )}\n </>\n )\n}\n\nexport function CancelButton({\n t,\n close,\n busy,\n}: {\n t: SecurityTranslate\n close: () => void\n busy: boolean\n}): JSX.Element {\n return (\n <button className=\"auth-remote-button\" type=\"button\" onClick={close} disabled={busy}>\n {t('settingsCancel')}\n </button>\n )\n}\n", "import type { AccountStatus } from './api.js'\nimport { authRequest, goToLogin } from './api.js'\nimport {\n SecurityDialog,\n CredentialFields,\n CancelButton,\n OperationError,\n useSecurityOperation,\n type SecurityTranslate,\n} from './dialog.js'\n\nexport function PasswordDialog({\n me,\n t,\n close,\n}: {\n me: AccountStatus\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const { busy, message, setMessage, run } = useSecurityOperation()\n return (\n <SecurityDialog title={t('settingsChangePassword')} t={t} close={close} busy={busy}>\n <p>{t('settingsPasswordDescription')}</p>\n <form\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n const next = String(data.get('newPassword') ?? '')\n if (next !== data.get('confirmPassword')) {\n setMessage({ key: 'settingsPasswordMismatch' })\n return\n }\n void run(\n () =>\n authRequest('/auth-remote/password', {\n currentPassword: data.get('currentPassword'),\n ...(me.totpEnabled ? { currentCode: data.get('currentCode') } : {}),\n newPassword: next,\n }),\n () => goToLogin('updated'),\n )\n }}\n >\n <fieldset disabled={busy}>\n <CredentialFields t={t} totpEnabled={me.totpEnabled} passwordName=\"currentPassword\" />\n <label className=\"auth-remote-field\">\n {t('settingsNewPassword')}\n <input name=\"newPassword\" type=\"password\" autoComplete=\"new-password\" required />\n </label>\n <label className=\"auth-remote-field\">\n {t('settingsConfirmPassword')}\n <input name=\"confirmPassword\" type=\"password\" autoComplete=\"new-password\" required />\n </label>\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button className=\"auth-remote-button auth-remote-primary\" disabled={busy} type=\"submit\">\n {t('settingsSavePassword')}\n </button>\n </div>\n </form>\n </SecurityDialog>\n )\n}\n", "import { authRequest, goToLogin, type AccountStatus } from './api.js'\nimport {\n SecurityDialog,\n CredentialFields,\n CancelButton,\n OperationError,\n useSecurityOperation,\n type SecurityTranslate,\n} from './dialog.js'\n\n/** Verification is never cached: every submit verifies and executes atomically. */\nexport function CredentialDialog({\n action,\n me,\n t,\n close,\n}: {\n action: 'revoke' | 'disable'\n me: AccountStatus\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const { busy, message, run } = useSecurityOperation()\n const label = t(action === 'revoke' ? 'settingsSignOutAll' : 'settingsDisableTotp')\n return (\n <SecurityDialog title={label} t={t} close={close} busy={busy}>\n <p>\n {t(action === 'revoke' ? 'settingsSignOutAllDescription' : 'settingsDisableDescription')}\n </p>\n <form\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n void run(\n () =>\n authRequest(\n action === 'revoke' ? '/auth-remote/revoke-sessions' : '/auth-remote/totp/disable',\n {\n password: data.get('password'),\n ...(me.totpEnabled ? { currentCode: data.get('currentCode') } : {}),\n },\n ),\n () => goToLogin('updated'),\n )\n }}\n >\n <fieldset disabled={busy}>\n <CredentialFields t={t} totpEnabled={me.totpEnabled} />\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button className=\"auth-remote-button auth-remote-primary\" disabled={busy} type=\"submit\">\n {label}\n </button>\n </div>\n </form>\n </SecurityDialog>\n )\n}\n\nexport function CurrentSessionDialog({\n t,\n close,\n}: {\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const { busy, message, run } = useSecurityOperation()\n return (\n <SecurityDialog title={t('settingsSignOutCurrent')} t={t} close={close} busy={busy}>\n <p>{t('settingsSignOutCurrentDescription')}</p>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button\n className=\"auth-remote-button auth-remote-primary\"\n data-autofocus\n disabled={busy}\n onClick={() => {\n void run(\n () => authRequest('/auth-remote/logout', {}),\n () => goToLogin('signed-out'),\n )\n }}\n >\n {t('settingsSignOutCurrent')}\n </button>\n </div>\n </SecurityDialog>\n )\n}\n", "import { useEffect, useRef, useState } from 'react'\nimport QRCode from 'qrcode'\nimport type { BindingResponse } from '../../shared/auth-contract.js'\nimport { authRequest, goToLogin, holdLoginRedirect, type AccountStatus } from './api.js'\nimport {\n SecurityDialog,\n CredentialFields,\n CancelButton,\n OperationError,\n useSecurityOperation,\n type SecurityTranslate,\n} from './dialog.js'\n\ntype Binding = { challenge: string; secret: string }\n\nfunction SecretQr({ uri, t }: { uri: string; t: SecurityTranslate }): JSX.Element {\n const [data, setData] = useState('')\n const [failed, setFailed] = useState(false)\n useEffect(() => {\n let live = true\n setData('')\n setFailed(false)\n void QRCode.toDataURL(uri, { width: 220, margin: 2, errorCorrectionLevel: 'M' }).then(\n (value) => {\n if (live) setData(value)\n },\n () => {\n if (live) setFailed(true)\n },\n )\n return () => {\n live = false\n }\n }, [uri])\n return data ? (\n <img src={data} alt={t('settingsQrAlt')} width={220} height={220} />\n ) : (\n <p>{t(failed ? 'settingsQrUnavailable' : 'settingsQrLoading')}</p>\n )\n}\n\nexport function TotpDialog({\n me,\n t,\n close,\n}: {\n me: AccountStatus\n t: SecurityTranslate\n close: () => void\n}): JSX.Element {\n const [binding, setBinding] = useState<Binding | null>(null)\n const [codes, setCodes] = useState<string[] | null>(null)\n const [copied, setCopied] = useState<'success' | 'failed' | null>(null)\n const releaseCodes = useRef<() => void>()\n const { busy, message, setMessage, run } = useSecurityOperation()\n useEffect(() => () => releaseCodes.current?.(), [])\n const issuer = 'DSH Auth Remote'\n const uri = binding\n ? `otpauth://totp/${encodeURIComponent(`${issuer}:${me.username}`)}?secret=${binding.secret}&issuer=${encodeURIComponent(issuer)}&algorithm=SHA1&digits=6&period=30`\n : ''\n const title = t(\n codes\n ? 'settingsBackupTitle'\n : binding\n ? 'settingsScanQr'\n : me.totpEnabled\n ? 'settingsRebindTotp'\n : 'settingsBindTotp',\n )\n return (\n <SecurityDialog title={title} t={t} close={close} busy={busy} locked={codes !== null}>\n {codes ? (\n <>\n <p>{t('settingsBackupDescription')}</p>\n {me.totpEnabled && <p>{t('settingsOldBackupInvalid')}</p>}\n <ol className=\"auth-remote-backup-codes\">\n {codes.map((code) => (\n <li key={code}>{code}</li>\n ))}\n </ol>\n <p role=\"status\">\n {copied &&\n t(copied === 'success' ? 'settingsBackupCopied' : 'settingsBackupCopyFailed')}\n </p>\n <div className=\"auth-remote-dialog-actions\">\n <button\n className=\"auth-remote-button\"\n onClick={() => {\n void (async () => {\n try {\n await navigator.clipboard.writeText(codes.join('\\n'))\n setCopied('success')\n } catch {\n setCopied('failed')\n }\n })()\n }}\n >\n {t('settingsCopyAll')}\n </button>\n <button\n className=\"auth-remote-button auth-remote-primary\"\n onClick={() => {\n goToLogin('updated')\n setCodes(null)\n setBinding(null)\n setCopied(null)\n releaseCodes.current?.()\n releaseCodes.current = undefined\n }}\n >\n {t('settingsBackupSaved')}\n </button>\n </div>\n </>\n ) : binding ? (\n <form\n key=\"confirm\"\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n void run(\n () =>\n authRequest<BindingResponse>('/auth-remote/totp/confirm', {\n challenge: binding.challenge,\n code: data.get('code'),\n }),\n (result) => {\n releaseCodes.current ??= holdLoginRedirect()\n setCodes(result.backupCodes)\n setBinding(null)\n setCopied(null)\n },\n )\n }}\n >\n <SecretQr uri={uri} t={t} />\n <p>\n {t('settingsManualSecret')} <code>{binding.secret}</code>\n </p>\n <fieldset disabled={busy}>\n <label className=\"auth-remote-field\">\n {t('settingsNewCode')}\n <input name=\"code\" autoComplete=\"one-time-code\" required />\n </label>\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button\n type=\"button\"\n className=\"auth-remote-button\"\n disabled={busy}\n onClick={() => {\n setBinding(null)\n setMessage(null)\n }}\n >\n {t('settingsRestartBinding')}\n </button>\n <button\n className=\"auth-remote-button auth-remote-primary\"\n type=\"submit\"\n disabled={busy}\n >\n {t('settingsConfirmBinding')}\n </button>\n </div>\n </form>\n ) : (\n <form\n key=\"credentials\"\n onSubmit={(event) => {\n event.preventDefault()\n const data = new FormData(event.currentTarget)\n void run(\n () =>\n authRequest<Binding>('/auth-remote/totp/start', {\n password: data.get('password'),\n ...(me.totpEnabled ? { currentCode: data.get('currentCode') } : {}),\n }),\n setBinding,\n )\n }}\n >\n <p>{t('settingsBindDescription')}</p>\n <fieldset disabled={busy}>\n <CredentialFields t={t} totpEnabled={me.totpEnabled} />\n </fieldset>\n <OperationError message={message} t={t} />\n <div className=\"auth-remote-dialog-actions\">\n <CancelButton t={t} close={close} busy={busy} />\n <button\n className=\"auth-remote-button auth-remote-primary\"\n type=\"submit\"\n disabled={busy}\n >\n {t('settingsStartBinding')}\n </button>\n </div>\n </form>\n )}\n </SecurityDialog>\n )\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport { authRequest, goToLogin, isUnauthorized, type AccountStatus } from './api.js'\n\n/** Keep the official page from remaining open after this browser session expires or is revoked. */\nexport function monitorSession(ctx: Context): void {\n ctx.effect(() => {\n let active = true\n let checking = false\n let timer: ReturnType<typeof setTimeout> | undefined\n const verify = () => {\n if (!active || checking) return\n checking = true\n void authRequest<AccountStatus>('/auth-remote/me')\n .then(\n (me) => {\n if (!active) return\n clearTimeout(timer)\n const remaining = me.expiresAt - Date.now()\n if (remaining <= 0) {\n goToLogin()\n return\n }\n timer = setTimeout(verify, Math.min(remaining + 20, 24 * 60 * 60 * 1000))\n },\n (error: unknown) => {\n if (active && isUnauthorized(error)) goToLogin()\n },\n )\n .finally(() => {\n checking = false\n })\n }\n verify()\n const poll = setInterval(verify, 5000)\n const off = ctx.on('connection/reset', verify)\n return () => {\n active = false\n clearTimeout(timer)\n clearInterval(poll)\n off()\n }\n }, 'auth-remote.session-monitor')\n}\n", "/** Human-facing text only. Protocol identifiers and command names stay unchanged. */\nexport const en = {\n errorNetwork: 'Connection failed. Check your network and try again.',\n errorRateLimited: 'Too many attempts. Try again in about {seconds} seconds.',\n errorUnauthorized: 'Your session has expired. Sign in again.',\n errorServiceUnavailable: 'The service is temporarily unavailable. Try again later.',\n errorGeneric: 'The operation could not be completed. Try again.',\n\n accountLoginDisabled:\n 'Manual account sign-in is disabled. Refresh this page to use the native sign-in entry.',\n settingsLoginConfiguration: 'Sign-in preferences',\n settingsManualDescription: 'Authorize in a new tab, then paste the callback address.',\n settingsManualAccountLogin: 'Remote DeepSeek account sign-in',\n settingsManualConfigUnavailable: 'Sign-in preferences are temporarily unavailable.',\n settingsManualUnavailable: 'Manual account sign-in is unavailable in this DSH environment.',\n settingsManualSaveFailed:\n 'Could not save this preference. Check the current value and try again.',\n settingsSaving: 'Saving\u2026',\n settingsRetry: 'Retry',\n\n accountLoginTitle: 'Sign in to DeepSeek',\n accountLoginStepOpen: 'Sign in to DeepSeek in a new tab.',\n accountLoginStepCopy: 'Copy the full address after authorization and paste it here.',\n accountLoginCallbackLabel: 'Full callback address',\n accountLoginCallbackHint:\n 'A connection error or 404 after authorization is expected. Copy the full address.',\n accountLoginOpen: 'Open sign-in page',\n accountLoginConfirm: 'Confirm sign-in',\n accountLoginCancel: 'Cancel',\n accountLoginUseApiKey: 'Use API key',\n accountLoginClose: 'Close',\n accountLoginRetry: 'Start again',\n accountLoginReopen: 'Reopen authorization page',\n accountLoginPopupBlocked: 'The new tab was blocked.',\n accountLoginInitializing: 'Preparing authorization\u2026',\n accountLoginWaiting: 'Authorization lasts at most 10 minutes.',\n accountLoginExchanging: 'Completing sign-in\u2026',\n accountLoginInvalidCallback:\n 'This callback address does not match the current authorization. Copy the full address, including code and state, from the latest authorization tab.',\n accountLoginExpired: 'This authorization has expired. Start again.',\n accountLoginMismatch:\n 'This authorization is no longer available in this session. Close this dialog and start again.',\n accountLoginBusy:\n 'Another authorization is in progress. Finish or cancel it before starting again.',\n accountLoginUnavailable: 'This DSH version does not provide compatible account sign-in.',\n accountLoginFailed:\n 'Authorization could not be completed. Start again and submit the address from the new tab.',\n accountLoginNoResponse:\n 'The DeepSeek platform did not respond. Check the DSH server\u2019s network connection and start again.',\n\n loginInitialTitle: 'Sign in',\n loginInitialLoading: 'Checking sign-in status\u2026',\n loginSetupTitle: 'Set up your account first',\n loginSetupDescription:\n 'Run this command in a terminal on the server running DSH, then create a username and password when prompted. The web page cannot create the account.',\n loginSetupCopy: 'Copy command',\n loginSetupRecheck: 'I finished setup',\n loginSetupCopied: 'Command copied.',\n loginSetupCopyFallback: 'Select and copy the command manually.',\n loginSetupNotFound:\n 'No account was found. Check that the command used this profile, then try again.',\n loginTitle: 'Sign in',\n loginUsername: 'Username',\n loginPassword: 'Password',\n loginContinue: 'Continue',\n loginMfaTitle: 'Verify your second factor',\n loginMfaDescription:\n 'Enter the six-digit code from your authenticator or a one-time backup code. This challenge expires in five minutes.',\n loginMfaCode: 'Verification or backup code',\n loginMfaSubmit: 'Verify and sign in',\n loginBackToPassword: 'Back to password sign-in',\n loginMfaExhausted: 'This challenge is exhausted. Enter your password again.',\n loginBindingTitle: 'Connect an authenticator',\n loginBindingDescription:\n 'Scan the QR code with your authenticator, or enter the secret below. After confirmation, ten one-time backup codes will appear and you will need to sign in again.',\n loginBindingQrAlt: 'Authenticator setup QR code',\n loginBindingManualSecret: 'Manual secret',\n loginBindingCode: 'Six-digit code from the authenticator',\n loginBindingConfirm: 'Confirm setup',\n loginBindingRestart: 'Sign in again',\n loginBindingQrUnavailable: 'The QR code is unavailable. Use the manual secret above.',\n loginBindingExhausted: 'This setup challenge is exhausted. Enter your password again.',\n loginBackupTitle: 'Save your backup codes',\n loginBackupDescription:\n 'These codes are shown only once. Store them safely; each code can be used only once. Sign in again after saving them.',\n loginBackupSaved: 'I saved them; sign in again',\n loginOptionalTitle: 'Protect your account',\n loginOptionalDescription:\n 'This profile lets you connect an authenticator later. Connecting one now adds protection; you can also do it in Security settings.',\n loginOptionalBindNow: 'Connect TOTP now',\n loginOptionalSkip: 'Skip and enter DSH',\n loginOptionalVerifyTitle: 'Verify again before setup',\n loginOptionalVerifyDescription: 'Enter your current password to protect your account.',\n loginOptionalCurrentPassword: 'Current password',\n loginOptionalStart: 'Start setup',\n loginOptionalSkipLater: 'Connect later and enter DSH',\n loginReasonExpired: 'Your session has expired. Sign in again.',\n loginReasonUpdated: 'Security settings changed. Sign in again.',\n loginReasonSignedOut: 'You signed out of this session.',\n loginUnavailableTitle: 'Sign-in is temporarily unavailable',\n loginUnavailableDescription: 'The service status is unavailable. Check the connection and retry.',\n loginRetry: 'Check again',\n loginErrorInvalidCredentials: 'The username or password is incorrect. Try again.',\n loginErrorInvalidFactor:\n 'The verification or backup code is incorrect. After five failed attempts, you must enter your password again.',\n loginErrorChallenge: 'This verification expired. Enter your username and password again.',\n loginErrorUninitialized:\n 'The account is not set up. Run the setup command in the server terminal.',\n\n settingsClose: 'Close',\n settingsCancel: 'Cancel',\n settingsOverview: 'Account overview',\n settingsUsername: 'DSH sign-in username',\n settingsCreatedAt: 'Signed in at',\n settingsExpiresAt: 'Session expires at',\n settingsActiveSessions: 'Active sessions',\n settingsTotpRequired: 'TOTP is required by configuration and cannot be turned off.',\n settingsPasswordTitle: 'Password',\n settingsSignOutCurrentDescription: 'Sign out this session? Other sessions will stay signed in.',\n\n settingsSectionLabel: 'Security & sign-in',\n settingsSectionAria: 'Security & sign-in settings',\n settingsTitle: 'Security & sign-in',\n settingsAccountSummary: 'Account: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: 'Enabled',\n settingsTotpNotBound: 'Not connected',\n settingsLoading: 'Loading account status\u2026',\n settingsChangePassword: 'Change password',\n settingsBindTotp: 'Turn on TOTP',\n settingsRebindTotp: 'Reconnect TOTP',\n settingsSessions: 'Session management',\n settingsPasswordMismatch: 'The new passwords do not match.',\n settingsPasswordDescription: 'After this change, every device must sign in again.',\n settingsCurrentPassword: 'Current password',\n settingsCurrentCode: 'Current verification or backup code',\n settingsNewPassword: 'New password',\n settingsConfirmPassword: 'Confirm new password',\n settingsSavePassword: 'Save new password',\n settingsBindDescription:\n 'Enter your current credentials. After connecting the new authenticator, every device must sign in again.',\n settingsStartBinding: 'Start setup',\n settingsDisableTotp: 'Turn off TOTP',\n settingsDisableDescription: 'After turning off TOTP, every device must sign in again.',\n settingsScanQr: 'Scan the QR code',\n settingsQrAlt: 'Authenticator setup QR code',\n settingsQrUnavailable: 'The QR code is unavailable. Use the manual secret below.',\n settingsQrLoading: 'Generating the QR code; you can use the manual secret below.',\n settingsManualSecret: 'Manual secret:',\n settingsNewCode: 'Six-digit code from the new authenticator',\n settingsConfirmBinding: 'Confirm setup',\n settingsRestartBinding: 'Start over',\n settingsSignOutCurrent: 'Sign out this session',\n settingsSignOutAll: 'Sign out all sessions',\n settingsSignOutAllDescription:\n 'Enter your current credentials. All sessions, including this one, and open connections will be revoked.',\n settingsOldBackupInvalid: 'Your previous backup codes no longer work.',\n settingsCopyAll: 'Copy all',\n settingsBackupCopied: 'Backup codes copied.',\n settingsBackupCopyFailed: 'Could not copy. Select the codes and copy them manually.',\n\n settingsBackupTitle: 'Save your backup codes',\n settingsBackupDescription:\n 'These codes are shown only once. Store them safely; each code can be used only once.',\n settingsBackupSaved: 'I saved them; sign in again',\n settingsErrorInvalidCredentials: 'The current password is incorrect.',\n settingsErrorInvalidFactor: 'The current verification or backup code is incorrect.',\n settingsErrorInvalidInput: 'The input is invalid. Passwords must meet the server length rules.',\n settingsErrorChallenge: 'The setup challenge expired. Start setup again.',\n settingsErrorTotpRequired: 'This profile requires TOTP, so it cannot be turned off.',\n} as const\n", "import type { en } from './en.js'\n\nexport const zh = {\n errorNetwork: '\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002',\n errorRateLimited: '\u5C1D\u8BD5\u8FC7\u4E8E\u9891\u7E41\uFF0C\u8BF7\u7EA6 {seconds} \u79D2\u540E\u91CD\u8BD5\u3002',\n errorUnauthorized: '\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002',\n errorServiceUnavailable: '\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002',\n errorGeneric: '\u64CD\u4F5C\u672A\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002',\n\n accountLoginDisabled: '\u624B\u52A8\u8D26\u53F7\u767B\u5F55\u5DF2\u5173\u95ED\u3002\u8BF7\u5237\u65B0\u9875\u9762\uFF0C\u4F7F\u7528\u539F\u751F\u767B\u5F55\u5165\u53E3\u3002',\n settingsLoginConfiguration: '\u767B\u5F55\u914D\u7F6E',\n settingsManualDescription: '\u5728\u65B0\u6807\u7B7E\u9875\u6388\u6743\u540E\uFF0C\u7C98\u8D34\u56DE\u8C03\u5730\u5740\u767B\u5F55\u3002',\n settingsManualAccountLogin: '\u8FDC\u7A0B DeepSeek \u8D26\u53F7\u767B\u5F55',\n settingsManualConfigUnavailable: '\u767B\u5F55\u914D\u7F6E\u6682\u65F6\u4E0D\u53EF\u7528\u3002',\n settingsManualUnavailable: '\u5F53\u524D DSH \u73AF\u5883\u4E0D\u652F\u6301\u624B\u52A8\u8D26\u53F7\u767B\u5F55\u3002',\n settingsManualSaveFailed: '\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u5F53\u524D\u503C\u540E\u91CD\u8BD5\u3002',\n settingsSaving: '\u6B63\u5728\u4FDD\u5B58\u2026',\n settingsRetry: '\u91CD\u8BD5',\n\n accountLoginTitle: '\u767B\u5F55 DeepSeek \u8D26\u53F7',\n accountLoginStepOpen: '\u5728\u65B0\u6807\u7B7E\u9875\u5B8C\u6210 DeepSeek \u767B\u5F55\u3002',\n accountLoginStepCopy: '\u590D\u5236\u6388\u6743\u540E\u5730\u5740\u680F\u7684\u5B8C\u6574\u5730\u5740\uFF0C\u8FD4\u56DE\u6B64\u5904\u7C98\u8D34\u3002',\n accountLoginCallbackLabel: '\u5B8C\u6574\u56DE\u8C03\u5730\u5740',\n accountLoginCallbackHint: '\u6388\u6743\u540E\u5373\u4F7F\u9875\u9762\u663E\u793A\u8FDE\u63A5\u5931\u8D25\u6216 404\uFF0C\u4E5F\u53EF\u4EE5\u590D\u5236\u5B8C\u6574\u5730\u5740\u3002',\n accountLoginOpen: '\u6253\u5F00\u767B\u5F55\u9875',\n accountLoginConfirm: '\u786E\u8BA4\u767B\u5F55',\n accountLoginCancel: '\u53D6\u6D88',\n accountLoginUseApiKey: '\u4F7F\u7528 API Key',\n accountLoginClose: '\u5173\u95ED',\n accountLoginRetry: '\u91CD\u65B0\u5F00\u59CB',\n accountLoginReopen: '\u91CD\u65B0\u6253\u5F00\u6388\u6743\u9875',\n accountLoginPopupBlocked: '\u65B0\u6807\u7B7E\u9875\u88AB\u6D4F\u89C8\u5668\u62E6\u622A\u3002',\n accountLoginInitializing: '\u6B63\u5728\u51C6\u5907\u6388\u6743\u2026',\n accountLoginWaiting: '\u6388\u6743\u6709\u6548\u671F\u6700\u957F 10 \u5206\u949F\u3002',\n accountLoginExchanging: '\u6B63\u5728\u5B8C\u6210\u767B\u5F55\u2026',\n accountLoginInvalidCallback:\n '\u56DE\u8C03\u5730\u5740\u4E0E\u5F53\u524D\u6388\u6743\u4E0D\u5339\u914D\uFF0C\u8BF7\u4ECE\u6700\u8FD1\u4E00\u6B21\u6388\u6743\u6807\u7B7E\u9875\u590D\u5236\u5305\u542B code \u548C state \u7684\u5B8C\u6574\u5730\u5740\u3002',\n accountLoginExpired: '\u672C\u6B21\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u3002',\n accountLoginMismatch: '\u5F53\u524D\u4F1A\u8BDD\u5DF2\u65E0\u6CD5\u7EE7\u7EED\u6B64\u6388\u6743\uFF0C\u8BF7\u5173\u95ED\u5F39\u7A97\u540E\u91CD\u65B0\u5F00\u59CB\u3002',\n accountLoginBusy: '\u5DF2\u6709\u6388\u6743\u6B63\u5728\u8FDB\u884C\uFF0C\u8BF7\u5148\u5B8C\u6210\u6216\u53D6\u6D88\u540E\u518D\u5F00\u59CB\u3002',\n accountLoginUnavailable: '\u5F53\u524D DSH \u7248\u672C\u672A\u63D0\u4F9B\u517C\u5BB9\u7684\u8D26\u53F7\u767B\u5F55\u529F\u80FD\u3002',\n accountLoginFailed: '\u672A\u80FD\u5B8C\u6210\u6388\u6743\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\uFF0C\u5E76\u63D0\u4EA4\u65B0\u6807\u7B7E\u9875\u4E2D\u7684\u56DE\u8C03\u5730\u5740\u3002',\n accountLoginNoResponse: 'DeepSeek \u5E73\u53F0\u672A\u54CD\u5E94\uFF0C\u8BF7\u68C0\u67E5 DSH \u670D\u52A1\u5668\u7684\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u65B0\u5F00\u59CB\u3002',\n\n loginInitialTitle: '\u767B\u5F55',\n loginInitialLoading: '\u6B63\u5728\u68C0\u67E5\u767B\u5F55\u72B6\u6001\u2026',\n loginSetupTitle: '\u5148\u521D\u59CB\u5316\u8D26\u53F7',\n loginSetupDescription:\n '\u8BF7\u5728\u8FD0\u884C DSH \u7684\u670D\u52A1\u5668\u7EC8\u7AEF\u8F93\u5165\u4E0B\u5217\u547D\u4EE4\uFF0C\u7136\u540E\u6309\u63D0\u793A\u521B\u5EFA\u7528\u6237\u540D\u548C\u5BC6\u7801\u3002\u7F51\u9875\u4E0D\u4F1A\u521B\u5EFA\u8D26\u53F7\u3002',\n loginSetupCopy: '\u590D\u5236\u547D\u4EE4',\n loginSetupRecheck: '\u6211\u5DF2\u5B8C\u6210\u521D\u59CB\u5316',\n loginSetupCopied: '\u547D\u4EE4\u5DF2\u590D\u5236\u3002',\n loginSetupCopyFallback: '\u8BF7\u624B\u52A8\u9009\u62E9\u5E76\u590D\u5236\u547D\u4EE4\u3002',\n loginSetupNotFound: '\u5C1A\u672A\u68C0\u6D4B\u5230\u8D26\u53F7\u3002\u8BF7\u786E\u8BA4\u547D\u4EE4\u4F7F\u7528\u4E86\u5F53\u524D profile\uFF0C\u518D\u91CD\u65B0\u68C0\u67E5\u3002',\n loginTitle: '\u767B\u5F55',\n loginUsername: '\u7528\u6237\u540D',\n loginPassword: '\u5BC6\u7801',\n loginContinue: '\u7EE7\u7EED',\n loginMfaTitle: '\u9A8C\u8BC1\u7B2C\u4E8C\u56E0\u7D20',\n loginMfaDescription: '\u8F93\u5165\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u4E2D\u7684 6 \u4F4D\u6570\u5B57\uFF0C\u6216\u8F93\u5165\u4E00\u6B21\u6027\u5907\u7528\u7801\u3002\u6311\u6218 5 \u5206\u949F\u540E\u5931\u6548\u3002',\n loginMfaCode: '\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801',\n loginMfaSubmit: '\u9A8C\u8BC1\u5E76\u767B\u5F55',\n loginBackToPassword: '\u8FD4\u56DE\u5BC6\u7801\u767B\u5F55',\n loginMfaExhausted: '\u672C\u6B21\u6311\u6218\u5DF2\u7528\u5C3D\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002',\n loginBindingTitle: '\u7ED1\u5B9A\u8EAB\u4EFD\u9A8C\u8BC1\u5668',\n loginBindingDescription:\n '\u4F7F\u7528\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u626B\u63CF\u4E8C\u7EF4\u7801\uFF0C\u6216\u624B\u52A8\u8F93\u5165\u4E0B\u65B9\u5BC6\u94A5\u3002\u786E\u8BA4\u6210\u529F\u540E\u5C06\u663E\u793A 10 \u4E2A\u4E00\u6B21\u6027\u5907\u7528\u7801\uFF0C\u5E76\u8981\u6C42\u91CD\u65B0\u767B\u5F55\u3002',\n loginBindingQrAlt: '\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7ED1\u5B9A\u4E8C\u7EF4\u7801',\n loginBindingManualSecret: '\u624B\u5DE5\u5BC6\u94A5',\n loginBindingCode: '\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u4E2D\u7684 6 \u4F4D\u9A8C\u8BC1\u7801',\n loginBindingConfirm: '\u786E\u8BA4\u7ED1\u5B9A',\n loginBindingRestart: '\u91CD\u65B0\u767B\u5F55',\n loginBindingQrUnavailable: '\u4E8C\u7EF4\u7801\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u4F7F\u7528\u4E0A\u65B9\u624B\u5DE5\u5BC6\u94A5\u3002',\n loginBindingExhausted: '\u7ED1\u5B9A\u6311\u6218\u5DF2\u7528\u5C3D\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002',\n loginBackupTitle: '\u4FDD\u5B58\u5907\u7528\u7801',\n loginBackupDescription:\n '\u8FD9\u4E9B\u5907\u7528\u7801\u53EA\u4F1A\u663E\u793A\u8FD9\u4E00\u6B21\u3002\u8BF7\u5B58\u653E\u5728\u5B89\u5168\u7684\u4F4D\u7F6E\uFF0C\u6BCF\u4E2A\u5907\u7528\u7801\u53EA\u80FD\u4F7F\u7528\u4E00\u6B21\u3002\u4FDD\u5B58\u540E\u91CD\u65B0\u767B\u5F55\u3002',\n loginBackupSaved: '\u6211\u5DF2\u4FDD\u5B58\uFF0C\u91CD\u65B0\u767B\u5F55',\n loginOptionalTitle: '\u4FDD\u62A4\u4F60\u7684\u8D26\u53F7',\n loginOptionalDescription:\n '\u5F53\u524D profile \u5141\u8BB8\u7A0D\u540E\u7ED1\u5B9A\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u3002\u73B0\u5728\u7ED1\u5B9A\u53EF\u4EE5\u589E\u52A0\u4FDD\u62A4\uFF1B\u8DF3\u8FC7\u540E\u4E5F\u53EF\u5728\u5B89\u5168\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u3002',\n loginOptionalBindNow: '\u73B0\u5728\u7ED1\u5B9A TOTP',\n loginOptionalSkip: '\u8DF3\u8FC7\uFF0C\u8FDB\u5165 DSH',\n loginOptionalVerifyTitle: '\u518D\u6B21\u9A8C\u8BC1\u540E\u7ED1\u5B9A',\n loginOptionalVerifyDescription: '\u4E3A\u4FDD\u62A4\u8D26\u53F7\uFF0C\u8BF7\u518D\u6B21\u8F93\u5165\u5F53\u524D\u5BC6\u7801\u3002',\n loginOptionalCurrentPassword: '\u5F53\u524D\u5BC6\u7801',\n loginOptionalStart: '\u5F00\u59CB\u7ED1\u5B9A',\n loginOptionalSkipLater: '\u7A0D\u540E\u7ED1\u5B9A\uFF0C\u8FDB\u5165 DSH',\n loginReasonExpired: '\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002',\n loginReasonUpdated: '\u5B89\u5168\u8BBE\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002',\n loginReasonSignedOut: '\u5DF2\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD\u3002',\n loginUnavailableTitle: '\u6682\u65F6\u65E0\u6CD5\u767B\u5F55',\n loginUnavailableDescription: '\u670D\u52A1\u72B6\u6001\u6682\u65F6\u65E0\u6CD5\u53D6\u5F97\uFF0C\u8BF7\u68C0\u67E5\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002',\n loginRetry: '\u91CD\u65B0\u68C0\u67E5',\n loginErrorInvalidCredentials: '\u7528\u6237\u540D\u6216\u5BC6\u7801\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u8BD5\u3002',\n loginErrorInvalidFactor: '\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801\u4E0D\u6B63\u786E\uFF1B\u8FDE\u7EED\u5931\u8D25 5 \u6B21\u540E\u9700\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002',\n loginErrorChallenge: '\u672C\u6B21\u9A8C\u8BC1\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u7528\u6237\u540D\u548C\u5BC6\u7801\u3002',\n loginErrorUninitialized: '\u8D26\u53F7\u5C1A\u672A\u521D\u59CB\u5316\uFF0C\u8BF7\u5148\u5728\u670D\u52A1\u5668\u7EC8\u7AEF\u8FD0\u884C\u521D\u59CB\u5316\u547D\u4EE4\u3002',\n\n settingsClose: '\u5173\u95ED',\n settingsCancel: '\u53D6\u6D88',\n settingsOverview: '\u8D26\u6237\u6982\u89C8',\n settingsUsername: 'DSH \u767B\u5F55\u7528\u6237\u540D',\n settingsCreatedAt: '\u672C\u6B21\u767B\u5F55\u65F6\u95F4',\n settingsExpiresAt: '\u5F53\u524D\u4F1A\u8BDD\u5230\u671F\u65F6\u95F4',\n settingsActiveSessions: '\u6709\u6548\u4F1A\u8BDD\u6570\u91CF',\n settingsTotpRequired: '\u914D\u7F6E\u8981\u6C42\u5F00\u542F TOTP\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002',\n settingsPasswordTitle: '\u5BC6\u7801',\n settingsSignOutCurrentDescription: '\u786E\u5B9A\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD\uFF1F\u5176\u4ED6\u4F1A\u8BDD\u5C06\u7EE7\u7EED\u4FDD\u6301\u767B\u5F55\u3002',\n\n settingsSectionLabel: '\u5B89\u5168\u4E0E\u767B\u5F55',\n settingsSectionAria: '\u5B89\u5168\u4E0E\u767B\u5F55\u8BBE\u7F6E',\n settingsTitle: '\u5B89\u5168\u4E0E\u767B\u5F55',\n settingsAccountSummary: '\u8D26\u53F7\uFF1A{username} \u00B7 TOTP\uFF1A{totp}',\n settingsTotpEnabled: '\u5DF2\u542F\u7528',\n settingsTotpNotBound: '\u672A\u7ED1\u5B9A',\n settingsLoading: '\u6B63\u5728\u8BFB\u53D6\u8D26\u53F7\u72B6\u6001\u2026',\n settingsChangePassword: '\u4FEE\u6539\u5BC6\u7801',\n settingsBindTotp: '\u5F00\u542F TOTP',\n settingsRebindTotp: '\u91CD\u65B0\u7ED1\u5B9A TOTP',\n settingsSessions: '\u4F1A\u8BDD\u7BA1\u7406',\n settingsPasswordMismatch: '\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4\u3002',\n settingsPasswordDescription: '\u5B8C\u6210\u540E\u6240\u6709\u8BBE\u5907\u90FD\u9700\u8981\u91CD\u65B0\u767B\u5F55\u3002',\n settingsCurrentPassword: '\u5F53\u524D\u5BC6\u7801',\n settingsCurrentCode: '\u5F53\u524D\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801',\n settingsNewPassword: '\u65B0\u5BC6\u7801',\n settingsConfirmPassword: '\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801',\n settingsSavePassword: '\u4FDD\u5B58\u65B0\u5BC6\u7801',\n settingsBindDescription: '\u8BF7\u8F93\u5165\u5F53\u524D\u51ED\u8BC1\uFF1B\u65B0\u7ED1\u5B9A\u5B8C\u6210\u540E\u6240\u6709\u8BBE\u5907\u90FD\u9700\u8981\u91CD\u65B0\u767B\u5F55\u3002',\n settingsStartBinding: '\u5F00\u59CB\u7ED1\u5B9A',\n settingsDisableTotp: '\u5173\u95ED TOTP',\n settingsDisableDescription: '\u5173\u95ED\u540E\u6240\u6709\u8BBE\u5907\u90FD\u9700\u8981\u91CD\u65B0\u767B\u5F55\u3002',\n settingsScanQr: '\u626B\u63CF\u4E8C\u7EF4\u7801',\n settingsQrAlt: '\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7ED1\u5B9A\u4E8C\u7EF4\u7801',\n settingsQrUnavailable: '\u4E8C\u7EF4\u7801\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u65B9\u624B\u5DE5\u5BC6\u94A5\u3002',\n settingsQrLoading: '\u4E8C\u7EF4\u7801\u751F\u6210\u4E2D\uFF1B\u4E5F\u53EF\u4EE5\u4F7F\u7528\u4E0B\u65B9\u624B\u5DE5\u5BC6\u94A5\u3002',\n settingsManualSecret: '\u624B\u5DE5\u5BC6\u94A5\uFF1A',\n settingsNewCode: '\u65B0\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7684 6 \u4F4D\u9A8C\u8BC1\u7801',\n settingsConfirmBinding: '\u786E\u8BA4\u7ED1\u5B9A',\n settingsRestartBinding: '\u91CD\u65B0\u5F00\u59CB',\n settingsSignOutCurrent: '\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD',\n settingsSignOutAll: '\u9000\u51FA\u6240\u6709\u4F1A\u8BDD',\n settingsSignOutAllDescription:\n '\u8BF7\u8F93\u5165\u5F53\u524D\u51ED\u8BC1\uFF1B\u63D0\u4EA4\u540E\u5305\u62EC\u5F53\u524D\u4F1A\u8BDD\u5728\u5185\u7684\u5168\u90E8\u4F1A\u8BDD\u548C\u957F\u8FDE\u63A5\u90FD\u4F1A\u5931\u6548\u3002',\n settingsOldBackupInvalid: '\u65E7\u5907\u7528\u7801\u5DF2\u5931\u6548\u3002',\n settingsCopyAll: '\u590D\u5236\u5168\u90E8',\n settingsBackupCopied: '\u5907\u7528\u7801\u5DF2\u590D\u5236\u3002',\n settingsBackupCopyFailed: '\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u9009\u4E2D\u5907\u7528\u7801\u624B\u52A8\u590D\u5236\u3002',\n\n settingsBackupTitle: '\u4FDD\u5B58\u5907\u7528\u7801',\n settingsBackupDescription:\n '\u8FD9\u4E9B\u5907\u7528\u7801\u53EA\u4F1A\u663E\u793A\u8FD9\u4E00\u6B21\u3002\u8BF7\u5B58\u653E\u5728\u5B89\u5168\u7684\u4F4D\u7F6E\uFF0C\u6BCF\u4E2A\u5907\u7528\u7801\u53EA\u80FD\u4F7F\u7528\u4E00\u6B21\u3002',\n settingsBackupSaved: '\u6211\u5DF2\u4FDD\u5B58\uFF0C\u91CD\u65B0\u767B\u5F55',\n settingsErrorInvalidCredentials: '\u5F53\u524D\u5BC6\u7801\u4E0D\u6B63\u786E\u3002',\n settingsErrorInvalidFactor: '\u5F53\u524D\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801\u4E0D\u6B63\u786E\u3002',\n settingsErrorInvalidInput: '\u8F93\u5165\u4E0D\u7B26\u5408\u8981\u6C42\uFF1B\u5BC6\u7801\u9700\u7B26\u5408\u670D\u52A1\u7AEF\u957F\u5EA6\u89C4\u5219\u3002',\n settingsErrorChallenge: '\u7ED1\u5B9A\u6311\u6218\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u7ED1\u5B9A\u3002',\n settingsErrorTotpRequired: '\u5F53\u524D profile \u8981\u6C42 TOTP\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import type { en } from './en.js'\n\nexport const ja = {\n errorNetwork: '\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n errorRateLimited: '\u8A66\u884C\u56DE\u6570\u304C\u591A\u3059\u304E\u307E\u3059\u3002\u7D04 {seconds} \u79D2\u5F8C\u306B\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n errorUnauthorized: '\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n errorServiceUnavailable: '\u30B5\u30FC\u30D3\u30B9\u306F\u4E00\u6642\u7684\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n errorGeneric: '\u64CD\u4F5C\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n accountLoginDisabled:\n '\u624B\u52D5\u30A2\u30AB\u30A6\u30F3\u30C8\u30ED\u30B0\u30A4\u30F3\u306F\u7121\u52B9\u3067\u3059\u3002\u30DA\u30FC\u30B8\u3092\u66F4\u65B0\u3057\u3066\u6A19\u6E96\u306E\u30ED\u30B0\u30A4\u30F3\u6A5F\u80FD\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n settingsLoginConfiguration: '\u30ED\u30B0\u30A4\u30F3\u8A2D\u5B9A',\n settingsManualDescription: '\u65B0\u3057\u3044\u30BF\u30D6\u3067\u8A8D\u8A3C\u3057\u3001\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u30A2\u30C9\u30EC\u30B9\u3092\u8CBC\u308A\u4ED8\u3051\u307E\u3059\u3002',\n settingsManualAccountLogin: '\u30EA\u30E2\u30FC\u30C8 DeepSeek \u30A2\u30AB\u30A6\u30F3\u30C8\u30ED\u30B0\u30A4\u30F3',\n settingsManualConfigUnavailable: '\u30ED\u30B0\u30A4\u30F3\u8A2D\u5B9A\u306F\u4E00\u6642\u7684\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002',\n settingsManualUnavailable: '\u3053\u306E DSH \u74B0\u5883\u3067\u306F\u624B\u52D5\u30A2\u30AB\u30A6\u30F3\u30C8\u30ED\u30B0\u30A4\u30F3\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002',\n settingsManualSaveFailed:\n '\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u73FE\u5728\u306E\u5024\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n settingsSaving: '\u4FDD\u5B58\u4E2D\u2026',\n settingsRetry: '\u518D\u8A66\u884C',\n accountLoginTitle: 'DeepSeek \u306B\u30ED\u30B0\u30A4\u30F3',\n accountLoginStepOpen: '\u65B0\u3057\u3044\u30BF\u30D6\u3067 DeepSeek \u306B\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginStepCopy: '\u8A8D\u8A3C\u5F8C\u306E\u30A2\u30C9\u30EC\u30B9\u5168\u4F53\u3092\u30B3\u30D4\u30FC\u3057\u3001\u3053\u3053\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginCallbackLabel: '\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u30A2\u30C9\u30EC\u30B9\u5168\u4F53',\n accountLoginCallbackHint:\n '\u8A8D\u8A3C\u5F8C\u306B\u63A5\u7D9A\u30A8\u30E9\u30FC\u3084 404 \u304C\u8868\u793A\u3055\u308C\u3066\u3082\u3001\u30A2\u30C9\u30EC\u30B9\u5168\u4F53\u3092\u30B3\u30D4\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginOpen: '\u30ED\u30B0\u30A4\u30F3\u30DA\u30FC\u30B8\u3092\u958B\u304F',\n accountLoginConfirm: '\u30ED\u30B0\u30A4\u30F3\u3092\u78BA\u8A8D',\n accountLoginCancel: '\u30AD\u30E3\u30F3\u30BB\u30EB',\n accountLoginUseApiKey: 'API \u30AD\u30FC\u3092\u4F7F\u7528',\n accountLoginClose: '\u9589\u3058\u308B',\n accountLoginRetry: '\u3084\u308A\u76F4\u3059',\n accountLoginReopen: '\u8A8D\u8A3C\u30DA\u30FC\u30B8\u3092\u518D\u5EA6\u958B\u304F',\n accountLoginPopupBlocked: '\u65B0\u3057\u3044\u30BF\u30D6\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002',\n accountLoginInitializing: '\u8A8D\u8A3C\u3092\u6E96\u5099\u4E2D\u2026',\n accountLoginWaiting: '\u8A8D\u8A3C\u306E\u6709\u52B9\u6642\u9593\u306F\u6700\u5927 10 \u5206\u3067\u3059\u3002',\n accountLoginExchanging: '\u30ED\u30B0\u30A4\u30F3\u3092\u5B8C\u4E86\u4E2D\u2026',\n accountLoginInvalidCallback:\n '\u3053\u306E\u30A2\u30C9\u30EC\u30B9\u306F\u73FE\u5728\u306E\u8A8D\u8A3C\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002\u6700\u65B0\u306E\u8A8D\u8A3C\u30BF\u30D6\u304B\u3089 code \u3068 state \u3092\u542B\u3080\u30A2\u30C9\u30EC\u30B9\u5168\u4F53\u3092\u30B3\u30D4\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginExpired: '\u8A8D\u8A3C\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginMismatch:\n '\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u3001\u3053\u306E\u8A8D\u8A3C\u306F\u5229\u7528\u3067\u304D\u306A\u304F\u306A\u308A\u307E\u3057\u305F\u3002\u30C0\u30A4\u30A2\u30ED\u30B0\u3092\u9589\u3058\u3066\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginBusy: '\u5225\u306E\u8A8D\u8A3C\u304C\u9032\u884C\u4E2D\u3067\u3059\u3002\u5B8C\u4E86\u307E\u305F\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u3066\u304B\u3089\u3001\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginUnavailable: '\u3053\u306E DSH \u30D0\u30FC\u30B8\u30E7\u30F3\u306B\u306F\u5BFE\u5FDC\u3059\u308B\u30A2\u30AB\u30A6\u30F3\u30C8\u30ED\u30B0\u30A4\u30F3\u6A5F\u80FD\u304C\u3042\u308A\u307E\u305B\u3093\u3002',\n accountLoginFailed:\n '\u8A8D\u8A3C\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3084\u308A\u76F4\u3057\u3066\u3001\u65B0\u3057\u3044\u30BF\u30D6\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n accountLoginNoResponse:\n 'DeepSeek \u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u304B\u3089\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093\u3002DSH \u30B5\u30FC\u30D0\u30FC\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginInitialTitle: '\u30ED\u30B0\u30A4\u30F3',\n loginInitialLoading: '\u30ED\u30B0\u30A4\u30F3\u72B6\u614B\u3092\u78BA\u8A8D\u4E2D\u2026',\n loginSetupTitle: '\u5148\u306B\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044',\n loginSetupDescription:\n 'DSH \u304C\u52D5\u4F5C\u3059\u308B\u30B5\u30FC\u30D0\u30FC\u306E\u30BF\u30FC\u30DF\u30CA\u30EB\u3067\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C\u3057\u3001\u6848\u5185\u306B\u5F93\u3063\u3066\u30E6\u30FC\u30B6\u30FC\u540D\u3068\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30A6\u30A7\u30D6\u30DA\u30FC\u30B8\u3067\u306F\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3002',\n loginSetupCopy: '\u30B3\u30DE\u30F3\u30C9\u3092\u30B3\u30D4\u30FC',\n loginSetupRecheck: '\u521D\u671F\u8A2D\u5B9A\u3092\u5B8C\u4E86\u3057\u307E\u3057\u305F',\n loginSetupCopied: '\u30B3\u30DE\u30F3\u30C9\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\u3002',\n loginSetupCopyFallback: '\u30B3\u30DE\u30F3\u30C9\u3092\u9078\u629E\u3057\u3001\u624B\u52D5\u3067\u30B3\u30D4\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginSetupNotFound:\n '\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u3053\u306E\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u3067\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C\u3057\u305F\u304B\u78BA\u8A8D\u3057\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n loginTitle: '\u30ED\u30B0\u30A4\u30F3',\n loginUsername: '\u30E6\u30FC\u30B6\u30FC\u540D',\n loginPassword: '\u30D1\u30B9\u30EF\u30FC\u30C9',\n loginContinue: '\u7D9A\u3051\u308B',\n loginMfaTitle: '\u7B2C 2 \u8981\u7D20\u3092\u78BA\u8A8D',\n loginMfaDescription:\n '\u8A8D\u8A3C\u30A2\u30D7\u30EA\u306E 6 \u6841\u306E\u30B3\u30FC\u30C9\u3001\u307E\u305F\u306F\u4F7F\u3044\u6368\u3066\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u78BA\u8A8D\u306F 5 \u5206\u3067\u671F\u9650\u5207\u308C\u306B\u306A\u308A\u307E\u3059\u3002',\n loginMfaCode: '\u8A8D\u8A3C\u30B3\u30FC\u30C9\u307E\u305F\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9',\n loginMfaSubmit: '\u78BA\u8A8D\u3057\u3066\u30ED\u30B0\u30A4\u30F3',\n loginBackToPassword: '\u30D1\u30B9\u30EF\u30FC\u30C9\u30ED\u30B0\u30A4\u30F3\u306B\u623B\u308B',\n loginMfaExhausted: '\u78BA\u8A8D\u306E\u8A66\u884C\u56DE\u6570\u3092\u4F7F\u3044\u5207\u308A\u307E\u3057\u305F\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginBindingTitle: '\u8A8D\u8A3C\u30A2\u30D7\u30EA\u3092\u9023\u643A',\n loginBindingDescription:\n '\u8A8D\u8A3C\u30A2\u30D7\u30EA\u3067 QR \u30B3\u30FC\u30C9\u3092\u8AAD\u307F\u53D6\u308B\u304B\u3001\u4E0B\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u78BA\u8A8D\u5F8C\u3001\u4F7F\u3044\u6368\u3066\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u304C 10 \u500B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u305D\u306E\u5F8C\u3001\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u304C\u5FC5\u8981\u3067\u3059\u3002',\n loginBindingQrAlt: '\u8A8D\u8A3C\u30A2\u30D7\u30EA\u8A2D\u5B9A\u7528 QR \u30B3\u30FC\u30C9',\n loginBindingManualSecret: '\u624B\u52D5\u5165\u529B\u7528\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8',\n loginBindingCode: '\u8A8D\u8A3C\u30A2\u30D7\u30EA\u306E 6 \u6841\u306E\u30B3\u30FC\u30C9',\n loginBindingConfirm: '\u8A2D\u5B9A\u3092\u78BA\u8A8D',\n loginBindingRestart: '\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3',\n loginBindingQrUnavailable: 'QR \u30B3\u30FC\u30C9\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3002\u4E0A\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3092\u624B\u52D5\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginBindingExhausted: '\u8A2D\u5B9A\u78BA\u8A8D\u306E\u8A66\u884C\u56DE\u6570\u3092\u4F7F\u3044\u5207\u308A\u307E\u3057\u305F\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginBackupTitle: '\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u3092\u4FDD\u5B58',\n loginBackupDescription:\n '\u30B3\u30FC\u30C9\u306F\u4E00\u5EA6\u3060\u3051\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u5B89\u5168\u306A\u5834\u6240\u306B\u4FDD\u7BA1\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5404\u30B3\u30FC\u30C9\u306F\u4E00\u5EA6\u3060\u3051\u4F7F\u7528\u3067\u304D\u307E\u3059\u3002\u4FDD\u5B58\u5F8C\u3001\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginBackupSaved: '\u4FDD\u5B58\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3',\n loginOptionalTitle: '\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4FDD\u8B77',\n loginOptionalDescription:\n '\u3053\u306E\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u3067\u306F\u5F8C\u304B\u3089\u8A8D\u8A3C\u30A2\u30D7\u30EA\u3092\u9023\u643A\u3067\u304D\u307E\u3059\u3002\u4ECA\u9023\u643A\u3059\u308B\u3068\u4FDD\u8B77\u304C\u5F37\u5316\u3055\u308C\u307E\u3059\u3002\u300C\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u300D\u8A2D\u5B9A\u304B\u3089\u3082\u9023\u643A\u3067\u304D\u307E\u3059\u3002',\n loginOptionalBindNow: '\u4ECA\u3059\u3050 TOTP \u3092\u9023\u643A',\n loginOptionalSkip: '\u30B9\u30AD\u30C3\u30D7\u3057\u3066 DSH \u306B\u9032\u3080',\n loginOptionalVerifyTitle: '\u8A2D\u5B9A\u524D\u306B\u518D\u78BA\u8A8D',\n loginOptionalVerifyDescription: '\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4FDD\u8B77\u3059\u308B\u305F\u3081\u3001\u73FE\u5728\u306E\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginOptionalCurrentPassword: '\u73FE\u5728\u306E\u30D1\u30B9\u30EF\u30FC\u30C9',\n loginOptionalStart: '\u8A2D\u5B9A\u3092\u958B\u59CB',\n loginOptionalSkipLater: '\u5F8C\u3067\u9023\u643A\u3057\u3066 DSH \u306B\u9032\u3080',\n loginReasonExpired: '\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginReasonUpdated: '\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u304C\u5909\u66F4\u3055\u308C\u307E\u3057\u305F\u3002\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginReasonSignedOut: '\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u304B\u3089\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002',\n loginUnavailableTitle: '\u30ED\u30B0\u30A4\u30F3\u306F\u4E00\u6642\u7684\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093',\n loginUnavailableDescription:\n '\u30B5\u30FC\u30D3\u30B9\u306E\u72B6\u614B\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n loginRetry: '\u518D\u78BA\u8A8D',\n loginErrorInvalidCredentials:\n '\u30E6\u30FC\u30B6\u30FC\u540D\u307E\u305F\u306F\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002',\n loginErrorInvalidFactor:\n '\u8A8D\u8A3C\u30B3\u30FC\u30C9\u307E\u305F\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u30025 \u56DE\u5931\u6557\u3059\u308B\u3068\u3001\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u518D\u5165\u529B\u304C\u5FC5\u8981\u3067\u3059\u3002',\n loginErrorChallenge: '\u78BA\u8A8D\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u30E6\u30FC\u30B6\u30FC\u540D\u3068\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n loginErrorUninitialized:\n '\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u672A\u8A2D\u5B9A\u3067\u3059\u3002\u30B5\u30FC\u30D0\u30FC\u306E\u30BF\u30FC\u30DF\u30CA\u30EB\u3067\u521D\u671F\u8A2D\u5B9A\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n settingsClose: '\u9589\u3058\u308B',\n settingsCancel: '\u30AD\u30E3\u30F3\u30BB\u30EB',\n settingsOverview: '\u30A2\u30AB\u30A6\u30F3\u30C8\u6982\u8981',\n settingsUsername: 'DSH \u30ED\u30B0\u30A4\u30F3\u30E6\u30FC\u30B6\u30FC\u540D',\n settingsCreatedAt: '\u30ED\u30B0\u30A4\u30F3\u65E5\u6642',\n settingsExpiresAt: '\u30BB\u30C3\u30B7\u30E7\u30F3\u6709\u52B9\u671F\u9650',\n settingsActiveSessions: '\u6709\u52B9\u306A\u30BB\u30C3\u30B7\u30E7\u30F3',\n settingsTotpRequired: '\u8A2D\u5B9A\u3067 TOTP \u304C\u5FC5\u9808\u306B\u306A\u3063\u3066\u3044\u308B\u305F\u3081\u3001\u7121\u52B9\u306B\u3067\u304D\u307E\u305B\u3093\u3002',\n settingsPasswordTitle: '\u30D1\u30B9\u30EF\u30FC\u30C9',\n settingsSignOutCurrentDescription:\n '\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u304B\u3089\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3059\u304B\uFF1F\u4ED6\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u305F\u307E\u307E\u3067\u3059\u3002',\n settingsSectionLabel: '\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3068\u30ED\u30B0\u30A4\u30F3',\n settingsSectionAria: '\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3068\u30ED\u30B0\u30A4\u30F3\u306E\u8A2D\u5B9A',\n settingsTitle: '\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3068\u30ED\u30B0\u30A4\u30F3',\n settingsAccountSummary: '\u30A2\u30AB\u30A6\u30F3\u30C8: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: '\u6709\u52B9',\n settingsTotpNotBound: '\u672A\u9023\u643A',\n settingsLoading: '\u30A2\u30AB\u30A6\u30F3\u30C8\u72B6\u614B\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026',\n settingsChangePassword: '\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u66F4',\n settingsBindTotp: 'TOTP \u3092\u6709\u52B9\u306B\u3059\u308B',\n settingsRebindTotp: 'TOTP \u3092\u518D\u9023\u643A',\n settingsSessions: '\u30BB\u30C3\u30B7\u30E7\u30F3\u7BA1\u7406',\n settingsPasswordMismatch: '\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002',\n settingsPasswordDescription: '\u5909\u66F4\u5F8C\u3001\u3059\u3079\u3066\u306E\u7AEF\u672B\u3067\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u304C\u5FC5\u8981\u3067\u3059\u3002',\n settingsCurrentPassword: '\u73FE\u5728\u306E\u30D1\u30B9\u30EF\u30FC\u30C9',\n settingsCurrentCode: '\u73FE\u5728\u306E\u8A8D\u8A3C\u30B3\u30FC\u30C9\u307E\u305F\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9',\n settingsNewPassword: '\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9',\n settingsConfirmPassword: '\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D',\n settingsSavePassword: '\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u4FDD\u5B58',\n settingsBindDescription:\n '\u73FE\u5728\u306E\u8A8D\u8A3C\u60C5\u5831\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u65B0\u3057\u3044\u8A8D\u8A3C\u30A2\u30D7\u30EA\u306E\u9023\u643A\u5F8C\u3001\u3059\u3079\u3066\u306E\u7AEF\u672B\u3067\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u304C\u5FC5\u8981\u3067\u3059\u3002',\n settingsStartBinding: '\u8A2D\u5B9A\u3092\u958B\u59CB',\n settingsDisableTotp: 'TOTP \u3092\u7121\u52B9\u306B\u3059\u308B',\n settingsDisableDescription: 'TOTP \u3092\u7121\u52B9\u306B\u3059\u308B\u3068\u3001\u3059\u3079\u3066\u306E\u7AEF\u672B\u3067\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3\u304C\u5FC5\u8981\u3067\u3059\u3002',\n settingsScanQr: 'QR \u30B3\u30FC\u30C9\u3092\u8AAD\u307F\u53D6\u308B',\n settingsQrAlt: '\u8A8D\u8A3C\u30A2\u30D7\u30EA\u8A2D\u5B9A\u7528 QR \u30B3\u30FC\u30C9',\n settingsQrUnavailable: 'QR \u30B3\u30FC\u30C9\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3002\u4E0B\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3092\u624B\u52D5\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n settingsQrLoading: 'QR \u30B3\u30FC\u30C9\u3092\u751F\u6210\u4E2D\u3067\u3059\u3002\u4E0B\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3092\u624B\u52D5\u5165\u529B\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002',\n settingsManualSecret: '\u624B\u52D5\u5165\u529B\u7528\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8:',\n settingsNewCode: '\u65B0\u3057\u3044\u8A8D\u8A3C\u30A2\u30D7\u30EA\u306E 6 \u6841\u306E\u30B3\u30FC\u30C9',\n settingsConfirmBinding: '\u8A2D\u5B9A\u3092\u78BA\u8A8D',\n settingsRestartBinding: '\u6700\u521D\u304B\u3089\u3084\u308A\u76F4\u3059',\n settingsSignOutCurrent: '\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u304B\u3089\u30ED\u30B0\u30A2\u30A6\u30C8',\n settingsSignOutAll: '\u3059\u3079\u3066\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u304B\u3089\u30ED\u30B0\u30A2\u30A6\u30C8',\n settingsSignOutAllDescription:\n '\u73FE\u5728\u306E\u8A8D\u8A3C\u60C5\u5831\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u542B\u3080\u3059\u3079\u3066\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3068\u3001\u958B\u3044\u3066\u3044\u308B\u63A5\u7D9A\u3092\u7121\u52B9\u5316\u3057\u307E\u3059\u3002',\n settingsOldBackupInvalid: '\u4EE5\u524D\u306E\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u306F\u4F7F\u7528\u3067\u304D\u306A\u304F\u306A\u308A\u307E\u3059\u3002',\n settingsCopyAll: '\u3059\u3079\u3066\u30B3\u30D4\u30FC',\n settingsBackupCopied: '\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\u3002',\n settingsBackupCopyFailed: '\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30B3\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u624B\u52D5\u3067\u30B3\u30D4\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n settingsBackupTitle: '\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u3092\u4FDD\u5B58',\n settingsBackupDescription:\n '\u30B3\u30FC\u30C9\u306F\u4E00\u5EA6\u3060\u3051\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u5B89\u5168\u306A\u5834\u6240\u306B\u4FDD\u7BA1\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5404\u30B3\u30FC\u30C9\u306F\u4E00\u5EA6\u3060\u3051\u4F7F\u7528\u3067\u304D\u307E\u3059\u3002',\n settingsBackupSaved: '\u4FDD\u5B58\u3057\u307E\u3057\u305F\u3002\u518D\u5EA6\u30ED\u30B0\u30A4\u30F3',\n settingsErrorInvalidCredentials: '\u73FE\u5728\u306E\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002',\n settingsErrorInvalidFactor: '\u73FE\u5728\u306E\u8A8D\u8A3C\u30B3\u30FC\u30C9\u307E\u305F\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B3\u30FC\u30C9\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002',\n settingsErrorInvalidInput:\n '\u5165\u529B\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u30B5\u30FC\u30D0\u30FC\u306E\u6587\u5B57\u6570\u8981\u4EF6\u3092\u6E80\u305F\u3059\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002',\n settingsErrorChallenge: '\u8A2D\u5B9A\u78BA\u8A8D\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u3092\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002',\n settingsErrorTotpRequired: '\u3053\u306E\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u3067\u306F TOTP \u304C\u5FC5\u9808\u306E\u305F\u3081\u3001\u7121\u52B9\u306B\u3067\u304D\u307E\u305B\u3093\u3002',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import type { en } from './en.js'\n\nexport const es = {\n errorNetwork: 'No se pudo conectar. Comprueba la red y vuelve a intentarlo.',\n errorRateLimited: 'Demasiados intentos. Vuelve a intentarlo en unos {seconds} segundos.',\n errorUnauthorized: 'Tu sesi\u00F3n ha caducado. Inicia sesi\u00F3n de nuevo.',\n errorServiceUnavailable: 'El servicio no est\u00E1 disponible temporalmente. Int\u00E9ntalo m\u00E1s tarde.',\n errorGeneric: 'No se pudo completar la operaci\u00F3n. Vuelve a intentarlo.',\n accountLoginDisabled:\n 'El inicio de sesi\u00F3n manual est\u00E1 desactivado. Actualiza la p\u00E1gina para usar el acceso nativo.',\n settingsLoginConfiguration: 'Preferencias de inicio de sesi\u00F3n',\n settingsManualDescription: 'Autoriza en una pesta\u00F1a nueva y pega la direcci\u00F3n de retorno.',\n settingsManualAccountLogin: 'Inicio de sesi\u00F3n remoto en DeepSeek',\n settingsManualConfigUnavailable:\n 'Las preferencias de inicio de sesi\u00F3n no est\u00E1n disponibles temporalmente.',\n settingsManualUnavailable: 'El inicio de sesi\u00F3n manual no est\u00E1 disponible en este entorno DSH.',\n settingsManualSaveFailed:\n 'No se pudo guardar esta preferencia. Comprueba el valor actual y vuelve a intentarlo.',\n settingsSaving: 'Guardando\u2026',\n settingsRetry: 'Reintentar',\n accountLoginTitle: 'Iniciar sesi\u00F3n en DeepSeek',\n accountLoginStepOpen: 'Inicia sesi\u00F3n en DeepSeek en una pesta\u00F1a nueva.',\n accountLoginStepCopy: 'Copia la direcci\u00F3n completa tras la autorizaci\u00F3n y p\u00E9gala aqu\u00ED.',\n accountLoginCallbackLabel: 'Direcci\u00F3n de retorno completa',\n accountLoginCallbackHint:\n 'Es normal ver un error de conexi\u00F3n o 404 tras autorizar. Copia la direcci\u00F3n completa.',\n accountLoginOpen: 'Abrir p\u00E1gina de acceso',\n accountLoginConfirm: 'Confirmar inicio de sesi\u00F3n',\n accountLoginCancel: 'Cancelar',\n accountLoginUseApiKey: 'Usar clave de API',\n accountLoginClose: 'Cerrar',\n accountLoginRetry: 'Empezar de nuevo',\n accountLoginReopen: 'Reabrir p\u00E1gina de autorizaci\u00F3n',\n accountLoginPopupBlocked: 'Se ha bloqueado la pesta\u00F1a nueva.',\n accountLoginInitializing: 'Preparando autorizaci\u00F3n\u2026',\n accountLoginWaiting: 'La autorizaci\u00F3n dura un m\u00E1ximo de 10 minutos.',\n accountLoginExchanging: 'Completando inicio de sesi\u00F3n\u2026',\n accountLoginInvalidCallback:\n 'Esta direcci\u00F3n no coincide con la autorizaci\u00F3n actual. Copia la direcci\u00F3n completa, incluidos code y state, de la \u00FAltima pesta\u00F1a de autorizaci\u00F3n.',\n accountLoginExpired: 'Esta autorizaci\u00F3n ha caducado. Empieza de nuevo.',\n accountLoginMismatch:\n 'Esta autorizaci\u00F3n ya no est\u00E1 disponible en esta sesi\u00F3n. Cierra el di\u00E1logo y empieza de nuevo.',\n accountLoginBusy:\n 'Hay otra autorizaci\u00F3n en curso. Compl\u00E9tala o canc\u00E9lala antes de volver a empezar.',\n accountLoginUnavailable: 'Esta versi\u00F3n de DSH no ofrece un inicio de sesi\u00F3n compatible.',\n accountLoginFailed:\n 'No se pudo completar la autorizaci\u00F3n. Empieza de nuevo y env\u00EDa la direcci\u00F3n de la nueva pesta\u00F1a.',\n accountLoginNoResponse:\n 'La plataforma DeepSeek no respondi\u00F3. Comprueba la conexi\u00F3n de red del servidor DSH y empieza de nuevo.',\n loginInitialTitle: 'Iniciar sesi\u00F3n',\n loginInitialLoading: 'Comprobando estado de acceso\u2026',\n loginSetupTitle: 'Primero configura tu cuenta',\n loginSetupDescription:\n 'Ejecuta este comando en un terminal del servidor donde se ejecuta DSH y crea un nombre de usuario y una contrase\u00F1a cuando se soliciten. La p\u00E1gina web no puede crear la cuenta.',\n loginSetupCopy: 'Copiar comando',\n loginSetupRecheck: 'He terminado la configuraci\u00F3n',\n loginSetupCopied: 'Comando copiado.',\n loginSetupCopyFallback: 'Selecciona el comando y c\u00F3pialo manualmente.',\n loginSetupNotFound:\n 'No se encontr\u00F3 ninguna cuenta. Comprueba que el comando us\u00F3 este perfil y vuelve a intentarlo.',\n loginTitle: 'Iniciar sesi\u00F3n',\n loginUsername: 'Nombre de usuario',\n loginPassword: 'Contrase\u00F1a',\n loginContinue: 'Continuar',\n loginMfaTitle: 'Verifica el segundo factor',\n loginMfaDescription:\n 'Introduce el c\u00F3digo de seis d\u00EDgitos de tu aplicaci\u00F3n de autenticaci\u00F3n o un c\u00F3digo de respaldo de un solo uso. Esta verificaci\u00F3n caduca en cinco minutos.',\n loginMfaCode: 'C\u00F3digo de verificaci\u00F3n o de respaldo',\n loginMfaSubmit: 'Verificar e iniciar sesi\u00F3n',\n loginBackToPassword: 'Volver al acceso con contrase\u00F1a',\n loginMfaExhausted:\n 'Se han agotado los intentos de verificaci\u00F3n. Introduce tu contrase\u00F1a de nuevo.',\n loginBindingTitle: 'Vincula una aplicaci\u00F3n de autenticaci\u00F3n',\n loginBindingDescription:\n 'Escanea el c\u00F3digo QR con tu aplicaci\u00F3n de autenticaci\u00F3n o introduce el secreto de abajo. Tras confirmar, aparecer\u00E1n diez c\u00F3digos de respaldo de un solo uso y tendr\u00E1s que iniciar sesi\u00F3n de nuevo.',\n loginBindingQrAlt: 'C\u00F3digo QR de configuraci\u00F3n del autenticador',\n loginBindingManualSecret: 'Secreto para entrada manual',\n loginBindingCode: 'C\u00F3digo de seis d\u00EDgitos del autenticador',\n loginBindingConfirm: 'Confirmar configuraci\u00F3n',\n loginBindingRestart: 'Iniciar sesi\u00F3n de nuevo',\n loginBindingQrUnavailable: 'El c\u00F3digo QR no est\u00E1 disponible. Usa el secreto de arriba.',\n loginBindingExhausted:\n 'Se han agotado los intentos de configuraci\u00F3n. Introduce tu contrase\u00F1a de nuevo.',\n loginBackupTitle: 'Guarda tus c\u00F3digos de respaldo',\n loginBackupDescription:\n 'Estos c\u00F3digos se muestran una sola vez. Gu\u00E1rdalos en un lugar seguro; cada c\u00F3digo solo se puede usar una vez. Inicia sesi\u00F3n de nuevo despu\u00E9s de guardarlos.',\n loginBackupSaved: 'Ya los guard\u00E9; iniciar sesi\u00F3n',\n loginOptionalTitle: 'Protege tu cuenta',\n loginOptionalDescription:\n 'Este perfil permite vincular un autenticador m\u00E1s tarde. Vincularlo ahora a\u00F1ade protecci\u00F3n; tambi\u00E9n puedes hacerlo en los ajustes de seguridad.',\n loginOptionalBindNow: 'Vincular TOTP ahora',\n loginOptionalSkip: 'Omitir y entrar en DSH',\n loginOptionalVerifyTitle: 'Verifica de nuevo antes de configurar',\n loginOptionalVerifyDescription: 'Introduce tu contrase\u00F1a actual para proteger tu cuenta.',\n loginOptionalCurrentPassword: 'Contrase\u00F1a actual',\n loginOptionalStart: 'Iniciar configuraci\u00F3n',\n loginOptionalSkipLater: 'Vincular m\u00E1s tarde y entrar en DSH',\n loginReasonExpired: 'Tu sesi\u00F3n ha caducado. Inicia sesi\u00F3n de nuevo.',\n loginReasonUpdated: 'Los ajustes de seguridad han cambiado. Inicia sesi\u00F3n de nuevo.',\n loginReasonSignedOut: 'Has cerrado esta sesi\u00F3n.',\n loginUnavailableTitle: 'El inicio de sesi\u00F3n no est\u00E1 disponible temporalmente',\n loginUnavailableDescription:\n 'No se puede consultar el estado del servicio. Comprueba la conexi\u00F3n y vuelve a intentarlo.',\n loginRetry: 'Comprobar de nuevo',\n loginErrorInvalidCredentials:\n 'El nombre de usuario o la contrase\u00F1a son incorrectos. Vuelve a intentarlo.',\n loginErrorInvalidFactor:\n 'El c\u00F3digo de verificaci\u00F3n o de respaldo es incorrecto. Tras cinco intentos fallidos tendr\u00E1s que introducir tu contrase\u00F1a de nuevo.',\n loginErrorChallenge:\n 'Esta verificaci\u00F3n ha caducado. Introduce de nuevo tu nombre de usuario y contrase\u00F1a.',\n loginErrorUninitialized:\n 'La cuenta no est\u00E1 configurada. Ejecuta el comando de configuraci\u00F3n en el terminal del servidor.',\n settingsClose: 'Cerrar',\n settingsCancel: 'Cancelar',\n settingsOverview: 'Resumen de la cuenta',\n settingsUsername: 'Usuario de acceso a DSH',\n settingsCreatedAt: 'Inicio de sesi\u00F3n',\n settingsExpiresAt: 'Caducidad de la sesi\u00F3n',\n settingsActiveSessions: 'Sesiones activas',\n settingsTotpRequired: 'La configuraci\u00F3n exige TOTP y no permite desactivarlo.',\n settingsPasswordTitle: 'Contrase\u00F1a',\n settingsSignOutCurrentDescription:\n '\u00BFCerrar esta sesi\u00F3n? Las dem\u00E1s sesiones permanecer\u00E1n abiertas.',\n settingsSectionLabel: 'Seguridad y acceso',\n settingsSectionAria: 'Ajustes de seguridad y acceso',\n settingsTitle: 'Seguridad y acceso',\n settingsAccountSummary: 'Cuenta: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: 'Activado',\n settingsTotpNotBound: 'Sin vincular',\n settingsLoading: 'Cargando estado de la cuenta\u2026',\n settingsChangePassword: 'Cambiar contrase\u00F1a',\n settingsBindTotp: 'Activar TOTP',\n settingsRebindTotp: 'Volver a vincular TOTP',\n settingsSessions: 'Gesti\u00F3n de sesiones',\n settingsPasswordMismatch: 'Las contrase\u00F1as nuevas no coinciden.',\n settingsPasswordDescription:\n 'Tras este cambio, todos los dispositivos tendr\u00E1n que iniciar sesi\u00F3n de nuevo.',\n settingsCurrentPassword: 'Contrase\u00F1a actual',\n settingsCurrentCode: 'C\u00F3digo de verificaci\u00F3n o de respaldo actual',\n settingsNewPassword: 'Contrase\u00F1a nueva',\n settingsConfirmPassword: 'Confirmar contrase\u00F1a nueva',\n settingsSavePassword: 'Guardar contrase\u00F1a nueva',\n settingsBindDescription:\n 'Introduce tus credenciales actuales. Tras vincular el nuevo autenticador, todos los dispositivos tendr\u00E1n que iniciar sesi\u00F3n de nuevo.',\n settingsStartBinding: 'Iniciar configuraci\u00F3n',\n settingsDisableTotp: 'Desactivar TOTP',\n settingsDisableDescription:\n 'Tras desactivar TOTP, todos los dispositivos tendr\u00E1n que iniciar sesi\u00F3n de nuevo.',\n settingsScanQr: 'Escanea el c\u00F3digo QR',\n settingsQrAlt: 'C\u00F3digo QR de configuraci\u00F3n del autenticador',\n settingsQrUnavailable: 'El c\u00F3digo QR no est\u00E1 disponible. Usa el secreto de abajo.',\n settingsQrLoading: 'Generando el c\u00F3digo QR; tambi\u00E9n puedes usar el secreto de abajo.',\n settingsManualSecret: 'Secreto para entrada manual:',\n settingsNewCode: 'C\u00F3digo de seis d\u00EDgitos del nuevo autenticador',\n settingsConfirmBinding: 'Confirmar configuraci\u00F3n',\n settingsRestartBinding: 'Empezar de nuevo',\n settingsSignOutCurrent: 'Cerrar esta sesi\u00F3n',\n settingsSignOutAll: 'Cerrar todas las sesiones',\n settingsSignOutAllDescription:\n 'Introduce tus credenciales actuales. Se revocar\u00E1n todas las sesiones, incluida esta, y las conexiones abiertas.',\n settingsOldBackupInvalid: 'Tus c\u00F3digos de respaldo anteriores dejar\u00E1n de funcionar.',\n settingsCopyAll: 'Copiar todo',\n settingsBackupCopied: 'C\u00F3digos de respaldo copiados.',\n settingsBackupCopyFailed: 'No se pudo copiar. Selecciona los c\u00F3digos y c\u00F3pialos manualmente.',\n settingsBackupTitle: 'Guarda tus c\u00F3digos de respaldo',\n settingsBackupDescription:\n 'Estos c\u00F3digos se muestran una sola vez. Gu\u00E1rdalos en un lugar seguro; cada c\u00F3digo solo se puede usar una vez.',\n settingsBackupSaved: 'Ya los guard\u00E9; iniciar sesi\u00F3n',\n settingsErrorInvalidCredentials: 'La contrase\u00F1a actual es incorrecta.',\n settingsErrorInvalidFactor: 'El c\u00F3digo de verificaci\u00F3n o de respaldo actual es incorrecto.',\n settingsErrorInvalidInput:\n 'La entrada no es v\u00E1lida. La contrase\u00F1a debe cumplir los l\u00EDmites de longitud del servidor.',\n settingsErrorChallenge:\n 'La verificaci\u00F3n de configuraci\u00F3n ha caducado. Inicia la configuraci\u00F3n de nuevo.',\n settingsErrorTotpRequired: 'Este perfil exige TOTP, por lo que no se puede desactivar.',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import type { en } from './en.js'\n\nexport const fr = {\n errorNetwork: 'Connexion impossible. V\u00E9rifiez le r\u00E9seau et r\u00E9essayez.',\n errorRateLimited: 'Trop de tentatives. R\u00E9essayez dans environ {seconds} secondes.',\n errorUnauthorized: 'Votre session a expir\u00E9. Reconnectez-vous.',\n errorServiceUnavailable: 'Le service est temporairement indisponible. R\u00E9essayez plus tard.',\n errorGeneric: 'Impossible de terminer cette op\u00E9ration. R\u00E9essayez.',\n accountLoginDisabled:\n 'La connexion manuelle est d\u00E9sactiv\u00E9e. Actualisez la page pour utiliser la connexion native.',\n settingsLoginConfiguration: 'Pr\u00E9f\u00E9rences de connexion',\n settingsManualDescription: 'Autorisez dans un nouvel onglet, puis collez l\u2019adresse de retour.',\n settingsManualAccountLogin: 'Connexion distante au compte DeepSeek',\n settingsManualConfigUnavailable:\n 'Les pr\u00E9f\u00E9rences de connexion sont temporairement indisponibles.',\n settingsManualUnavailable: 'La connexion manuelle est indisponible dans cet environnement DSH.',\n settingsManualSaveFailed:\n 'Impossible d\u2019enregistrer cette pr\u00E9f\u00E9rence. V\u00E9rifiez la valeur actuelle et r\u00E9essayez.',\n settingsSaving: 'Enregistrement\u2026',\n settingsRetry: 'R\u00E9essayer',\n accountLoginTitle: 'Se connecter \u00E0 DeepSeek',\n accountLoginStepOpen: 'Connectez-vous \u00E0 DeepSeek dans un nouvel onglet.',\n accountLoginStepCopy: 'Apr\u00E8s l\u2019autorisation, copiez l\u2019adresse compl\u00E8te et collez-la ici.',\n accountLoginCallbackLabel: 'Adresse de retour compl\u00E8te',\n accountLoginCallbackHint:\n 'Une erreur de connexion ou 404 apr\u00E8s l\u2019autorisation est normale. Copiez l\u2019adresse compl\u00E8te.',\n accountLoginOpen: 'Ouvrir la page de connexion',\n accountLoginConfirm: 'Confirmer la connexion',\n accountLoginCancel: 'Annuler',\n accountLoginUseApiKey: 'Utiliser une cl\u00E9 API',\n accountLoginClose: 'Fermer',\n accountLoginRetry: 'Recommencer',\n accountLoginReopen: 'Rouvrir la page d\u2019autorisation',\n accountLoginPopupBlocked: 'Le nouvel onglet a \u00E9t\u00E9 bloqu\u00E9.',\n accountLoginInitializing: 'Pr\u00E9paration de l\u2019autorisation\u2026',\n accountLoginWaiting: 'L\u2019autorisation reste valide au maximum 10 minutes.',\n accountLoginExchanging: 'Finalisation de la connexion\u2026',\n accountLoginInvalidCallback:\n 'Cette adresse ne correspond pas \u00E0 l\u2019autorisation actuelle. Copiez l\u2019adresse compl\u00E8te, avec code et state, depuis le dernier onglet d\u2019autorisation.',\n accountLoginExpired: 'Cette autorisation a expir\u00E9. Recommencez.',\n accountLoginMismatch:\n 'Cette autorisation n\u2019est plus disponible dans cette session. Fermez la fen\u00EAtre et recommencez.',\n accountLoginBusy:\n 'Une autre autorisation est en cours. Terminez-la ou annulez-la avant de recommencer.',\n accountLoginUnavailable: 'Cette version de DSH ne propose pas de connexion au compte compatible.',\n accountLoginFailed:\n 'Impossible de terminer l\u2019autorisation. Recommencez et envoyez l\u2019adresse du nouvel onglet.',\n accountLoginNoResponse:\n 'La plateforme DeepSeek n\u2019a pas r\u00E9pondu. V\u00E9rifiez la connexion r\u00E9seau du serveur DSH et recommencez.',\n loginInitialTitle: 'Se connecter',\n loginInitialLoading: 'V\u00E9rification de la connexion\u2026',\n loginSetupTitle: 'Configurez d\u2019abord votre compte',\n loginSetupDescription:\n 'Ex\u00E9cutez cette commande dans un terminal du serveur o\u00F9 fonctionne DSH, puis cr\u00E9ez un nom d\u2019utilisateur et un mot de passe \u00E0 l\u2019invite. La page web ne peut pas cr\u00E9er le compte.',\n loginSetupCopy: 'Copier la commande',\n loginSetupRecheck: 'J\u2019ai termin\u00E9 la configuration',\n loginSetupCopied: 'Commande copi\u00E9e.',\n loginSetupCopyFallback: 'S\u00E9lectionnez la commande et copiez-la manuellement.',\n loginSetupNotFound:\n 'Aucun compte trouv\u00E9. V\u00E9rifiez que la commande utilisait ce profil, puis r\u00E9essayez.',\n loginTitle: 'Se connecter',\n loginUsername: 'Nom d\u2019utilisateur',\n loginPassword: 'Mot de passe',\n loginContinue: 'Continuer',\n loginMfaTitle: 'V\u00E9rifiez le second facteur',\n loginMfaDescription:\n 'Saisissez le code \u00E0 six chiffres de votre application d\u2019authentification ou un code de secours \u00E0 usage unique. Cette v\u00E9rification expire dans cinq minutes.',\n loginMfaCode: 'Code de v\u00E9rification ou de secours',\n loginMfaSubmit: 'V\u00E9rifier et se connecter',\n loginBackToPassword: 'Revenir \u00E0 la connexion par mot de passe',\n loginMfaExhausted:\n 'Les tentatives de v\u00E9rification sont \u00E9puis\u00E9es. Saisissez \u00E0 nouveau votre mot de passe.',\n loginBindingTitle: 'Associer une application d\u2019authentification',\n loginBindingDescription:\n 'Scannez le code QR avec votre application d\u2019authentification ou saisissez le secret ci-dessous. Apr\u00E8s confirmation, dix codes de secours \u00E0 usage unique s\u2019afficheront et vous devrez vous reconnecter.',\n loginBindingQrAlt: 'Code QR de configuration de l\u2019authentificateur',\n loginBindingManualSecret: 'Secret \u00E0 saisir manuellement',\n loginBindingCode: 'Code \u00E0 six chiffres de l\u2019authentificateur',\n loginBindingConfirm: 'Confirmer la configuration',\n loginBindingRestart: 'Se reconnecter',\n loginBindingQrUnavailable: 'Le code QR est indisponible. Utilisez le secret ci-dessus.',\n loginBindingExhausted:\n 'Les tentatives de configuration sont \u00E9puis\u00E9es. Saisissez \u00E0 nouveau votre mot de passe.',\n loginBackupTitle: 'Enregistrez vos codes de secours',\n loginBackupDescription:\n 'Ces codes ne sont affich\u00E9s qu\u2019une fois. Conservez-les en lieu s\u00FBr ; chacun ne peut \u00EAtre utilis\u00E9 qu\u2019une seule fois. Reconnectez-vous apr\u00E8s les avoir enregistr\u00E9s.',\n loginBackupSaved: 'Codes enregistr\u00E9s ; se reconnecter',\n loginOptionalTitle: 'Prot\u00E9gez votre compte',\n loginOptionalDescription:\n 'Ce profil permet d\u2019associer un authentificateur plus tard. L\u2019associer maintenant renforce la protection ; vous pouvez aussi le faire dans les param\u00E8tres de s\u00E9curit\u00E9.',\n loginOptionalBindNow: 'Associer TOTP maintenant',\n loginOptionalSkip: 'Ignorer et ouvrir DSH',\n loginOptionalVerifyTitle: 'V\u00E9rifiez \u00E0 nouveau avant la configuration',\n loginOptionalVerifyDescription: 'Saisissez votre mot de passe actuel pour prot\u00E9ger votre compte.',\n loginOptionalCurrentPassword: 'Mot de passe actuel',\n loginOptionalStart: 'Commencer la configuration',\n loginOptionalSkipLater: 'Associer plus tard et ouvrir DSH',\n loginReasonExpired: 'Votre session a expir\u00E9. Reconnectez-vous.',\n loginReasonUpdated: 'Les param\u00E8tres de s\u00E9curit\u00E9 ont chang\u00E9. Reconnectez-vous.',\n loginReasonSignedOut: 'Vous avez ferm\u00E9 cette session.',\n loginUnavailableTitle: 'Connexion temporairement indisponible',\n loginUnavailableDescription:\n 'L\u2019\u00E9tat du service est indisponible. V\u00E9rifiez la connexion et r\u00E9essayez.',\n loginRetry: 'V\u00E9rifier \u00E0 nouveau',\n loginErrorInvalidCredentials: 'Le nom d\u2019utilisateur ou le mot de passe est incorrect. R\u00E9essayez.',\n loginErrorInvalidFactor:\n 'Le code de v\u00E9rification ou de secours est incorrect. Apr\u00E8s cinq \u00E9checs, vous devrez saisir \u00E0 nouveau votre mot de passe.',\n loginErrorChallenge:\n 'Cette v\u00E9rification a expir\u00E9. Saisissez \u00E0 nouveau votre nom d\u2019utilisateur et votre mot de passe.',\n loginErrorUninitialized:\n 'Le compte n\u2019est pas configur\u00E9. Ex\u00E9cutez la commande de configuration dans le terminal du serveur.',\n settingsClose: 'Fermer',\n settingsCancel: 'Annuler',\n settingsOverview: 'Vue d\u2019ensemble du compte',\n settingsUsername: 'Nom d\u2019utilisateur de connexion DSH',\n settingsCreatedAt: 'Connexion le',\n settingsExpiresAt: 'Expiration de la session',\n settingsActiveSessions: 'Sessions actives',\n settingsTotpRequired: 'La configuration exige TOTP ; il ne peut pas \u00EAtre d\u00E9sactiv\u00E9.',\n settingsPasswordTitle: 'Mot de passe',\n settingsSignOutCurrentDescription:\n 'Fermer cette session ? Les autres sessions resteront connect\u00E9es.',\n settingsSectionLabel: 'S\u00E9curit\u00E9 et connexion',\n settingsSectionAria: 'Param\u00E8tres de s\u00E9curit\u00E9 et de connexion',\n settingsTitle: 'S\u00E9curit\u00E9 et connexion',\n settingsAccountSummary: 'Compte : {username} \u00B7 TOTP : {totp}',\n settingsTotpEnabled: 'Activ\u00E9',\n settingsTotpNotBound: 'Non associ\u00E9',\n settingsLoading: 'Chargement de l\u2019\u00E9tat du compte\u2026',\n settingsChangePassword: 'Modifier le mot de passe',\n settingsBindTotp: 'Activer TOTP',\n settingsRebindTotp: 'R\u00E9associer TOTP',\n settingsSessions: 'Gestion des sessions',\n settingsPasswordMismatch: 'Les nouveaux mots de passe ne correspondent pas.',\n settingsPasswordDescription:\n 'Apr\u00E8s cette modification, tous les appareils devront se reconnecter.',\n settingsCurrentPassword: 'Mot de passe actuel',\n settingsCurrentCode: 'Code de v\u00E9rification ou de secours actuel',\n settingsNewPassword: 'Nouveau mot de passe',\n settingsConfirmPassword: 'Confirmer le nouveau mot de passe',\n settingsSavePassword: 'Enregistrer le nouveau mot de passe',\n settingsBindDescription:\n 'Saisissez vos identifiants actuels. Apr\u00E8s l\u2019association du nouvel authentificateur, tous les appareils devront se reconnecter.',\n settingsStartBinding: 'Commencer la configuration',\n settingsDisableTotp: 'D\u00E9sactiver TOTP',\n settingsDisableDescription:\n 'Apr\u00E8s la d\u00E9sactivation de TOTP, tous les appareils devront se reconnecter.',\n settingsScanQr: 'Scannez le code QR',\n settingsQrAlt: 'Code QR de configuration de l\u2019authentificateur',\n settingsQrUnavailable: 'Le code QR est indisponible. Utilisez le secret ci-dessous.',\n settingsQrLoading: 'G\u00E9n\u00E9ration du code QR ; vous pouvez aussi utiliser le secret ci-dessous.',\n settingsManualSecret: 'Secret \u00E0 saisir manuellement :',\n settingsNewCode: 'Code \u00E0 six chiffres du nouvel authentificateur',\n settingsConfirmBinding: 'Confirmer la configuration',\n settingsRestartBinding: 'Recommencer',\n settingsSignOutCurrent: 'Fermer cette session',\n settingsSignOutAll: 'Fermer toutes les sessions',\n settingsSignOutAllDescription:\n 'Saisissez vos identifiants actuels. Toutes les sessions, y compris celle-ci, et les connexions ouvertes seront r\u00E9voqu\u00E9es.',\n settingsOldBackupInvalid: 'Vos anciens codes de secours ne fonctionneront plus.',\n settingsCopyAll: 'Tout copier',\n settingsBackupCopied: 'Codes de secours copi\u00E9s.',\n settingsBackupCopyFailed: 'Copie impossible. S\u00E9lectionnez les codes et copiez-les manuellement.',\n settingsBackupTitle: 'Enregistrez vos codes de secours',\n settingsBackupDescription:\n 'Ces codes ne sont affich\u00E9s qu\u2019une fois. Conservez-les en lieu s\u00FBr ; chacun ne peut \u00EAtre utilis\u00E9 qu\u2019une seule fois.',\n settingsBackupSaved: 'Codes enregistr\u00E9s ; se reconnecter',\n settingsErrorInvalidCredentials: 'Le mot de passe actuel est incorrect.',\n settingsErrorInvalidFactor: 'Le code de v\u00E9rification ou de secours actuel est incorrect.',\n settingsErrorInvalidInput:\n 'La saisie est invalide. Le mot de passe doit respecter les limites de longueur du serveur.',\n settingsErrorChallenge:\n 'La v\u00E9rification de configuration a expir\u00E9. Recommencez la configuration.',\n settingsErrorTotpRequired: 'Ce profil exige TOTP ; il ne peut donc pas \u00EAtre d\u00E9sactiv\u00E9.',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import type { en } from './en.js'\n\nexport const de = {\n errorNetwork: 'Verbindung fehlgeschlagen. Pr\u00FCfen Sie das Netzwerk und versuchen Sie es erneut.',\n errorRateLimited: 'Zu viele Versuche. Versuchen Sie es in etwa {seconds} Sekunden erneut.',\n errorUnauthorized: 'Ihre Sitzung ist abgelaufen. Melden Sie sich erneut an.',\n errorServiceUnavailable:\n 'Der Dienst ist vor\u00FCbergehend nicht verf\u00FCgbar. Versuchen Sie es sp\u00E4ter erneut.',\n errorGeneric: 'Der Vorgang konnte nicht abgeschlossen werden. Versuchen Sie es erneut.',\n accountLoginDisabled:\n 'Die manuelle Kontoanmeldung ist deaktiviert. Laden Sie die Seite neu, um die native Anmeldung zu verwenden.',\n settingsLoginConfiguration: 'Anmeldeeinstellungen',\n settingsManualDescription:\n 'Autorisieren Sie in einem neuen Tab und f\u00FCgen Sie dann die R\u00FCckrufadresse ein.',\n settingsManualAccountLogin: 'DeepSeek-Konto aus der Ferne anmelden',\n settingsManualConfigUnavailable: 'Die Anmeldeeinstellungen sind vor\u00FCbergehend nicht verf\u00FCgbar.',\n settingsManualUnavailable:\n 'Die manuelle Kontoanmeldung ist in dieser DSH-Umgebung nicht verf\u00FCgbar.',\n settingsManualSaveFailed:\n 'Diese Einstellung konnte nicht gespeichert werden. Pr\u00FCfen Sie den aktuellen Wert und versuchen Sie es erneut.',\n settingsSaving: 'Wird gespeichert\u2026',\n settingsRetry: 'Erneut versuchen',\n accountLoginTitle: 'Bei DeepSeek anmelden',\n accountLoginStepOpen: 'Melden Sie sich in einem neuen Tab bei DeepSeek an.',\n accountLoginStepCopy:\n 'Kopieren Sie nach der Autorisierung die vollst\u00E4ndige Adresse und f\u00FCgen Sie sie hier ein.',\n accountLoginCallbackLabel: 'Vollst\u00E4ndige R\u00FCckrufadresse',\n accountLoginCallbackHint:\n 'Ein Verbindungsfehler oder 404 nach der Autorisierung ist normal. Kopieren Sie die vollst\u00E4ndige Adresse.',\n accountLoginOpen: 'Anmeldeseite \u00F6ffnen',\n accountLoginConfirm: 'Anmeldung best\u00E4tigen',\n accountLoginCancel: 'Abbrechen',\n accountLoginUseApiKey: 'API-Schl\u00FCssel verwenden',\n accountLoginClose: 'Schlie\u00DFen',\n accountLoginRetry: 'Neu beginnen',\n accountLoginReopen: 'Autorisierungsseite erneut \u00F6ffnen',\n accountLoginPopupBlocked: 'Der neue Tab wurde blockiert.',\n accountLoginInitializing: 'Autorisierung wird vorbereitet\u2026',\n accountLoginWaiting: 'Die Autorisierung ist h\u00F6chstens 10 Minuten g\u00FCltig.',\n accountLoginExchanging: 'Anmeldung wird abgeschlossen\u2026',\n accountLoginInvalidCallback:\n 'Diese R\u00FCckrufadresse passt nicht zur aktuellen Autorisierung. Kopieren Sie die vollst\u00E4ndige Adresse mit code und state aus dem neuesten Autorisierungstab.',\n accountLoginExpired: 'Diese Autorisierung ist abgelaufen. Beginnen Sie erneut.',\n accountLoginMismatch:\n 'Diese Autorisierung ist in dieser Sitzung nicht mehr verf\u00FCgbar. Schlie\u00DFen Sie den Dialog und beginnen Sie erneut.',\n accountLoginBusy:\n 'Eine andere Autorisierung l\u00E4uft bereits. Beenden oder stornieren Sie sie, bevor Sie erneut beginnen.',\n accountLoginUnavailable: 'Diese DSH-Version bietet keine kompatible Kontoanmeldung.',\n accountLoginFailed:\n 'Die Autorisierung konnte nicht abgeschlossen werden. Beginnen Sie erneut und senden Sie die Adresse aus dem neuen Tab.',\n accountLoginNoResponse:\n 'Die DeepSeek-Plattform hat nicht geantwortet. Pr\u00FCfen Sie die Netzwerkverbindung des DSH-Servers und beginnen Sie erneut.',\n loginInitialTitle: 'Anmelden',\n loginInitialLoading: 'Anmeldestatus wird gepr\u00FCft\u2026',\n loginSetupTitle: 'Richten Sie zuerst Ihr Konto ein',\n loginSetupDescription:\n 'F\u00FChren Sie diesen Befehl in einem Terminal auf dem DSH-Server aus und erstellen Sie auf Aufforderung einen Benutzernamen und ein Passwort. \u00DCber die Webseite kann das Konto nicht erstellt werden.',\n loginSetupCopy: 'Befehl kopieren',\n loginSetupRecheck: 'Einrichtung abgeschlossen',\n loginSetupCopied: 'Befehl kopiert.',\n loginSetupCopyFallback: 'Markieren Sie den Befehl und kopieren Sie ihn manuell.',\n loginSetupNotFound:\n 'Kein Konto gefunden. Pr\u00FCfen Sie, ob der Befehl dieses Profil verwendet hat, und versuchen Sie es erneut.',\n loginTitle: 'Anmelden',\n loginUsername: 'Benutzername',\n loginPassword: 'Passwort',\n loginContinue: 'Weiter',\n loginMfaTitle: 'Zweiten Faktor best\u00E4tigen',\n loginMfaDescription:\n 'Geben Sie den sechsstelligen Code Ihrer Authenticator-App oder einen einmaligen Ersatzcode ein. Diese Pr\u00FCfung l\u00E4uft nach f\u00FCnf Minuten ab.',\n loginMfaCode: 'Best\u00E4tigungscode oder Ersatzcode',\n loginMfaSubmit: 'Best\u00E4tigen und anmelden',\n loginBackToPassword: 'Zur\u00FCck zur Passwortanmeldung',\n loginMfaExhausted:\n 'Alle Best\u00E4tigungsversuche sind aufgebraucht. Geben Sie Ihr Passwort erneut ein.',\n loginBindingTitle: 'Authenticator-App verbinden',\n loginBindingDescription:\n 'Scannen Sie den QR-Code mit Ihrer Authenticator-App oder geben Sie den geheimen Schl\u00FCssel unten ein. Nach der Best\u00E4tigung erscheinen zehn einmalige Ersatzcodes und Sie m\u00FCssen sich erneut anmelden.',\n loginBindingQrAlt: 'QR-Code zur Authenticator-Einrichtung',\n loginBindingManualSecret: 'Geheimer Schl\u00FCssel zur manuellen Eingabe',\n loginBindingCode: 'Sechsstelliger Code der Authenticator-App',\n loginBindingConfirm: 'Einrichtung best\u00E4tigen',\n loginBindingRestart: 'Erneut anmelden',\n loginBindingQrUnavailable:\n 'Der QR-Code ist nicht verf\u00FCgbar. Verwenden Sie den geheimen Schl\u00FCssel oben.',\n loginBindingExhausted:\n 'Alle Einrichtungsversuche sind aufgebraucht. Geben Sie Ihr Passwort erneut ein.',\n loginBackupTitle: 'Ersatzcodes speichern',\n loginBackupDescription:\n 'Diese Codes werden nur einmal angezeigt. Bewahren Sie sie sicher auf; jeder Code ist nur einmal verwendbar. Melden Sie sich nach dem Speichern erneut an.',\n loginBackupSaved: 'Gespeichert; erneut anmelden',\n loginOptionalTitle: 'Konto sch\u00FCtzen',\n loginOptionalDescription:\n 'In diesem Profil k\u00F6nnen Sie eine Authenticator-App sp\u00E4ter verbinden. Eine Verbindung jetzt erh\u00F6ht den Schutz; sie ist auch in den Sicherheitseinstellungen m\u00F6glich.',\n loginOptionalBindNow: 'TOTP jetzt verbinden',\n loginOptionalSkip: '\u00DCberspringen und DSH \u00F6ffnen',\n loginOptionalVerifyTitle: 'Vor der Einrichtung erneut best\u00E4tigen',\n loginOptionalVerifyDescription: 'Geben Sie zum Schutz Ihres Kontos Ihr aktuelles Passwort ein.',\n loginOptionalCurrentPassword: 'Aktuelles Passwort',\n loginOptionalStart: 'Einrichtung starten',\n loginOptionalSkipLater: 'Sp\u00E4ter verbinden und DSH \u00F6ffnen',\n loginReasonExpired: 'Ihre Sitzung ist abgelaufen. Melden Sie sich erneut an.',\n loginReasonUpdated: 'Die Sicherheitseinstellungen wurden ge\u00E4ndert. Melden Sie sich erneut an.',\n loginReasonSignedOut: 'Sie haben sich von dieser Sitzung abgemeldet.',\n loginUnavailableTitle: 'Anmeldung vor\u00FCbergehend nicht verf\u00FCgbar',\n loginUnavailableDescription:\n 'Der Dienststatus ist nicht verf\u00FCgbar. Pr\u00FCfen Sie die Verbindung und versuchen Sie es erneut.',\n loginRetry: 'Erneut pr\u00FCfen',\n loginErrorInvalidCredentials: 'Benutzername oder Passwort ist falsch. Versuchen Sie es erneut.',\n loginErrorInvalidFactor:\n 'Der Best\u00E4tigungscode oder Ersatzcode ist falsch. Nach f\u00FCnf Fehlversuchen m\u00FCssen Sie Ihr Passwort erneut eingeben.',\n loginErrorChallenge:\n 'Diese Pr\u00FCfung ist abgelaufen. Geben Sie Benutzernamen und Passwort erneut ein.',\n loginErrorUninitialized:\n 'Das Konto ist nicht eingerichtet. F\u00FChren Sie den Einrichtungsbefehl im Serverterminal aus.',\n settingsClose: 'Schlie\u00DFen',\n settingsCancel: 'Abbrechen',\n settingsOverview: 'Konto\u00FCbersicht',\n settingsUsername: 'Benutzername f\u00FCr die DSH-Anmeldung',\n settingsCreatedAt: 'Angemeldet am',\n settingsExpiresAt: 'Sitzung l\u00E4uft ab am',\n settingsActiveSessions: 'Aktive Sitzungen',\n settingsTotpRequired:\n 'TOTP ist laut Konfiguration erforderlich und kann nicht deaktiviert werden.',\n settingsPasswordTitle: 'Passwort',\n settingsSignOutCurrentDescription: 'Diese Sitzung abmelden? Andere Sitzungen bleiben angemeldet.',\n settingsSectionLabel: 'Sicherheit und Anmeldung',\n settingsSectionAria: 'Einstellungen f\u00FCr Sicherheit und Anmeldung',\n settingsTitle: 'Sicherheit und Anmeldung',\n settingsAccountSummary: 'Konto: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: 'Aktiviert',\n settingsTotpNotBound: 'Nicht verbunden',\n settingsLoading: 'Kontostatus wird geladen\u2026',\n settingsChangePassword: 'Passwort \u00E4ndern',\n settingsBindTotp: 'TOTP aktivieren',\n settingsRebindTotp: 'TOTP neu verbinden',\n settingsSessions: 'Sitzungsverwaltung',\n settingsPasswordMismatch: 'Die neuen Passw\u00F6rter stimmen nicht \u00FCberein.',\n settingsPasswordDescription: 'Nach dieser \u00C4nderung m\u00FCssen sich alle Ger\u00E4te erneut anmelden.',\n settingsCurrentPassword: 'Aktuelles Passwort',\n settingsCurrentCode: 'Aktueller Best\u00E4tigungscode oder Ersatzcode',\n settingsNewPassword: 'Neues Passwort',\n settingsConfirmPassword: 'Neues Passwort best\u00E4tigen',\n settingsSavePassword: 'Neues Passwort speichern',\n settingsBindDescription:\n 'Geben Sie Ihre aktuellen Zugangsdaten ein. Nach dem Verbinden der neuen Authenticator-App m\u00FCssen sich alle Ger\u00E4te erneut anmelden.',\n settingsStartBinding: 'Einrichtung starten',\n settingsDisableTotp: 'TOTP deaktivieren',\n settingsDisableDescription:\n 'Nach dem Deaktivieren von TOTP m\u00FCssen sich alle Ger\u00E4te erneut anmelden.',\n settingsScanQr: 'QR-Code scannen',\n settingsQrAlt: 'QR-Code zur Authenticator-Einrichtung',\n settingsQrUnavailable:\n 'Der QR-Code ist nicht verf\u00FCgbar. Verwenden Sie den geheimen Schl\u00FCssel unten.',\n settingsQrLoading:\n 'QR-Code wird erstellt; Sie k\u00F6nnen auch den geheimen Schl\u00FCssel unten verwenden.',\n settingsManualSecret: 'Geheimer Schl\u00FCssel zur manuellen Eingabe:',\n settingsNewCode: 'Sechsstelliger Code der neuen Authenticator-App',\n settingsConfirmBinding: 'Einrichtung best\u00E4tigen',\n settingsRestartBinding: 'Neu beginnen',\n settingsSignOutCurrent: 'Diese Sitzung abmelden',\n settingsSignOutAll: 'Alle Sitzungen abmelden',\n settingsSignOutAllDescription:\n 'Geben Sie Ihre aktuellen Zugangsdaten ein. Alle Sitzungen, einschlie\u00DFlich dieser, und alle offenen Verbindungen werden widerrufen.',\n settingsOldBackupInvalid: 'Ihre bisherigen Ersatzcodes funktionieren danach nicht mehr.',\n settingsCopyAll: 'Alle kopieren',\n settingsBackupCopied: 'Ersatzcodes kopiert.',\n settingsBackupCopyFailed:\n 'Kopieren fehlgeschlagen. Markieren Sie die Codes und kopieren Sie sie manuell.',\n settingsBackupTitle: 'Ersatzcodes speichern',\n settingsBackupDescription:\n 'Diese Codes werden nur einmal angezeigt. Bewahren Sie sie sicher auf; jeder Code ist nur einmal verwendbar.',\n settingsBackupSaved: 'Gespeichert; erneut anmelden',\n settingsErrorInvalidCredentials: 'Das aktuelle Passwort ist falsch.',\n settingsErrorInvalidFactor: 'Der aktuelle Best\u00E4tigungscode oder Ersatzcode ist falsch.',\n settingsErrorInvalidInput:\n 'Die Eingabe ist ung\u00FCltig. Das Passwort muss die L\u00E4ngenvorgaben des Servers erf\u00FCllen.',\n settingsErrorChallenge:\n 'Die Einrichtungspr\u00FCfung ist abgelaufen. Starten Sie die Einrichtung erneut.',\n settingsErrorTotpRequired:\n 'Dieses Profil erfordert TOTP; es kann daher nicht deaktiviert werden.',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import type { en } from './en.js'\n\nexport const ru = {\n errorNetwork: '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0441\u0435\u0442\u044C \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.',\n errorRateLimited: '\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u043F\u043E\u043F\u044B\u0442\u043E\u043A. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {seconds} \u0441\u0435\u043A.',\n errorUnauthorized: '\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0435\u0430\u043D\u0441\u0430 \u0438\u0441\u0442\u0451\u043A. \u0412\u043E\u0439\u0434\u0438\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.',\n errorServiceUnavailable: '\u0421\u0435\u0440\u0432\u0438\u0441 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435.',\n errorGeneric: '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.',\n accountLoginDisabled:\n '\u0420\u0443\u0447\u043D\u043E\u0439 \u0432\u0445\u043E\u0434 \u0432 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 \u043E\u0442\u043A\u043B\u044E\u0447\u0451\u043D. \u041E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432\u0445\u043E\u0434.',\n settingsLoginConfiguration: '\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0432\u0445\u043E\u0434\u0430',\n settingsManualDescription:\n '\u041F\u0440\u043E\u0439\u0434\u0438\u0442\u0435 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430.',\n settingsManualAccountLogin: '\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0432\u0445\u043E\u0434 \u0432 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 DeepSeek',\n settingsManualConfigUnavailable: '\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0432\u0445\u043E\u0434\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B.',\n settingsManualUnavailable: '\u0420\u0443\u0447\u043D\u043E\u0439 \u0432\u0445\u043E\u0434 \u0432 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432 \u044D\u0442\u043E\u0439 \u0441\u0440\u0435\u0434\u0435 DSH.',\n settingsManualSaveFailed:\n '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0442\u0435\u043A\u0443\u0449\u0435\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.',\n settingsSaving: '\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u2026',\n settingsRetry: '\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C',\n accountLoginTitle: '\u0412\u0445\u043E\u0434 \u0432 DeepSeek',\n accountLoginStepOpen: '\u0412\u043E\u0439\u0434\u0438\u0442\u0435 \u0432 DeepSeek \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.',\n accountLoginStepCopy: '\u041F\u043E\u0441\u043B\u0435 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438 \u0432\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0435\u0433\u043E \u0437\u0434\u0435\u0441\u044C.',\n accountLoginCallbackLabel: '\u041F\u043E\u043B\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430',\n accountLoginCallbackHint:\n '\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 404 \u043F\u043E\u0441\u043B\u0435 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u0430. \u0421\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441.',\n accountLoginOpen: '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u0432\u0445\u043E\u0434\u0430',\n accountLoginConfirm: '\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0432\u0445\u043E\u0434',\n accountLoginCancel: '\u041E\u0442\u043C\u0435\u043D\u0430',\n accountLoginUseApiKey: '\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043A\u043B\u044E\u0447 API',\n accountLoginClose: '\u0417\u0430\u043A\u0440\u044B\u0442\u044C',\n accountLoginRetry: '\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E',\n accountLoginReopen: '\u0421\u043D\u043E\u0432\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438',\n accountLoginPopupBlocked: '\u041D\u043E\u0432\u0430\u044F \u0432\u043A\u043B\u0430\u0434\u043A\u0430 \u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u0430.',\n accountLoginInitializing: '\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438\u2026',\n accountLoginWaiting: '\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 10 \u043C\u0438\u043D\u0443\u0442.',\n accountLoginExchanging: '\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u0430\u2026',\n accountLoginInvalidCallback:\n '\u042D\u0442\u043E\u0442 \u0430\u0434\u0440\u0435\u0441 \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0439 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438. \u0421\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u0441 code \u0438 state \u0438\u0437 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438.',\n accountLoginExpired: '\u0421\u0440\u043E\u043A \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u0442\u0451\u043A. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043D\u043E\u0432\u043E.',\n accountLoginMismatch:\n '\u042D\u0442\u0430 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0441\u0435\u0430\u043D\u0441\u0435. \u0417\u0430\u043A\u0440\u043E\u0439\u0442\u0435 \u043E\u043A\u043D\u043E \u0438 \u043D\u0430\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043D\u043E\u0432\u043E.',\n accountLoginBusy:\n '\u0423\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u0434\u0440\u0443\u0433\u0430\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u0438\u043B\u0438 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u0435 \u0435\u0451, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u043D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E.',\n accountLoginUnavailable: '\u0412 \u044D\u0442\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 DSH \u043D\u0435\u0442 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u0432\u0445\u043E\u0434\u0430 \u0432 \u0430\u043A\u043A\u0430\u0443\u043D\u0442.',\n accountLoginFailed:\n '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043D\u043E\u0432\u043E \u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0438.',\n accountLoginNoResponse:\n '\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430 DeepSeek \u043D\u0435 \u043E\u0442\u0432\u0435\u0442\u0438\u043B\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0441\u0435\u0442\u0435\u0432\u043E\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 DSH \u0438 \u043D\u0430\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043D\u043E\u0432\u043E.',\n loginInitialTitle: '\u0412\u0445\u043E\u0434',\n loginInitialLoading: '\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u0432\u0445\u043E\u0434\u0430\u2026',\n loginSetupTitle: '\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u0442\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442',\n loginSetupDescription:\n '\u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u044D\u0442\u0443 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0432 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u043C \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 DSH, \u0437\u0430\u0442\u0435\u043C \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u0441\u043E\u0437\u0434\u0430\u0439\u0442\u0435 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438 \u043F\u0430\u0440\u043E\u043B\u044C. \u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0430\u043A\u043A\u0430\u0443\u043D\u0442 \u043D\u0430 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435 \u043D\u0435\u043B\u044C\u0437\u044F.',\n loginSetupCopy: '\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443',\n loginSetupRecheck: '\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430',\n loginSetupCopied: '\u041A\u043E\u043C\u0430\u043D\u0434\u0430 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430.',\n loginSetupCopyFallback: '\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0451 \u0432\u0440\u0443\u0447\u043D\u0443\u044E.',\n loginSetupNotFound:\n '\u0410\u043A\u043A\u0430\u0443\u043D\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u0430 \u044D\u0442\u043E\u0442 \u043F\u0440\u043E\u0444\u0438\u043B\u044C, \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.',\n loginTitle: '\u0412\u0445\u043E\u0434',\n loginUsername: '\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F',\n loginPassword: '\u041F\u0430\u0440\u043E\u043B\u044C',\n loginContinue: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C',\n loginMfaTitle: '\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0432\u0442\u043E\u0440\u043E\u0439 \u0444\u0430\u043A\u0442\u043E\u0440',\n loginMfaDescription:\n '\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0448\u0435\u0441\u0442\u0438\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u043A\u043E\u0434 \u0438\u0437 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F-\u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u0438\u043B\u0438 \u043E\u0434\u043D\u043E\u0440\u0430\u0437\u043E\u0432\u044B\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u043A\u043E\u0434. \u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043F\u044F\u0442\u044C \u043C\u0438\u043D\u0443\u0442.',\n loginMfaCode: '\u041A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u043A\u043E\u0434',\n loginMfaSubmit: '\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0438 \u0432\u043E\u0439\u0442\u0438',\n loginBackToPassword: '\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A\u043E \u0432\u0445\u043E\u0434\u0443 \u043F\u043E \u043F\u0430\u0440\u043E\u043B\u044E',\n loginMfaExhausted: '\u041F\u043E\u043F\u044B\u0442\u043A\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D\u044B. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C \u0441\u043D\u043E\u0432\u0430.',\n loginBindingTitle: '\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440',\n loginBindingDescription:\n '\u041E\u0442\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043A\u043E\u0434 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C-\u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C \u0438\u043B\u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0438\u0436\u0435. \u041F\u043E\u0441\u043B\u0435 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043F\u043E\u044F\u0432\u044F\u0442\u0441\u044F \u0434\u0435\u0441\u044F\u0442\u044C \u043E\u0434\u043D\u043E\u0440\u0430\u0437\u043E\u0432\u044B\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0445 \u043A\u043E\u0434\u043E\u0432, \u0437\u0430\u0442\u0435\u043C \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0432\u043E\u0439\u0442\u0438 \u0441\u043D\u043E\u0432\u0430.',\n loginBindingQrAlt: 'QR-\u043A\u043E\u0434 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430',\n loginBindingManualSecret: '\u0421\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0434\u043B\u044F \u0440\u0443\u0447\u043D\u043E\u0433\u043E \u0432\u0432\u043E\u0434\u0430',\n loginBindingCode: '\u0428\u0435\u0441\u0442\u0438\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u043A\u043E\u0434 \u0438\u0437 \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430',\n loginBindingConfirm: '\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443',\n loginBindingRestart: '\u0412\u043E\u0439\u0442\u0438 \u0441\u043D\u043E\u0432\u0430',\n loginBindingQrUnavailable: 'QR-\u043A\u043E\u0434 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432\u044B\u0448\u0435.',\n loginBindingExhausted: '\u041F\u043E\u043F\u044B\u0442\u043A\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D\u044B. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C \u0441\u043D\u043E\u0432\u0430.',\n loginBackupTitle: '\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0435 \u043A\u043E\u0434\u044B',\n loginBackupDescription:\n '\u041A\u043E\u0434\u044B \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \u0425\u0440\u0430\u043D\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u043C \u043C\u0435\u0441\u0442\u0435; \u043A\u0430\u0436\u0434\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \u041F\u043E\u0441\u043B\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0432\u043E\u0439\u0434\u0438\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.',\n loginBackupSaved: '\u041A\u043E\u0434\u044B \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B; \u0432\u043E\u0439\u0442\u0438 \u0441\u043D\u043E\u0432\u0430',\n loginOptionalTitle: '\u0417\u0430\u0449\u0438\u0442\u0438\u0442\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442',\n loginOptionalDescription:\n '\u042D\u0442\u043E\u0442 \u043F\u0440\u043E\u0444\u0438\u043B\u044C \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u043E\u0437\u0436\u0435. \u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0441\u0438\u043B\u0438\u0442 \u0437\u0430\u0449\u0438\u0442\u0443; \u044D\u0442\u043E \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0436\u043D\u043E \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438.',\n loginOptionalBindNow: '\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C TOTP \u0441\u0435\u0439\u0447\u0430\u0441',\n loginOptionalSkip: '\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C DSH',\n loginOptionalVerifyTitle: '\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0443 \u043F\u0435\u0440\u0435\u0434 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439',\n loginOptionalVerifyDescription: '\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C \u0434\u043B\u044F \u0437\u0430\u0449\u0438\u0442\u044B \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430.',\n loginOptionalCurrentPassword: '\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C',\n loginOptionalStart: '\u041D\u0430\u0447\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443',\n loginOptionalSkipLater: '\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435 \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C DSH',\n loginReasonExpired: '\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0435\u0430\u043D\u0441\u0430 \u0438\u0441\u0442\u0451\u043A. \u0412\u043E\u0439\u0434\u0438\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.',\n loginReasonUpdated: '\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u044B. \u0412\u043E\u0439\u0434\u0438\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.',\n loginReasonSignedOut: '\u0412\u044B \u0432\u044B\u0448\u043B\u0438 \u0438\u0437 \u044D\u0442\u043E\u0433\u043E \u0441\u0435\u0430\u043D\u0441\u0430.',\n loginUnavailableTitle: '\u0412\u0445\u043E\u0434 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D',\n loginUnavailableDescription:\n '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.',\n loginRetry: '\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u043D\u043E\u0432\u0430',\n loginErrorInvalidCredentials: '\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.',\n loginErrorInvalidFactor:\n '\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u043A\u043E\u0434. \u041F\u043E\u0441\u043B\u0435 \u043F\u044F\u0442\u0438 \u043D\u0435\u0443\u0434\u0430\u0447\u043D\u044B\u0445 \u043F\u043E\u043F\u044B\u0442\u043E\u043A \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0441\u043D\u043E\u0432\u0430 \u0432\u0432\u0435\u0441\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C.',\n loginErrorChallenge: '\u0421\u0440\u043E\u043A \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0438\u0441\u0442\u0451\u043A. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438 \u043F\u0430\u0440\u043E\u043B\u044C \u0441\u043D\u043E\u0432\u0430.',\n loginErrorUninitialized: '\u0410\u043A\u043A\u0430\u0443\u043D\u0442 \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D. \u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.',\n settingsClose: '\u0417\u0430\u043A\u0440\u044B\u0442\u044C',\n settingsCancel: '\u041E\u0442\u043C\u0435\u043D\u0430',\n settingsOverview: '\u0421\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E\u0431 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0435',\n settingsUsername: '\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0434\u043B\u044F \u0432\u0445\u043E\u0434\u0430 \u0432 DSH',\n settingsCreatedAt: '\u0412\u0440\u0435\u043C\u044F \u0432\u0445\u043E\u0434\u0430',\n settingsExpiresAt: '\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0435\u0430\u043D\u0441\u0430',\n settingsActiveSessions: '\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0441\u0435\u0430\u043D\u0441\u044B',\n settingsTotpRequired: '\u0412 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F TOTP, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0435\u043B\u044C\u0437\u044F.',\n settingsPasswordTitle: '\u041F\u0430\u0440\u043E\u043B\u044C',\n settingsSignOutCurrentDescription: '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u044D\u0442\u043E\u0433\u043E \u0441\u0435\u0430\u043D\u0441\u0430? \u041E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 \u0441\u0435\u0430\u043D\u0441\u044B \u043E\u0441\u0442\u0430\u043D\u0443\u0442\u0441\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u043C\u0438.',\n settingsSectionLabel: '\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438 \u0432\u0445\u043E\u0434',\n settingsSectionAria: '\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0438 \u0432\u0445\u043E\u0434\u0430',\n settingsTitle: '\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438 \u0432\u0445\u043E\u0434',\n settingsAccountSummary: '\u0410\u043A\u043A\u0430\u0443\u043D\u0442: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: '\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E',\n settingsTotpNotBound: '\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043E',\n settingsLoading: '\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430\u2026',\n settingsChangePassword: '\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C',\n settingsBindTotp: '\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C TOTP',\n settingsRebindTotp: '\u041F\u0435\u0440\u0435\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C TOTP',\n settingsSessions: '\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0435\u0430\u043D\u0441\u0430\u043C\u0438',\n settingsPasswordMismatch: '\u041D\u043E\u0432\u044B\u0435 \u043F\u0430\u0440\u043E\u043B\u0438 \u043D\u0435 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0442.',\n settingsPasswordDescription: '\u041F\u043E\u0441\u043B\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0441\u043D\u043E\u0432\u0430 \u0432\u043E\u0439\u0442\u0438 \u043D\u0430 \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u0445.',\n settingsCurrentPassword: '\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C',\n settingsCurrentCode: '\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u043A\u043E\u0434',\n settingsNewPassword: '\u041D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C',\n settingsConfirmPassword: '\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C',\n settingsSavePassword: '\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C',\n settingsBindDescription:\n '\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0443\u0447\u0451\u0442\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435. \u041F\u043E\u0441\u043B\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043D\u043E\u0432\u043E\u0433\u043E \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0441\u043D\u043E\u0432\u0430 \u0432\u043E\u0439\u0442\u0438 \u043D\u0430 \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u0445.',\n settingsStartBinding: '\u041D\u0430\u0447\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443',\n settingsDisableTotp: '\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C TOTP',\n settingsDisableDescription: '\u041F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F TOTP \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0441\u043D\u043E\u0432\u0430 \u0432\u043E\u0439\u0442\u0438 \u043D\u0430 \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u0445.',\n settingsScanQr: '\u041E\u0442\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043A\u043E\u0434',\n settingsQrAlt: 'QR-\u043A\u043E\u0434 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430',\n settingsQrUnavailable: 'QR-\u043A\u043E\u0434 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0438\u0436\u0435.',\n settingsQrLoading: '\u0421\u043E\u0437\u0434\u0430\u0451\u0442\u0441\u044F QR-\u043A\u043E\u0434; \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u043D\u0438\u0436\u0435.',\n settingsManualSecret: '\u0421\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0434\u043B\u044F \u0440\u0443\u0447\u043D\u043E\u0433\u043E \u0432\u0432\u043E\u0434\u0430:',\n settingsNewCode: '\u0428\u0435\u0441\u0442\u0438\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u043A\u043E\u0434 \u0438\u0437 \u043D\u043E\u0432\u043E\u0433\u043E \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430',\n settingsConfirmBinding: '\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443',\n settingsRestartBinding: '\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E',\n settingsSignOutCurrent: '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u044D\u0442\u043E\u0433\u043E \u0441\u0435\u0430\u043D\u0441\u0430',\n settingsSignOutAll: '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0432\u0441\u0435\u0445 \u0441\u0435\u0430\u043D\u0441\u043E\u0432',\n settingsSignOutAllDescription:\n '\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0443\u0447\u0451\u0442\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435. \u0412\u0441\u0435 \u0441\u0435\u0430\u043D\u0441\u044B, \u0432\u043A\u043B\u044E\u0447\u0430\u044F \u044D\u0442\u043E\u0442, \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u043D\u044B.',\n settingsOldBackupInvalid: '\u041F\u0440\u0435\u0436\u043D\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0435 \u043A\u043E\u0434\u044B \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u043D\u0443\u0442 \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C.',\n settingsCopyAll: '\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0451',\n settingsBackupCopied: '\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0435 \u043A\u043E\u0434\u044B \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u044B.',\n settingsBackupCopyFailed: '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \u0412\u044B\u0434\u0435\u043B\u0438\u0442\u0435 \u043A\u043E\u0434\u044B \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0438\u0445 \u0432\u0440\u0443\u0447\u043D\u0443\u044E.',\n settingsBackupTitle: '\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0435 \u043A\u043E\u0434\u044B',\n settingsBackupDescription:\n '\u041A\u043E\u0434\u044B \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \u0425\u0440\u0430\u043D\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u043C \u043C\u0435\u0441\u0442\u0435; \u043A\u0430\u0436\u0434\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437.',\n settingsBackupSaved: '\u041A\u043E\u0434\u044B \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B; \u0432\u043E\u0439\u0442\u0438 \u0441\u043D\u043E\u0432\u0430',\n settingsErrorInvalidCredentials: '\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C.',\n settingsErrorInvalidFactor: '\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u043A\u043E\u0434.',\n settingsErrorInvalidInput:\n '\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435. \u041F\u0430\u0440\u043E\u043B\u044C \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043A \u0434\u043B\u0438\u043D\u0435.',\n settingsErrorChallenge: '\u0421\u0440\u043E\u043A \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0441\u0442\u0451\u043A. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u0441\u043D\u043E\u0432\u0430.',\n settingsErrorTotpRequired: '\u042D\u0442\u043E\u0442 \u043F\u0440\u043E\u0444\u0438\u043B\u044C \u0442\u0440\u0435\u0431\u0443\u0435\u0442 TOTP, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0435\u043B\u044C\u0437\u044F.',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import type { en } from './en.js'\n\nexport const pt = {\n errorNetwork: 'Falha na conex\u00E3o. Verifique a rede e tente novamente.',\n errorRateLimited: 'Muitas tentativas. Tente novamente em cerca de {seconds} segundos.',\n errorUnauthorized: 'Sua sess\u00E3o expirou. Entre novamente.',\n errorServiceUnavailable:\n 'O servi\u00E7o est\u00E1 temporariamente indispon\u00EDvel. Tente novamente mais tarde.',\n errorGeneric: 'N\u00E3o foi poss\u00EDvel concluir a opera\u00E7\u00E3o. Tente novamente.',\n accountLoginDisabled:\n 'O login manual est\u00E1 desativado. Atualize a p\u00E1gina para usar o login nativo.',\n settingsLoginConfiguration: 'Prefer\u00EAncias de login',\n settingsManualDescription: 'Autorize em uma nova aba e cole o endere\u00E7o de retorno.',\n settingsManualAccountLogin: 'Login remoto na conta DeepSeek',\n settingsManualConfigUnavailable: 'As prefer\u00EAncias de login est\u00E3o temporariamente indispon\u00EDveis.',\n settingsManualUnavailable: 'O login manual n\u00E3o est\u00E1 dispon\u00EDvel neste ambiente DSH.',\n settingsManualSaveFailed:\n 'N\u00E3o foi poss\u00EDvel salvar esta prefer\u00EAncia. Verifique o valor atual e tente novamente.',\n settingsSaving: 'Salvando\u2026',\n settingsRetry: 'Tentar novamente',\n accountLoginTitle: 'Entrar no DeepSeek',\n accountLoginStepOpen: 'Entre no DeepSeek em uma nova aba.',\n accountLoginStepCopy: 'Copie o endere\u00E7o completo ap\u00F3s a autoriza\u00E7\u00E3o e cole aqui.',\n accountLoginCallbackLabel: 'Endere\u00E7o de retorno completo',\n accountLoginCallbackHint:\n '\u00C9 normal ver um erro de conex\u00E3o ou 404 ap\u00F3s autorizar. Copie o endere\u00E7o completo.',\n accountLoginOpen: 'Abrir p\u00E1gina de login',\n accountLoginConfirm: 'Confirmar login',\n accountLoginCancel: 'Cancelar',\n accountLoginUseApiKey: 'Usar chave de API',\n accountLoginClose: 'Fechar',\n accountLoginRetry: 'Recome\u00E7ar',\n accountLoginReopen: 'Reabrir p\u00E1gina de autoriza\u00E7\u00E3o',\n accountLoginPopupBlocked: 'A nova aba foi bloqueada.',\n accountLoginInitializing: 'Preparando autoriza\u00E7\u00E3o\u2026',\n accountLoginWaiting: 'A autoriza\u00E7\u00E3o dura no m\u00E1ximo 10 minutos.',\n accountLoginExchanging: 'Concluindo login\u2026',\n accountLoginInvalidCallback:\n 'Este endere\u00E7o n\u00E3o corresponde \u00E0 autoriza\u00E7\u00E3o atual. Copie o endere\u00E7o completo, incluindo code e state, da aba de autoriza\u00E7\u00E3o mais recente.',\n accountLoginExpired: 'Esta autoriza\u00E7\u00E3o expirou. Recomece.',\n accountLoginMismatch:\n 'Esta autoriza\u00E7\u00E3o n\u00E3o est\u00E1 mais dispon\u00EDvel nesta sess\u00E3o. Feche a janela e recomece.',\n accountLoginBusy: 'Outra autoriza\u00E7\u00E3o est\u00E1 em andamento. Conclua ou cancele antes de recome\u00E7ar.',\n accountLoginUnavailable: 'Esta vers\u00E3o do DSH n\u00E3o oferece um login de conta compat\u00EDvel.',\n accountLoginFailed:\n 'N\u00E3o foi poss\u00EDvel concluir a autoriza\u00E7\u00E3o. Recomece e envie o endere\u00E7o da nova aba.',\n accountLoginNoResponse:\n 'A plataforma DeepSeek n\u00E3o respondeu. Verifique a conex\u00E3o de rede do servidor DSH e recomece.',\n loginInitialTitle: 'Entrar',\n loginInitialLoading: 'Verificando status de login\u2026',\n loginSetupTitle: 'Configure sua conta primeiro',\n loginSetupDescription:\n 'Execute este comando em um terminal no servidor que executa o DSH e crie um nome de usu\u00E1rio e uma senha quando solicitado. A p\u00E1gina web n\u00E3o pode criar a conta.',\n loginSetupCopy: 'Copiar comando',\n loginSetupRecheck: 'Conclu\u00ED a configura\u00E7\u00E3o',\n loginSetupCopied: 'Comando copiado.',\n loginSetupCopyFallback: 'Selecione o comando e copie manualmente.',\n loginSetupNotFound:\n 'Nenhuma conta encontrada. Verifique se o comando usou este perfil e tente novamente.',\n loginTitle: 'Entrar',\n loginUsername: 'Nome de usu\u00E1rio',\n loginPassword: 'Senha',\n loginContinue: 'Continuar',\n loginMfaTitle: 'Verifique o segundo fator',\n loginMfaDescription:\n 'Digite o c\u00F3digo de seis d\u00EDgitos do seu aplicativo autenticador ou um c\u00F3digo de recupera\u00E7\u00E3o de uso \u00FAnico. Esta verifica\u00E7\u00E3o expira em cinco minutos.',\n loginMfaCode: 'C\u00F3digo de verifica\u00E7\u00E3o ou de recupera\u00E7\u00E3o',\n loginMfaSubmit: 'Verificar e entrar',\n loginBackToPassword: 'Voltar ao login com senha',\n loginMfaExhausted: 'As tentativas de verifica\u00E7\u00E3o se esgotaram. Digite sua senha novamente.',\n loginBindingTitle: 'Vincule um autenticador',\n loginBindingDescription:\n 'Leia o c\u00F3digo QR com seu aplicativo autenticador ou digite a chave secreta abaixo. Ap\u00F3s a confirma\u00E7\u00E3o, ser\u00E3o exibidos dez c\u00F3digos de recupera\u00E7\u00E3o de uso \u00FAnico e voc\u00EA precisar\u00E1 entrar novamente.',\n loginBindingQrAlt: 'C\u00F3digo QR de configura\u00E7\u00E3o do autenticador',\n loginBindingManualSecret: 'Chave secreta para inser\u00E7\u00E3o manual',\n loginBindingCode: 'C\u00F3digo de seis d\u00EDgitos do autenticador',\n loginBindingConfirm: 'Confirmar configura\u00E7\u00E3o',\n loginBindingRestart: 'Entrar novamente',\n loginBindingQrUnavailable: 'O c\u00F3digo QR est\u00E1 indispon\u00EDvel. Use a chave secreta acima.',\n loginBindingExhausted: 'As tentativas de configura\u00E7\u00E3o se esgotaram. Digite sua senha novamente.',\n loginBackupTitle: 'Salve seus c\u00F3digos de recupera\u00E7\u00E3o',\n loginBackupDescription:\n 'Estes c\u00F3digos s\u00E3o exibidos apenas uma vez. Guarde-os em local seguro; cada c\u00F3digo s\u00F3 pode ser usado uma vez. Entre novamente depois de salv\u00E1-los.',\n loginBackupSaved: 'J\u00E1 salvei; entrar novamente',\n loginOptionalTitle: 'Proteja sua conta',\n loginOptionalDescription:\n 'Este perfil permite vincular um autenticador depois. Vincular agora aumenta a prote\u00E7\u00E3o; voc\u00EA tamb\u00E9m pode fazer isso nas configura\u00E7\u00F5es de seguran\u00E7a.',\n loginOptionalBindNow: 'Vincular TOTP agora',\n loginOptionalSkip: 'Pular e entrar no DSH',\n loginOptionalVerifyTitle: 'Verifique novamente antes de configurar',\n loginOptionalVerifyDescription: 'Digite sua senha atual para proteger sua conta.',\n loginOptionalCurrentPassword: 'Senha atual',\n loginOptionalStart: 'Iniciar configura\u00E7\u00E3o',\n loginOptionalSkipLater: 'Vincular depois e entrar no DSH',\n loginReasonExpired: 'Sua sess\u00E3o expirou. Entre novamente.',\n loginReasonUpdated: 'As configura\u00E7\u00F5es de seguran\u00E7a mudaram. Entre novamente.',\n loginReasonSignedOut: 'Voc\u00EA saiu desta sess\u00E3o.',\n loginUnavailableTitle: 'Login temporariamente indispon\u00EDvel',\n loginUnavailableDescription:\n 'O status do servi\u00E7o est\u00E1 indispon\u00EDvel. Verifique a conex\u00E3o e tente novamente.',\n loginRetry: 'Verificar novamente',\n loginErrorInvalidCredentials: 'O nome de usu\u00E1rio ou a senha est\u00E1 incorreto. Tente novamente.',\n loginErrorInvalidFactor:\n 'O c\u00F3digo de verifica\u00E7\u00E3o ou de recupera\u00E7\u00E3o est\u00E1 incorreto. Ap\u00F3s cinco tentativas malsucedidas, voc\u00EA precisar\u00E1 digitar sua senha novamente.',\n loginErrorChallenge:\n 'Esta verifica\u00E7\u00E3o expirou. Digite seu nome de usu\u00E1rio e sua senha novamente.',\n loginErrorUninitialized:\n 'A conta n\u00E3o est\u00E1 configurada. Execute o comando de configura\u00E7\u00E3o no terminal do servidor.',\n settingsClose: 'Fechar',\n settingsCancel: 'Cancelar',\n settingsOverview: 'Vis\u00E3o geral da conta',\n settingsUsername: 'Nome de usu\u00E1rio de login no DSH',\n settingsCreatedAt: 'In\u00EDcio da sess\u00E3o',\n settingsExpiresAt: 'Expira\u00E7\u00E3o da sess\u00E3o',\n settingsActiveSessions: 'Sess\u00F5es ativas',\n settingsTotpRequired: 'A configura\u00E7\u00E3o exige TOTP e n\u00E3o permite desativ\u00E1-lo.',\n settingsPasswordTitle: 'Senha',\n settingsSignOutCurrentDescription: 'Sair desta sess\u00E3o? As outras sess\u00F5es continuar\u00E3o conectadas.',\n settingsSectionLabel: 'Seguran\u00E7a e login',\n settingsSectionAria: 'Configura\u00E7\u00F5es de seguran\u00E7a e login',\n settingsTitle: 'Seguran\u00E7a e login',\n settingsAccountSummary: 'Conta: {username} \u00B7 TOTP: {totp}',\n settingsTotpEnabled: 'Ativado',\n settingsTotpNotBound: 'N\u00E3o vinculado',\n settingsLoading: 'Carregando status da conta\u2026',\n settingsChangePassword: 'Alterar senha',\n settingsBindTotp: 'Ativar TOTP',\n settingsRebindTotp: 'Vincular TOTP novamente',\n settingsSessions: 'Gerenciamento de sess\u00F5es',\n settingsPasswordMismatch: 'As novas senhas n\u00E3o coincidem.',\n settingsPasswordDescription:\n 'Ap\u00F3s esta altera\u00E7\u00E3o, todos os dispositivos precisar\u00E3o entrar novamente.',\n settingsCurrentPassword: 'Senha atual',\n settingsCurrentCode: 'C\u00F3digo de verifica\u00E7\u00E3o ou de recupera\u00E7\u00E3o atual',\n settingsNewPassword: 'Nova senha',\n settingsConfirmPassword: 'Confirmar nova senha',\n settingsSavePassword: 'Salvar nova senha',\n settingsBindDescription:\n 'Digite suas credenciais atuais. Ap\u00F3s vincular o novo autenticador, todos os dispositivos precisar\u00E3o entrar novamente.',\n settingsStartBinding: 'Iniciar configura\u00E7\u00E3o',\n settingsDisableTotp: 'Desativar TOTP',\n settingsDisableDescription:\n 'Ap\u00F3s desativar TOTP, todos os dispositivos precisar\u00E3o entrar novamente.',\n settingsScanQr: 'Leia o c\u00F3digo QR',\n settingsQrAlt: 'C\u00F3digo QR de configura\u00E7\u00E3o do autenticador',\n settingsQrUnavailable: 'O c\u00F3digo QR est\u00E1 indispon\u00EDvel. Use a chave secreta abaixo.',\n settingsQrLoading: 'Gerando o c\u00F3digo QR; voc\u00EA tamb\u00E9m pode usar a chave secreta abaixo.',\n settingsManualSecret: 'Chave secreta para inser\u00E7\u00E3o manual:',\n settingsNewCode: 'C\u00F3digo de seis d\u00EDgitos do novo autenticador',\n settingsConfirmBinding: 'Confirmar configura\u00E7\u00E3o',\n settingsRestartBinding: 'Recome\u00E7ar',\n settingsSignOutCurrent: 'Sair desta sess\u00E3o',\n settingsSignOutAll: 'Sair de todas as sess\u00F5es',\n settingsSignOutAllDescription:\n 'Digite suas credenciais atuais. Todas as sess\u00F5es, incluindo esta, e as conex\u00F5es abertas ser\u00E3o revogadas.',\n settingsOldBackupInvalid: 'Seus c\u00F3digos de recupera\u00E7\u00E3o anteriores deixar\u00E3o de funcionar.',\n settingsCopyAll: 'Copiar tudo',\n settingsBackupCopied: 'C\u00F3digos de recupera\u00E7\u00E3o copiados.',\n settingsBackupCopyFailed: 'N\u00E3o foi poss\u00EDvel copiar. Selecione os c\u00F3digos e copie manualmente.',\n settingsBackupTitle: 'Salve seus c\u00F3digos de recupera\u00E7\u00E3o',\n settingsBackupDescription:\n 'Estes c\u00F3digos s\u00E3o exibidos apenas uma vez. Guarde-os em local seguro; cada c\u00F3digo s\u00F3 pode ser usado uma vez.',\n settingsBackupSaved: 'J\u00E1 salvei; entrar novamente',\n settingsErrorInvalidCredentials: 'A senha atual est\u00E1 incorreta.',\n settingsErrorInvalidFactor: 'O c\u00F3digo de verifica\u00E7\u00E3o ou de recupera\u00E7\u00E3o atual est\u00E1 incorreto.',\n settingsErrorInvalidInput:\n 'A entrada \u00E9 inv\u00E1lida. A senha deve atender aos limites de tamanho do servidor.',\n settingsErrorChallenge: 'A verifica\u00E7\u00E3o de configura\u00E7\u00E3o expirou. Inicie a configura\u00E7\u00E3o novamente.',\n settingsErrorTotpRequired: 'Este perfil exige TOTP, portanto ele n\u00E3o pode ser desativado.',\n} as const satisfies { [Key in keyof typeof en]: string }\n", "import { en } from './locales/en.js'\nimport { zh } from './locales/zh.js'\nimport { ja } from './locales/ja.js'\nimport { es } from './locales/es.js'\nimport { fr } from './locales/fr.js'\nimport { de } from './locales/de.js'\nimport { ru } from './locales/ru.js'\nimport { pt } from './locales/pt.js'\n\nexport { en, zh, ja, es, fr, de, ru, pt }\nexport const dictionaries = { en, zh, ja, es, fr, de, ru, pt } as const\n\nexport type Locale = keyof typeof dictionaries\nexport type MessageKey = keyof typeof en\n\ntype Placeholders<Text extends string> = Text extends `${string}{${infer Name}}${infer Rest}`\n ? Name | Placeholders<Rest>\n : never\ntype SameSet<Left, Right> = [Left] extends [Right] ? ([Right] extends [Left] ? true : false) : false\ntype MismatchedPlaceholderKeys = {\n [Language in Locale]: {\n [Key in MessageKey]: SameSet<\n Placeholders<(typeof en)[Key]>,\n Placeholders<(typeof dictionaries)[Language][Key]>\n > extends true\n ? never\n : Key\n }[MessageKey]\n}[Locale]\n\n/** A compile-time failure here identifies any key whose placeholder names differ by language. */\nexport const localePlaceholdersMatch: MismatchedPlaceholderKeys extends never ? true : never = true\n\ntype FormatArgs<Key extends MessageKey> = [Placeholders<(typeof en)[Key]>] extends [never]\n ? []\n : [values: Record<Placeholders<(typeof en)[Key]>, string | number>]\n\nexport const localeMemoryKey = 'dsh-auth-remote-lang'\n\n/** Match a valid language tag without treating arbitrary prefixes as language IDs. */\nexport function matchLocale(value: unknown): Locale | null {\n if (typeof value !== 'string') return null\n try {\n if (Intl.getCanonicalLocales(value).length === 0) return null\n const tag = value.toLowerCase()\n const key = Object.hasOwn(dictionaries, tag) ? tag : tag.split('-')[0]!\n return Object.hasOwn(dictionaries, key) ? (key as Locale) : null\n } catch {\n return null\n }\n}\n\nexport function normalizeLocale(value: unknown): Locale {\n return matchLocale(value) ?? 'en'\n}\n\n/** Returns plain text. Insert into textContent, React text, or escape before HTML templates. */\nexport function formatMessage<Key extends MessageKey>(\n locale: Locale | string | undefined,\n key: Key,\n ...args: FormatArgs<Key>\n): string {\n const template: string = dictionaries[normalizeLocale(locale)][key]\n const values = (args[0] ?? {}) as Record<string, string | number>\n return template.replace(/\\{([A-Za-z][A-Za-z0-9]*)\\}/gu, (_match, name: string) => {\n if (!Object.hasOwn(values, name)) throw new Error(`Missing i18n parameter ${name} for ${key}`)\n return String(values[name])\n })\n}\n\n/** For the existing standalone login HTML templates; dynamic values remain text. */\nexport function escapeHtmlText(value: string): string {\n return value.replace(/[&<>\"']/gu, (char) => {\n switch (char) {\n case '&':\n return '&amp;'\n case '<':\n return '&lt;'\n case '>':\n return '&gt;'\n case '\"':\n return '&quot;'\n default:\n return '&#39;'\n }\n })\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client'\nimport { localeMemoryKey } from '../../shared/i18n.js'\n\ntype LocaleForm = Pick<ConfigForm<{ preference?: string }>, 'getSnapshot' | 'subscribe'>\n\n/** Remember only the native form's accepted value, including an explicit cleared preference. */\nexport function rememberLocale(form: LocaleForm): () => void {\n const sync = () => {\n try {\n const snapshot = form.getSnapshot()\n if (snapshot.status !== 'ready' || snapshot.value === undefined) return\n const preference = snapshot.value.preference\n if (preference === undefined) localStorage.removeItem(localeMemoryKey)\n else if (typeof preference === 'string') localStorage.setItem(localeMemoryKey, preference)\n } catch {\n // Storage and transient form failures must not interrupt authentication or settings.\n }\n }\n const stop = form.subscribe(sync)\n sync()\n return stop\n}\n\nexport function installLocaleMemory(ctx: Context): void {\n ctx.inject(['configForms'], (scope) => {\n scope.effect(() => {\n try {\n return rememberLocale(scope.configForms.get<{ preference?: string }>('locale'))\n } catch {\n // An unavailable form leaves the previous memory intact.\n return () => {}\n }\n }, 'auth-remote: accepted locale memory')\n })\n}\n", "/* Inherit the host's live DSH theme. Scope every rule to this settings section.\n * Radius fallbacks match 0.1.7, before DSH published the shared radius tokens. */\n.auth-remote-security {\n min-width: 0;\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-security h2 {\n margin: 0 0 8px;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.auth-remote-security h3 {\n margin: 0 0 8px;\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n}\n\n.auth-remote-security p {\n margin: 0 0 16px;\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 4px 0 20px;\n}\n\n.auth-remote-security form {\n margin: 0;\n padding: 20px 0;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n}\n\n.auth-remote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-bottom: 16px;\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-field input {\n box-sizing: border-box;\n width: 100%;\n max-width: 420px;\n min-width: 0;\n height: 32px;\n padding: 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-field input:focus {\n outline: none;\n border-color: var(--dsw-alias-state-business-primary);\n}\n\n.auth-remote-button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n max-width: 100%;\n padding: 6px 14px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n cursor: pointer;\n}\n\n.auth-remote-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.auth-remote-button[aria-pressed='true'] {\n background: var(--dsw-alias-bg-module-platform);\n border-color: var(--dsw-static-neutral-bluish-400);\n}\n\n.auth-remote-primary {\n border-color: transparent;\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-foreground);\n}\n\n.auth-remote-primary:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n\n.auth-remote-button:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.auth-remote-button:focus-visible {\n outline-style: solid;\n outline-width: var(--dsw-focus-ring-width);\n outline-offset: 2px;\n}\n\n.auth-remote-restart {\n margin-left: 8px;\n}\n\n.auth-remote-security img {\n display: block;\n max-width: 100%;\n height: auto;\n margin: 16px 0;\n border-radius: var(--dsw-radius-md);\n}\n\n.auth-remote-security code,\n.auth-remote-backup-codes {\n font-family: var(--ds-font-family-code);\n overflow-wrap: anywhere;\n user-select: all;\n}\n\n.auth-remote-backup-codes {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px 24px;\n margin: 20px 0;\n padding: 16px 16px 16px 40px;\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-module-platform);\n}\n\n.auth-remote-security .auth-remote-error {\n margin: 12px 0 0;\n color: var(--dsw-alias-state-error-primary);\n}\n\n.auth-remote-error:empty {\n display: none;\n}\n\n.auth-remote-security .auth-remote-manual-setting {\n margin-block: 20px 16px;\n}\n.auth-remote-manual-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px 16px;\n}\n.auth-remote-manual-copy {\n flex: 1 1 180px;\n min-width: 0;\n}\n.auth-remote-security .auth-remote-manual-copy p {\n margin: 4px 0 0;\n}\n.auth-remote-switch {\n box-sizing: border-box;\n flex: 0 0 auto;\n width: 36px;\n height: 20px;\n margin-left: auto;\n padding: 2px;\n border: 0;\n border-radius: 999px;\n corner-shape: round;\n background: var(--dsw-alias-border-l3);\n cursor: pointer;\n}\n.auth-remote-switch > span {\n display: block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n corner-shape: round;\n background: var(--dsw-alias-switch-thumb);\n transition: transform 120ms ease;\n}\n.auth-remote-switch[aria-checked='true'] {\n background: var(--dsw-alias-brand-primary);\n}\n.auth-remote-switch[aria-checked='true'] > span {\n transform: translateX(16px);\n background: var(--dsw-alias-label-primary-foreground);\n}\n.auth-remote-switch:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.auth-remote-switch:focus-visible,\n.auth-remote-policy-hint:focus-visible {\n outline-style: solid;\n outline-width: var(--dsw-focus-ring-width);\n outline-offset: 2px;\n}\n\n.auth-remote-overview {\n margin: 12px 0 20px;\n display: grid;\n gap: 8px;\n}\n.auth-remote-overview > div {\n display: grid;\n grid-template-columns: minmax(100px, 1fr) 2fr;\n gap: 16px;\n}\n.auth-remote-overview dt {\n min-height: 22px;\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-overview dd {\n min-height: 22px;\n margin: 0;\n overflow-wrap: anywhere;\n}\n.auth-remote-loading-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n.auth-remote-totp-status {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.auth-remote-policy-hint {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--dsw-alias-label-secondary);\n border-radius: 50%;\n cursor: help;\n}\n.auth-remote-operation-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 8px 12px;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n padding: 10px 0;\n}\n.auth-remote-security .auth-remote-operation-row h3 {\n margin: 0;\n}\n.auth-remote-operation-row .auth-remote-actions {\n padding: 0;\n justify-content: flex-end;\n}\n.auth-remote-operation-row .auth-remote-button {\n min-height: 32px;\n padding: 4px 10px;\n line-height: 22px;\n}\n.auth-remote-operation-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 20px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n overflow: auto;\n}\n.auth-remote-operation-dialog::backdrop {\n background: rgba(0, 0, 0, 0.45);\n}\n.auth-remote-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n margin-bottom: 16px;\n}\n.auth-remote-dialog-header h2 {\n margin: 0;\n}\n.auth-remote-dialog-close {\n flex: none;\n width: 28px;\n min-height: 28px;\n padding: 0;\n border: 0;\n font-size: 20px;\n line-height: 20px;\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-dialog-actions {\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 20px;\n}\n.auth-remote-operation-dialog fieldset {\n border: 0;\n margin: 0;\n padding: 0;\n min-width: 0;\n}\n.auth-remote-operation-dialog form {\n border: 0;\n padding: 0;\n}\n@media (max-width: 600px) {\n .auth-remote-overview > div {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .auth-remote-switch > span {\n transition: none;\n }\n}\n", "/* Match DSH's account modal typography and shared control/surface tokens. */\n.auth-remote-account-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 0;\n overflow: hidden;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n.auth-remote-account-dialog::backdrop {\n background: rgba(0, 0, 0, 0.45);\n}\n.auth-remote-account-dialog form {\n display: flex;\n flex-direction: column;\n max-height: inherit;\n margin: 0;\n}\n.auth-remote-account-header {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 20px 20px 16px;\n}\n.auth-remote-account-header h2 {\n margin: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n.auth-remote-account-dialog button {\n font: inherit;\n cursor: pointer;\n}\n.auth-remote-account-dialog .auth-remote-account-close {\n box-sizing: border-box;\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n font-size: 20px;\n line-height: 20px;\n}\n.auth-remote-account-close:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n.auth-remote-account-body {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-height: 0;\n padding: 0 20px;\n overflow-y: auto;\n}\n.auth-remote-account-steps,\n.auth-remote-account-hint,\n.auth-remote-account-reopen,\n.auth-remote-account-status,\n.auth-remote-account-error {\n margin: 0;\n font: inherit;\n}\n.auth-remote-account-hint,\n.auth-remote-account-status {\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-account-steps {\n padding-left: 20px;\n}\n.auth-remote-account-steps li + li {\n margin-top: 4px;\n}\n.auth-remote-account-callback,\n.auth-remote-account-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.auth-remote-account-field textarea {\n box-sizing: border-box;\n width: 100%;\n min-height: 72px;\n resize: vertical;\n padding: 8px 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md);\n background: var(--dsw-alias-bg-layer-1);\n color: inherit;\n font: inherit;\n overflow-wrap: anywhere;\n}\n.auth-remote-account-field textarea::placeholder {\n color: var(--dsw-alias-label-secondary);\n opacity: 1;\n}\n.auth-remote-account-field textarea:focus {\n border-color: var(--dsw-alias-state-business-primary);\n}\n.auth-remote-account-hint {\n font-size: 13px;\n line-height: 20px;\n}\n.auth-remote-account-dialog a {\n color: var(--dsw-alias-link);\n font-weight: 500;\n text-decoration: none;\n}\n.auth-remote-account-dialog a:hover,\n.auth-remote-account-dialog a:focus-visible {\n text-decoration: underline dotted;\n text-underline-offset: 3px;\n}\n.auth-remote-account-error {\n color: var(--dsw-alias-state-error-primary);\n}\n.auth-remote-account-status:empty,\n.auth-remote-account-error:empty {\n display: none;\n}\n.auth-remote-account-actions {\n display: flex;\n flex: none;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding: 16px 20px 20px;\n}\n.auth-remote-account-actions button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 72px;\n height: 36px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-md);\n padding: 0 14px;\n background: transparent;\n color: inherit;\n}\n.auth-remote-account-actions button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n.auth-remote-account-actions .auth-remote-account-primary {\n padding: 0 16px;\n background: var(--dsw-alias-button-primary-fill);\n border-color: transparent;\n color: var(--dsw-alias-label-primary-foreground);\n font-weight: 500;\n}\n.auth-remote-account-actions .auth-remote-account-primary:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n.auth-remote-account-dialog :disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n.auth-remote-account-dialog :focus-visible {\n outline-style: solid;\n outline-width: var(--dsw-focus-ring-width);\n outline-offset: 2px;\n}\n@media (max-width: 480px) {\n .auth-remote-account-actions {\n flex-wrap: wrap;\n }\n .auth-remote-account-actions button {\n flex: 1;\n min-width: max-content;\n padding: 0 12px;\n white-space: nowrap;\n }\n}\n", "/** The manual callback is transported in an authenticated POST, never fetched. */\nexport const ACCOUNT_LOGIN_BASE = '/auth-remote/account'\nexport const ACCOUNT_CALLBACK_PATH = '/oauth/callback'\nexport const ACCOUNT_LOGIN_CAPABILITY = '__DSH_AUTH_REMOTE_MANUAL_ACCOUNT_LOGIN__'\n\nimport { satisfies } from 'semver'\n\n/** Forward admission is separate from the exact releases verified by tests. */\nexport function supportsManualAccountLogin(version: string): boolean {\n return satisfies(version, '>=0.2.1-alpha.3', { includePrerelease: true })\n}\n\nexport type AccountLoginPhase =\n | 'initializing'\n | 'waiting-browser'\n | 'exchanging'\n | 'committing'\n | 'succeeded'\n | 'failed'\n | 'expired'\n | 'cancelled'\n\nexport interface AccountLoginAttempt {\n id: string\n phase: AccountLoginPhase\n authorizeUrl?: string\n expiresAt?: number\n errorCode?: string\n}\n\nexport interface AccountLoginState {\n supported: boolean\n enabled: boolean\n status: 'signed-out' | 'credential-stored'\n attempt: AccountLoginAttempt | null\n}\n\nexport function isActiveAccountLogin(phase: AccountLoginPhase): boolean {\n return ['initializing', 'waiting-browser', 'exchanging', 'committing'].includes(phase)\n}\n", "import type { Context } from '@deepseek-ai/cordis'\nimport type {\n ConfigForm,\n ConfigForms,\n SettingsDescribeView,\n SettingsDescribeFace,\n} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport { ACCOUNT_LOGIN_CAPABILITY } from '../../shared/account-login.js'\n\nexport interface ManualAccountPreferences {\n manualAccountLogin: boolean\n}\nexport interface ManualAccountBinding {\n form?: ConfigForm<ManualAccountPreferences>\n mirror?: SettingsDescribeFace\n refresh(): Promise<boolean>\n}\n\n/** All accepted values remain in the native form mirror and its revision queue. */\nexport function manualAccountBinding(ctx: Context): ManualAccountBinding {\n const forms = ctx.get('configForms') as ConfigForms | undefined\n const form = forms?.get<ManualAccountPreferences>('auth-remote')\n const mirror = forms?.describe()\n return {\n ...(form ? { form } : {}),\n ...(mirror ? { mirror } : {}),\n async refresh() {\n if (!mirror || !form) return false\n // A namespace fold cannot publish a document before the first successful\n // read. Let the native mirror recover that read through its own transport.\n if (!mirror.getSnapshot().view) {\n await mirror.ensure()\n return form.getSnapshot().status === 'ready'\n }\n const remote = ctx.get('remote') as\n | {\n settings?: { describe(): Promise<{ ok: boolean; value?: SettingsDescribeView }> }\n }\n | undefined\n const result = await remote?.settings?.describe()\n const view = result?.ok && result.value?.namespaces.find((view) => view.ns === 'auth-remote')\n if (!view) return false\n mirror.acceptView(view)\n return true\n },\n }\n}\n\nexport function hasManualAccountRuntime(): boolean {\n return (globalThis as Record<string, unknown>)[ACCOUNT_LOGIN_CAPABILITY] === true\n}\n", "import { useEffect, useRef, useState, useSyncExternalStore } from 'react'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { ConfigFormSnapshot } from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type { AccountLoginState } from '../../shared/account-login.js'\nimport {\n hasManualAccountRuntime,\n type ManualAccountBinding,\n type ManualAccountPreferences,\n} from '../account/config.js'\nimport { authRequest } from './api.js'\n\nconst unavailable: ConfigFormSnapshot<ManualAccountPreferences> = {\n status: 'unavailable',\n value: undefined,\n base: undefined,\n user: undefined,\n revision: undefined,\n writable: false,\n}\n\nexport function ManualAccountSetting({\n binding,\n t,\n clientAvailable,\n}: {\n binding: ManualAccountBinding\n t: TranslateNS<'auth-remote'>\n clientAvailable: boolean\n}): JSX.Element {\n const form = binding.form\n const snapshot = useSyncExternalStore(\n (listener) => form?.subscribe(listener) ?? (() => {}),\n () => form?.getSnapshot() ?? unavailable,\n )\n const mirrorError = useSyncExternalStore(\n (listener) => binding.mirror?.subscribe(listener) ?? (() => {}),\n () => binding.mirror?.getSnapshot().error ?? null,\n )\n const [supported, setSupported] = useState<boolean | undefined>(\n hasManualAccountRuntime() ? undefined : false,\n )\n const [pending, setPending] = useState<{ previous: boolean } | null>(null)\n const saving = useRef(false)\n const [failed, setFailed] = useState(false)\n const [known, setKnown] = useState(true)\n useEffect(() => {\n let live = true\n void authRequest<AccountLoginState>('/auth-remote/account/state').then(\n (value) => {\n if (live) setSupported(value.supported)\n },\n () => {\n if (live) setSupported(false)\n },\n )\n return () => {\n live = false\n }\n }, [])\n const ready =\n known && snapshot.status === 'ready' && typeof snapshot.value?.manualAccountLogin === 'boolean'\n const available = supported === true && clientAvailable\n async function save(value: boolean) {\n if (!form || !ready || saving.current) return\n saving.current = true\n setPending({ previous: snapshot.value!.manualAccountLogin })\n setFailed(false)\n try {\n if (!(await form.set('manualAccountLogin', value))) setFailed(true)\n } catch {\n setFailed(true)\n setKnown(false)\n try {\n setKnown(await binding.refresh())\n } catch {\n /* Retry can re-read the native configuration. */\n }\n } finally {\n saving.current = false\n setPending(null)\n }\n }\n return (\n <div className=\"auth-remote-manual-setting\">\n <h3>{t('settingsLoginConfiguration')}</h3>\n <div className=\"auth-remote-manual-row\">\n <div className=\"auth-remote-manual-copy\">\n <span id=\"auth-remote-manual-label\">{t('settingsManualAccountLogin')}</span>\n <p id=\"auth-remote-manual-description\">{t('settingsManualDescription')}</p>\n </div>\n {ready && (\n <button\n type=\"button\"\n role=\"switch\"\n className=\"auth-remote-switch\"\n aria-labelledby=\"auth-remote-manual-label\"\n aria-describedby=\"auth-remote-manual-description\"\n aria-checked={pending?.previous ?? snapshot.value!.manualAccountLogin}\n disabled={pending !== null || !snapshot.writable || !available}\n onClick={() => {\n void save(!snapshot.value!.manualAccountLogin)\n }}\n >\n <span aria-hidden=\"true\" />\n </button>\n )}\n </div>\n {!ready && (\n <p role=\"status\">\n {t(\n snapshot.status === 'loading' && !mirrorError\n ? 'settingsLoading'\n : 'settingsManualConfigUnavailable',\n )}\n </p>\n )}\n {(supported === false || !clientAvailable) && (\n <p role=\"status\">{t('settingsManualUnavailable')}</p>\n )}\n {pending && <p role=\"status\">{t('settingsSaving')}</p>}\n {failed && <p role=\"alert\">{t('settingsManualSaveFailed')}</p>}\n {(!known || !ready) && (\n <button\n className=\"auth-remote-button\"\n onClick={() => {\n void binding.refresh().then(\n (value) => {\n setKnown(value)\n setFailed(!value)\n },\n () => setFailed(true),\n )\n }}\n >\n {t('settingsRetry')}\n </button>\n )}\n </div>\n )\n}\n", "import { createElement, useEffect, useRef, useSyncExternalStore, type ComponentType } from 'react'\nimport type { Context } from '@deepseek-ai/cordis'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport { ManualSignInDialog } from './dialog.js'\nimport { hasManualAccountRuntime, manualAccountBinding } from './config.js'\n\ntype NativeProps = Record<string, unknown> & {\n complete?: () => void\n showLogin?: (visible: boolean) => void\n useApiKey?: () => void\n openOnboarding?: (id: string) => void\n start?: () => Promise<void>\n}\n\ninterface DialogOwner {\n complete?: () => void\n useApiKey?: () => void\n}\n\ninterface NativeEntry {\n component: ComponentType<NativeProps>\n options: { priority?: number }\n locale?: string\n inject?: (...args: never[]) => object\n}\n\n/** Narrow adapter for alpha.3's public slot inspection and shadowing APIs. */\ninterface AccountSlots {\n entries(name: string): readonly NativeEntry[]\n subscribe(name: string, callback: () => void): () => void\n inject(name: string, callback: () => () => void): void\n register(\n options: {\n name: string\n id?: string\n priority?: number\n locale?: string\n inject?: NativeEntry['inject']\n },\n component: ComponentType<NativeProps>,\n ): () => void\n}\n\nexport function hasManualAccountClient(ctx: Context, requireEntry = true): boolean {\n const slots = ctx.get('slots') as AccountSlots | undefined\n return (\n hasManualAccountRuntime() &&\n !!slots &&\n ['entries', 'subscribe', 'inject', 'register'].every(\n (key) => typeof slots[key as keyof AccountSlots] === 'function',\n ) &&\n (!requireEntry ||\n slots\n .entries('settings.launcher')\n .some((entry) => entry.locale === 'settings.account' && typeof entry.inject === 'function'))\n )\n}\n\nexport function installManualAccountLogin(ctx: Context): void {\n if (!hasManualAccountClient(ctx, false)) return\n const slots = ctx.get('slots') as AccountSlots\n const t = ctx.locale.bind('auth-remote')\n const locale = () => ctx.locale.getSnapshot().active\n let dialog: DialogOwner | undefined\n const listeners = new Set<() => void>()\n const completions = new Set<() => void>()\n const notify = () => {\n for (const listener of listeners) listener()\n }\n const show = (owner: DialogOwner = {}) => {\n if (owner.complete) completions.add(owner.complete)\n dialog = owner\n notify()\n }\n const close = () => {\n dialog = undefined\n const pending = [...completions]\n completions.clear()\n notify()\n for (const complete of pending) complete()\n }\n const useApiKey = () => {\n const action = dialog?.useApiKey\n if (!action) return\n dialog = undefined\n // Selecting credentials continues native onboarding; it must not complete it.\n completions.clear()\n notify()\n action()\n }\n const subscribe = (listener: () => void) => {\n listeners.add(listener)\n return () => {\n listeners.delete(listener)\n }\n }\n function AccountOverlay(): JSX.Element | null {\n const owner = useSyncExternalStore(subscribe, () => dialog)\n return owner ? (\n <ManualSignInDialog\n t={t as TranslateNS<'auth-remote'>}\n locale={locale}\n close={close}\n {...(owner.useApiKey ? { useApiKey } : {})}\n />\n ) : null\n }\n // The sidebar and onboarding can remount while initial workspace/settings\n // data settles. Keep the pending dialog in the stable frame overlay instead.\n slots.inject('shell.overlay', () =>\n slots.register(\n {\n name: 'shell.overlay',\n id: 'auth-remote.account-sign-in',\n locale: 'auth-remote',\n },\n AccountOverlay,\n ),\n )\n ctx.inject(['configForms'], (configCtx) => {\n const { form: nativeForm, mirror } = manualAccountBinding(configCtx)\n const form = nativeForm!\n const subscribePreference = (listener: () => void) => {\n const stopForm = form.subscribe(listener)\n const stopMirror = mirror?.subscribe(listener)\n return () => {\n stopForm()\n stopMirror?.()\n }\n }\n const preference = () => {\n const snapshot = form.getSnapshot()\n return snapshot.status === 'ready'\n ? snapshot.value?.manualAccountLogin === true\n : snapshot.status === 'unavailable' || mirror?.getSnapshot().error\n ? false\n : undefined\n }\n const wrappers = new WeakSet<object>()\n for (const name of ['settings.launcher', 'settings.models.sign-in']) {\n const activeSlots = configCtx.get('slots') as AccountSlots\n activeSlots.inject(name, () => {\n let current: NativeEntry | undefined\n let unregister: (() => void) | undefined\n const update = () => {\n const native = slots\n .entries(name)\n .find(\n (entry) =>\n entry.locale === 'settings.account' &&\n entry.inject !== undefined &&\n !wrappers.has(entry.component),\n )\n if (native === current) return\n current = native\n unregister?.()\n unregister = undefined\n if (!native) return\n const Native = native.component\n function ManualAccountEntry(props: NativeProps): JSX.Element | null {\n const latest = useRef(props)\n latest.current = props\n const enabled = useSyncExternalStore(subscribePreference, preference)\n // Keep an already open native or manual onboarding task in its original mode.\n const initialMode = useRef<boolean>()\n if (initialMode.current === undefined && enabled !== undefined)\n initialMode.current = enabled\n const manualOnboarding = initialMode.current\n useEffect(() => {\n if (name !== 'settings.launcher' && manualOnboarding === true) {\n const complete = () => {\n latest.current.showLogin?.(false)\n latest.current.complete?.()\n }\n const owner: DialogOwner = {\n complete,\n ...(latest.current.useApiKey\n ? {\n useApiKey: () => {\n latest.current.showLogin?.(false)\n latest.current.useApiKey?.()\n },\n }\n : {}),\n }\n show(owner)\n return () => {\n completions.delete(complete)\n if (dialog === owner && owner.useApiKey) {\n dialog = {}\n notify()\n }\n }\n }\n }, [manualOnboarding])\n return name === 'settings.launcher'\n ? createElement(Native, {\n ...props,\n start: async () => {\n // Loading is not an accepted false preference. Keep\n // this click pending on the shared native read, then\n // choose the route from the latest accepted value.\n if (preference() === undefined) await mirror?.ensure()\n const manual = preference()\n if (manual === undefined) return\n if (!manual) return latest.current.start?.()\n show(\n latest.current.openOnboarding\n ? {\n useApiKey: () => {\n latest.current.showLogin?.(false)\n latest.current.openOnboarding?.('deepseek-official')\n },\n }\n : {},\n )\n },\n })\n : manualOnboarding === false\n ? createElement(Native, props)\n : null\n }\n wrappers.add(ManualAccountEntry)\n unregister = slots.register(\n {\n name,\n priority: (native.options.priority ?? 0) - 100,\n // Framework still binds the native menu's translations and Hooks.\n ...(native.locale ? { locale: native.locale } : {}),\n inject: native.inject,\n },\n ManualAccountEntry,\n )\n }\n const stop = slots.subscribe(name, update)\n update()\n return () => {\n stop()\n unregister?.()\n }\n })\n }\n })\n}\n", "import { useEffect, useRef, useState, type FormEvent } from 'react'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport {\n ACCOUNT_LOGIN_BASE,\n isActiveAccountLogin,\n type AccountLoginState,\n} from '../../shared/account-login.js'\nimport type { MessageKey } from '../../shared/i18n.js'\nimport { authRequest, goToLogin, isUnauthorized, SettingsFailure } from '../settings/api.js'\n\nfunction failureMessage(error: unknown): MessageKey {\n if (!(error instanceof SettingsFailure)) return 'errorNetwork'\n switch (error.code) {\n case 'account_invalid_callback':\n return 'accountLoginInvalidCallback'\n case 'account_attempt_expired':\n return 'accountLoginExpired'\n case 'account_attempt_mismatch':\n return 'accountLoginMismatch'\n case 'account_busy':\n return 'accountLoginBusy'\n case 'account_disabled':\n return 'accountLoginDisabled'\n case 'account_unavailable':\n return 'accountLoginUnavailable'\n case 'account_exchange_failed':\n return 'accountLoginFailed'\n default:\n return 'errorServiceUnavailable'\n }\n}\n\nexport function ManualSignInDialog({\n t,\n locale,\n close,\n useApiKey,\n}: {\n t: TranslateNS<'auth-remote'>\n locale: () => string\n close: () => void\n useApiKey?: () => void\n}): JSX.Element {\n const dialog = useRef<HTMLDialogElement>(null)\n const popup = useRef<Window | null>(null)\n const navigated = useRef<string>()\n const latest = useRef<AccountLoginState>()\n const live = useRef(true)\n const revision = useRef(0)\n const onClose = useRef(close)\n onClose.current = close\n const [state, setState] = useState<AccountLoginState>()\n const [callbackUrl, setCallbackUrl] = useState('')\n const [busy, setBusy] = useState(false)\n const [message, setMessage] = useState<MessageKey>()\n const [blocked, setBlocked] = useState(false)\n\n const accept = (value: AccountLoginState) => {\n latest.current = value\n if (!live.current) return\n setState(value)\n if (value.status === 'credential-stored') {\n setCallbackUrl('')\n onClose.current()\n return\n }\n const attempt = value.attempt\n if (\n attempt?.authorizeUrl &&\n navigated.current !== attempt.id &&\n popup.current &&\n !popup.current.closed\n ) {\n const target = new URL(attempt.authorizeUrl)\n target.searchParams.set(\n 'theme',\n document.body.hasAttribute('data-ds-dark-theme') ? 'dark' : 'light',\n )\n popup.current.location.replace(target.href)\n navigated.current = attempt.id\n }\n }\n\n useEffect(() => {\n live.current = true\n dialog.current?.showModal()\n let timer: ReturnType<typeof setTimeout> | undefined\n const poll = async () => {\n const generation = revision.current\n try {\n const value = await authRequest<AccountLoginState>(`${ACCOUNT_LOGIN_BASE}/state`)\n if (generation === revision.current) accept(value)\n } catch (error) {\n if (isUnauthorized(error)) goToLogin()\n else if (live.current) setMessage(failureMessage(error))\n }\n if (live.current) timer = setTimeout(() => void poll(), 1000)\n }\n void poll()\n return () => {\n live.current = false\n clearTimeout(timer)\n popup.current?.close()\n const attempt = latest.current?.attempt\n if (attempt && isActiveAccountLogin(attempt.phase))\n void authRequest(`${ACCOUNT_LOGIN_BASE}/cancel`, { id: attempt.id }).catch(() => {})\n }\n }, [])\n\n const attempt = state?.attempt\n const phase = attempt?.phase\n const waiting = phase === 'waiting-browser'\n const pending = phase === 'initializing' || phase === 'exchanging' || phase === 'committing'\n const active = attempt && isActiveAccountLogin(attempt.phase)\n const statusMessage =\n phase === 'expired'\n ? 'accountLoginExpired'\n : phase === 'failed'\n ? attempt?.errorCode === 'no-response'\n ? 'accountLoginNoResponse'\n : 'accountLoginFailed'\n : undefined\n\n async function run(operation: () => Promise<void>): Promise<void> {\n if (busy) return\n setBusy(true)\n revision.current++\n setMessage(undefined)\n try {\n await operation()\n } catch (error) {\n if (isUnauthorized(error)) goToLogin()\n else if (live.current) setMessage(failureMessage(error))\n } finally {\n if (live.current) setBusy(false)\n }\n }\n\n function start(): void {\n // The only popup is opened by this explicit button click, before the POST.\n popup.current?.close()\n popup.current = window.open('about:blank', '_blank')\n if (popup.current) popup.current.opener = null\n setBlocked(popup.current === null)\n navigated.current = undefined\n setCallbackUrl('')\n void run(async () => {\n try {\n accept(\n await authRequest<AccountLoginState>(`${ACCOUNT_LOGIN_BASE}/start`, {\n locale: locale(),\n timezoneOffsetSeconds: -new Date().getTimezoneOffset() * 60,\n }),\n )\n } catch (error) {\n popup.current?.close()\n throw error\n }\n })\n }\n\n function dismiss(): void {\n if (busy || phase === 'committing') return\n void run(async () => {\n if (active) await authRequest(`${ACCOUNT_LOGIN_BASE}/cancel`, { id: attempt.id })\n setCallbackUrl('')\n onClose.current()\n })\n }\n\n function submit(event: FormEvent<HTMLFormElement>): void {\n event.preventDefault()\n if (!waiting || !attempt) return\n void run(async () => {\n accept(\n await authRequest<AccountLoginState>(`${ACCOUNT_LOGIN_BASE}/submit`, {\n id: attempt.id,\n callbackUrl,\n }),\n )\n })\n }\n\n return (\n <dialog\n ref={dialog}\n className=\"auth-remote-account-dialog\"\n aria-labelledby=\"auth-remote-account-title\"\n onCancel={(event) => {\n event.preventDefault()\n dismiss()\n }}\n >\n <form onSubmit={submit}>\n <div className=\"auth-remote-account-header\">\n <h2 id=\"auth-remote-account-title\">{t('accountLoginTitle')}</h2>\n <button\n type=\"button\"\n className=\"auth-remote-account-close\"\n aria-label={t('accountLoginClose')}\n disabled={busy || phase === 'committing'}\n onClick={dismiss}\n >\n \u00D7\n </button>\n </div>\n <div className=\"auth-remote-account-body\">\n {!active && (\n <ol className=\"auth-remote-account-steps\">\n <li>{t('accountLoginStepOpen')}</li>\n <li>{t('accountLoginStepCopy')}</li>\n </ol>\n )}\n <div className=\"auth-remote-account-callback\">\n <label className=\"auth-remote-account-field\">\n {t('accountLoginCallbackLabel')}\n <textarea\n rows={3}\n value={callbackUrl}\n onChange={(event) => setCallbackUrl(event.currentTarget.value)}\n placeholder=\"http://127.0.0.1:49183/oauth/callback?code=\u2026&state=\u2026\"\n autoComplete=\"off\"\n autoCapitalize=\"none\"\n spellCheck={false}\n maxLength={8192}\n disabled={!waiting || busy}\n required\n aria-describedby=\"auth-remote-account-hint\"\n />\n </label>\n <p id=\"auth-remote-account-hint\" className=\"auth-remote-account-hint\">\n {t('accountLoginCallbackHint')}\n </p>\n </div>\n {attempt?.authorizeUrl && waiting && (\n <p className=\"auth-remote-account-reopen\">\n {blocked && <span>{t('accountLoginPopupBlocked')} </span>}\n <a href={attempt.authorizeUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n {t('accountLoginReopen')}\n </a>\n </p>\n )}\n <p className=\"auth-remote-account-status\" role=\"status\" aria-live=\"polite\">\n {pending\n ? t(phase === 'initializing' ? 'accountLoginInitializing' : 'accountLoginExchanging')\n : waiting\n ? t('accountLoginWaiting')\n : ''}\n </p>\n <p className=\"auth-remote-account-error\" role=\"alert\">\n {state?.supported === false\n ? t('accountLoginUnavailable')\n : state?.enabled === false && !active\n ? t('accountLoginDisabled')\n : message || statusMessage\n ? t(message ?? statusMessage!)\n : ''}\n </p>\n </div>\n <div className=\"auth-remote-account-actions\">\n <button\n type=\"button\"\n disabled={busy || phase === 'committing'}\n onClick={active || !useApiKey ? dismiss : useApiKey}\n >\n {t(active || !useApiKey ? 'accountLoginCancel' : 'accountLoginUseApiKey')}\n </button>\n {active ? (\n <button\n type=\"submit\"\n className=\"auth-remote-account-primary\"\n disabled={busy || !waiting || !callbackUrl.trim()}\n >\n {t(\n busy || phase === 'exchanging' || phase === 'committing'\n ? 'accountLoginExchanging'\n : 'accountLoginConfirm',\n )}\n </button>\n ) : (\n <button\n type=\"button\"\n className=\"auth-remote-account-primary\"\n onClick={start}\n disabled={busy || !state?.supported}\n >\n {t(attempt ?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AAM;AACX,eAAK;AACL,uBAAa;AAAA,QACf;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;;;AzB7NO,IAAM,OAAO;AACb,IAAM,SAAS,CAAC,cAAc,SAAS,UAAU,iBAAiB;AAElE,SAAS,MAAM,KAAoB;AACxC,MAAI,CAAC,oBAAoB,EAAG;AAC5B,6BAA2B,GAAG;AAC9B,sBAAoB,GAAG;AACvB,MAAI,OAAO,MAAM;AACf,UAAM,MAAM,SAAS,cAAc,OAAO;AAC1C,QAAI,QAAQ,SAAS;AACrB,QAAI,cAAc,gBAAiBC;AACnC,aAAS,KAAK,YAAY,GAAG;AAC7B,WAAO,MAAM,IAAI,OAAO;AAAA,EAC1B,GAAG,8BAA8B;AACjC,iBAAe,GAAG;AAClB,MAAI,OAAO,MAAM,IAAI,OAAO,SAAS,eAAe,YAAY,GAAG,2BAA2B;AAC9F,QAAM,IAAI,IAAI,OAAO,KAAK,aAAa;AACvC,4BAA0B,GAAG;AAC7B,QAAM,QAAQ,IAAI,IAAI,OAAO;AAG7B,QAAM;AAAA,IAAO;AAAA,IAAoB,MAC/B,MAAM;AAAA,MACJ;AAAA,QACE,MAAM;AAAA,QACN,IAAI;AAAA,QACJ,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO,MAAM,EAAE,sBAAsB;AAAA,MACvC;AAAA,MACA,CAAC,cACC,6BAAc,iBAAiB;AAAA,QAC7B,GAAG;AAAA,QACH,QAAQ,IAAI,OAAO,YAAY,EAAE;AAAA,QACjC,0BAAsB,6BAAc,sBAAsB;AAAA,UACxD,SAAS,qBAAqB,GAAG;AAAA,UACjC;AAAA,UACA,iBAAiB,uBAAuB,GAAG;AAAA,QAC7C,CAAC;AAAA,MACH,CAAC;AAAA,IACL;AAAA,EACF;AACF;",
6
6
  "names": ["module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "require_utils", "QRCode", "module", "module", "module", "name", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "module", "satisfies", "module", "module", "module", "module", "require_valid", "module", "module", "satisfies", "module", "module", "module", "module", "satisfies", "module", "satisfies", "require_semver", "module", "satisfies", "import_react", "import_jsx_runtime", "import_jsx_runtime", "import_react", "import_jsx_runtime", "QRCode", "import_jsx_runtime", "style_default", "view", "import_react", "import_jsx_runtime", "import_react", "import_react", "import_react", "import_jsx_runtime", "attempt", "import_jsx_runtime", "name", "style_default"]
7
7
  }