lakutata 2.0.63 → 2.0.64
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/com/docker.mjs +1 -1
- package/com/logger.mjs +1 -1
- package/decorator/orm.mjs +1 -1
- package/helper.mjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.mjs +15 -15
- package/package.json +1 -1
- package/src/components/Database.mjs +2 -2
- package/src/components/Logger.mjs +1 -1
- package/src/components/cacher/Cacher.mjs +10 -10
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +3 -3
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +21 -21
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +8 -8
- package/src/components/cacher/options/FileCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MongoCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MysqlCacheOptions.mjs +2 -2
- package/src/components/cacher/options/PostgresCacheOptions.mjs +2 -2
- package/src/components/cacher/options/RedisCacheOptions.mjs +2 -2
- package/src/components/cacher/options/SqliteCacheOptions.mjs +2 -2
- package/src/components/docker/Docker.mjs +5 -5
- package/src/components/docker/lib/DockerContainer.mjs +3 -3
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/components/docker/lib/DockerImage.mjs +2 -2
- package/src/components/docker/options/DockerPruneOptions.mjs +2 -2
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExecOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerKillOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerStopOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageBuildOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageExportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageImportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePullOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePushOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageTagOptions.mjs +2 -2
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +2 -2
- package/src/components/entrypoint/Entrypoint.mjs +3 -3
- package/src/components/entrypoint/lib/AccessControl.mjs +21 -21
- package/src/components/entrypoint/lib/AccessControlRule.mjs +2 -2
- package/src/components/entrypoint/lib/Controller.mjs +3 -3
- package/src/components/monitor/AliveMonitor.mjs +2 -2
- package/src/components/monitor/CpuMonitor.mjs +1 -1
- package/src/components/monitor/HttpRequestMonitor.mjs +14 -14
- package/src/components/monitor/MemoryMonitor.mjs +1 -1
- package/src/decorators/di/Configurable.mjs +1 -1
- package/src/decorators/dto/Expect.mjs +1 -1
- package/src/decorators/dto/IndexSignature.mjs +1 -1
- package/src/decorators/orm/AfterInsert.mjs +1 -1
- package/src/decorators/orm/AfterLoad.mjs +1 -1
- package/src/decorators/orm/AfterRecover.mjs +1 -1
- package/src/decorators/orm/AfterRemove.mjs +1 -1
- package/src/decorators/orm/AfterSoftRemove.mjs +1 -1
- package/src/decorators/orm/AfterUpdate.mjs +1 -1
- package/src/decorators/orm/BeforeInsert.mjs +1 -1
- package/src/decorators/orm/BeforeRecover.mjs +1 -1
- package/src/decorators/orm/BeforeRemove.mjs +1 -1
- package/src/decorators/orm/BeforeSoftRemove.mjs +1 -1
- package/src/decorators/orm/BeforeUpdate.mjs +1 -1
- package/src/decorators/orm/Check.mjs +1 -1
- package/src/decorators/orm/ChildEntity.mjs +1 -1
- package/src/decorators/orm/Column.mjs +1 -1
- package/src/decorators/orm/CreateDateColumn.mjs +1 -1
- package/src/decorators/orm/DeleteDateColumn.mjs +1 -1
- package/src/decorators/orm/Entity.mjs +1 -1
- package/src/decorators/orm/EventSubscriber.mjs +1 -1
- package/src/decorators/orm/Exclusion.mjs +1 -1
- package/src/decorators/orm/Generated.mjs +1 -1
- package/src/decorators/orm/Index.mjs +1 -1
- package/src/decorators/orm/JoinColumn.mjs +1 -1
- package/src/decorators/orm/JoinTable.mjs +1 -1
- package/src/decorators/orm/ManyToMany.mjs +1 -1
- package/src/decorators/orm/ManyToOne.mjs +1 -1
- package/src/decorators/orm/ObjectIdColumn.mjs +1 -1
- package/src/decorators/orm/OneToMany.mjs +1 -1
- package/src/decorators/orm/OneToOne.mjs +1 -1
- package/src/decorators/orm/PrimaryColumn.mjs +1 -1
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +1 -1
- package/src/decorators/orm/RelationId.mjs +1 -1
- package/src/decorators/orm/TableInheritance.mjs +1 -1
- package/src/decorators/orm/Tree.mjs +1 -1
- package/src/decorators/orm/TreeChildren.mjs +1 -1
- package/src/decorators/orm/TreeLevelColumn.mjs +1 -1
- package/src/decorators/orm/TreeParent.mjs +1 -1
- package/src/decorators/orm/Unique.mjs +1 -1
- package/src/decorators/orm/UpdateDateColumn.mjs +1 -1
- package/src/decorators/orm/VersionColumn.mjs +1 -1
- package/src/decorators/orm/ViewColumn.mjs +1 -1
- package/src/decorators/orm/ViewEntity.mjs +1 -1
- package/src/decorators/orm/VirtualColumn.mjs +1 -1
- package/src/lib/base/BaseObject.mjs +1 -1
- package/src/lib/base/Context.mjs +10 -10
- package/src/lib/base/EventEmitter.mjs +1 -1
- package/src/lib/base/internal/ActionOptions.mjs +2 -2
- package/src/lib/base/internal/BasicInfo.mjs +10 -10
- package/src/lib/base/internal/DataValidator.mjs +2 -2
- package/src/lib/base/internal/FlexibleDTO.mjs +2 -2
- package/src/lib/base/internal/MethodValidation.mjs +1 -1
- package/src/lib/base/internal/ModuleConfigLoader.mjs +1 -1
- package/src/lib/base/internal/ObjectConfiguration.mjs +1 -1
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +1 -1
- package/src/lib/base/internal/ObjectType.mjs +1 -1
- package/src/lib/base/internal/PatternManager.mjs +1 -1
- package/src/lib/base/internal/StringifyPattern.mjs +1 -1
- package/src/lib/context/CLIContext.mjs +5 -5
- package/src/lib/context/HTTPContext.mjs +2 -2
- package/src/lib/context/ServiceContext.mjs +2 -2
- package/src/lib/core/Application.mjs +10 -10
- package/src/lib/core/Component.mjs +2 -2
- package/src/lib/core/Container.mjs +1 -1
- package/src/lib/core/DTO.mjs +1 -1
- package/src/lib/core/Module.mjs +2 -2
- package/src/lib/core/Provider.mjs +5 -5
- package/src/lib/core/Time.mjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/IsGlobString.mjs +1 -1
- package/src/lib/helpers/IsHtml.mjs +5 -5
- package/src/lib/helpers/IsSymbol.mjs +1 -1
- package/src/lib/helpers/IsXML.mjs +1 -1
- package/src/lib/helpers/MD5.mjs +1 -1
- package/src/lib/helpers/ObjectHash.mjs +1 -1
- package/src/lib/helpers/RandomString.mjs +1 -1
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/helpers/SortArray.mjs +14 -14
- package/src/lib/helpers/Statistics.mjs +59 -59
- package/src/lib/helpers/URLBuilder.mjs +34 -34
- package/src/lib/ioc/Errors.mjs +8 -8
- package/src/lib/ioc/ListModules.mjs +2 -2
- package/src/lib/ioc/Utils.mjs +1 -1
- package/src/lib/validation/VLD.mjs +1 -1
- package/src/options/ApplicationOptions.mjs +2 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +3 -3
- package/src/options/LoadNamedObjectOptions.mjs +3 -3
- package/src/options/LoadObjectOptions.mjs +1 -1
- package/src/options/ModuleLoadObjectsOptions.mjs +3 -3
- package/src/options/ModuleOptions.mjs +3 -3
- package/src/options/OverridableNamedObjectOptions.mjs +2 -2
- package/src/options/OverridableObjectOptions.mjs +3 -3
- package/src/providers/Database.mjs +2 -2
- package/src/providers/PasswordHash.mjs +19 -19
- package/vendor/Package.1.mjs +1 -1
- package/vendor/Package.12.mjs +5 -5
- package/vendor/Package.122.mjs +4380 -4380
- package/vendor/Package.13.mjs +4 -4
- package/vendor/Package.132.mjs +1 -1
- package/vendor/Package.16.mjs +1 -1
- package/vendor/Package.17.mjs +5 -5
- package/vendor/Package.19.cjs +184 -195
- package/vendor/Package.19.mjs +183 -194
- package/vendor/Package.2.mjs +114 -114
- package/vendor/Package.3.mjs +30 -30
- package/vendor/Package.4.mjs +1 -1
- package/vendor/Package.5.mjs +1 -1
- package/vendor/Package.6.mjs +3 -3
- package/vendor/Package.610.mjs +1 -1
- package/vendor/Package.611.mjs +11 -11
- package/vendor/Package.62.mjs +148 -148
- package/vendor/Package.63.mjs +43 -43
- package/vendor/Package.64.mjs +1 -1
- package/vendor/Package.65.mjs +3 -3
- package/vendor/Package.66.mjs +1 -1
- package/vendor/Package.67.mjs +1 -1
- package/vendor/Package.68.mjs +1 -1
- package/vendor/Package.7.mjs +1 -1
- package/vendor/Package.9.mjs +36 -36
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { epsilon as t, min as r, max as e, sum as a, quantile as i, product as n, mean as s, addToMean as c, mode as u, median as o, harmonicMean as m, geometricMean as l, rootMeanSquare as p, sampleSkewness as d, variance as b, sampleVariance as g, standardDeviation as v, sampleStandardDeviation as h, medianAbsoluteDeviation as S, interquartileRange as k, sumNthPowerDeviations as M, zScore as R, sampleCorrelation as f, sampleCovariance as q, rSquared as D, linearRegression as P, linearRegressionLine as T, shuffle as x, sampleWithReplacement as A, sample as w, bernoulliDistribution as L, binomialDistribution as V, poissonDistribution as j, tTest as y, tTestTwoSample as F, chunk as O, factorial as z, gamma as C, approxEqual as E, bisect as N, coefficientOfVariation as W, combinationsReplacement as B, combinations as G, combineMeans as H, combineVariances as I, cumulativeStdLogisticProbability as J, extent as K, gammaln as Q, jenks as U, logAverage as X, logit as Y, probit as Z, quantileRank as $, quickselect as _, subtractFromMean as tt } from "../../../vendor/Package.16.mjs";
|
|
2
2
|
|
|
3
3
|
class Statistics {
|
|
4
4
|
static {
|
|
5
5
|
this.epsilon = t;
|
|
6
6
|
}
|
|
7
7
|
static min(t) {
|
|
8
|
-
return
|
|
8
|
+
return r(t);
|
|
9
9
|
}
|
|
10
10
|
static max(t) {
|
|
11
|
-
return
|
|
11
|
+
return e(t);
|
|
12
12
|
}
|
|
13
13
|
static sum(t) {
|
|
14
|
-
return
|
|
14
|
+
return a(t);
|
|
15
15
|
}
|
|
16
|
-
static quantile(t,
|
|
17
|
-
return
|
|
16
|
+
static quantile(t, r) {
|
|
17
|
+
return i(t, r);
|
|
18
18
|
}
|
|
19
19
|
static product(t) {
|
|
20
|
-
return
|
|
20
|
+
return n(t);
|
|
21
21
|
}
|
|
22
22
|
static mean(t) {
|
|
23
|
-
return
|
|
23
|
+
return s(t);
|
|
24
24
|
}
|
|
25
25
|
static average(t) {
|
|
26
|
-
return
|
|
26
|
+
return s(t);
|
|
27
27
|
}
|
|
28
|
-
static addToMean(t,
|
|
29
|
-
return c(t,
|
|
28
|
+
static addToMean(t, r, e) {
|
|
29
|
+
return c(t, r, e);
|
|
30
30
|
}
|
|
31
|
-
static addToAverage(t,
|
|
32
|
-
return c(t,
|
|
31
|
+
static addToAverage(t, r, e) {
|
|
32
|
+
return c(t, r, e);
|
|
33
33
|
}
|
|
34
34
|
static mode(t) {
|
|
35
35
|
return u(t);
|
|
@@ -67,17 +67,17 @@ class Statistics {
|
|
|
67
67
|
static interquartileRange(t) {
|
|
68
68
|
return k(t);
|
|
69
69
|
}
|
|
70
|
-
static sumNthPowerDeviations(t,
|
|
71
|
-
return M(t,
|
|
70
|
+
static sumNthPowerDeviations(t, r) {
|
|
71
|
+
return M(t, r);
|
|
72
72
|
}
|
|
73
|
-
static zScore(t,
|
|
74
|
-
return R(t,
|
|
73
|
+
static zScore(t, r, e) {
|
|
74
|
+
return R(t, r, e);
|
|
75
75
|
}
|
|
76
|
-
static correlation(t,
|
|
77
|
-
return f(t,
|
|
76
|
+
static correlation(t, r) {
|
|
77
|
+
return f(t, r);
|
|
78
78
|
}
|
|
79
|
-
static sampleCovariance(t,
|
|
80
|
-
return q(t,
|
|
79
|
+
static sampleCovariance(t, r) {
|
|
80
|
+
return q(t, r);
|
|
81
81
|
}
|
|
82
82
|
static rSquared(t) {
|
|
83
83
|
return D(t, this.linearRegressionLine(this.linearRegression(t)));
|
|
@@ -91,35 +91,35 @@ class Statistics {
|
|
|
91
91
|
static shuffle(t) {
|
|
92
92
|
return x(t);
|
|
93
93
|
}
|
|
94
|
-
static sampleWithReplacement(t,
|
|
95
|
-
return A(t,
|
|
94
|
+
static sampleWithReplacement(t, r) {
|
|
95
|
+
return A(t, r);
|
|
96
96
|
}
|
|
97
|
-
static sample(t,
|
|
98
|
-
return w(t,
|
|
97
|
+
static sample(t, r) {
|
|
98
|
+
return w(t, r, Math.random);
|
|
99
99
|
}
|
|
100
100
|
static randomPickOne(t) {
|
|
101
101
|
return this.sample(t, 1)[0];
|
|
102
102
|
}
|
|
103
|
-
static randomPickMany(t,
|
|
104
|
-
return this.sample(t,
|
|
103
|
+
static randomPickMany(t, r) {
|
|
104
|
+
return this.sample(t, r);
|
|
105
105
|
}
|
|
106
106
|
static bernoulliDistribution(t) {
|
|
107
107
|
return L(t);
|
|
108
108
|
}
|
|
109
|
-
static binomialDistribution(t,
|
|
110
|
-
return V(t,
|
|
109
|
+
static binomialDistribution(t, r) {
|
|
110
|
+
return V(t, r);
|
|
111
111
|
}
|
|
112
112
|
static poissonDistribution(t) {
|
|
113
113
|
return j(t);
|
|
114
114
|
}
|
|
115
|
-
static tTest(t,
|
|
116
|
-
return y(t,
|
|
115
|
+
static tTest(t, r) {
|
|
116
|
+
return y(t, r);
|
|
117
117
|
}
|
|
118
|
-
static tTestTwoSample(t,
|
|
119
|
-
return F(t,
|
|
118
|
+
static tTestTwoSample(t, r, e = 0) {
|
|
119
|
+
return F(t, r, e);
|
|
120
120
|
}
|
|
121
|
-
static chunk(t,
|
|
122
|
-
return O(t,
|
|
121
|
+
static chunk(t, r) {
|
|
122
|
+
return O(t, r);
|
|
123
123
|
}
|
|
124
124
|
static factorial(t) {
|
|
125
125
|
return z(t);
|
|
@@ -127,26 +127,26 @@ class Statistics {
|
|
|
127
127
|
static gamma(t) {
|
|
128
128
|
return C(t);
|
|
129
129
|
}
|
|
130
|
-
static approxEqual(t,
|
|
131
|
-
return E(t,
|
|
130
|
+
static approxEqual(t, r, e) {
|
|
131
|
+
return E(t, r, e);
|
|
132
132
|
}
|
|
133
|
-
static bisect(t,
|
|
134
|
-
return N(t,
|
|
133
|
+
static bisect(t, r, e, a, i) {
|
|
134
|
+
return N(t, r, e, a, i);
|
|
135
135
|
}
|
|
136
136
|
static coefficientOfVariation(t) {
|
|
137
137
|
return W(t);
|
|
138
138
|
}
|
|
139
|
-
static combinationsReplacement(t,
|
|
140
|
-
return B(t,
|
|
139
|
+
static combinationsReplacement(t, r) {
|
|
140
|
+
return B(t, r);
|
|
141
141
|
}
|
|
142
|
-
static combinations(t,
|
|
143
|
-
return G(t,
|
|
142
|
+
static combinations(t, r) {
|
|
143
|
+
return G(t, r);
|
|
144
144
|
}
|
|
145
|
-
static combineMeans(t,
|
|
146
|
-
return H(t,
|
|
145
|
+
static combineMeans(t, r, e, a) {
|
|
146
|
+
return H(t, r, e, a);
|
|
147
147
|
}
|
|
148
|
-
static combineVariances(t,
|
|
149
|
-
return I(t,
|
|
148
|
+
static combineVariances(t, r, e, a, i, n) {
|
|
149
|
+
return I(t, r, e, a, i, n);
|
|
150
150
|
}
|
|
151
151
|
static cumulativeStdLogisticProbability(t) {
|
|
152
152
|
return J(t);
|
|
@@ -157,8 +157,8 @@ class Statistics {
|
|
|
157
157
|
static gammaln(t) {
|
|
158
158
|
return Q(t);
|
|
159
159
|
}
|
|
160
|
-
static jenks(t,
|
|
161
|
-
return U(t,
|
|
160
|
+
static jenks(t, r) {
|
|
161
|
+
return U(t, r);
|
|
162
162
|
}
|
|
163
163
|
static logAverage(t) {
|
|
164
164
|
return X(t);
|
|
@@ -169,19 +169,19 @@ class Statistics {
|
|
|
169
169
|
static probit(t) {
|
|
170
170
|
return Z(t);
|
|
171
171
|
}
|
|
172
|
-
static quantileRank(t,
|
|
173
|
-
return $(t,
|
|
172
|
+
static quantileRank(t, r) {
|
|
173
|
+
return $(t, r);
|
|
174
174
|
}
|
|
175
|
-
static quickselect(t,
|
|
176
|
-
const
|
|
177
|
-
_(
|
|
178
|
-
return
|
|
175
|
+
static quickselect(t, r, e, a) {
|
|
176
|
+
const i = [ ...t ];
|
|
177
|
+
_(i, r, e, a);
|
|
178
|
+
return i;
|
|
179
179
|
}
|
|
180
|
-
static subtractFromMean(t,
|
|
181
|
-
return tt(t,
|
|
180
|
+
static subtractFromMean(t, r, e) {
|
|
181
|
+
return tt(t, r, e);
|
|
182
182
|
}
|
|
183
|
-
static subtractFromAverage(t,
|
|
184
|
-
return tt(t,
|
|
183
|
+
static subtractFromAverage(t, r, e) {
|
|
184
|
+
return tt(t, r, e);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultExportFromCjs as e, commonjsGlobal as t } from "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
@@ -61,7 +61,7 @@ function l(e) {
|
|
|
61
61
|
return s;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
function
|
|
64
|
+
function f(e, t) {
|
|
65
65
|
t = t || "";
|
|
66
66
|
var s = [], o, r;
|
|
67
67
|
if ("string" !== typeof t) t = "?";
|
|
@@ -80,7 +80,7 @@ function c(e, t) {
|
|
|
80
80
|
return s.length ? t + s.join("&") : "";
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var c = r.stringify = f;
|
|
84
84
|
|
|
85
85
|
var u = r.parse = l;
|
|
86
86
|
|
|
@@ -201,8 +201,8 @@ function x(e, t, s) {
|
|
|
201
201
|
if (!(this instanceof x)) {
|
|
202
202
|
return new x(e, t, s);
|
|
203
203
|
}
|
|
204
|
-
var o, r, n, i, a, h, l = O.slice(),
|
|
205
|
-
if ("object" !==
|
|
204
|
+
var o, r, n, i, a, h, l = O.slice(), f = typeof t, c = this, u = 0;
|
|
205
|
+
if ("object" !== f && "string" !== f) {
|
|
206
206
|
s = t;
|
|
207
207
|
t = null;
|
|
208
208
|
}
|
|
@@ -210,66 +210,66 @@ function x(e, t, s) {
|
|
|
210
210
|
t = R(t);
|
|
211
211
|
r = I(e || "", t);
|
|
212
212
|
o = !r.protocol && !r.slashes;
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
c.slashes = r.slashes || o && t.slashes;
|
|
214
|
+
c.protocol = r.protocol || t.protocol || "";
|
|
215
215
|
e = r.rest;
|
|
216
|
-
if (r.protocol === "file:" && (r.slashesCount !== 2 || b.test(e)) || !r.slashes && (r.protocol || r.slashesCount < 2 || !U(
|
|
216
|
+
if (r.protocol === "file:" && (r.slashesCount !== 2 || b.test(e)) || !r.slashes && (r.protocol || r.slashesCount < 2 || !U(c.protocol))) {
|
|
217
217
|
l[3] = [ /(.*)/, "pathname" ];
|
|
218
218
|
}
|
|
219
219
|
for (;u < l.length; u++) {
|
|
220
220
|
i = l[u];
|
|
221
221
|
if (typeof i === "function") {
|
|
222
|
-
e = i(e,
|
|
222
|
+
e = i(e, c);
|
|
223
223
|
continue;
|
|
224
224
|
}
|
|
225
225
|
n = i[0];
|
|
226
226
|
h = i[1];
|
|
227
227
|
if (n !== n) {
|
|
228
|
-
|
|
228
|
+
c[h] = e;
|
|
229
229
|
} else if ("string" === typeof n) {
|
|
230
230
|
a = n === "@" ? e.lastIndexOf(n) : e.indexOf(n);
|
|
231
231
|
if (~a) {
|
|
232
232
|
if ("number" === typeof i[2]) {
|
|
233
|
-
|
|
233
|
+
c[h] = e.slice(0, a);
|
|
234
234
|
e = e.slice(a + i[2]);
|
|
235
235
|
} else {
|
|
236
|
-
|
|
236
|
+
c[h] = e.slice(a);
|
|
237
237
|
e = e.slice(0, a);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
} else if (a = n.exec(e)) {
|
|
241
|
-
|
|
241
|
+
c[h] = a[1];
|
|
242
242
|
e = e.slice(0, a.index);
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
if (i[4])
|
|
244
|
+
c[h] = c[h] || (o && i[3] ? t[h] || "" : "");
|
|
245
|
+
if (i[4]) c[h] = c[h].toLowerCase();
|
|
246
246
|
}
|
|
247
|
-
if (s)
|
|
248
|
-
if (o && t.slashes &&
|
|
249
|
-
|
|
247
|
+
if (s) c.query = s(c.query);
|
|
248
|
+
if (o && t.slashes && c.pathname.charAt(0) !== "/" && (c.pathname !== "" || t.pathname !== "")) {
|
|
249
|
+
c.pathname = q(c.pathname, t.pathname);
|
|
250
250
|
}
|
|
251
|
-
if (
|
|
252
|
-
|
|
251
|
+
if (c.pathname.charAt(0) !== "/" && U(c.protocol)) {
|
|
252
|
+
c.pathname = "/" + c.pathname;
|
|
253
253
|
}
|
|
254
|
-
if (!p(
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
if (!p(c.port, c.protocol)) {
|
|
255
|
+
c.host = c.hostname;
|
|
256
|
+
c.port = "";
|
|
257
257
|
}
|
|
258
|
-
|
|
259
|
-
if (
|
|
260
|
-
a =
|
|
258
|
+
c.username = c.password = "";
|
|
259
|
+
if (c.auth) {
|
|
260
|
+
a = c.auth.indexOf(":");
|
|
261
261
|
if (~a) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
c.username = c.auth.slice(0, a);
|
|
263
|
+
c.username = encodeURIComponent(decodeURIComponent(c.username));
|
|
264
|
+
c.password = c.auth.slice(a + 1);
|
|
265
|
+
c.password = encodeURIComponent(decodeURIComponent(c.password));
|
|
266
266
|
} else {
|
|
267
|
-
|
|
267
|
+
c.username = encodeURIComponent(decodeURIComponent(c.auth));
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
c.auth = c.password ? c.username + ":" + c.password : c.username;
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
c.origin = c.protocol !== "file:" && U(c.protocol) && c.host ? c.protocol + "//" + c.host : "null";
|
|
272
|
+
c.href = c.toString();
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
function S(e, t, s) {
|
package/src/lib/ioc/Errors.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { ResolveConstructorNameBySymbol as r } from "../base/internal/Constructo
|
|
|
4
4
|
|
|
5
5
|
import { As as t } from "../helpers/As.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { IsSymbol as o } from "../../../vendor/Package.2.mjs";
|
|
8
8
|
|
|
9
9
|
import "../base/abstracts/Exception.mjs";
|
|
10
10
|
|
|
@@ -92,23 +92,23 @@ class DependencyInjectionTypeError extends ExtendableError {
|
|
|
92
92
|
constructor(e, r, t, o) {
|
|
93
93
|
super(`${e}: expected ${r} to be ${t}, but got ${o}.`);
|
|
94
94
|
}
|
|
95
|
-
static assert(e, r, t, o,
|
|
95
|
+
static assert(e, r, t, o, n) {
|
|
96
96
|
if (!e) {
|
|
97
|
-
throw new DependencyInjectionTypeError(r, t, o,
|
|
97
|
+
throw new DependencyInjectionTypeError(r, t, o, n);
|
|
98
98
|
}
|
|
99
99
|
return e;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
class DependencyInjectionResolutionError extends ExtendableError {
|
|
104
|
-
constructor(e,
|
|
104
|
+
constructor(e, n, s) {
|
|
105
105
|
if (o(e)) e = r(e).toString();
|
|
106
106
|
const a = e.split("_$$").reverse()[0];
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const i =
|
|
107
|
+
n = n.map((e => o(e) ? r(e).toString() : e.name));
|
|
108
|
+
n.push(t(a));
|
|
109
|
+
const i = n.join(" -> ");
|
|
110
110
|
let m = `Could not resolve '${a}'.`;
|
|
111
|
-
if (
|
|
111
|
+
if (s) m = `${m} ${s}`;
|
|
112
112
|
m = `${m} Resolution path: ${i}`;
|
|
113
113
|
super(m);
|
|
114
114
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultExportFromCjs as t, commonjsGlobal as e } from "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../../vendor/Package.8.mjs";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import * as n from "path";
|
|
|
8
8
|
|
|
9
9
|
import s from "path";
|
|
10
10
|
|
|
11
|
-
import { i } from "../../../vendor/Package.9.mjs";
|
|
11
|
+
import { isGlob as i } from "../../../vendor/Package.9.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../../vendor/Package.10.mjs";
|
|
14
14
|
|
package/src/lib/ioc/Utils.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as i } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { ModuleOptions as o } from "./ModuleOptions.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as e } from "../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { DTO as r } from "../../vendor/Package.2.mjs";
|
|
8
8
|
|
|
9
9
|
import "../../vendor/Package.3.mjs";
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as i } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as o } from "../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { BaseObject as e } from "../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import { Expect as r } from "../decorators/dto/Expect.mjs";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as i } from "../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { LoadObjectOptions as o } from "../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import { IndexSignature as e } from "../decorators/dto/IndexSignature.mjs";
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ import "../../vendor/Package.2.mjs";
|
|
|
4
4
|
|
|
5
5
|
import "../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { LoadObjectOptions, OBJECT_ID } from "../../vendor/Package.3.mjs";
|
|
8
8
|
|
|
9
9
|
import "../decorators/dto/IndexSignature.mjs";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as o, __metadata as t } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as i } from "../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as e } from "../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ import { LoadNamedObjectOptions as r } from "./LoadNamedObjectOptions.mjs";
|
|
|
8
8
|
|
|
9
9
|
import { LoadAnonymousObjectOptions as s } from "./LoadAnonymousObjectOptions.mjs";
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { BaseObject as m } from "../../vendor/Package.3.mjs";
|
|
12
12
|
|
|
13
13
|
import "../lib/base/internal/DataValidator.mjs";
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as o, __metadata as t } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as i } from "../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { BaseObject as e } from "../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import { Expect as r } from "../decorators/dto/Expect.mjs";
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as i } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as t } from "../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { OverridableObjectOptions as e } from "./OverridableObjectOptions.mjs";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as i } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DTO as o } from "../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { BaseObject as e } from "../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import { Expect as r } from "../decorators/dto/Expect.mjs";
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as e } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { Configurable as r } from "../decorators/di/Configurable.mjs";
|
|
4
4
|
|
|
5
5
|
import { Transient as i } from "../decorators/di/Lifetime.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { DataSourceExports as o } from "../../vendor/Package.12.mjs";
|
|
8
8
|
|
|
9
9
|
import { Provider as s } from "../lib/core/Provider.mjs";
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate as t, __metadata as r } from "../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import e from "crypto";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Provider as o } from "../lib/core/Provider.mjs";
|
|
|
6
6
|
|
|
7
7
|
import { Configurable as i } from "../decorators/di/Configurable.mjs";
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { DTO as n } from "../../vendor/Package.2.mjs";
|
|
10
10
|
|
|
11
11
|
import "../../vendor/Package.3.mjs";
|
|
12
12
|
|
|
@@ -407,9 +407,9 @@ var M = [ 608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137
|
|
|
407
407
|
|
|
408
408
|
var O = [ 3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402, 4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577, 3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540, 1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946, 1266315497, 3048417604, 3681880366, 3289982499, 290971e4, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289, 1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456, 1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347, 1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055, 3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547, 1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403, 1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396, 3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504, 976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132, 3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903, 3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409e3, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142, 453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462 ];
|
|
409
409
|
|
|
410
|
-
var
|
|
410
|
+
var L = [ 1332899944, 1700884034, 1701343084, 1684370003, 1668446532, 1869963892 ];
|
|
411
411
|
|
|
412
|
-
function
|
|
412
|
+
function R(t, r, e, o) {
|
|
413
413
|
var i, n = t[r], s = t[r + 1];
|
|
414
414
|
n ^= e[0];
|
|
415
415
|
i = o[n >>> 24];
|
|
@@ -497,7 +497,7 @@ function L(t, r, e, o) {
|
|
|
497
497
|
return t;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
function
|
|
500
|
+
function $(t, r) {
|
|
501
501
|
for (var e = 0, o = 0; e < 4; ++e) o = o << 8 | t[r] & 255, r = (r + 1) % t.length;
|
|
502
502
|
return {
|
|
503
503
|
key: o,
|
|
@@ -505,25 +505,25 @@ function R(t, r) {
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
-
function
|
|
508
|
+
function D(t, r, e) {
|
|
509
509
|
var o = 0, i = [ 0, 0 ], n = r.length, s = e.length, a;
|
|
510
|
-
for (var l = 0; l < n; l++) a =
|
|
511
|
-
for (l = 0; l < n; l += 2) i =
|
|
512
|
-
for (l = 0; l < s; l += 2) i =
|
|
510
|
+
for (var l = 0; l < n; l++) a = $(t, o), o = a.offp, r[l] = r[l] ^ a.key;
|
|
511
|
+
for (l = 0; l < n; l += 2) i = R(i, 0, r, e), r[l] = i[0], r[l + 1] = i[1];
|
|
512
|
+
for (l = 0; l < s; l += 2) i = R(i, 0, r, e), e[l] = i[0], e[l + 1] = i[1];
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
function N(t, r, e, o) {
|
|
516
516
|
var i = 0, n = [ 0, 0 ], s = e.length, a = o.length, l;
|
|
517
|
-
for (var f = 0; f < s; f++) l =
|
|
517
|
+
for (var f = 0; f < s; f++) l = $(r, i), i = l.offp, e[f] = e[f] ^ l.key;
|
|
518
518
|
i = 0;
|
|
519
|
-
for (f = 0; f < s; f += 2) l =
|
|
520
|
-
i = l.offp, n[1] ^= l.key, n =
|
|
521
|
-
for (f = 0; f < a; f += 2) l =
|
|
522
|
-
i = l.offp, n[1] ^= l.key, n =
|
|
519
|
+
for (f = 0; f < s; f += 2) l = $(t, i), i = l.offp, n[0] ^= l.key, l = $(t, i),
|
|
520
|
+
i = l.offp, n[1] ^= l.key, n = R(n, 0, e, o), e[f] = n[0], e[f + 1] = n[1];
|
|
521
|
+
for (f = 0; f < a; f += 2) l = $(t, i), i = l.offp, n[0] ^= l.key, l = $(t, i),
|
|
522
|
+
i = l.offp, n[1] ^= l.key, n = R(n, 0, e, o), o[f] = n[0], o[f + 1] = n[1];
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
function T(t, r, e, o, i) {
|
|
526
|
-
var n =
|
|
526
|
+
var n = L.slice(), s = n.length, a;
|
|
527
527
|
if (e < 4 || e > 31) {
|
|
528
528
|
a = Error("Illegal number of rounds (4-31): " + e);
|
|
529
529
|
if (o) {
|
|
@@ -554,12 +554,12 @@ function T(t, r, e, o, i) {
|
|
|
554
554
|
var a = Date.now();
|
|
555
555
|
for (;p < e; ) {
|
|
556
556
|
p = p + 1;
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
D(t, l, f);
|
|
558
|
+
D(r, l, f);
|
|
559
559
|
if (Date.now() - a > S) break;
|
|
560
560
|
}
|
|
561
561
|
} else {
|
|
562
|
-
for (p = 0; p < 64; p++) for (m = 0; m < s >> 1; m++)
|
|
562
|
+
for (p = 0; p < 64; p++) for (m = 0; m < s >> 1; m++) R(n, m << 1, l, f);
|
|
563
563
|
var u = [];
|
|
564
564
|
for (p = 0; p < s; p++) u.push((n[p] >> 24 & 255) >>> 0), u.push((n[p] >> 16 & 255) >>> 0),
|
|
565
565
|
u.push((n[p] >> 8 & 255) >>> 0), u.push((n[p] & 255) >>> 0);
|
|
@@ -625,7 +625,7 @@ function V(t, r, e, o) {
|
|
|
625
625
|
r.push(f.toString());
|
|
626
626
|
r.push("$");
|
|
627
627
|
r.push(C(c, c.length));
|
|
628
|
-
r.push(C(t,
|
|
628
|
+
r.push(C(t, L.length * 4 - 1));
|
|
629
629
|
return r.join("");
|
|
630
630
|
}
|
|
631
631
|
if (typeof e == "undefined") return u(T(m, c, f)); else {
|