pixel-react 1.14.87 → 1.14.89

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 (116) hide show
  1. package/README.md +75 -75
  2. package/lib/_virtual/index10.js +2 -2
  3. package/lib/_virtual/index11.js +2 -2
  4. package/lib/_virtual/index12.js +2 -2
  5. package/lib/_virtual/index9.js +2 -2
  6. package/lib/assets/icons/dataset_list.svg.js +1 -1
  7. package/lib/assets/icons/dataset_list.svg.js.map +1 -1
  8. package/lib/assets/icons/spinner.svg.js +1 -1
  9. package/lib/assets/icons/spinner.svg.js.map +1 -1
  10. package/lib/components/Chip/Chip.js +1 -1
  11. package/lib/components/Chip/Chip.js.map +1 -1
  12. package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js +9 -0
  13. package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
  14. package/lib/components/Select/Select.js +3 -2
  15. package/lib/components/Select/Select.js.map +1 -1
  16. package/lib/index.cjs +1362 -6766
  17. package/lib/index.cjs.map +1 -1
  18. package/lib/index.d.ts +1 -1
  19. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  20. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  21. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  22. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  23. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  24. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  25. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  26. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  27. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  28. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +6 -8
  29. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
  30. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +4 -4
  31. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
  32. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +4 -4
  33. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
  34. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +41 -28
  35. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
  36. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +21 -17
  37. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
  38. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -1
  39. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
  40. package/lib/node_modules/libphonenumber-js/es6/format.js +50 -91
  41. package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
  42. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +39 -6
  43. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
  44. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +13 -10
  45. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
  46. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +10 -8
  47. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
  48. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +15 -5
  49. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
  50. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +2 -2
  51. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
  52. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +30 -8
  53. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
  54. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
  55. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
  56. package/lib/node_modules/libphonenumber-js/es6/isPossible.js +4 -4
  57. package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
  58. package/lib/node_modules/libphonenumber-js/es6/metadata.js +1 -1
  59. package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
  60. package/lib/node_modules/libphonenumber-js/es6/parse.js +9 -7
  61. package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
  62. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +7 -7
  63. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
  64. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +11 -11
  65. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  66. package/lib/node_modules/prop-types/index.js +1 -1
  67. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +33 -21
  68. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  69. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +41 -0
  70. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  71. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +3 -2
  72. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  73. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +3 -2
  74. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  75. package/lib/node_modules/react-hook-form/dist/index.esm.js +60 -38
  76. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  77. package/lib/node_modules/react-virtuoso/dist/index.js +397 -397
  78. package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
  79. package/lib/node_modules/ua-parser-js/src/ua-parser.js +85 -71
  80. package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
  81. package/lib/styles.css +1 -1
  82. package/lib/styles.css.map +1 -1
  83. package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -1
  84. package/lib/utils/getEncryptedData/getEncryptedData.js +17 -8
  85. package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
  86. package/package.json +106 -107
  87. package/lib/node_modules/jsencrypt/lib/JSEncrypt.js +0 -246
  88. package/lib/node_modules/jsencrypt/lib/JSEncrypt.js.map +0 -1
  89. package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +0 -325
  90. package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js.map +0 -1
  91. package/lib/node_modules/jsencrypt/lib/index.js +0 -6
  92. package/lib/node_modules/jsencrypt/lib/index.js.map +0 -1
  93. package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +0 -570
  94. package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js.map +0 -1
  95. package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js +0 -88
  96. package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js.map +0 -1
  97. package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js +0 -66
  98. package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js.map +0 -1
  99. package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js +0 -87
  100. package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js.map +0 -1
  101. package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js +0 -65
  102. package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js.map +0 -1
  103. package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +0 -1700
  104. package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js.map +0 -1
  105. package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +0 -48
  106. package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js.map +0 -1
  107. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js +0 -77
  108. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js.map +0 -1
  109. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +0 -415
  110. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js.map +0 -1
  111. package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js +0 -307
  112. package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js.map +0 -1
  113. package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js +0 -61
  114. package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js.map +0 -1
  115. package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +0 -1559
  116. package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js.map +0 -1
