@prosopo/types 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/params.d.ts.map +1 -1
- package/dist/api/params.js.map +1 -1
- package/dist/cjs/client/index.cjs +5 -0
- package/dist/cjs/client/user.cjs +30 -0
- package/dist/cjs/config/config.cjs +22 -16
- package/dist/cjs/config/index.cjs +1 -1
- package/dist/cjs/datasets/captcha.cjs +1 -1
- package/dist/cjs/index.cjs +5 -1
- package/dist/cjs/provider/argv.cjs +1 -2
- package/dist/cjs/provider/scheduler.cjs +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/user.d.ts +36 -0
- package/dist/client/user.d.ts.map +1 -0
- package/dist/client/user.js +18 -0
- package/dist/client/user.js.map +1 -0
- package/dist/config/config.d.ts +85 -75
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +20 -14
- package/dist/config/config.js.map +1 -1
- package/dist/config/enumMap.d.ts.map +1 -1
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js +1 -1
- package/dist/config/network.js.map +1 -1
- package/dist/contract/batch.d.ts +0 -1
- package/dist/contract/batch.d.ts.map +1 -1
- package/dist/contract/interface.d.ts +0 -1
- package/dist/contract/interface.d.ts.map +1 -1
- package/dist/contract/useWeight.d.ts +0 -1
- package/dist/contract/useWeight.d.ts.map +1 -1
- package/dist/datasets/captcha.d.ts +1 -1
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js +2 -2
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/procaptcha/api.d.ts.map +1 -1
- package/dist/procaptcha/manager.d.ts +1 -2
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/props.d.ts.map +1 -1
- package/dist/procaptcha/token.d.ts.map +1 -1
- package/dist/procaptcha/token.js.map +1 -1
- package/dist/procaptcha-bundle/index.d.ts +14 -0
- package/dist/procaptcha-bundle/index.d.ts.map +1 -1
- package/dist/procaptcha-bundle/index.js.map +1 -1
- package/dist/provider/accounts.d.ts +0 -1
- package/dist/provider/accounts.d.ts.map +1 -1
- package/dist/provider/api.d.ts +8 -4
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js.map +1 -1
- package/dist/provider/argv.d.ts +1 -1
- package/dist/provider/argv.d.ts.map +1 -1
- package/dist/provider/argv.js +1 -1
- package/dist/provider/argv.js.map +1 -1
- package/dist/provider/scheduler.d.ts +2 -1
- package/dist/provider/scheduler.d.ts.map +1 -1
- package/dist/provider/scheduler.js +1 -0
- package/dist/provider/scheduler.js.map +1 -1
- package/package.json +57 -50
- package/dist/cjs/dist/api/api.cjs +0 -1
- package/dist/cjs/dist/api/index.cjs +0 -8
- package/dist/cjs/dist/api/params.cjs +0 -30
- package/dist/cjs/dist/config/config.cjs +0 -178
- package/dist/cjs/dist/config/index.cjs +0 -30
- package/dist/cjs/dist/config/network.cjs +0 -10
- package/dist/cjs/dist/config/timeouts.cjs +0 -19
- package/dist/cjs/dist/contract/artifacts.cjs +0 -135
- package/dist/cjs/dist/contract/batch.cjs +0 -1
- package/dist/cjs/dist/contract/contract.cjs +0 -1
- package/dist/cjs/dist/contract/index.cjs +0 -22
- package/dist/cjs/dist/contract/interface.cjs +0 -1
- package/dist/cjs/dist/contract/useWeight.cjs +0 -1
- package/dist/cjs/dist/datasets/assets.cjs +0 -1
- package/dist/cjs/dist/datasets/captcha.cjs +0 -120
- package/dist/cjs/dist/datasets/dataset.cjs +0 -32
- package/dist/cjs/dist/datasets/index.cjs +0 -53
- package/dist/cjs/dist/datasets/merkle.cjs +0 -1
- package/dist/cjs/dist/index.cjs +0 -14
- package/dist/cjs/dist/procaptcha/api.cjs +0 -1
- package/dist/cjs/dist/procaptcha/client.cjs +0 -1
- package/dist/cjs/dist/procaptcha/collector.cjs +0 -1
- package/dist/cjs/dist/procaptcha/index.cjs +0 -20
- package/dist/cjs/dist/procaptcha/manager.cjs +0 -10
- package/dist/cjs/dist/procaptcha/props.cjs +0 -1
- package/dist/cjs/dist/procaptcha/storage.cjs +0 -9
- package/dist/cjs/dist/procaptcha/token.cjs +0 -80
- package/dist/cjs/dist/procaptcha/utils.cjs +0 -1
- package/dist/cjs/dist/procaptcha-bundle/index.cjs +0 -8
- package/dist/cjs/dist/procaptcha-frictionless/index.cjs +0 -2
- package/dist/cjs/dist/procaptcha-frictionless/props.cjs +0 -1
- package/dist/cjs/dist/provider/accounts.cjs +0 -7
- package/dist/cjs/dist/provider/api.cjs +0 -108
- package/dist/cjs/dist/provider/argv.cjs +0 -7
- package/dist/cjs/dist/provider/index.cjs +0 -35
- package/dist/cjs/dist/provider/scheduler.cjs +0 -15
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const config = require("./config.cjs");
|
|
4
|
-
const network = require("./network.cjs");
|
|
5
|
-
const timeouts = require("./timeouts.cjs");
|
|
6
|
-
exports.AccountCreatorConfigSchema = config.AccountCreatorConfigSchema;
|
|
7
|
-
exports.BatchCommitConfigSchema = config.BatchCommitConfigSchema;
|
|
8
|
-
exports.CaptchaTimeoutSchema = config.CaptchaTimeoutSchema;
|
|
9
|
-
exports.DatabaseConfigSchema = config.DatabaseConfigSchema;
|
|
10
|
-
exports.DatabaseTypes = config.DatabaseTypes;
|
|
11
|
-
exports.EnvironmentTypesSchema = config.EnvironmentTypesSchema;
|
|
12
|
-
exports.PolkadotSecretJSONSpec = config.PolkadotSecretJSONSpec;
|
|
13
|
-
exports.ProcaptchaConfigSchema = config.ProcaptchaConfigSchema;
|
|
14
|
-
exports.ProsopoBaseConfigSchema = config.ProsopoBaseConfigSchema;
|
|
15
|
-
exports.ProsopoBasicConfigSchema = config.ProsopoBasicConfigSchema;
|
|
16
|
-
exports.ProsopoCaptchaCountConfigSchema = config.ProsopoCaptchaCountConfigSchema;
|
|
17
|
-
exports.ProsopoCaptchaSolutionConfigSchema = config.ProsopoCaptchaSolutionConfigSchema;
|
|
18
|
-
exports.ProsopoClientConfigSchema = config.ProsopoClientConfigSchema;
|
|
19
|
-
exports.ProsopoConfigSchema = config.ProsopoConfigSchema;
|
|
20
|
-
exports.ProsopoImageServerConfigSchema = config.ProsopoImageServerConfigSchema;
|
|
21
|
-
exports.ProsopoServerConfigSchema = config.ProsopoServerConfigSchema;
|
|
22
|
-
exports.NetworkPairTypeSchema = network.NetworkPairTypeSchema;
|
|
23
|
-
exports.DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT = timeouts.DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT;
|
|
24
|
-
exports.DEFAULT_IMAGE_CAPTCHA_TIMEOUT = timeouts.DEFAULT_IMAGE_CAPTCHA_TIMEOUT;
|
|
25
|
-
exports.DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT = timeouts.DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT;
|
|
26
|
-
exports.DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED = timeouts.DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED;
|
|
27
|
-
exports.DEFAULT_MAX_VERIFIED_TIME_CONTRACT = timeouts.DEFAULT_MAX_VERIFIED_TIME_CONTRACT;
|
|
28
|
-
exports.DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT = timeouts.DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT;
|
|
29
|
-
exports.DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT = timeouts.DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT;
|
|
30
|
-
exports.DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT = timeouts.DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const z = require("zod");
|
|
4
|
-
const NetworkPairTypeSchema = z.union([
|
|
5
|
-
z.literal("sr25519"),
|
|
6
|
-
z.literal("ed25519"),
|
|
7
|
-
z.literal("ecdsa"),
|
|
8
|
-
z.literal("ethereum")
|
|
9
|
-
]);
|
|
10
|
-
exports.NetworkPairTypeSchema = NetworkPairTypeSchema;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ONE_MINUTE = 60 * 1e3;
|
|
4
|
-
const DEFAULT_IMAGE_CAPTCHA_TIMEOUT = ONE_MINUTE;
|
|
5
|
-
const DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT = DEFAULT_IMAGE_CAPTCHA_TIMEOUT * 2;
|
|
6
|
-
const DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT = DEFAULT_IMAGE_CAPTCHA_TIMEOUT * 3;
|
|
7
|
-
const DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED = DEFAULT_IMAGE_CAPTCHA_TIMEOUT * 15;
|
|
8
|
-
const DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT = ONE_MINUTE;
|
|
9
|
-
const DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT = DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT * 2;
|
|
10
|
-
const DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT = DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT * 3;
|
|
11
|
-
const DEFAULT_MAX_VERIFIED_TIME_CONTRACT = ONE_MINUTE * 15;
|
|
12
|
-
exports.DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT = DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT;
|
|
13
|
-
exports.DEFAULT_IMAGE_CAPTCHA_TIMEOUT = DEFAULT_IMAGE_CAPTCHA_TIMEOUT;
|
|
14
|
-
exports.DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT = DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT;
|
|
15
|
-
exports.DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED = DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED;
|
|
16
|
-
exports.DEFAULT_MAX_VERIFIED_TIME_CONTRACT = DEFAULT_MAX_VERIFIED_TIME_CONTRACT;
|
|
17
|
-
exports.DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT = DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT;
|
|
18
|
-
exports.DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT = DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT;
|
|
19
|
-
exports.DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT = DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const native = require("@polkadot/types-codec/native");
|
|
4
|
-
const z = require("zod");
|
|
5
|
-
const AbiParamSpec = z.object({
|
|
6
|
-
name: z.string(),
|
|
7
|
-
type: z.union([z.number(), z.string()])
|
|
8
|
-
});
|
|
9
|
-
const AbiFieldSpec = z.object({
|
|
10
|
-
name: z.string().optional(),
|
|
11
|
-
type: z.number(),
|
|
12
|
-
typeName: z.string().optional()
|
|
13
|
-
});
|
|
14
|
-
const AbiVariantSpec = z.object({
|
|
15
|
-
index: z.number(),
|
|
16
|
-
name: z.string()
|
|
17
|
-
});
|
|
18
|
-
const AbiStorageEnumFieldSpec = z.object({
|
|
19
|
-
name: z.string(),
|
|
20
|
-
fields: z.array(z.any())
|
|
21
|
-
});
|
|
22
|
-
const AbiStorageEnumSpec = z.record(z.number().min(0), AbiStorageEnumFieldSpec);
|
|
23
|
-
const AbiTypeSpec = z.object({
|
|
24
|
-
id: z.number(),
|
|
25
|
-
type: z.object({
|
|
26
|
-
def: z.object({
|
|
27
|
-
composite: z.object({
|
|
28
|
-
fields: z.array(AbiFieldSpec).optional()
|
|
29
|
-
}).optional(),
|
|
30
|
-
variant: z.object({
|
|
31
|
-
variants: z.union([
|
|
32
|
-
z.array(AbiVariantSpec).optional(),
|
|
33
|
-
AbiStorageEnumSpec
|
|
34
|
-
])
|
|
35
|
-
}).optional(),
|
|
36
|
-
sequence: z.object({
|
|
37
|
-
type: z.number()
|
|
38
|
-
}).optional(),
|
|
39
|
-
array: z.object({
|
|
40
|
-
len: z.number(),
|
|
41
|
-
type: z.number()
|
|
42
|
-
}).optional(),
|
|
43
|
-
primitive: z.string().optional(),
|
|
44
|
-
tuple: z.any().optional()
|
|
45
|
-
}),
|
|
46
|
-
params: z.array(AbiParamSpec).optional(),
|
|
47
|
-
path: z.array(z.string()).optional()
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
const AbiEnumSpec = z.object({
|
|
51
|
-
dispatchKey: z.string(),
|
|
52
|
-
variants: z.any()
|
|
53
|
-
});
|
|
54
|
-
const AbiText = z.union([z.instanceof(native.Text), z.string()]);
|
|
55
|
-
const AbiCellSpec = z.object({
|
|
56
|
-
key: AbiText,
|
|
57
|
-
ty: z.union([z.number(), z.string()])
|
|
58
|
-
});
|
|
59
|
-
const AbiTypesSpec = z.array(AbiTypeSpec);
|
|
60
|
-
const AbiStorageFieldSpec = z.lazy(() => z.object({
|
|
61
|
-
name: AbiText.optional(),
|
|
62
|
-
layout: z.object({
|
|
63
|
-
leaf: AbiCellSpec.optional(),
|
|
64
|
-
enum: AbiEnumSpec.optional(),
|
|
65
|
-
root: AbiStorageFieldSpec.optional(),
|
|
66
|
-
struct: AbiStorageStructSpec.optional()
|
|
67
|
-
}),
|
|
68
|
-
root_key: AbiText.optional()
|
|
69
|
-
}));
|
|
70
|
-
const AbiStorageStructSpec = z.object({
|
|
71
|
-
fields: z.array(AbiStorageFieldSpec),
|
|
72
|
-
name: z.string()
|
|
73
|
-
});
|
|
74
|
-
const AbiStorageSpec = z.object({
|
|
75
|
-
root: z.object({
|
|
76
|
-
layout: z.object({
|
|
77
|
-
struct: AbiStorageStructSpec.optional()
|
|
78
|
-
})
|
|
79
|
-
})
|
|
80
|
-
});
|
|
81
|
-
const AbiSpecDef = z.object({
|
|
82
|
-
constructors: z.array(z.any()),
|
|
83
|
-
docs: z.array(z.any()),
|
|
84
|
-
events: z.array(z.any()),
|
|
85
|
-
messages: z.array(z.object({
|
|
86
|
-
label: z.string(),
|
|
87
|
-
selector: z.string()
|
|
88
|
-
}))
|
|
89
|
-
});
|
|
90
|
-
var metadataVersion;
|
|
91
|
-
(function(metadataVersion2) {
|
|
92
|
-
metadataVersion2["V1"] = "V1";
|
|
93
|
-
metadataVersion2["V2"] = "V2";
|
|
94
|
-
metadataVersion2["V3"] = "V3";
|
|
95
|
-
})(metadataVersion || (metadataVersion = {}));
|
|
96
|
-
const AbiDetailsSpec = z.object({
|
|
97
|
-
spec: AbiSpecDef,
|
|
98
|
-
types: AbiTypesSpec,
|
|
99
|
-
storage: AbiStorageSpec
|
|
100
|
-
});
|
|
101
|
-
const AbiMetaDataSpec = z.object({
|
|
102
|
-
metadataVersion: z.string().optional(),
|
|
103
|
-
source: z.object({
|
|
104
|
-
hash: z.string(),
|
|
105
|
-
language: z.string(),
|
|
106
|
-
compiler: z.string(),
|
|
107
|
-
wasm: z.string().optional()
|
|
108
|
-
}),
|
|
109
|
-
contract: z.object({
|
|
110
|
-
name: z.string(),
|
|
111
|
-
version: z.string(),
|
|
112
|
-
authors: z.array(z.string())
|
|
113
|
-
}),
|
|
114
|
-
[metadataVersion.V1]: AbiDetailsSpec.optional(),
|
|
115
|
-
[metadataVersion.V2]: AbiDetailsSpec.optional(),
|
|
116
|
-
[metadataVersion.V3]: AbiDetailsSpec.optional(),
|
|
117
|
-
spec: AbiSpecDef,
|
|
118
|
-
types: AbiTypesSpec,
|
|
119
|
-
storage: AbiStorageSpec
|
|
120
|
-
});
|
|
121
|
-
exports.AbiCellSpec = AbiCellSpec;
|
|
122
|
-
exports.AbiDetailsSpec = AbiDetailsSpec;
|
|
123
|
-
exports.AbiEnumSpec = AbiEnumSpec;
|
|
124
|
-
exports.AbiFieldSpec = AbiFieldSpec;
|
|
125
|
-
exports.AbiMetaDataSpec = AbiMetaDataSpec;
|
|
126
|
-
exports.AbiParamSpec = AbiParamSpec;
|
|
127
|
-
exports.AbiSpecDef = AbiSpecDef;
|
|
128
|
-
exports.AbiStorageEnumSpec = AbiStorageEnumSpec;
|
|
129
|
-
exports.AbiStorageFieldSpec = AbiStorageFieldSpec;
|
|
130
|
-
exports.AbiStorageSpec = AbiStorageSpec;
|
|
131
|
-
exports.AbiStorageStructSpec = AbiStorageStructSpec;
|
|
132
|
-
exports.AbiText = AbiText;
|
|
133
|
-
exports.AbiTypeSpec = AbiTypeSpec;
|
|
134
|
-
exports.AbiTypesSpec = AbiTypesSpec;
|
|
135
|
-
exports.AbiVariantSpec = AbiVariantSpec;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const artifacts = require("./artifacts.cjs");
|
|
4
|
-
require("./contract.cjs");
|
|
5
|
-
require("./interface.cjs");
|
|
6
|
-
require("./useWeight.cjs");
|
|
7
|
-
require("./batch.cjs");
|
|
8
|
-
exports.AbiCellSpec = artifacts.AbiCellSpec;
|
|
9
|
-
exports.AbiDetailsSpec = artifacts.AbiDetailsSpec;
|
|
10
|
-
exports.AbiEnumSpec = artifacts.AbiEnumSpec;
|
|
11
|
-
exports.AbiFieldSpec = artifacts.AbiFieldSpec;
|
|
12
|
-
exports.AbiMetaDataSpec = artifacts.AbiMetaDataSpec;
|
|
13
|
-
exports.AbiParamSpec = artifacts.AbiParamSpec;
|
|
14
|
-
exports.AbiSpecDef = artifacts.AbiSpecDef;
|
|
15
|
-
exports.AbiStorageEnumSpec = artifacts.AbiStorageEnumSpec;
|
|
16
|
-
exports.AbiStorageFieldSpec = artifacts.AbiStorageFieldSpec;
|
|
17
|
-
exports.AbiStorageSpec = artifacts.AbiStorageSpec;
|
|
18
|
-
exports.AbiStorageStructSpec = artifacts.AbiStorageStructSpec;
|
|
19
|
-
exports.AbiText = artifacts.AbiText;
|
|
20
|
-
exports.AbiTypeSpec = artifacts.AbiTypeSpec;
|
|
21
|
-
exports.AbiTypesSpec = artifacts.AbiTypesSpec;
|
|
22
|
-
exports.AbiVariantSpec = artifacts.AbiVariantSpec;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const z = require("zod");
|
|
4
|
-
exports.CaptchaTypes = void 0;
|
|
5
|
-
(function(CaptchaTypes) {
|
|
6
|
-
CaptchaTypes["SelectAll"] = "SelectAll";
|
|
7
|
-
})(exports.CaptchaTypes || (exports.CaptchaTypes = {}));
|
|
8
|
-
exports.CaptchaItemTypes = void 0;
|
|
9
|
-
(function(CaptchaItemTypes) {
|
|
10
|
-
CaptchaItemTypes["Text"] = "text";
|
|
11
|
-
CaptchaItemTypes["Image"] = "image";
|
|
12
|
-
})(exports.CaptchaItemTypes || (exports.CaptchaItemTypes = {}));
|
|
13
|
-
exports.CaptchaStates = void 0;
|
|
14
|
-
(function(CaptchaStates) {
|
|
15
|
-
CaptchaStates["Solved"] = "solved";
|
|
16
|
-
CaptchaStates["Unsolved"] = "unsolved";
|
|
17
|
-
})(exports.CaptchaStates || (exports.CaptchaStates = {}));
|
|
18
|
-
exports.CaptchaStatus = void 0;
|
|
19
|
-
(function(CaptchaStatus) {
|
|
20
|
-
CaptchaStatus["pending"] = "Pending";
|
|
21
|
-
CaptchaStatus["approved"] = "Approved";
|
|
22
|
-
CaptchaStatus["disapproved"] = "Disapproved";
|
|
23
|
-
})(exports.CaptchaStatus || (exports.CaptchaStatus = {}));
|
|
24
|
-
exports.GovernanceStatus = void 0;
|
|
25
|
-
(function(GovernanceStatus) {
|
|
26
|
-
GovernanceStatus["active"] = "Active";
|
|
27
|
-
GovernanceStatus["inactive"] = "Inactive";
|
|
28
|
-
})(exports.GovernanceStatus || (exports.GovernanceStatus = {}));
|
|
29
|
-
exports.DappPayee = void 0;
|
|
30
|
-
(function(DappPayee) {
|
|
31
|
-
DappPayee["provider"] = "Provider";
|
|
32
|
-
DappPayee["dapp"] = "Dapp";
|
|
33
|
-
DappPayee["any"] = "Any";
|
|
34
|
-
})(exports.DappPayee || (exports.DappPayee = {}));
|
|
35
|
-
const TimestampSchema = z.number();
|
|
36
|
-
const POW_SEPARATOR = "___";
|
|
37
|
-
const PowChallengeIdSchema = z.custom((val) => {
|
|
38
|
-
const valSplit = val.split(POW_SEPARATOR);
|
|
39
|
-
try {
|
|
40
|
-
parseInt(valSplit[0]);
|
|
41
|
-
return valSplit.length === 3;
|
|
42
|
-
} catch (e) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
const CaptchaSchema = z.object({
|
|
47
|
-
captchaId: z.union([z.string(), z.undefined()]),
|
|
48
|
-
captchaContentId: z.union([z.string(), z.undefined()]),
|
|
49
|
-
salt: z.string().min(34),
|
|
50
|
-
solution: z.number().array().optional(),
|
|
51
|
-
unlabelled: z.number().array().optional(),
|
|
52
|
-
timeLimit: z.number().optional()
|
|
53
|
-
});
|
|
54
|
-
const CaptchaItemSchema = z.object({
|
|
55
|
-
hash: z.string(),
|
|
56
|
-
data: z.string(),
|
|
57
|
-
type: z.nativeEnum(exports.CaptchaItemTypes)
|
|
58
|
-
});
|
|
59
|
-
const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
|
|
60
|
-
hash: z.string()
|
|
61
|
-
});
|
|
62
|
-
const LabelledItemSchema = HashedCaptchaItemSchema.extend({
|
|
63
|
-
label: z.string()
|
|
64
|
-
});
|
|
65
|
-
const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
|
|
66
|
-
label: z.string().optional()
|
|
67
|
-
});
|
|
68
|
-
const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
|
|
69
|
-
items: z.array(CaptchaItemSchema),
|
|
70
|
-
target: z.string()
|
|
71
|
-
});
|
|
72
|
-
const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
|
|
73
|
-
solution: z.string().array().optional(),
|
|
74
|
-
unlabelled: z.string().array().optional()
|
|
75
|
-
});
|
|
76
|
-
const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
|
|
77
|
-
solution: z.number().array().optional(),
|
|
78
|
-
unlabelled: z.number().array().optional()
|
|
79
|
-
});
|
|
80
|
-
const CaptchasSchema = z.array(SelectAllCaptchaSchemaRaw);
|
|
81
|
-
const CaptchasWithNumericSolutionSchema = z.array(SelectAllCaptchaSchemaWithNumericSolution);
|
|
82
|
-
const CaptchaSolutionSchema = z.object({
|
|
83
|
-
captchaId: z.string(),
|
|
84
|
-
captchaContentId: z.string(),
|
|
85
|
-
solution: z.string().array(),
|
|
86
|
-
salt: z.string().min(34)
|
|
87
|
-
});
|
|
88
|
-
const CaptchaSolutionArraySchema = z.array(CaptchaSolutionSchema);
|
|
89
|
-
const DataSchema = z.object({
|
|
90
|
-
items: z.array(MaybeLabelledHashedItemSchema)
|
|
91
|
-
});
|
|
92
|
-
const LabelledDataSchema = z.object({
|
|
93
|
-
items: z.array(LabelledItemSchema)
|
|
94
|
-
});
|
|
95
|
-
const CaptchasContainerSchema = z.object({
|
|
96
|
-
captchas: CaptchasSchema,
|
|
97
|
-
format: z.nativeEnum(exports.CaptchaTypes)
|
|
98
|
-
});
|
|
99
|
-
const LabelsContainerSchema = z.object({
|
|
100
|
-
labels: z.array(z.string())
|
|
101
|
-
});
|
|
102
|
-
exports.CaptchaItemSchema = CaptchaItemSchema;
|
|
103
|
-
exports.CaptchaSchema = CaptchaSchema;
|
|
104
|
-
exports.CaptchaSolutionArraySchema = CaptchaSolutionArraySchema;
|
|
105
|
-
exports.CaptchaSolutionSchema = CaptchaSolutionSchema;
|
|
106
|
-
exports.CaptchasContainerSchema = CaptchasContainerSchema;
|
|
107
|
-
exports.CaptchasSchema = CaptchasSchema;
|
|
108
|
-
exports.CaptchasWithNumericSolutionSchema = CaptchasWithNumericSolutionSchema;
|
|
109
|
-
exports.DataSchema = DataSchema;
|
|
110
|
-
exports.HashedCaptchaItemSchema = HashedCaptchaItemSchema;
|
|
111
|
-
exports.LabelledDataSchema = LabelledDataSchema;
|
|
112
|
-
exports.LabelledItemSchema = LabelledItemSchema;
|
|
113
|
-
exports.LabelsContainerSchema = LabelsContainerSchema;
|
|
114
|
-
exports.MaybeLabelledHashedItemSchema = MaybeLabelledHashedItemSchema;
|
|
115
|
-
exports.POW_SEPARATOR = POW_SEPARATOR;
|
|
116
|
-
exports.PowChallengeIdSchema = PowChallengeIdSchema;
|
|
117
|
-
exports.SelectAllCaptchaSchema = SelectAllCaptchaSchema;
|
|
118
|
-
exports.SelectAllCaptchaSchemaRaw = SelectAllCaptchaSchemaRaw;
|
|
119
|
-
exports.SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchemaWithNumericSolution;
|
|
120
|
-
exports.TimestampSchema = TimestampSchema;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const z = require("zod");
|
|
4
|
-
const captcha = require("./captcha.cjs");
|
|
5
|
-
const DatasetSchema = z.object({
|
|
6
|
-
datasetId: z.string().optional(),
|
|
7
|
-
datasetContentId: z.string().optional(),
|
|
8
|
-
captchas: captcha.CaptchasSchema,
|
|
9
|
-
format: z.nativeEnum(captcha.CaptchaTypes),
|
|
10
|
-
solutionTree: z.array(z.array(z.string())).optional(),
|
|
11
|
-
contentTree: z.array(z.array(z.string())).optional(),
|
|
12
|
-
timeLimit: z.number().optional()
|
|
13
|
-
});
|
|
14
|
-
const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
|
|
15
|
-
captchas: captcha.CaptchasWithNumericSolutionSchema
|
|
16
|
-
});
|
|
17
|
-
const DatasetWithIdsSchema = z.object({
|
|
18
|
-
datasetId: z.string(),
|
|
19
|
-
datasetContentId: z.string().optional(),
|
|
20
|
-
captchas: z.array(captcha.SelectAllCaptchaSchema),
|
|
21
|
-
format: z.nativeEnum(captcha.CaptchaTypes),
|
|
22
|
-
solutionTree: z.array(z.array(z.string())).optional(),
|
|
23
|
-
contentTree: z.array(z.array(z.string())).optional()
|
|
24
|
-
});
|
|
25
|
-
const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
|
|
26
|
-
solutionTree: z.array(z.array(z.string())),
|
|
27
|
-
contentTree: z.array(z.array(z.string()))
|
|
28
|
-
});
|
|
29
|
-
exports.DatasetSchema = DatasetSchema;
|
|
30
|
-
exports.DatasetWithIdsAndTreeSchema = DatasetWithIdsAndTreeSchema;
|
|
31
|
-
exports.DatasetWithIdsSchema = DatasetWithIdsSchema;
|
|
32
|
-
exports.DatasetWithNumericSolutionSchema = DatasetWithNumericSolutionSchema;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const captcha = require("./captcha.cjs");
|
|
4
|
-
const dataset = require("./dataset.cjs");
|
|
5
|
-
require("./merkle.cjs");
|
|
6
|
-
require("./assets.cjs");
|
|
7
|
-
exports.CaptchaItemSchema = captcha.CaptchaItemSchema;
|
|
8
|
-
Object.defineProperty(exports, "CaptchaItemTypes", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: () => captcha.CaptchaItemTypes
|
|
11
|
-
});
|
|
12
|
-
exports.CaptchaSchema = captcha.CaptchaSchema;
|
|
13
|
-
exports.CaptchaSolutionArraySchema = captcha.CaptchaSolutionArraySchema;
|
|
14
|
-
exports.CaptchaSolutionSchema = captcha.CaptchaSolutionSchema;
|
|
15
|
-
Object.defineProperty(exports, "CaptchaStates", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: () => captcha.CaptchaStates
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "CaptchaStatus", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: () => captcha.CaptchaStatus
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "CaptchaTypes", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: () => captcha.CaptchaTypes
|
|
26
|
-
});
|
|
27
|
-
exports.CaptchasContainerSchema = captcha.CaptchasContainerSchema;
|
|
28
|
-
exports.CaptchasSchema = captcha.CaptchasSchema;
|
|
29
|
-
exports.CaptchasWithNumericSolutionSchema = captcha.CaptchasWithNumericSolutionSchema;
|
|
30
|
-
Object.defineProperty(exports, "DappPayee", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: () => captcha.DappPayee
|
|
33
|
-
});
|
|
34
|
-
exports.DataSchema = captcha.DataSchema;
|
|
35
|
-
Object.defineProperty(exports, "GovernanceStatus", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: () => captcha.GovernanceStatus
|
|
38
|
-
});
|
|
39
|
-
exports.HashedCaptchaItemSchema = captcha.HashedCaptchaItemSchema;
|
|
40
|
-
exports.LabelledDataSchema = captcha.LabelledDataSchema;
|
|
41
|
-
exports.LabelledItemSchema = captcha.LabelledItemSchema;
|
|
42
|
-
exports.LabelsContainerSchema = captcha.LabelsContainerSchema;
|
|
43
|
-
exports.MaybeLabelledHashedItemSchema = captcha.MaybeLabelledHashedItemSchema;
|
|
44
|
-
exports.POW_SEPARATOR = captcha.POW_SEPARATOR;
|
|
45
|
-
exports.PowChallengeIdSchema = captcha.PowChallengeIdSchema;
|
|
46
|
-
exports.SelectAllCaptchaSchema = captcha.SelectAllCaptchaSchema;
|
|
47
|
-
exports.SelectAllCaptchaSchemaRaw = captcha.SelectAllCaptchaSchemaRaw;
|
|
48
|
-
exports.SelectAllCaptchaSchemaWithNumericSolution = captcha.SelectAllCaptchaSchemaWithNumericSolution;
|
|
49
|
-
exports.TimestampSchema = captcha.TimestampSchema;
|
|
50
|
-
exports.DatasetSchema = dataset.DatasetSchema;
|
|
51
|
-
exports.DatasetWithIdsAndTreeSchema = dataset.DatasetWithIdsAndTreeSchema;
|
|
52
|
-
exports.DatasetWithIdsSchema = dataset.DatasetWithIdsSchema;
|
|
53
|
-
exports.DatasetWithNumericSolutionSchema = dataset.DatasetWithNumericSolutionSchema;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/cjs/dist/index.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("./api/index.cjs");
|
|
4
|
-
require("./config/index.cjs");
|
|
5
|
-
require("./contract/index.cjs");
|
|
6
|
-
require("./datasets/index.cjs");
|
|
7
|
-
require("./provider/index.cjs");
|
|
8
|
-
require("./procaptcha/index.cjs");
|
|
9
|
-
const index = require("./procaptcha-bundle/index.cjs");
|
|
10
|
-
require("./procaptcha-frictionless/index.cjs");
|
|
11
|
-
Object.defineProperty(exports, "FeaturesEnum", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: () => index.FeaturesEnum
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("./api.cjs");
|
|
4
|
-
require("./client.cjs");
|
|
5
|
-
require("./collector.cjs");
|
|
6
|
-
const manager = require("./manager.cjs");
|
|
7
|
-
require("./props.cjs");
|
|
8
|
-
const storage = require("./storage.cjs");
|
|
9
|
-
const token = require("./token.cjs");
|
|
10
|
-
require("./utils.cjs");
|
|
11
|
-
exports.ProcaptchaResponse = manager.ProcaptchaResponse;
|
|
12
|
-
exports.ProsopoLocalStorageSchema = storage.ProsopoLocalStorageSchema;
|
|
13
|
-
exports.ChallengeSignatureSchema = token.ChallengeSignatureSchema;
|
|
14
|
-
exports.ProcaptchaOutputSchema = token.ProcaptchaOutputSchema;
|
|
15
|
-
exports.ProcaptchaTokenCodec = token.ProcaptchaTokenCodec;
|
|
16
|
-
exports.ProcaptchaTokenSpec = token.ProcaptchaTokenSpec;
|
|
17
|
-
exports.RequestHashSignatureSchema = token.RequestHashSignatureSchema;
|
|
18
|
-
exports.SignatureTypesSchema = token.SignatureTypesSchema;
|
|
19
|
-
exports.decodeProcaptchaOutput = token.decodeProcaptchaOutput;
|
|
20
|
-
exports.encodeProcaptchaOutput = token.encodeProcaptchaOutput;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const z = require("zod");
|
|
4
|
-
require("../api/index.cjs");
|
|
5
|
-
const token = require("./token.cjs");
|
|
6
|
-
const params = require("../api/params.cjs");
|
|
7
|
-
const ProcaptchaResponse = z.object({
|
|
8
|
-
[params.ApiParams.procaptchaResponse]: token.ProcaptchaTokenSpec
|
|
9
|
-
});
|
|
10
|
-
exports.ProcaptchaResponse = ProcaptchaResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const z = require("zod");
|
|
4
|
-
const ProsopoLocalStorageSchema = z.z.object({
|
|
5
|
-
account: z.z.string().optional(),
|
|
6
|
-
blockNumber: z.z.number().optional(),
|
|
7
|
-
providerUrl: z.z.string().optional()
|
|
8
|
-
});
|
|
9
|
-
exports.ProsopoLocalStorageSchema = ProsopoLocalStorageSchema;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const util = require("@polkadot/util");
|
|
4
|
-
const scaleTs = require("scale-ts");
|
|
5
|
-
const z = require("zod");
|
|
6
|
-
const params = require("../api/params.cjs");
|
|
7
|
-
const RequestHashSignatureSchema = z.object({
|
|
8
|
-
[params.ApiParams.requestHash]: z.string()
|
|
9
|
-
});
|
|
10
|
-
const ChallengeSignatureSchema = z.object({
|
|
11
|
-
[params.ApiParams.challenge]: z.string()
|
|
12
|
-
});
|
|
13
|
-
const SignatureTypesSchema = z.object({
|
|
14
|
-
[params.ApiParams.challenge]: z.string().optional(),
|
|
15
|
-
[params.ApiParams.requestHash]: z.string().optional(),
|
|
16
|
-
[params.ApiParams.timestamp]: z.string().optional()
|
|
17
|
-
});
|
|
18
|
-
const ProcaptchaOutputSchema = z.object({
|
|
19
|
-
[params.ApiParams.commitmentId]: z.string().optional(),
|
|
20
|
-
[params.ApiParams.providerUrl]: z.string().optional(),
|
|
21
|
-
[params.ApiParams.dapp]: z.string(),
|
|
22
|
-
[params.ApiParams.user]: z.string(),
|
|
23
|
-
[params.ApiParams.challenge]: z.string().optional(),
|
|
24
|
-
[params.ApiParams.nonce]: z.number().optional(),
|
|
25
|
-
[params.ApiParams.timestamp]: z.string(),
|
|
26
|
-
[params.ApiParams.signature]: z.object({
|
|
27
|
-
[params.ApiParams.provider]: SignatureTypesSchema,
|
|
28
|
-
[params.ApiParams.user]: SignatureTypesSchema
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
const ProcaptchaTokenCodec = scaleTs.Struct({
|
|
32
|
-
[params.ApiParams.commitmentId]: scaleTs.Option(scaleTs.str),
|
|
33
|
-
[params.ApiParams.providerUrl]: scaleTs.Option(scaleTs.str),
|
|
34
|
-
[params.ApiParams.dapp]: scaleTs.str,
|
|
35
|
-
[params.ApiParams.user]: scaleTs.str,
|
|
36
|
-
[params.ApiParams.challenge]: scaleTs.Option(scaleTs.str),
|
|
37
|
-
[params.ApiParams.nonce]: scaleTs.Option(scaleTs.u32),
|
|
38
|
-
[params.ApiParams.timestamp]: scaleTs.str,
|
|
39
|
-
[params.ApiParams.signature]: scaleTs.Struct({
|
|
40
|
-
[params.ApiParams.provider]: scaleTs.Struct({
|
|
41
|
-
[params.ApiParams.challenge]: scaleTs.Option(scaleTs.str),
|
|
42
|
-
[params.ApiParams.requestHash]: scaleTs.Option(scaleTs.str)
|
|
43
|
-
}),
|
|
44
|
-
[params.ApiParams.user]: scaleTs.Struct({
|
|
45
|
-
[params.ApiParams.timestamp]: scaleTs.Option(scaleTs.str),
|
|
46
|
-
[params.ApiParams.requestHash]: scaleTs.Option(scaleTs.str)
|
|
47
|
-
})
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
const ProcaptchaTokenSpec = z.string().startsWith("0x");
|
|
51
|
-
const encodeProcaptchaOutput = (procaptchaOutput) => {
|
|
52
|
-
return util.u8aToHex(ProcaptchaTokenCodec.enc({
|
|
53
|
-
[params.ApiParams.commitmentId]: void 0,
|
|
54
|
-
[params.ApiParams.providerUrl]: void 0,
|
|
55
|
-
[params.ApiParams.challenge]: void 0,
|
|
56
|
-
[params.ApiParams.nonce]: void 0,
|
|
57
|
-
...procaptchaOutput,
|
|
58
|
-
signature: {
|
|
59
|
-
provider: {
|
|
60
|
-
challenge: procaptchaOutput.signature.provider?.challenge || void 0,
|
|
61
|
-
requestHash: procaptchaOutput.signature.provider?.requestHash || void 0
|
|
62
|
-
},
|
|
63
|
-
user: {
|
|
64
|
-
timestamp: procaptchaOutput.signature.user?.timestamp || void 0,
|
|
65
|
-
requestHash: procaptchaOutput.signature.user?.requestHash || void 0
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}));
|
|
69
|
-
};
|
|
70
|
-
const decodeProcaptchaOutput = (procaptchaToken) => {
|
|
71
|
-
return ProcaptchaOutputSchema.parse(ProcaptchaTokenCodec.dec(util.hexToU8a(procaptchaToken)));
|
|
72
|
-
};
|
|
73
|
-
exports.ChallengeSignatureSchema = ChallengeSignatureSchema;
|
|
74
|
-
exports.ProcaptchaOutputSchema = ProcaptchaOutputSchema;
|
|
75
|
-
exports.ProcaptchaTokenCodec = ProcaptchaTokenCodec;
|
|
76
|
-
exports.ProcaptchaTokenSpec = ProcaptchaTokenSpec;
|
|
77
|
-
exports.RequestHashSignatureSchema = RequestHashSignatureSchema;
|
|
78
|
-
exports.SignatureTypesSchema = SignatureTypesSchema;
|
|
79
|
-
exports.decodeProcaptchaOutput = decodeProcaptchaOutput;
|
|
80
|
-
exports.encodeProcaptchaOutput = encodeProcaptchaOutput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
exports.FeaturesEnum = void 0;
|
|
4
|
-
(function(FeaturesEnum) {
|
|
5
|
-
FeaturesEnum["Image"] = "image";
|
|
6
|
-
FeaturesEnum["Pow"] = "pow";
|
|
7
|
-
FeaturesEnum["Frictionless"] = "frictionless";
|
|
8
|
-
})(exports.FeaturesEnum || (exports.FeaturesEnum = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|