@gct-paas/core 0.1.4-dev.3 → 0.1.4-dev.5

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 (124) hide show
  1. package/dist/index.min.cjs +2 -2
  2. package/dist/index.system.min.js +4 -4
  3. package/es/controller/form/form.controller.mjs +1 -2
  4. package/es/controller/gct-form/gct-form.controller.mjs +1 -2
  5. package/es/global/gct/gct.d.ts +1 -1
  6. package/es/interface/controller/form/form.controller.mjs +1 -1
  7. package/es/interface/hooks/i-designer-hooks.mjs +1 -1
  8. package/es/interface/i-modal/i-modal.mjs +1 -1
  9. package/es/interface/i-pinia-action/i-global-actions.d.ts +4 -7
  10. package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -5
  11. package/es/modules/api-service/api-manage.mjs +1 -1
  12. package/es/modules/api-service/api-service.interface.d.ts +2 -2
  13. package/es/modules/api-service/api-service.interface.mjs +2 -2
  14. package/es/modules/api-service/api-service.mjs +1 -1
  15. package/es/modules/api-service/index.mjs +2 -4
  16. package/es/modules/env-manager/env-manager.d.ts +1 -1
  17. package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
  18. package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
  19. package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
  20. package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
  21. package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
  22. package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
  23. package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
  24. package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
  25. package/es/register/designer-register/designer-register.mjs +1 -2
  26. package/es/register/render-register/render-register.mjs +1 -2
  27. package/es/store/global-store.mjs +6 -11
  28. package/es/types/index.d.ts +2 -2
  29. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
  30. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
  31. package/es/utils/tools/tools.mjs +1 -2
  32. package/package.json +6 -8
  33. package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
  34. package/es/_virtual/_commonjsHelpers.mjs +0 -44
  35. package/es/_virtual/aes.mjs +0 -3
  36. package/es/_virtual/blowfish.mjs +0 -3
  37. package/es/_virtual/cipher-core.mjs +0 -3
  38. package/es/_virtual/core.mjs +0 -3
  39. package/es/_virtual/enc-base64.mjs +0 -3
  40. package/es/_virtual/enc-base64url.mjs +0 -3
  41. package/es/_virtual/enc-utf16.mjs +0 -3
  42. package/es/_virtual/evpkdf.mjs +0 -3
  43. package/es/_virtual/format-hex.mjs +0 -3
  44. package/es/_virtual/hmac.mjs +0 -3
  45. package/es/_virtual/index.mjs +0 -7
  46. package/es/_virtual/index2.mjs +0 -7
  47. package/es/_virtual/index3.mjs +0 -3
  48. package/es/_virtual/lib-typedarrays.mjs +0 -3
  49. package/es/_virtual/md5.mjs +0 -3
  50. package/es/_virtual/mode-cfb.mjs +0 -3
  51. package/es/_virtual/mode-ctr-gladman.mjs +0 -3
  52. package/es/_virtual/mode-ctr.mjs +0 -3
  53. package/es/_virtual/mode-ecb.mjs +0 -3
  54. package/es/_virtual/mode-ofb.mjs +0 -3
  55. package/es/_virtual/pad-ansix923.mjs +0 -3
  56. package/es/_virtual/pad-iso10126.mjs +0 -3
  57. package/es/_virtual/pad-iso97971.mjs +0 -3
  58. package/es/_virtual/pad-nopadding.mjs +0 -3
  59. package/es/_virtual/pad-zeropadding.mjs +0 -3
  60. package/es/_virtual/pbkdf2.mjs +0 -3
  61. package/es/_virtual/rabbit-legacy.mjs +0 -3
  62. package/es/_virtual/rabbit.mjs +0 -3
  63. package/es/_virtual/rc4.mjs +0 -3
  64. package/es/_virtual/ripemd160.mjs +0 -3
  65. package/es/_virtual/sha1.mjs +0 -3
  66. package/es/_virtual/sha224.mjs +0 -3
  67. package/es/_virtual/sha256.mjs +0 -3
  68. package/es/_virtual/sha3.mjs +0 -3
  69. package/es/_virtual/sha384.mjs +0 -3
  70. package/es/_virtual/sha512.mjs +0 -3
  71. package/es/_virtual/tripledes.mjs +0 -3
  72. package/es/_virtual/x64-core.mjs +0 -3
  73. package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs +0 -3
  74. package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/service/api-config.mjs +0 -8213
  75. package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs +0 -3
  76. package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/service/api-config.mjs +0 -7156
  77. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
  78. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
  79. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
  80. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
  81. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
  82. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
  83. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
  84. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
  85. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
  86. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
  87. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
  88. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
  89. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
  90. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
  91. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
  92. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
  93. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
  94. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
  95. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
  96. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
  97. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
  98. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
  99. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
  100. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
  101. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
  102. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
  103. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
  104. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
  105. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
  106. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
  107. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
  108. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
  109. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
  110. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
  111. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
  112. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
  113. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
  114. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
  115. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
  116. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
  117. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
  118. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
  119. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
  120. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
  121. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
  122. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
  123. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
  124. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