@@ -1,325 +0,0 @@
1
- import { hex2b64 } from './lib/jsbn/base64.js';
2
- import { Hex } from './lib/asn1js/hex.js';
3
- import { Base64 } from './lib/asn1js/base64.js';
4
- import { ASN1 } from './lib/asn1js/asn1.js';
5
- import { RSAKey } from './lib/jsbn/rsa.js';
6
- import { parseBigInt } from './lib/jsbn/jsbn.js';
7
- import { KJUR } from './lib/jsrsasign/asn1-1.0.js';
8
-
9
- var __extends = window && window.__extends || function () {
10
- var extendStatics = function (d, b) {
11
- extendStatics = Object.setPrototypeOf || {
12
- __proto__: []
13
- } instanceof Array && function (d, b) {
14
- d.__proto__ = b;
15
- } || function (d, b) {
16
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
17
- };
18
- return extendStatics(d, b);
19
- };
20
- return function (d, b) {
21
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
22
- extendStatics(d, b);
23
- function __() {
24
- this.constructor = d;
25
- }
26
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
- };
28
- }();
29
- /**
30
- * Create a new JSEncryptRSAKey that extends Tom Wu's RSA key object.
31
- * This object is just a decorator for parsing the key parameter
32
- * @param {string|Object} key - The key in string format, or an object containing
33
- * the parameters needed to build a RSAKey object.
34
- * @constructor
35
- */
36
- var JSEncryptRSAKey = /** @class */function (_super) {
37
- __extends(JSEncryptRSAKey, _super);
38
- function JSEncryptRSAKey(key) {
39
- var _this = _super.call(this) || this;
40
- // Call the super constructor.
41
- // RSAKey.call(this);
42
- // If a key key was provided.
43
- if (key) {
44
- // If this is a string...
45
- if (typeof key === "string") {
46
- _this.parseKey(key);
47
- } else if (JSEncryptRSAKey.hasPrivateKeyProperty(key) || JSEncryptRSAKey.hasPublicKeyProperty(key)) {
48
- // Set the values for the key.
49
- _this.parsePropertiesFrom(key);
50
- }
51
- }
52
- return _this;
53
- }
54
- /**
55
- * Method to parse a pem encoded string containing both a public or private key.
56
- * The method will translate the pem encoded string in a der encoded string and
57
- * will parse private key and public key parameters. This method accepts public key
58
- * in the rsaencryption pkcs #1 format (oid: 1.2.840.113549.1.1.1).
59
- *
60
- * @todo Check how many rsa formats use the same format of pkcs #1.
61
- *
62
- * The format is defined as:
63
- * PublicKeyInfo ::= SEQUENCE {
64
- * algorithm AlgorithmIdentifier,
65
- * PublicKey BIT STRING
66
- * }
67
- * Where AlgorithmIdentifier is:
68
- * AlgorithmIdentifier ::= SEQUENCE {
69
- * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm
70
- * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1)
71
- * }
72
- * and PublicKey is a SEQUENCE encapsulated in a BIT STRING
73
- * RSAPublicKey ::= SEQUENCE {
74
- * modulus INTEGER, -- n
75
- * publicExponent INTEGER -- e
76
- * }
77
- * it's possible to examine the structure of the keys obtained from openssl using
78
- * an asn.1 dumper as the one used here to parse the components: http://lapo.it/asn1js/
79
- * @argument {string} pem the pem encoded string, can include the BEGIN/END header/footer
80
- * @private
81
- */
82
- JSEncryptRSAKey.prototype.parseKey = function (pem) {
83
- try {
84
- var modulus = 0;
85
- var public_exponent = 0;
86
- var reHex = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;
87
- var der = reHex.test(pem) ? Hex.decode(pem) : Base64.unarmor(pem);
88
- var asn1 = ASN1.decode(der);
89
- // Fixes a bug with OpenSSL 1.0+ private keys
90
- if (asn1.sub.length === 3) {
91
- asn1 = asn1.sub[2].sub[0];
92
- }
93
- if (asn1.sub.length === 9) {
94
- // Parse the private key.
95
- modulus = asn1.sub[1].getHexStringValue(); // bigint
96
- this.n = parseBigInt(modulus, 16);
97
- public_exponent = asn1.sub[2].getHexStringValue(); // int
98
- this.e = parseInt(public_exponent, 16);
99
- var private_exponent = asn1.sub[3].getHexStringValue(); // bigint
100
- this.d = parseBigInt(private_exponent, 16);
101
- var prime1 = asn1.sub[4].getHexStringValue(); // bigint
102
- this.p = parseBigInt(prime1, 16);
103
- var prime2 = asn1.sub[5].getHexStringValue(); // bigint
104
- this.q = parseBigInt(prime2, 16);
105
- var exponent1 = asn1.sub[6].getHexStringValue(); // bigint
106
- this.dmp1 = parseBigInt(exponent1, 16);
107
- var exponent2 = asn1.sub[7].getHexStringValue(); // bigint
108
- this.dmq1 = parseBigInt(exponent2, 16);
109
- var coefficient = asn1.sub[8].getHexStringValue(); // bigint
110
- this.coeff = parseBigInt(coefficient, 16);
111
- } else if (asn1.sub.length === 2) {
112
- if (asn1.sub[0].sub) {
113
- // Parse ASN.1 SubjectPublicKeyInfo type as defined by X.509
114
- var bit_string = asn1.sub[1];
115
- var sequence = bit_string.sub[0];
116
- modulus = sequence.sub[0].getHexStringValue();
117
- this.n = parseBigInt(modulus, 16);
118
- public_exponent = sequence.sub[1].getHexStringValue();
119
- this.e = parseInt(public_exponent, 16);
120
- } else {
121
- // Parse ASN.1 RSAPublicKey type as defined by PKCS #1
122
- modulus = asn1.sub[0].getHexStringValue();
123
- this.n = parseBigInt(modulus, 16);
124
- public_exponent = asn1.sub[1].getHexStringValue();
125
- this.e = parseInt(public_exponent, 16);
126
- }
127
- } else {
128
- return false;
129
- }
130
- return true;
131
- } catch (ex) {
132
- return false;
133
- }
134
- };
135
- /**
136
- * Translate rsa parameters in a hex encoded string representing the rsa key.
137
- *
138
- * The translation follow the ASN.1 notation :
139
- * RSAPrivateKey ::= SEQUENCE {
140
- * version Version,
141
- * modulus INTEGER, -- n
142
- * publicExponent INTEGER, -- e
143
- * privateExponent INTEGER, -- d
144
- * prime1 INTEGER, -- p
145
- * prime2 INTEGER, -- q
146
- * exponent1 INTEGER, -- d mod (p1)
147
- * exponent2 INTEGER, -- d mod (q-1)
148
- * coefficient INTEGER, -- (inverse of q) mod p
149
- * }
150
- * @returns {string} DER Encoded String representing the rsa private key
151
- * @private
152
- */
153
- JSEncryptRSAKey.prototype.getPrivateBaseKey = function () {
154
- var options = {
155
- array: [new KJUR.asn1.DERInteger({
156
- int: 0
157
- }), new KJUR.asn1.DERInteger({
158
- bigint: this.n
159
- }), new KJUR.asn1.DERInteger({
160
- int: this.e
161
- }), new KJUR.asn1.DERInteger({
162
- bigint: this.d
163
- }), new KJUR.asn1.DERInteger({
164
- bigint: this.p
165
- }), new KJUR.asn1.DERInteger({
166
- bigint: this.q
167
- }), new KJUR.asn1.DERInteger({
168
- bigint: this.dmp1
169
- }), new KJUR.asn1.DERInteger({
170
- bigint: this.dmq1
171
- }), new KJUR.asn1.DERInteger({
172
- bigint: this.coeff
173
- })]
174
- };
175
- var seq = new KJUR.asn1.DERSequence(options);
176
- return seq.getEncodedHex();
177
- };
178
- /**
179
- * base64 (pem) encoded version of the DER encoded representation
180
- * @returns {string} pem encoded representation without header and footer
181
- * @public
182
- */
183
- JSEncryptRSAKey.prototype.getPrivateBaseKeyB64 = function () {
184
- return hex2b64(this.getPrivateBaseKey());
185
- };
186
- /**
187
- * Translate rsa parameters in a hex encoded string representing the rsa public key.
188
- * The representation follow the ASN.1 notation :
189
- * PublicKeyInfo ::= SEQUENCE {
190
- * algorithm AlgorithmIdentifier,
191
- * PublicKey BIT STRING
192
- * }
193
- * Where AlgorithmIdentifier is:
194
- * AlgorithmIdentifier ::= SEQUENCE {
195
- * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm
196
- * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1)
197
- * }
198
- * and PublicKey is a SEQUENCE encapsulated in a BIT STRING
199
- * RSAPublicKey ::= SEQUENCE {
200
- * modulus INTEGER, -- n
201
- * publicExponent INTEGER -- e
202
- * }
203
- * @returns {string} DER Encoded String representing the rsa public key
204
- * @private
205
- */
206
- JSEncryptRSAKey.prototype.getPublicBaseKey = function () {
207
- var first_sequence = new KJUR.asn1.DERSequence({
208
- array: [new KJUR.asn1.DERObjectIdentifier({
209
- oid: "1.2.840.113549.1.1.1"
210
- }),
211
- // RSA Encryption pkcs #1 oid
212
- new KJUR.asn1.DERNull()]
213
- });
214
- var second_sequence = new KJUR.asn1.DERSequence({
215
- array: [new KJUR.asn1.DERInteger({
216
- bigint: this.n
217
- }), new KJUR.asn1.DERInteger({
218
- int: this.e
219
- })]
220
- });
221
- var bit_string = new KJUR.asn1.DERBitString({
222
- hex: "00" + second_sequence.getEncodedHex()
223
- });
224
- var seq = new KJUR.asn1.DERSequence({
225
- array: [first_sequence, bit_string]
226
- });
227
- return seq.getEncodedHex();
228
- };
229
- /**
230
- * base64 (pem) encoded version of the DER encoded representation
231
- * @returns {string} pem encoded representation without header and footer
232
- * @public
233
- */
234
- JSEncryptRSAKey.prototype.getPublicBaseKeyB64 = function () {
235
- return hex2b64(this.getPublicBaseKey());
236
- };
237
- /**
238
- * wrap the string in block of width chars. The default value for rsa keys is 64
239
- * characters.
240
- * @param {string} str the pem encoded string without header and footer
241
- * @param {Number} [width=64] - the length the string has to be wrapped at
242
- * @returns {string}
243
- * @private
244
- */
245
- JSEncryptRSAKey.wordwrap = function (str, width) {
246
- width = width || 64;
247
- if (!str) {
248
- return str;
249
- }
250
- var regex = "(.{1," + width + "})( +|$\n?)|(.{1," + width + "})";
251
- return str.match(RegExp(regex, "g")).join("\n");
252
- };
253
- /**
254
- * Retrieve the pem encoded private key
255
- * @returns {string} the pem encoded private key with header/footer
256
- * @public
257
- */
258
- JSEncryptRSAKey.prototype.getPrivateKey = function () {
259
- var key = "-----BEGIN RSA PRIVATE KEY-----\n";
260
- key += JSEncryptRSAKey.wordwrap(this.getPrivateBaseKeyB64()) + "\n";
261
- key += "-----END RSA PRIVATE KEY-----";
262
- return key;
263
- };
264
- /**
265
- * Retrieve the pem encoded public key
266
- * @returns {string} the pem encoded public key with header/footer
267
- * @public
268
- */
269
- JSEncryptRSAKey.prototype.getPublicKey = function () {
270
- var key = "-----BEGIN PUBLIC KEY-----\n";
271
- key += JSEncryptRSAKey.wordwrap(this.getPublicBaseKeyB64()) + "\n";
272
- key += "-----END PUBLIC KEY-----";
273
- return key;
274
- };
275
- /**
276
- * Check if the object contains the necessary parameters to populate the rsa modulus
277
- * and public exponent parameters.
278
- * @param {Object} [obj={}] - An object that may contain the two public key
279
- * parameters
280
- * @returns {boolean} true if the object contains both the modulus and the public exponent
281
- * properties (n and e)
282
- * @todo check for types of n and e. N should be a parseable bigInt object, E should
283
- * be a parseable integer number
284
- * @private
285
- */
286
- JSEncryptRSAKey.hasPublicKeyProperty = function (obj) {
287
- obj = obj || {};
288
- return obj.hasOwnProperty("n") && obj.hasOwnProperty("e");
289
- };
290
- /**
291
- * Check if the object contains ALL the parameters of an RSA key.
292
- * @param {Object} [obj={}] - An object that may contain nine rsa key
293
- * parameters
294
- * @returns {boolean} true if the object contains all the parameters needed
295
- * @todo check for types of the parameters all the parameters but the public exponent
296
- * should be parseable bigint objects, the public exponent should be a parseable integer number
297
- * @private
298
- */
299
- JSEncryptRSAKey.hasPrivateKeyProperty = function (obj) {
300
- obj = obj || {};
301
- return obj.hasOwnProperty("n") && obj.hasOwnProperty("e") && obj.hasOwnProperty("d") && obj.hasOwnProperty("p") && obj.hasOwnProperty("q") && obj.hasOwnProperty("dmp1") && obj.hasOwnProperty("dmq1") && obj.hasOwnProperty("coeff");
302
- };
303
- /**
304
- * Parse the properties of obj in the current rsa object. Obj should AT LEAST
305
- * include the modulus and public exponent (n, e) parameters.
306
- * @param {Object} obj - the object containing rsa parameters
307
- * @private
308
- */
309
- JSEncryptRSAKey.prototype.parsePropertiesFrom = function (obj) {
310
- this.n = obj.n;
311
- this.e = obj.e;
312
- if (obj.hasOwnProperty("d")) {
313
- this.d = obj.d;
314
- this.p = obj.p;
315
- this.q = obj.q;
316
- this.dmp1 = obj.dmp1;
317
- this.dmq1 = obj.dmq1;
318
- this.coeff = obj.coeff;
319
- }
320
- };
321
- return JSEncryptRSAKey;
322
- }(RSAKey);
323
-
324
- export { JSEncryptRSAKey };
325
- //# sourceMappingURL=JSEncryptRSAKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSEncryptRSAKey.js","sources":["../../../../node_modules/jsencrypt/lib/JSEncryptRSAKey.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport { hex2b64 } from \"./lib/jsbn/base64\";\nimport { Hex } from \"./lib/asn1js/hex\";\nimport { Base64 } from \"./lib/asn1js/base64\";\nimport { ASN1 } from \"./lib/asn1js/asn1\";\nimport { RSAKey } from \"./lib/jsbn/rsa\";\nimport { parseBigInt } from \"./lib/jsbn/jsbn\";\nimport { KJUR } from \"./lib/jsrsasign/asn1-1.0\";\n/**\n * Create a new JSEncryptRSAKey that extends Tom Wu's RSA key object.\n * This object is just a decorator for parsing the key parameter\n * @param {string|Object} key - The key in string format, or an object containing\n * the parameters needed to build a RSAKey object.\n * @constructor\n */\nvar JSEncryptRSAKey = /** @class */ (function (_super) {\n __extends(JSEncryptRSAKey, _super);\n function JSEncryptRSAKey(key) {\n var _this = _super.call(this) || this;\n // Call the super constructor.\n // RSAKey.call(this);\n // If a key key was provided.\n if (key) {\n // If this is a string...\n if (typeof key === \"string\") {\n _this.parseKey(key);\n }\n else if (JSEncryptRSAKey.hasPrivateKeyProperty(key) ||\n JSEncryptRSAKey.hasPublicKeyProperty(key)) {\n // Set the values for the key.\n _this.parsePropertiesFrom(key);\n }\n }\n return _this;\n }\n /**\n * Method to parse a pem encoded string containing both a public or private key.\n * The method will translate the pem encoded string in a der encoded string and\n * will parse private key and public key parameters. This method accepts public key\n * in the rsaencryption pkcs #1 format (oid: 1.2.840.113549.1.1.1).\n *\n * @todo Check how many rsa formats use the same format of pkcs #1.\n *\n * The format is defined as:\n * PublicKeyInfo ::= SEQUENCE {\n * algorithm AlgorithmIdentifier,\n * PublicKey BIT STRING\n * }\n * Where AlgorithmIdentifier is:\n * AlgorithmIdentifier ::= SEQUENCE {\n * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm\n * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1)\n * }\n * and PublicKey is a SEQUENCE encapsulated in a BIT STRING\n * RSAPublicKey ::= SEQUENCE {\n * modulus INTEGER, -- n\n * publicExponent INTEGER -- e\n * }\n * it's possible to examine the structure of the keys obtained from openssl using\n * an asn.1 dumper as the one used here to parse the components: http://lapo.it/asn1js/\n * @argument {string} pem the pem encoded string, can include the BEGIN/END header/footer\n * @private\n */\n JSEncryptRSAKey.prototype.parseKey = function (pem) {\n try {\n var modulus = 0;\n var public_exponent = 0;\n var reHex = /^\\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\\s*)+$/;\n var der = reHex.test(pem) ? Hex.decode(pem) : Base64.unarmor(pem);\n var asn1 = ASN1.decode(der);\n // Fixes a bug with OpenSSL 1.0+ private keys\n if (asn1.sub.length === 3) {\n asn1 = asn1.sub[2].sub[0];\n }\n if (asn1.sub.length === 9) {\n // Parse the private key.\n modulus = asn1.sub[1].getHexStringValue(); // bigint\n this.n = parseBigInt(modulus, 16);\n public_exponent = asn1.sub[2].getHexStringValue(); // int\n this.e = parseInt(public_exponent, 16);\n var private_exponent = asn1.sub[3].getHexStringValue(); // bigint\n this.d = parseBigInt(private_exponent, 16);\n var prime1 = asn1.sub[4].getHexStringValue(); // bigint\n this.p = parseBigInt(prime1, 16);\n var prime2 = asn1.sub[5].getHexStringValue(); // bigint\n this.q = parseBigInt(prime2, 16);\n var exponent1 = asn1.sub[6].getHexStringValue(); // bigint\n this.dmp1 = parseBigInt(exponent1, 16);\n var exponent2 = asn1.sub[7].getHexStringValue(); // bigint\n this.dmq1 = parseBigInt(exponent2, 16);\n var coefficient = asn1.sub[8].getHexStringValue(); // bigint\n this.coeff = parseBigInt(coefficient, 16);\n }\n else if (asn1.sub.length === 2) {\n if (asn1.sub[0].sub) {\n // Parse ASN.1 SubjectPublicKeyInfo type as defined by X.509\n var bit_string = asn1.sub[1];\n var sequence = bit_string.sub[0];\n modulus = sequence.sub[0].getHexStringValue();\n this.n = parseBigInt(modulus, 16);\n public_exponent = sequence.sub[1].getHexStringValue();\n this.e = parseInt(public_exponent, 16);\n }\n else {\n // Parse ASN.1 RSAPublicKey type as defined by PKCS #1\n modulus = asn1.sub[0].getHexStringValue();\n this.n = parseBigInt(modulus, 16);\n public_exponent = asn1.sub[1].getHexStringValue();\n this.e = parseInt(public_exponent, 16);\n }\n }\n else {\n return false;\n }\n return true;\n }\n catch (ex) {\n return false;\n }\n };\n /**\n * Translate rsa parameters in a hex encoded string representing the rsa key.\n *\n * The translation follow the ASN.1 notation :\n * RSAPrivateKey ::= SEQUENCE {\n * version Version,\n * modulus INTEGER, -- n\n * publicExponent INTEGER, -- e\n * privateExponent INTEGER, -- d\n * prime1 INTEGER, -- p\n * prime2 INTEGER, -- q\n * exponent1 INTEGER, -- d mod (p1)\n * exponent2 INTEGER, -- d mod (q-1)\n * coefficient INTEGER, -- (inverse of q) mod p\n * }\n * @returns {string} DER Encoded String representing the rsa private key\n * @private\n */\n JSEncryptRSAKey.prototype.getPrivateBaseKey = function () {\n var options = {\n array: [\n new KJUR.asn1.DERInteger({ int: 0 }),\n new KJUR.asn1.DERInteger({ bigint: this.n }),\n new KJUR.asn1.DERInteger({ int: this.e }),\n new KJUR.asn1.DERInteger({ bigint: this.d }),\n new KJUR.asn1.DERInteger({ bigint: this.p }),\n new KJUR.asn1.DERInteger({ bigint: this.q }),\n new KJUR.asn1.DERInteger({ bigint: this.dmp1 }),\n new KJUR.asn1.DERInteger({ bigint: this.dmq1 }),\n new KJUR.asn1.DERInteger({ bigint: this.coeff }),\n ],\n };\n var seq = new KJUR.asn1.DERSequence(options);\n return seq.getEncodedHex();\n };\n /**\n * base64 (pem) encoded version of the DER encoded representation\n * @returns {string} pem encoded representation without header and footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPrivateBaseKeyB64 = function () {\n return hex2b64(this.getPrivateBaseKey());\n };\n /**\n * Translate rsa parameters in a hex encoded string representing the rsa public key.\n * The representation follow the ASN.1 notation :\n * PublicKeyInfo ::= SEQUENCE {\n * algorithm AlgorithmIdentifier,\n * PublicKey BIT STRING\n * }\n * Where AlgorithmIdentifier is:\n * AlgorithmIdentifier ::= SEQUENCE {\n * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm\n * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1)\n * }\n * and PublicKey is a SEQUENCE encapsulated in a BIT STRING\n * RSAPublicKey ::= SEQUENCE {\n * modulus INTEGER, -- n\n * publicExponent INTEGER -- e\n * }\n * @returns {string} DER Encoded String representing the rsa public key\n * @private\n */\n JSEncryptRSAKey.prototype.getPublicBaseKey = function () {\n var first_sequence = new KJUR.asn1.DERSequence({\n array: [\n new KJUR.asn1.DERObjectIdentifier({ oid: \"1.2.840.113549.1.1.1\" }), // RSA Encryption pkcs #1 oid\n new KJUR.asn1.DERNull(),\n ],\n });\n var second_sequence = new KJUR.asn1.DERSequence({\n array: [\n new KJUR.asn1.DERInteger({ bigint: this.n }),\n new KJUR.asn1.DERInteger({ int: this.e }),\n ],\n });\n var bit_string = new KJUR.asn1.DERBitString({\n hex: \"00\" + second_sequence.getEncodedHex(),\n });\n var seq = new KJUR.asn1.DERSequence({\n array: [first_sequence, bit_string],\n });\n return seq.getEncodedHex();\n };\n /**\n * base64 (pem) encoded version of the DER encoded representation\n * @returns {string} pem encoded representation without header and footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPublicBaseKeyB64 = function () {\n return hex2b64(this.getPublicBaseKey());\n };\n /**\n * wrap the string in block of width chars. The default value for rsa keys is 64\n * characters.\n * @param {string} str the pem encoded string without header and footer\n * @param {Number} [width=64] - the length the string has to be wrapped at\n * @returns {string}\n * @private\n */\n JSEncryptRSAKey.wordwrap = function (str, width) {\n width = width || 64;\n if (!str) {\n return str;\n }\n var regex = \"(.{1,\" + width + \"})( +|$\\n?)|(.{1,\" + width + \"})\";\n return str.match(RegExp(regex, \"g\")).join(\"\\n\");\n };\n /**\n * Retrieve the pem encoded private key\n * @returns {string} the pem encoded private key with header/footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPrivateKey = function () {\n var key = \"-----BEGIN RSA PRIVATE KEY-----\\n\";\n key += JSEncryptRSAKey.wordwrap(this.getPrivateBaseKeyB64()) + \"\\n\";\n key += \"-----END RSA PRIVATE KEY-----\";\n return key;\n };\n /**\n * Retrieve the pem encoded public key\n * @returns {string} the pem encoded public key with header/footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPublicKey = function () {\n var key = \"-----BEGIN PUBLIC KEY-----\\n\";\n key += JSEncryptRSAKey.wordwrap(this.getPublicBaseKeyB64()) + \"\\n\";\n key += \"-----END PUBLIC KEY-----\";\n return key;\n };\n /**\n * Check if the object contains the necessary parameters to populate the rsa modulus\n * and public exponent parameters.\n * @param {Object} [obj={}] - An object that may contain the two public key\n * parameters\n * @returns {boolean} true if the object contains both the modulus and the public exponent\n * properties (n and e)\n * @todo check for types of n and e. N should be a parseable bigInt object, E should\n * be a parseable integer number\n * @private\n */\n JSEncryptRSAKey.hasPublicKeyProperty = function (obj) {\n obj = obj || {};\n return obj.hasOwnProperty(\"n\") && obj.hasOwnProperty(\"e\");\n };\n /**\n * Check if the object contains ALL the parameters of an RSA key.\n * @param {Object} [obj={}] - An object that may contain nine rsa key\n * parameters\n * @returns {boolean} true if the object contains all the parameters needed\n * @todo check for types of the parameters all the parameters but the public exponent\n * should be parseable bigint objects, the public exponent should be a parseable integer number\n * @private\n */\n JSEncryptRSAKey.hasPrivateKeyProperty = function (obj) {\n obj = obj || {};\n return (obj.hasOwnProperty(\"n\") &&\n obj.hasOwnProperty(\"e\") &&\n obj.hasOwnProperty(\"d\") &&\n obj.hasOwnProperty(\"p\") &&\n obj.hasOwnProperty(\"q\") &&\n obj.hasOwnProperty(\"dmp1\") &&\n obj.hasOwnProperty(\"dmq1\") &&\n obj.hasOwnProperty(\"coeff\"));\n };\n /**\n * Parse the properties of obj in the current rsa object. Obj should AT LEAST\n * include the modulus and public exponent (n, e) parameters.\n * @param {Object} obj - the object containing rsa parameters\n * @private\n */\n JSEncryptRSAKey.prototype.parsePropertiesFrom = function (obj) {\n this.n = obj.n;\n this.e = obj.e;\n if (obj.hasOwnProperty(\"d\")) {\n this.d = obj.d;\n this.p = obj.p;\n this.q = obj.q;\n this.dmp1 = obj.dmp1;\n this.dmq1 = obj.dmq1;\n this.coeff = obj.coeff;\n }\n };\n return JSEncryptRSAKey;\n}(RSAKey));\nexport { JSEncryptRSAKey };\n"],"names":["__extends","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","JSEncryptRSAKey","_super","key","_this","parseKey","hasPrivateKeyProperty","hasPublicKeyProperty","parsePropertiesFrom","pem","modulus","public_exponent","reHex","der","test","Hex","decode","Base64","unarmor","asn1","ASN1","sub","length","getHexStringValue","n","parseBigInt","e","parseInt","private_exponent","prime1","prime2","q","exponent1","dmp1","exponent2","dmq1","coefficient","coeff","bit_string","sequence","ex","getPrivateBaseKey","options","array","KJUR","DERInteger","int","bigint","seq","DERSequence","getEncodedHex","getPrivateBaseKeyB64","hex2b64","getPublicBaseKey","first_sequence","DERObjectIdentifier","oid","DERNull","second_sequence","DERBitString","hex","getPublicBaseKeyB64","wordwrap","str","width","regex","match","RegExp","join","getPrivateKey","getPublicKey","obj","RSAKey"],"mappings":";;;;;;;;AAAA,IAAIA,SAAS,GAAIC,MAAI,IAAIA,MAAI,CAACD,SAAS,IAAM,YAAY;AACrD,EAAA,IAAIE,aAAa,GAAG,UAAUC,CAAC,EAAEC,CAAC,EAAE;AAChCF,IAAAA,aAAa,GAAGG,MAAM,CAACC,cAAc,IAChC;AAAEC,MAAAA,SAAS,EAAE;AAAG,KAAC,YAAYC,KAAK,IAAI,UAAUL,CAAC,EAAEC,CAAC,EAAE;MAAED,CAAC,CAACI,SAAS,GAAGH,CAAC;AAAE,IAAA,CAAE,IAC5E,UAAUD,CAAC,EAAEC,CAAC,EAAE;MAAE,KAAK,IAAIK,CAAC,IAAIL,CAAC,EAAE,IAAIC,MAAM,CAACK,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC,CAAC;IAAE,CAAC;AACrG,IAAA,OAAOP,aAAa,CAACC,CAAC,EAAEC,CAAC,CAAC;EAC9B,CAAC;AACD,EAAA,OAAO,UAAUD,CAAC,EAAEC,CAAC,EAAE;IACnB,IAAI,OAAOA,CAAC,KAAK,UAAU,IAAIA,CAAC,KAAK,IAAI,EACrC,MAAM,IAAIS,SAAS,CAAC,sBAAsB,GAAGC,MAAM,CAACV,CAAC,CAAC,GAAG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AAC,OAAO,CAAC;EACnC,CAAC;AACD;AACJ;AACA;AACA;AACA;AACA;AACIO,EAAAA,eAAe,CAACR,SAAS,CAACe,mBAAmB,GAAG,UAAU+D,GAAG,EAAE;AAC3D,IAAA,IAAI,CAAC/C,CAAC,GAAG+C,GAAG,CAAC/C,CAAC;AACd,IAAA,IAAI,CAACE,CAAC,GAAG6C,GAAG,CAAC7C,CAAC;AACd,IAAA,IAAI6C,GAAG,CAAC7E,cAAc,CAAC,GAAG,CAAC,EAAE;AACzB,MAAA,IAAI,CAACR,CAAC,GAAGqF,GAAG,CAACrF,CAAC;AACd,MAAA,IAAI,CAACM,CAAC,GAAG+E,GAAG,CAAC/E,CAAC;AACd,MAAA,IAAI,CAACuC,CAAC,GAAGwC,GAAG,CAACxC,CAAC;AACd,MAAA,IAAI,CAACE,IAAI,GAAGsC,GAAG,CAACtC,IAAI;AACpB,MAAA,IAAI,CAACE,IAAI,GAAGoC,GAAG,CAACpC,IAAI;AACpB,MAAA,IAAI,CAACE,KAAK,GAAGkC,GAAG,CAAClC,KAAK;AAC1B,IAAA;EACJ,CAAC;AACD,EAAA,OAAOpC,eAAe;AAC1B,CAAC,CAACuE,MAAM;;;;","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- import { JSEncrypt } from './JSEncrypt.js';
2
-
3
-
4
-
5
- export { JSEncrypt, JSEncrypt as default };
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}