puzzle-lib 1.3.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +38 -39
- package/build/src/Braille/BrailleCharacter.d.ts +15 -15
- package/build/src/Braille/BrailleCharacter.js +38 -37
- package/build/src/Braille/BrailleCharacter.js.map +1 -1
- package/build/src/Braille/BrailleData.d.ts +6 -6
- package/build/src/Braille/BrailleData.js +65 -64
- package/build/src/Braille/BrailleData.js.map +1 -1
- package/build/src/Braille/BrailleDot.d.ts +9 -9
- package/build/src/Braille/BrailleDot.js +13 -12
- package/build/src/Braille/BrailleDot.js.map +1 -1
- package/build/src/Braille/BrailleEncoding.d.ts +54 -54
- package/build/src/Braille/BrailleEncoding.js +65 -64
- package/build/src/Braille/BrailleEncoding.js.map +1 -1
- package/build/src/Braille/BrailleStream.d.ts +18 -18
- package/build/src/Braille/BrailleStream.js +75 -74
- package/build/src/Braille/BrailleStream.js.map +1 -1
- package/build/src/Cipher/AutoKeyString.d.ts +4 -4
- package/build/src/Cipher/AutoKeyString.js +34 -33
- package/build/src/Cipher/AutoKeyString.js.map +1 -1
- package/build/src/Cipher/CaesarString.d.ts +8 -8
- package/build/src/Cipher/CaesarString.js +31 -30
- package/build/src/Cipher/CaesarString.js.map +1 -1
- package/build/src/Cipher/CaesarUtils.d.ts +13 -13
- package/build/src/Cipher/CaesarUtils.js +57 -56
- package/build/src/Cipher/CaesarUtils.js.map +1 -1
- package/build/src/Cipher/KeyedCipherStringBase.d.ts +12 -12
- package/build/src/Cipher/KeyedCipherStringBase.js +28 -27
- package/build/src/Cipher/KeyedCipherStringBase.js.map +1 -1
- package/build/src/Cipher/VigenereString.d.ts +4 -4
- package/build/src/Cipher/VigenereString.js +21 -20
- package/build/src/Cipher/VigenereString.js.map +1 -1
- package/build/src/Common/CharacterImage.d.ts +6 -6
- package/build/src/Common/CharacterImage.js +10 -9
- package/build/src/Common/CharacterImage.js.map +1 -1
- package/build/src/Common/EncodingCategory.d.ts +8 -8
- package/build/src/Common/EncodingCategory.js +12 -11
- package/build/src/Common/EncodingCategory.js.map +1 -1
- package/build/src/Common/EncodingCharacterBase.d.ts +23 -23
- package/build/src/Common/EncodingCharacterBase.js +52 -51
- package/build/src/Common/EncodingCharacterBase.js.map +1 -1
- package/build/src/Common/EncodingDataBase.d.ts +7 -7
- package/build/src/Common/EncodingDataBase.js +29 -28
- package/build/src/Common/EncodingDataBase.js.map +1 -1
- package/build/src/Common/EncodingEntry.d.ts +8 -8
- package/build/src/Common/EncodingEntry.js +14 -13
- package/build/src/Common/EncodingEntry.js.map +1 -1
- package/build/src/Common/EncodingLookupResult.d.ts +6 -6
- package/build/src/Common/EncodingLookupResult.js +13 -12
- package/build/src/Common/EncodingLookupResult.js.map +1 -1
- package/build/src/Common/Helpers.d.ts +4 -4
- package/build/src/Common/Helpers.js +16 -15
- package/build/src/Common/Helpers.js.map +1 -1
- package/build/src/Common/InlineSvg.d.ts +7 -7
- package/build/src/Common/InlineSvg.js +14 -13
- package/build/src/Common/InlineSvg.js.map +1 -1
- package/build/src/Conversion/CharacterAutoConvert.d.ts +10 -7
- package/build/src/Conversion/CharacterAutoConvert.js +88 -80
- package/build/src/Conversion/CharacterAutoConvert.js.map +1 -1
- package/build/src/Conversion/CharacterConversion.d.ts +8 -8
- package/build/src/Conversion/CharacterConversion.js +50 -49
- package/build/src/Conversion/CharacterConversion.js.map +1 -1
- package/build/src/Conversion/CharacterEncoding.d.ts +9 -8
- package/build/src/Conversion/CharacterEncoding.js +13 -11
- package/build/src/Conversion/CharacterEncoding.js.map +1 -1
- package/build/src/Conversion/CharacterTableEntry.d.ts +10 -10
- package/build/src/Conversion/CharacterTableEntry.js +19 -18
- package/build/src/Conversion/CharacterTableEntry.js.map +1 -1
- package/build/src/Conversion/SignificantFigures.d.ts +7 -7
- package/build/src/Conversion/SignificantFigures.js +50 -49
- package/build/src/Conversion/SignificantFigures.js.map +1 -1
- package/build/src/Conversion/StringAutoConvert.d.ts +6 -6
- package/build/src/Conversion/StringAutoConvert.js +46 -45
- package/build/src/Conversion/StringAutoConvert.js.map +1 -1
- package/build/src/Morse/MorseCharacter.d.ts +22 -22
- package/build/src/Morse/MorseCharacter.js +96 -95
- package/build/src/Morse/MorseCharacter.js.map +1 -1
- package/build/src/Morse/MorseData.d.ts +6 -6
- package/build/src/Morse/MorseData.js +70 -69
- package/build/src/Morse/MorseData.js.map +1 -1
- package/build/src/Morse/MorseEncoding.d.ts +59 -59
- package/build/src/Morse/MorseEncoding.js +94 -93
- package/build/src/Morse/MorseEncoding.js.map +1 -1
- package/build/src/Morse/MorseString.d.ts +10 -10
- package/build/src/Morse/MorseString.js +66 -65
- package/build/src/Morse/MorseString.js.map +1 -1
- package/build/src/Nato/NatoCharacter.d.ts +5 -5
- package/build/src/Nato/NatoCharacter.js +10 -9
- package/build/src/Nato/NatoCharacter.js.map +1 -1
- package/build/src/Nato/NatoData.d.ts +7 -7
- package/build/src/Nato/NatoData.js +51 -50
- package/build/src/Nato/NatoData.js.map +1 -1
- package/build/src/NavalFlags/NavalFlags.d.ts +7 -7
- package/build/src/NavalFlags/NavalFlags.js +52 -50
- package/build/src/NavalFlags/NavalFlags.js.map +1 -1
- package/build/src/Resistor/Resistor.d.ts +24 -24
- package/build/src/Resistor/Resistor.js +86 -85
- package/build/src/Resistor/Resistor.js.map +1 -1
- package/build/src/Resistor/ResistorColorEntry.d.ts +12 -12
- package/build/src/Resistor/ResistorColorEntry.js +31 -30
- package/build/src/Resistor/ResistorColorEntry.js.map +1 -1
- package/build/src/Semaphore/SemaphoreCharacter.d.ts +20 -20
- package/build/src/Semaphore/SemaphoreCharacter.js +75 -74
- package/build/src/Semaphore/SemaphoreCharacter.js.map +1 -1
- package/build/src/Semaphore/SemaphoreData.d.ts +6 -6
- package/build/src/Semaphore/SemaphoreData.js +53 -52
- package/build/src/Semaphore/SemaphoreData.js.map +1 -1
- package/build/src/Semaphore/SemaphoreDegrees.d.ts +5 -5
- package/build/src/Semaphore/SemaphoreDegrees.js +26 -25
- package/build/src/Semaphore/SemaphoreDegrees.js.map +1 -1
- package/build/src/Semaphore/SemaphoreDirection.d.ts +11 -11
- package/build/src/Semaphore/SemaphoreDirection.js +15 -14
- package/build/src/Semaphore/SemaphoreDirection.js.map +1 -1
- package/build/src/Semaphore/SemaphoreEncoding.d.ts +40 -40
- package/build/src/Semaphore/SemaphoreEncoding.js +47 -46
- package/build/src/Semaphore/SemaphoreEncoding.js.map +1 -1
- package/build/src/Semaphore/SemaphoreStream.d.ts +17 -17
- package/build/src/Semaphore/SemaphoreStream.js +72 -71
- package/build/src/Semaphore/SemaphoreStream.js.map +1 -1
- package/build/src/WordSearch/Point.d.ts +4 -4
- package/build/src/WordSearch/Point.js +2 -2
- package/build/src/WordSearch/Result.d.ts +6 -6
- package/build/src/WordSearch/Result.js +10 -9
- package/build/src/WordSearch/Result.js.map +1 -1
- package/build/src/WordSearch/WordSearchDirection.d.ts +6 -6
- package/build/src/WordSearch/WordSearchDirection.js +10 -9
- package/build/src/WordSearch/WordSearchDirection.js.map +1 -1
- package/build/src/WordSearch/WordSearchSolver.d.ts +27 -18
- package/build/src/WordSearch/WordSearchSolver.js +222 -171
- package/build/src/WordSearch/WordSearchSolver.js.map +1 -1
- package/build/src/index.d.ts +35 -35
- package/build/src/index.js +72 -70
- package/build/src/index.js.map +1 -1
- package/package.json +40 -39
- package/src/Braille/BrailleCharacter.ts +49 -0
- package/src/Braille/BrailleData.ts +131 -0
- package/src/Braille/BrailleDot.ts +9 -0
- package/src/Braille/BrailleEncoding.ts +144 -0
- package/src/Braille/BrailleStream.ts +87 -0
- package/src/Cipher/AutoKeyString.ts +35 -0
- package/src/Cipher/CaesarString.ts +38 -0
- package/src/Cipher/CaesarUtils.ts +69 -0
- package/src/Cipher/KeyedCipherStringBase.ts +35 -0
- package/src/Cipher/VigenereString.ts +21 -0
- package/src/Common/CharacterImage.ts +11 -0
- package/src/Common/EncodingCategory.ts +10 -0
- package/src/Common/EncodingCharacterBase.ts +72 -0
- package/src/Common/EncodingDataBase.ts +31 -0
- package/src/Common/EncodingEntry.ts +17 -0
- package/src/Common/EncodingLookupResult.ts +10 -0
- package/src/Common/Helpers.ts +13 -0
- package/src/Common/InlineSvg.ts +15 -0
- package/src/Conversion/CharacterAutoConvert.ts +108 -0
- package/src/Conversion/CharacterConversion.ts +89 -0
- package/src/Conversion/CharacterEncoding.ts +9 -0
- package/src/Conversion/CharacterTableEntry.ts +23 -0
- package/src/Conversion/SignificantFigures.ts +55 -0
- package/src/Conversion/StringAutoConvert.ts +56 -0
- package/src/Morse/MorseCharacter.ts +112 -0
- package/src/Morse/MorseData.ts +143 -0
- package/src/Morse/MorseEncoding.ts +98 -0
- package/src/Morse/MorseString.ts +106 -0
- package/src/Nato/NatoCharacter.ts +9 -0
- package/src/Nato/NatoData.ts +49 -0
- package/src/NavalFlags/LICENSE +7 -0
- package/src/NavalFlags/NavalFlags.ts +293 -0
- package/src/Resistor/Resistor.ts +135 -0
- package/src/Resistor/ResistorColorEntry.ts +43 -0
- package/src/Semaphore/SemaphoreCharacter.ts +107 -0
- package/src/Semaphore/SemaphoreData.ts +58 -0
- package/src/Semaphore/SemaphoreDegrees.ts +26 -0
- package/src/Semaphore/SemaphoreDirection.ts +11 -0
- package/src/Semaphore/SemaphoreEncoding.ts +48 -0
- package/src/Semaphore/SemaphoreStream.ts +89 -0
- package/src/WordSearch/Point.ts +4 -0
- package/src/WordSearch/Result.ts +10 -0
- package/src/WordSearch/WordSearchDirection.ts +6 -0
- package/src/WordSearch/WordSearchSolver.ts +271 -0
- package/src/index.ts +38 -0
- package/src/trie-prefix-tree.d.ts +70 -0
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
CaesarUtils
|
|
53
|
-
CaesarUtils.
|
|
54
|
-
CaesarUtils.
|
|
55
|
-
CaesarUtils.
|
|
56
|
-
CaesarUtils.
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaesarUtils = void 0;
|
|
4
|
+
const CharacterConversion_1 = require("../Conversion/CharacterConversion");
|
|
5
|
+
class CaesarUtils {
|
|
6
|
+
static rotateLetter(ch, rot) {
|
|
7
|
+
if (ch.length !== 1) {
|
|
8
|
+
throw new Error('Expected a single character');
|
|
9
|
+
}
|
|
10
|
+
rot %= this.alphaLength;
|
|
11
|
+
if (rot < 0) {
|
|
12
|
+
rot += this.alphaLength;
|
|
13
|
+
}
|
|
14
|
+
const code = ch.charCodeAt(0);
|
|
15
|
+
let base = 0;
|
|
16
|
+
if (this.isLowerAlpha(code)) {
|
|
17
|
+
base = this.lowerA;
|
|
18
|
+
}
|
|
19
|
+
else if (this.isUpperAlpha(code)) {
|
|
20
|
+
base = this.upperA;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return ch;
|
|
24
|
+
}
|
|
25
|
+
return String.fromCharCode(((code - base + rot) % this.alphaLength) + base);
|
|
26
|
+
}
|
|
27
|
+
static rotateLetterWithKey(ch, key, keyIndex, decrypt = false) {
|
|
28
|
+
if (key.length === 0) {
|
|
29
|
+
return ch;
|
|
30
|
+
}
|
|
31
|
+
const keyCh = this.getCharacterWithMod(key, keyIndex);
|
|
32
|
+
let rot = CharacterConversion_1.CharacterConversion.toOrdinal(keyCh) - 1;
|
|
33
|
+
if (decrypt) {
|
|
34
|
+
rot = -rot;
|
|
35
|
+
}
|
|
36
|
+
return this.rotateLetter(ch, rot);
|
|
37
|
+
}
|
|
38
|
+
static isAlpha(ch) {
|
|
39
|
+
const code = ch.charCodeAt(0);
|
|
40
|
+
return this.isUpperAlpha(code) || this.isLowerAlpha(code);
|
|
41
|
+
}
|
|
42
|
+
static getCharacterWithMod(str, index) {
|
|
43
|
+
return str.charAt(index % str.length);
|
|
44
|
+
}
|
|
45
|
+
static isUpperAlpha(code) {
|
|
46
|
+
return code >= this.upperA && code <= this.upperZ;
|
|
47
|
+
}
|
|
48
|
+
static isLowerAlpha(code) {
|
|
49
|
+
return code >= this.lowerA && code <= this.lowerZ;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.CaesarUtils = CaesarUtils;
|
|
53
|
+
CaesarUtils.upperA = 'A'.charCodeAt(0);
|
|
54
|
+
CaesarUtils.upperZ = 'Z'.charCodeAt(0);
|
|
55
|
+
CaesarUtils.lowerA = 'a'.charCodeAt(0);
|
|
56
|
+
CaesarUtils.lowerZ = 'z'.charCodeAt(0);
|
|
57
|
+
CaesarUtils.alphaLength = 26;
|
|
57
58
|
//# sourceMappingURL=CaesarUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaesarUtils.js","sourceRoot":"","sources":["../../../src/Cipher/CaesarUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaesarUtils.js","sourceRoot":"","sources":["../../../src/Cipher/CaesarUtils.ts"],"names":[],"mappings":";;;AAAA,2EAAsE;AAEtE,MAAa,WAAW;IACtB,MAAM,CAAC,YAAY,CAAC,EAAU,EAAE,GAAW;QACzC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC;QACxB,IAAI,GAAG,GAAG,CAAC,EAAE;YACX,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC;SACzB;QAED,MAAM,IAAI,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YAC3B,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;SACpB;aAAM,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YAClC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;SACpB;aAAM;YACL,OAAO,EAAE,CAAC;SACX;QAED,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,mBAAmB,CACxB,EAAU,EACV,GAAW,EACX,QAAgB,EAChB,OAAO,GAAG,KAAK;QAEf,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;YACpB,OAAO,EAAE,CAAC;SACX;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACtD,IAAI,GAAG,GAAG,yCAAmB,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEnD,IAAI,OAAO,EAAE;YACX,GAAG,GAAG,CAAC,GAAG,CAAC;SACZ;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,EAAU;QACvB,MAAM,IAAI,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;IAQO,MAAM,CAAC,mBAAmB,CAAC,GAAW,EAAE,KAAa;QAC3D,OAAO,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,IAAY;QACtC,OAAO,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC;IACpD,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,IAAY;QACtC,OAAO,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC;IACpD,CAAC;;AAjEH,kCAkEC;AAjBgB,kBAAM,GAAW,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACnC,kBAAM,GAAW,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACnC,kBAAM,GAAW,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACnC,kBAAM,GAAW,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACnC,uBAAW,GAAG,EAAE,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare abstract class KeyedCipherStringBase {
|
|
2
|
-
protected _text: string;
|
|
3
|
-
protected _key: string;
|
|
4
|
-
constructor(text?: string, key?: string);
|
|
5
|
-
get text(): string;
|
|
6
|
-
set text(value: string);
|
|
7
|
-
get key(): string;
|
|
8
|
-
set key(value: string);
|
|
9
|
-
encrypt(): string;
|
|
10
|
-
decrypt(): string;
|
|
11
|
-
protected abstract convert(decrypt: boolean): string;
|
|
12
|
-
}
|
|
1
|
+
export declare abstract class KeyedCipherStringBase {
|
|
2
|
+
protected _text: string;
|
|
3
|
+
protected _key: string;
|
|
4
|
+
constructor(text?: string, key?: string);
|
|
5
|
+
get text(): string;
|
|
6
|
+
set text(value: string);
|
|
7
|
+
get key(): string;
|
|
8
|
+
set key(value: string);
|
|
9
|
+
encrypt(): string;
|
|
10
|
+
decrypt(): string;
|
|
11
|
+
protected abstract convert(decrypt: boolean): string;
|
|
12
|
+
}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyedCipherStringBase = void 0;
|
|
4
|
+
class KeyedCipherStringBase {
|
|
5
|
+
constructor(text = '', key = '') {
|
|
6
|
+
this._text = text;
|
|
7
|
+
this._key = key;
|
|
8
|
+
}
|
|
9
|
+
get text() {
|
|
10
|
+
return this._text;
|
|
11
|
+
}
|
|
12
|
+
set text(value) {
|
|
13
|
+
this._text = value;
|
|
14
|
+
}
|
|
15
|
+
get key() {
|
|
16
|
+
return this._key;
|
|
17
|
+
}
|
|
18
|
+
set key(value) {
|
|
19
|
+
this._key = value;
|
|
20
|
+
}
|
|
21
|
+
encrypt() {
|
|
22
|
+
return this.convert(false);
|
|
23
|
+
}
|
|
24
|
+
decrypt() {
|
|
25
|
+
return this.convert(true);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.KeyedCipherStringBase = KeyedCipherStringBase;
|
|
28
29
|
//# sourceMappingURL=KeyedCipherStringBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyedCipherStringBase.js","sourceRoot":"","sources":["../../../src/Cipher/KeyedCipherStringBase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyedCipherStringBase.js","sourceRoot":"","sources":["../../../src/Cipher/KeyedCipherStringBase.ts"],"names":[],"mappings":";;;AAAA,MAAsB,qBAAqB;IAIzC,YAAY,IAAI,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,IAAI,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,IAAI,GAAG,CAAC,KAAa;QACnB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;CAGF;AAlCD,sDAkCC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyedCipherStringBase } from './KeyedCipherStringBase';
|
|
2
|
-
export declare class VigenereString extends KeyedCipherStringBase {
|
|
3
|
-
protected convert(decrypt: boolean): string;
|
|
4
|
-
}
|
|
1
|
+
import { KeyedCipherStringBase } from './KeyedCipherStringBase';
|
|
2
|
+
export declare class VigenereString extends KeyedCipherStringBase {
|
|
3
|
+
protected convert(decrypt: boolean): string;
|
|
4
|
+
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VigenereString = void 0;
|
|
4
|
+
const CaesarUtils_1 = require("./CaesarUtils");
|
|
5
|
+
const KeyedCipherStringBase_1 = require("./KeyedCipherStringBase");
|
|
6
|
+
class VigenereString extends KeyedCipherStringBase_1.KeyedCipherStringBase {
|
|
7
|
+
convert(decrypt) {
|
|
8
|
+
const rotStr = [];
|
|
9
|
+
let keyIndex = 0;
|
|
10
|
+
for (const ch of this._text) {
|
|
11
|
+
if (CaesarUtils_1.CaesarUtils.isAlpha(ch)) {
|
|
12
|
+
rotStr.push(CaesarUtils_1.CaesarUtils.rotateLetterWithKey(ch, this._key, keyIndex++, decrypt));
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
rotStr.push(ch);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return rotStr.join('');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.VigenereString = VigenereString;
|
|
21
22
|
//# sourceMappingURL=VigenereString.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VigenereString.js","sourceRoot":"","sources":["../../../src/Cipher/VigenereString.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VigenereString.js","sourceRoot":"","sources":["../../../src/Cipher/VigenereString.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,mEAA8D;AAE9D,MAAa,cAAe,SAAQ,6CAAqB;IAC7C,OAAO,CAAC,OAAgB;QAChC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,IAAI,QAAQ,GAAG,CAAC,CAAC;QAEjB,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,KAAK,EAAE;YAC3B,IAAI,yBAAW,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;gBAC3B,MAAM,CAAC,IAAI,CACT,yBAAW,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,CACpE,CAAC;aACH;iBAAM;gBACL,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aACjB;SACF;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC;CACF;AAjBD,wCAiBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InlineSvg } from './InlineSvg';
|
|
2
|
-
export declare class CharacterImage {
|
|
3
|
-
readonly character: string;
|
|
4
|
-
readonly image: InlineSvg;
|
|
5
|
-
constructor(character: string, image: InlineSvg);
|
|
6
|
-
}
|
|
1
|
+
import { InlineSvg } from './InlineSvg';
|
|
2
|
+
export declare class CharacterImage {
|
|
3
|
+
readonly character: string;
|
|
4
|
+
readonly image: InlineSvg;
|
|
5
|
+
constructor(character: string, image: InlineSvg);
|
|
6
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this.
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CharacterImage = void 0;
|
|
4
|
+
class CharacterImage {
|
|
5
|
+
constructor(character, image) {
|
|
6
|
+
this.character = character;
|
|
7
|
+
this.image = image;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CharacterImage = CharacterImage;
|
|
10
11
|
//# sourceMappingURL=CharacterImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterImage.js","sourceRoot":"","sources":["../../../src/Common/CharacterImage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CharacterImage.js","sourceRoot":"","sources":["../../../src/Common/CharacterImage.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IAIzB,YAAY,SAAiB,EAAE,KAAgB;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AARD,wCAQC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare enum EncodingCategory {
|
|
2
|
-
None = 0,
|
|
3
|
-
Letter = 2,
|
|
4
|
-
Number = 4,
|
|
5
|
-
Formatting = 8,
|
|
6
|
-
Punctuation = 16,
|
|
7
|
-
All = 255
|
|
8
|
-
}
|
|
1
|
+
export declare enum EncodingCategory {
|
|
2
|
+
None = 0,
|
|
3
|
+
Letter = 2,
|
|
4
|
+
Number = 4,
|
|
5
|
+
Formatting = 8,
|
|
6
|
+
Punctuation = 16,
|
|
7
|
+
All = 255
|
|
8
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
EncodingCategory[EncodingCategory["
|
|
7
|
-
EncodingCategory[EncodingCategory["
|
|
8
|
-
EncodingCategory[EncodingCategory["
|
|
9
|
-
EncodingCategory[EncodingCategory["
|
|
10
|
-
EncodingCategory[EncodingCategory["
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EncodingCategory = void 0;
|
|
4
|
+
var EncodingCategory;
|
|
5
|
+
(function (EncodingCategory) {
|
|
6
|
+
EncodingCategory[EncodingCategory["None"] = 0] = "None";
|
|
7
|
+
EncodingCategory[EncodingCategory["Letter"] = 2] = "Letter";
|
|
8
|
+
EncodingCategory[EncodingCategory["Number"] = 4] = "Number";
|
|
9
|
+
EncodingCategory[EncodingCategory["Formatting"] = 8] = "Formatting";
|
|
10
|
+
EncodingCategory[EncodingCategory["Punctuation"] = 16] = "Punctuation";
|
|
11
|
+
EncodingCategory[EncodingCategory["All"] = 255] = "All";
|
|
12
|
+
})(EncodingCategory = exports.EncodingCategory || (exports.EncodingCategory = {}));
|
|
12
13
|
//# sourceMappingURL=EncodingCategory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncodingCategory.js","sourceRoot":"","sources":["../../../src/Common/EncodingCategory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EncodingCategory.js","sourceRoot":"","sources":["../../../src/Common/EncodingCategory.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,uDAAI,CAAA;IAEJ,2DAAe,CAAA;IACf,2DAAe,CAAA;IACf,mEAAmB,CAAA;IACnB,sEAAoB,CAAA;IAEpB,uDAAU,CAAA;AACZ,CAAC,EATW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAS3B"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { EncodingCategory } from '../Common/EncodingCategory';
|
|
2
|
-
import { EncodingEntry } from '../Common/EncodingEntry';
|
|
3
|
-
import { EncodingDataBase } from './EncodingDataBase';
|
|
4
|
-
export declare abstract class EncodingCharacterBase<T extends number> {
|
|
5
|
-
private _category;
|
|
6
|
-
private _data;
|
|
7
|
-
private _lookup;
|
|
8
|
-
constructor(data: EncodingDataBase<T>, category: EncodingCategory);
|
|
9
|
-
get category(): EncodingCategory;
|
|
10
|
-
set category(value: EncodingCategory);
|
|
11
|
-
clear(): void;
|
|
12
|
-
empty(): boolean;
|
|
13
|
-
getExactMatches(): Array<EncodingEntry<T>>;
|
|
14
|
-
getPotentialMatches(): Array<EncodingEntry<T>>;
|
|
15
|
-
toString(): string;
|
|
16
|
-
valid(): boolean;
|
|
17
|
-
valueOf(): T;
|
|
18
|
-
protected invalidateLookup(): void;
|
|
19
|
-
protected abstract onClear(): void;
|
|
20
|
-
protected abstract onEmpty(): boolean;
|
|
21
|
-
protected abstract getEncoding(): T;
|
|
22
|
-
private ensureLookup;
|
|
23
|
-
}
|
|
1
|
+
import { EncodingCategory } from '../Common/EncodingCategory';
|
|
2
|
+
import { EncodingEntry } from '../Common/EncodingEntry';
|
|
3
|
+
import { EncodingDataBase } from './EncodingDataBase';
|
|
4
|
+
export declare abstract class EncodingCharacterBase<T extends number> {
|
|
5
|
+
private _category;
|
|
6
|
+
private _data;
|
|
7
|
+
private _lookup;
|
|
8
|
+
constructor(data: EncodingDataBase<T>, category: EncodingCategory);
|
|
9
|
+
get category(): EncodingCategory;
|
|
10
|
+
set category(value: EncodingCategory);
|
|
11
|
+
clear(): void;
|
|
12
|
+
empty(): boolean;
|
|
13
|
+
getExactMatches(): Array<EncodingEntry<T>>;
|
|
14
|
+
getPotentialMatches(): Array<EncodingEntry<T>>;
|
|
15
|
+
toString(): string;
|
|
16
|
+
valid(): boolean;
|
|
17
|
+
valueOf(): T;
|
|
18
|
+
protected invalidateLookup(): void;
|
|
19
|
+
protected abstract onClear(): void;
|
|
20
|
+
protected abstract onEmpty(): boolean;
|
|
21
|
+
protected abstract getEncoding(): T;
|
|
22
|
+
private ensureLookup;
|
|
23
|
+
}
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EncodingCharacterBase = void 0;
|
|
4
|
+
class EncodingCharacterBase {
|
|
5
|
+
constructor(data, category) {
|
|
6
|
+
this._lookup = null;
|
|
7
|
+
this._data = data;
|
|
8
|
+
this._category = category;
|
|
9
|
+
this.invalidateLookup();
|
|
10
|
+
}
|
|
11
|
+
get category() {
|
|
12
|
+
return this._category;
|
|
13
|
+
}
|
|
14
|
+
set category(value) {
|
|
15
|
+
if (this._category !== value) {
|
|
16
|
+
this._category = value;
|
|
17
|
+
this.invalidateLookup();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
clear() {
|
|
21
|
+
this.onClear();
|
|
22
|
+
this.invalidateLookup();
|
|
23
|
+
}
|
|
24
|
+
empty() {
|
|
25
|
+
return this.onEmpty();
|
|
26
|
+
}
|
|
27
|
+
getExactMatches() {
|
|
28
|
+
return this.ensureLookup().exact;
|
|
29
|
+
}
|
|
30
|
+
getPotentialMatches() {
|
|
31
|
+
return this.ensureLookup().partial;
|
|
32
|
+
}
|
|
33
|
+
toString() {
|
|
34
|
+
return this.ensureLookup().exactString;
|
|
35
|
+
}
|
|
36
|
+
valid() {
|
|
37
|
+
return this.ensureLookup().exact.length > 0;
|
|
38
|
+
}
|
|
39
|
+
valueOf() {
|
|
40
|
+
return this.getEncoding();
|
|
41
|
+
}
|
|
42
|
+
invalidateLookup() {
|
|
43
|
+
this._lookup = null;
|
|
44
|
+
}
|
|
45
|
+
ensureLookup() {
|
|
46
|
+
if (!this._lookup) {
|
|
47
|
+
this._lookup = this._data.lookup(this.getEncoding(), this._category);
|
|
48
|
+
}
|
|
49
|
+
return this._lookup;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.EncodingCharacterBase = EncodingCharacterBase;
|
|
52
53
|
//# sourceMappingURL=EncodingCharacterBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncodingCharacterBase.js","sourceRoot":"","sources":["../../../src/Common/EncodingCharacterBase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EncodingCharacterBase.js","sourceRoot":"","sources":["../../../src/Common/EncodingCharacterBase.ts"],"names":[],"mappings":";;;AAKA,MAAsB,qBAAqB;IAKzC,YAAY,IAAyB,EAAE,QAA0B;QAFzD,YAAO,GAAmC,IAAI,CAAC;QAGrD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAI,QAAQ,CAAC,KAAuB;QAClC,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE;YAC5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;IACH,CAAC;IAED,KAAK;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC;IACzC,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAES,gBAAgB;QACxB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAMO,YAAY;QAClB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;SACtE;QAED,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AAlED,sDAkEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EncodingCategory } from './EncodingCategory';
|
|
2
|
-
import { EncodingLookupResult } from './EncodingLookupResult';
|
|
3
|
-
export declare abstract class EncodingDataBase<T extends number> {
|
|
4
|
-
private readonly _entries;
|
|
5
|
-
lookup(encoding: T, category?: EncodingCategory): EncodingLookupResult<T>;
|
|
6
|
-
protected addToList(encoding: T, category: EncodingCategory, display: string): void;
|
|
7
|
-
}
|
|
1
|
+
import { EncodingCategory } from './EncodingCategory';
|
|
2
|
+
import { EncodingLookupResult } from './EncodingLookupResult';
|
|
3
|
+
export declare abstract class EncodingDataBase<T extends number> {
|
|
4
|
+
private readonly _entries;
|
|
5
|
+
lookup(encoding: T, category?: EncodingCategory): EncodingLookupResult<T>;
|
|
6
|
+
protected addToList(encoding: T, category: EncodingCategory, display: string): void;
|
|
7
|
+
}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EncodingDataBase = void 0;
|
|
4
|
+
const EncodingCategory_1 = require("./EncodingCategory");
|
|
5
|
+
const EncodingEntry_1 = require("./EncodingEntry");
|
|
6
|
+
const EncodingLookupResult_1 = require("./EncodingLookupResult");
|
|
7
|
+
class EncodingDataBase {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._entries = [];
|
|
10
|
+
}
|
|
11
|
+
lookup(encoding, category = EncodingCategory_1.EncodingCategory.All) {
|
|
12
|
+
const result = new EncodingLookupResult_1.EncodingLookupResult();
|
|
13
|
+
for (const entry of this._entries) {
|
|
14
|
+
if ((entry.category & category) !== 0) {
|
|
15
|
+
if (entry.encoding === encoding) {
|
|
16
|
+
result.exact.push(entry);
|
|
17
|
+
}
|
|
18
|
+
else if ((entry.encoding & encoding) === encoding) {
|
|
19
|
+
result.partial.push(entry);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
addToList(encoding, category, display) {
|
|
26
|
+
this._entries.push(new EncodingEntry_1.EncodingEntry(encoding, category, display));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.EncodingDataBase = EncodingDataBase;
|
|
29
30
|
//# sourceMappingURL=EncodingDataBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncodingDataBase.js","sourceRoot":"","sources":["../../../src/Common/EncodingDataBase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EncodingDataBase.js","sourceRoot":"","sources":["../../../src/Common/EncodingDataBase.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,mDAA8C;AAC9C,iEAA4D;AAE5D,MAAsB,gBAAgB;IAAtC;QACmB,aAAQ,GAA4B,EAAE,CAAC;IAyB1D,CAAC;IAvBC,MAAM,CAAC,QAAW,EAAE,WAA6B,mCAAgB,CAAC,GAAG;QACnE,MAAM,MAAM,GAAG,IAAI,2CAAoB,EAAK,CAAC;QAE7C,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACrC,IAAI,KAAK,CAAC,QAAQ,KAAK,QAAQ,EAAE;oBAC/B,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC1B;qBAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC,KAAK,QAAQ,EAAE;oBACnD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC5B;aACF;SACF;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAES,SAAS,CACjB,QAAW,EACX,QAA0B,EAC1B,OAAe;QAEf,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,6BAAa,CAAI,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IACxE,CAAC;CACF;AA1BD,4CA0BC"}
|