@@ -1,160 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as rc4$1 } from '../../../../../_virtual/rc4.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
- import { __require as requireEncBase64 } from './enc-base64.mjs';
5
- import { __require as requireMd5 } from './md5.mjs';
6
- import { __require as requireEvpkdf } from './evpkdf.mjs';
7
- import { __require as requireCipherCore } from './cipher-core.mjs';
8
-
9
- var rc4 = rc4$1.exports;
10
-
11
- var hasRequiredRc4;
12
-
13
- function requireRc4 () {
14
- if (hasRequiredRc4) return rc4$1.exports;
15
- hasRequiredRc4 = 1;
16
- (function (module, exports) {
17
- ;(function (root, factory, undef) {
18
- if ('object' === "object") {
19
- // CommonJS
20
- module.exports = exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
21
- }
22
- else if (typeof undefined === "function" && undefined.amd) {
23
- // AMD
24
- undefined(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory);
25
- }
26
- else {
27
- // Global (browser)
28
- factory(root.CryptoJS);
29
- }
30
- }(rc4, function (CryptoJS) {
31
-
32
- (function () {
33
- // Shortcuts
34
- var C = CryptoJS;
35
- var C_lib = C.lib;
36
- var StreamCipher = C_lib.StreamCipher;
37
- var C_algo = C.algo;
38
-
39
- /**
40
- * RC4 stream cipher algorithm.
41
- */
42
- var RC4 = C_algo.RC4 = StreamCipher.extend({
43
- _doReset: function () {
44
- // Shortcuts
45
- var key = this._key;
46
- var keyWords = key.words;
47
- var keySigBytes = key.sigBytes;
48
-
49
- // Init sbox
50
- var S = this._S = [];
51
- for (var i = 0; i < 256; i++) {
52
- S[i] = i;
53
- }
54
-
55
- // Key setup
56
- for (var i = 0, j = 0; i < 256; i++) {
57
- var keyByteIndex = i % keySigBytes;
58
- var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff;
59
-
60
- j = (j + S[i] + keyByte) % 256;
61
-
62
- // Swap
63
- var t = S[i];
64
- S[i] = S[j];
65
- S[j] = t;
66
- }
67
-
68
- // Counters
69
- this._i = this._j = 0;
70
- },
71
-
72
- _doProcessBlock: function (M, offset) {
73
- M[offset] ^= generateKeystreamWord.call(this);
74
- },
75
-
76
- keySize: 256/32,
77
-
78
- ivSize: 0
79
- });
80
-
81
- function generateKeystreamWord() {
82
- // Shortcuts
83
- var S = this._S;
84
- var i = this._i;
85
- var j = this._j;
86
-
87
- // Generate keystream word
88
- var keystreamWord = 0;
89
- for (var n = 0; n < 4; n++) {
90
- i = (i + 1) % 256;
91
- j = (j + S[i]) % 256;
92
-
93
- // Swap
94
- var t = S[i];
95
- S[i] = S[j];
96
- S[j] = t;
97
-
98
- keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8);
99
- }
100
-
101
- // Update counters
102
- this._i = i;
103
- this._j = j;
104
-
105
- return keystreamWord;
106
- }
107
-
108
- /**
109
- * Shortcut functions to the cipher's object interface.
110
- *
111
- * @example
112
- *
113
- * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
114
- * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
115
- */
116
- C.RC4 = StreamCipher._createHelper(RC4);
117
-
118
- /**
119
- * Modified RC4 stream cipher algorithm.
120
- */
121
- var RC4Drop = C_algo.RC4Drop = RC4.extend({
122
- /**
123
- * Configuration options.
124
- *
125
- * @property {number} drop The number of keystream words to drop. Default 192
126
- */
127
- cfg: RC4.cfg.extend({
128
- drop: 192
129
- }),
130
-
131
- _doReset: function () {
132
- RC4._doReset.call(this);
133
-
134
- // Drop
135
- for (var i = this.cfg.drop; i > 0; i--) {
136
- generateKeystreamWord.call(this);
137
- }
138
- }
139
- });
140
-
141
- /**
142
- * Shortcut functions to the cipher's object interface.
143
- *
144
- * @example
145
- *
146
- * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
147
- * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
148
- */
149
- C.RC4Drop = StreamCipher._createHelper(RC4Drop);
150
- }());
151
-
152
-
153
- return CryptoJS.RC4;
154
-
155
- }));
156
- } (rc4$1, rc4$1.exports));
157
- return rc4$1.exports;
158
- }
159
-
160
- export { requireRc4 as __require };
@@ -1,284 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as ripemd160$1 } from '../../../../../_virtual/ripemd160.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
-
5
- var ripemd160 = ripemd160$1.exports;
6
-
7
- var hasRequiredRipemd160;
8
-
9
- function requireRipemd160 () {
10
- if (hasRequiredRipemd160) return ripemd160$1.exports;
11
- hasRequiredRipemd160 = 1;
12
- (function (module, exports) {
13
- ;(function (root, factory) {
14
- if ('object' === "object") {
15
- // CommonJS
16
- module.exports = exports = factory(requireCore());
17
- }
18
- else if (typeof undefined === "function" && undefined.amd) {
19
- // AMD
20
- undefined(["./core"], factory);
21
- }
22
- else {
23
- // Global (browser)
24
- factory(root.CryptoJS);
25
- }
26
- }(ripemd160, function (CryptoJS) {
27
-
28
- /** @preserve
29
- (c) 2012 by Cédric Mesnil. All rights reserved.
30
-
31
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
32
-
33
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
34
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
35
-
36
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
- */
38
-
39
- (function (Math) {
40
- // Shortcuts
41
- var C = CryptoJS;
42
- var C_lib = C.lib;
43
- var WordArray = C_lib.WordArray;
44
- var Hasher = C_lib.Hasher;
45
- var C_algo = C.algo;
46
-
47
- // Constants table
48
- var _zl = WordArray.create([
49
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
50
- 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
51
- 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
52
- 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
53
- 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);
54
- var _zr = WordArray.create([
55
- 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
56
- 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
57
- 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
58
- 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
59
- 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);
60
- var _sl = WordArray.create([
61
- 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
62
- 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
63
- 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
64
- 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
65
- 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]);
66
- var _sr = WordArray.create([
67
- 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
68
- 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
69
- 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
70
- 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
71
- 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]);
72
-
73
- var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
74
- var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
75
-
76
- /**
77
- * RIPEMD160 hash algorithm.
78
- */
79
- var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
80
- _doReset: function () {
81
- this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
82
- },
83
-
84
- _doProcessBlock: function (M, offset) {
85
-
86
- // Swap endian
87
- for (var i = 0; i < 16; i++) {
88
- // Shortcuts
89
- var offset_i = offset + i;
90
- var M_offset_i = M[offset_i];
91
-
92
- // Swap
93
- M[offset_i] = (
94
- (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
95
- (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
96
- );
97
- }
98
- // Shortcut
99
- var H = this._hash.words;
100
- var hl = _hl.words;
101
- var hr = _hr.words;
102
- var zl = _zl.words;
103
- var zr = _zr.words;
104
- var sl = _sl.words;
105
- var sr = _sr.words;
106
-
107
- // Working variables
108
- var al, bl, cl, dl, el;
109
- var ar, br, cr, dr, er;
110
-
111
- ar = al = H[0];
112
- br = bl = H[1];
113
- cr = cl = H[2];
114
- dr = dl = H[3];
115
- er = el = H[4];
116
- // Computation
117
- var t;
118
- for (var i = 0; i < 80; i += 1) {
119
- t = (al + M[offset+zl[i]])|0;
120
- if (i<16){
121
- t += f1(bl,cl,dl) + hl[0];
122
- } else if (i<32) {
123
- t += f2(bl,cl,dl) + hl[1];
124
- } else if (i<48) {
125
- t += f3(bl,cl,dl) + hl[2];
126
- } else if (i<64) {
127
- t += f4(bl,cl,dl) + hl[3];
128
- } else {// if (i<80) {
129
- t += f5(bl,cl,dl) + hl[4];
130
- }
131
- t = t|0;
132
- t = rotl(t,sl[i]);
133
- t = (t+el)|0;
134
- al = el;
135
- el = dl;
136
- dl = rotl(cl, 10);
137
- cl = bl;
138
- bl = t;
139
-
140
- t = (ar + M[offset+zr[i]])|0;
141
- if (i<16){
142
- t += f5(br,cr,dr) + hr[0];
143
- } else if (i<32) {
144
- t += f4(br,cr,dr) + hr[1];
145
- } else if (i<48) {
146
- t += f3(br,cr,dr) + hr[2];
147
- } else if (i<64) {
148
- t += f2(br,cr,dr) + hr[3];
149
- } else {// if (i<80) {
150
- t += f1(br,cr,dr) + hr[4];
151
- }
152
- t = t|0;
153
- t = rotl(t,sr[i]) ;
154
- t = (t+er)|0;
155
- ar = er;
156
- er = dr;
157
- dr = rotl(cr, 10);
158
- cr = br;
159
- br = t;
160
- }
161
- // Intermediate hash value
162
- t = (H[1] + cl + dr)|0;
163
- H[1] = (H[2] + dl + er)|0;
164
- H[2] = (H[3] + el + ar)|0;
165
- H[3] = (H[4] + al + br)|0;
166
- H[4] = (H[0] + bl + cr)|0;
167
- H[0] = t;
168
- },
169
-
170
- _doFinalize: function () {
171
- // Shortcuts
172
- var data = this._data;
173
- var dataWords = data.words;
174
-
175
- var nBitsTotal = this._nDataBytes * 8;
176
- var nBitsLeft = data.sigBytes * 8;
177
-
178
- // Add padding
179
- dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
180
- dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
181
- (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |
182
- (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)
183
- );
184
- data.sigBytes = (dataWords.length + 1) * 4;
185
-
186
- // Hash final blocks
187
- this._process();
188
-
189
- // Shortcuts
190
- var hash = this._hash;
191
- var H = hash.words;
192
-
193
- // Swap endian
194
- for (var i = 0; i < 5; i++) {
195
- // Shortcut
196
- var H_i = H[i];
197
-
198
- // Swap
199
- H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
200
- (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
201
- }
202
-
203
- // Return final computed hash
204
- return hash;
205
- },
206
-
207
- clone: function () {
208
- var clone = Hasher.clone.call(this);
209
- clone._hash = this._hash.clone();
210
-
211
- return clone;
212
- }
213
- });
214
-
215
-
216
- function f1(x, y, z) {
217
- return ((x) ^ (y) ^ (z));
218
-
219
- }
220
-
221
- function f2(x, y, z) {
222
- return (((x)&(y)) | ((~x)&(z)));
223
- }
224
-
225
- function f3(x, y, z) {
226
- return (((x) | (~(y))) ^ (z));
227
- }
228
-
229
- function f4(x, y, z) {
230
- return (((x) & (z)) | ((y)&(~(z))));
231
- }
232
-
233
- function f5(x, y, z) {
234
- return ((x) ^ ((y) |(~(z))));
235
-
236
- }
237
-
238
- function rotl(x,n) {
239
- return (x<<n) | (x>>>(32-n));
240
- }
241
-
242
-
243
- /**
244
- * Shortcut function to the hasher's object interface.
245
- *
246
- * @param {WordArray|string} message The message to hash.
247
- *
248
- * @return {WordArray} The hash.
249
- *
250
- * @static
251
- *
252
- * @example
253
- *
254
- * var hash = CryptoJS.RIPEMD160('message');
255
- * var hash = CryptoJS.RIPEMD160(wordArray);
256
- */
257
- C.RIPEMD160 = Hasher._createHelper(RIPEMD160);
258
-
259
- /**
260
- * Shortcut function to the HMAC's object interface.
261
- *
262
- * @param {WordArray|string} message The message to hash.
263
- * @param {WordArray|string} key The secret key.
264
- *
265
- * @return {WordArray} The HMAC.
266
- *
267
- * @static
268
- *
269
- * @example
270
- *
271
- * var hmac = CryptoJS.HmacRIPEMD160(message, key);
272
- */
273
- C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);
274
- }(Math));
275
-
276
-
277
- return CryptoJS.RIPEMD160;
278
-
279
- }));
280
- } (ripemd160$1, ripemd160$1.exports));
281
- return ripemd160$1.exports;
282
- }
283
-
284
- export { requireRipemd160 as __require };
@@ -1,167 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as sha1$1 } from '../../../../../_virtual/sha1.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
-
5
- var sha1 = sha1$1.exports;
6
-
7
- var hasRequiredSha1;
8
-
9
- function requireSha1 () {
10
- if (hasRequiredSha1) return sha1$1.exports;
11
- hasRequiredSha1 = 1;
12
- (function (module, exports) {
13
- ;(function (root, factory) {
14
- if ('object' === "object") {
15
- // CommonJS
16
- module.exports = exports = factory(requireCore());
17
- }
18
- else if (typeof undefined === "function" && undefined.amd) {
19
- // AMD
20
- undefined(["./core"], factory);
21
- }
22
- else {
23
- // Global (browser)
24
- factory(root.CryptoJS);
25
- }
26
- }(sha1, function (CryptoJS) {
27
-
28
- (function () {
29
- // Shortcuts
30
- var C = CryptoJS;
31
- var C_lib = C.lib;
32
- var WordArray = C_lib.WordArray;
33
- var Hasher = C_lib.Hasher;
34
- var C_algo = C.algo;
35
-
36
- // Reusable object
37
- var W = [];
38
-
39
- /**
40
- * SHA-1 hash algorithm.
41
- */
42
- var SHA1 = C_algo.SHA1 = Hasher.extend({
43
- _doReset: function () {
44
- this._hash = new WordArray.init([
45
- 0x67452301, 0xefcdab89,
46
- 0x98badcfe, 0x10325476,
47
- 0xc3d2e1f0
48
- ]);
49
- },
50
-
51
- _doProcessBlock: function (M, offset) {
52
- // Shortcut
53
- var H = this._hash.words;
54
-
55
- // Working variables
56
- var a = H[0];
57
- var b = H[1];
58
- var c = H[2];
59
- var d = H[3];
60
- var e = H[4];
61
-
62
- // Computation
63
- for (var i = 0; i < 80; i++) {
64
- if (i < 16) {
65
- W[i] = M[offset + i] | 0;
66
- } else {
67
- var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
68
- W[i] = (n << 1) | (n >>> 31);
69
- }
70
-
71
- var t = ((a << 5) | (a >>> 27)) + e + W[i];
72
- if (i < 20) {
73
- t += ((b & c) | (~b & d)) + 0x5a827999;
74
- } else if (i < 40) {
75
- t += (b ^ c ^ d) + 0x6ed9eba1;
76
- } else if (i < 60) {
77
- t += ((b & c) | (b & d) | (c & d)) - 0x70e44324;
78
- } else /* if (i < 80) */ {
79
- t += (b ^ c ^ d) - 0x359d3e2a;
80
- }
81
-
82
- e = d;
83
- d = c;
84
- c = (b << 30) | (b >>> 2);
85
- b = a;
86
- a = t;
87
- }
88
-
89
- // Intermediate hash value
90
- H[0] = (H[0] + a) | 0;
91
- H[1] = (H[1] + b) | 0;
92
- H[2] = (H[2] + c) | 0;
93
- H[3] = (H[3] + d) | 0;
94
- H[4] = (H[4] + e) | 0;
95
- },
96
-
97
- _doFinalize: function () {
98
- // Shortcuts
99
- var data = this._data;
100
- var dataWords = data.words;
101
-
102
- var nBitsTotal = this._nDataBytes * 8;
103
- var nBitsLeft = data.sigBytes * 8;
104
-
105
- // Add padding
106
- dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
107
- dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
108
- dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
109
- data.sigBytes = dataWords.length * 4;
110
-
111
- // Hash final blocks
112
- this._process();
113
-
114
- // Return final computed hash
115
- return this._hash;
116
- },
117
-
118
- clone: function () {
119
- var clone = Hasher.clone.call(this);
120
- clone._hash = this._hash.clone();
121
-
122
- return clone;
123
- }
124
- });
125
-
126
- /**
127
- * Shortcut function to the hasher's object interface.
128
- *
129
- * @param {WordArray|string} message The message to hash.
130
- *
131
- * @return {WordArray} The hash.
132
- *
133
- * @static
134
- *
135
- * @example
136
- *
137
- * var hash = CryptoJS.SHA1('message');
138
- * var hash = CryptoJS.SHA1(wordArray);
139
- */
140
- C.SHA1 = Hasher._createHelper(SHA1);
141
-
142
- /**
143
- * Shortcut function to the HMAC's object interface.
144
- *
145
- * @param {WordArray|string} message The message to hash.
146
- * @param {WordArray|string} key The secret key.
147
- *
148
- * @return {WordArray} The HMAC.
149
- *
150
- * @static
151
- *
152
- * @example
153
- *
154
- * var hmac = CryptoJS.HmacSHA1(message, key);
155
- */
156
- C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
157
- }());
158
-
159
-
160
- return CryptoJS.SHA1;
161
-
162
- }));
163
- } (sha1$1, sha1$1.exports));
164
- return sha1$1.exports;
165
- }
166
-
167
- export { requireSha1 as __require };
@@ -1,98 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as sha224$1 } from '../../../../../_virtual/sha224.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
- import { __require as requireSha256 } from './sha256.mjs';
5
-
6
- var sha224 = sha224$1.exports;
7
-
8
- var hasRequiredSha224;
9
-
10
- function requireSha224 () {
11
- if (hasRequiredSha224) return sha224$1.exports;
12
- hasRequiredSha224 = 1;
13
- (function (module, exports) {
14
- ;(function (root, factory, undef) {
15
- if ('object' === "object") {
16
- // CommonJS
17
- module.exports = exports = factory(requireCore(), requireSha256());
18
- }
19
- else if (typeof undefined === "function" && undefined.amd) {
20
- // AMD
21
- undefined(["./core", "./sha256"], factory);
22
- }
23
- else {
24
- // Global (browser)
25
- factory(root.CryptoJS);
26
- }
27
- }(sha224, function (CryptoJS) {
28
-
29
- (function () {
30
- // Shortcuts
31
- var C = CryptoJS;
32
- var C_lib = C.lib;
33
- var WordArray = C_lib.WordArray;
34
- var C_algo = C.algo;
35
- var SHA256 = C_algo.SHA256;
36
-
37
- /**
38
- * SHA-224 hash algorithm.
39
- */
40
- var SHA224 = C_algo.SHA224 = SHA256.extend({
41
- _doReset: function () {
42
- this._hash = new WordArray.init([
43
- 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
44
- 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
45
- ]);
46
- },
47
-
48
- _doFinalize: function () {
49
- var hash = SHA256._doFinalize.call(this);
50
-
51
- hash.sigBytes -= 4;
52
-
53
- return hash;
54
- }
55
- });
56
-
57
- /**
58
- * Shortcut function to the hasher's object interface.
59
- *
60
- * @param {WordArray|string} message The message to hash.
61
- *
62
- * @return {WordArray} The hash.
63
- *
64
- * @static
65
- *
66
- * @example
67
- *
68
- * var hash = CryptoJS.SHA224('message');
69
- * var hash = CryptoJS.SHA224(wordArray);
70
- */
71
- C.SHA224 = SHA256._createHelper(SHA224);
72
-
73
- /**
74
- * Shortcut function to the HMAC's object interface.
75
- *
76
- * @param {WordArray|string} message The message to hash.
77
- * @param {WordArray|string} key The secret key.
78
- *
79
- * @return {WordArray} The HMAC.
80
- *
81
- * @static
82
- *
83
- * @example
84
- *
85
- * var hmac = CryptoJS.HmacSHA224(message, key);
86
- */
87
- C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
88
- }());
89
-
90
-
91
- return CryptoJS.SHA224;
92
-
93
- }));
94
- } (sha224$1, sha224$1.exports));
95
- return sha224$1.exports;
96
- }
97
-
98
- export { requireSha224 as __require };