nestia 4.0.3 → 4.0.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.
- package/README.md +98 -124
- package/bin/NestiaSetupWizard.js +2 -1
- package/bin/NestiaSetupWizard.js.map +1 -1
- package/bin/index.js +4 -3
- package/bin/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)
|
|
4
4
|
[](https://github.com/samchon/nestia/wiki)
|
|
5
5
|
|
|
6
|
-
Nestia is a helper
|
|
6
|
+
Nestia is a set of helper libraries for NestJS, supporting below features:
|
|
7
7
|
|
|
8
|
-
- [`@nestia/core`](#nestiacore): **15,000x times faster** validation
|
|
9
|
-
- [`@nestia/sdk`](#nestiasdk): evolved **SDK** and **Swagger**
|
|
8
|
+
- [`@nestia/core`](#nestiacore): **15,000x times faster** validation decorators
|
|
9
|
+
- [`@nestia/sdk`](#nestiasdk): evolved **SDK** and **Swagger** generators
|
|
10
|
+
- SDK (Software Development Kit)
|
|
11
|
+
- interaction library for client developers
|
|
12
|
+
- almost same with [tRPC](https://github.com/trpc/trpc)
|
|
10
13
|
- `nestia`: just CLI (command line interface) tool
|
|
11
14
|
|
|
12
|
-
%20Core(TM)%20i5-1135G7%20%40%202.40GHz#is)
|
|
15
|
+

|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
@@ -33,12 +34,15 @@ When you want to use `nestia` in orindary project, just type above command.
|
|
|
33
34
|
|
|
34
35
|
All installation and configuration processes would be automatically done.
|
|
35
36
|
|
|
36
|
-
Also, you can specify package manager
|
|
37
|
+
Also, you can specify package manager or target `tsconfig.json` file like below:
|
|
37
38
|
|
|
38
39
|
```bash
|
|
39
40
|
npx nestia setup --manager npm
|
|
40
41
|
npx nestia setup --manager pnpm
|
|
41
42
|
npx nestia setup --manager yarn
|
|
43
|
+
|
|
44
|
+
npx nestia setup --project tsconfig.json
|
|
45
|
+
npx nestia setup --project tsconfig.test.json
|
|
42
46
|
```
|
|
43
47
|
|
|
44
48
|
After the setup, you can compile `@nestia/core` utilization code by using `ttsc` ([`ttypescript`](https://github.com/cevek/ttypescript)) command. If you want to run your TypeScript file directly through `ts-node`, add `-C ttypescript` argument like below:
|
|
@@ -52,7 +56,7 @@ npx ts-node -C ttypescript src/index.ts
|
|
|
52
56
|
```
|
|
53
57
|
|
|
54
58
|
### Manual Setup
|
|
55
|
-
If you want to install and configure `nestia` manually, read [Guide Documents
|
|
59
|
+
If you want to install and configure `nestia` manually, read [Guide Documents -> Setup](https://github.com/samchon/nestia/wiki/Setup).
|
|
56
60
|
|
|
57
61
|
|
|
58
62
|
|
|
@@ -94,65 +98,20 @@ export class BbsArticlesController {
|
|
|
94
98
|
}
|
|
95
99
|
```
|
|
96
100
|
|
|
97
|
-
|
|
98
|
-
`TypedBody()` is a decorator function of `application/json` typed request body.
|
|
99
|
-
|
|
100
|
-
Also, it supports super-fast validation pipe, which is maximum **15,000x times faster** then `nest.Body()` function using `class-validator`.
|
|
101
|
-
|
|
102
|
-
### TypedRoute
|
|
103
|
-
`TypedRoute` is a set of decorator functions for `application/json` typed response body.
|
|
101
|
+
If you want to know more about this core library, visit [Guide Documents](https://github.com/samchon/nestia/wiki).
|
|
104
102
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
```typescript
|
|
119
|
-
export interface IBbsArticle {
|
|
120
|
-
/**
|
|
121
|
-
* @format uuid
|
|
122
|
-
*/
|
|
123
|
-
id: string;
|
|
124
|
-
|
|
125
|
-
writer: IBbsArticle.IWriter;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @minItems 1
|
|
129
|
-
*/
|
|
130
|
-
contents: IBbsArticle.IContent[];
|
|
131
|
-
}
|
|
132
|
-
export namespace IBbsArticle {
|
|
133
|
-
export interface IWriter {
|
|
134
|
-
/**
|
|
135
|
-
* @minLength 3
|
|
136
|
-
*/
|
|
137
|
-
name: string;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @format email
|
|
141
|
-
*/
|
|
142
|
-
email: string;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @pattern ^0[0-9]{7,16}
|
|
146
|
-
*/
|
|
147
|
-
mobile: string;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @minimum 18
|
|
151
|
-
*/
|
|
152
|
-
age: number;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
```
|
|
103
|
+
- Decorators
|
|
104
|
+
- [TypedRoute](https://github.com/samchon/nestia/wiki/Core-Library#typedroute)
|
|
105
|
+
- [TypedBody](https://github.com/samchon/nestia/wiki/Core-Library#typedbody)
|
|
106
|
+
- [TypedQuery](https://github.com/samchon/nestia/wiki/Core-Library#typedquery)
|
|
107
|
+
- [TypedParam](https://github.com/samchon/nestia/wiki/Core-Library#typedparam)
|
|
108
|
+
- Enhancements
|
|
109
|
+
- [Comment Tags](https://github.com/samchon/nestia/wiki/Core-Library#comment-tags)
|
|
110
|
+
- [Configuration](https://github.com/samchon/nestia/wiki/Core-Library#configuration)
|
|
111
|
+
- Advanced Usage
|
|
112
|
+
- [DynamicModule](https://github.com/samchon/nestia/wiki/Core-Library#dynamicmodule)
|
|
113
|
+
- [Encryption](https://github.com/samchon/nestia/wiki/Core-Library#encryption)
|
|
114
|
+
- [Inheritance](https://github.com/samchon/nestia/wiki/Core-Library#inheritance)
|
|
156
115
|
|
|
157
116
|
|
|
158
117
|
|
|
@@ -165,7 +124,7 @@ Automatic *SDK* and *Swagger* generator for [@nestia/core](#nestiacore).
|
|
|
165
124
|
|
|
166
125
|
With [@nestia/core](#nestiacore), you can boost up validation speed maximum **15,000x times faster**. However, as `@nestjs/swagger` does not support [@nestia/core](#nestiacore), you can't generate swagger documents from `@nestjs/swagger` more.
|
|
167
126
|
|
|
168
|
-
Instead, I provide you `@nestia/sdk` module, which can generate not only swagger documents, but also SDK (Software Development Kit) library.
|
|
127
|
+
Instead, I provide you `@nestia/sdk` module, which can generate not only swagger documents, but also SDK (Software Development Kit) library. The SDK library can be utilized by client developers and it is almost same with `tRPC`.
|
|
169
128
|
|
|
170
129
|
### Usage
|
|
171
130
|
```bash
|
|
@@ -177,71 +136,31 @@ npx nestia <sdk|swagger> <source_directories_or_patterns> \
|
|
|
177
136
|
# EXAMPLES
|
|
178
137
|
npx nestia sdk "src/**/*.controller.ts" --out "src/api"
|
|
179
138
|
npx nestia swagger "src/controllers" --out "dist/swagger.json"
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
You can generate sdk or swagger documents by above commands.
|
|
183
139
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
```bash
|
|
140
|
+
# ONLY WHEN "nestia.config.ts" FILE EXISTS
|
|
187
141
|
npx nestia sdk
|
|
188
142
|
npx nestia swagger
|
|
189
143
|
```
|
|
190
144
|
|
|
191
|
-
|
|
192
|
-
When you generate SDK library through `npx nestia sdk` command, `@nestia/sdk` will generate below code, by analyzing your backend source code in the compilation level.
|
|
193
|
-
|
|
194
|
-
```typescript
|
|
195
|
-
import { Fetcher, IConnection } from "@nestia/fetcher";
|
|
196
|
-
import { IBbsArticle } from "../../../structures/IBbsArticle";
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Store a new content.
|
|
200
|
-
*
|
|
201
|
-
* @param input Content to store
|
|
202
|
-
* @returns Newly archived article
|
|
203
|
-
*/
|
|
204
|
-
export function store(
|
|
205
|
-
connection: api.IConnection,
|
|
206
|
-
input: IBbsArticle.IStore
|
|
207
|
-
): Promise<IBbsArticle> {
|
|
208
|
-
return Fetcher.fetch(
|
|
209
|
-
connection,
|
|
210
|
-
store.ENCRYPTED,
|
|
211
|
-
store.METHOD,
|
|
212
|
-
store.path(),
|
|
213
|
-
input
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
export namespace store {
|
|
217
|
-
export const METHOD = "POST" as const;
|
|
218
|
-
export function path(): string {
|
|
219
|
-
return "/bbs/articles";
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
```
|
|
145
|
+
You can generate sdk or swagger documents by above commands.
|
|
223
146
|
|
|
224
|
-
|
|
147
|
+
If you want to know more, visit [Guide Documents](https://github.com/samchon/nestia/wiki).
|
|
225
148
|
|
|
226
|
-
|
|
149
|
+
- Generators
|
|
150
|
+
- [Swagger Documents](https://github.com/samchon/nestia/wiki/SDK-Generator#swagger-documents)
|
|
151
|
+
- [SDK Library](https://github.com/samchon/nestia/wiki/SDK-Generator#sdk-library)
|
|
152
|
+
- Advanced Usage
|
|
153
|
+
- [Comment Tags](https://github.com/samchon/nestia/wiki/SDK-Generator#comment-tags)
|
|
154
|
+
- [Configuration](https://github.com/samchon/nestia/wiki/SDK-Generator#configuration)
|
|
227
155
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
import typia from "typia";
|
|
156
|
+
### Demonstration
|
|
157
|
+
Here is example projects building Swagger Documents and SDK Library with `npx nestia swagger` and `npx nestia sdk` comands. `@nestia/sdk` generates those documents and libraries by analyzing your NestJS backend server code in the compilation level.
|
|
231
158
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
title: "some title",
|
|
238
|
-
content: "some content",
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
typia.assert(article);
|
|
242
|
-
console.log(article);
|
|
243
|
-
}
|
|
244
|
-
```
|
|
159
|
+
Project | Controller | SDK | Swagger
|
|
160
|
+
--------|------------|-----|---------
|
|
161
|
+
`npx nestia start` | [`BbsArticlesController`](https://github.com/samchon/nestia-template/blob/master/src/controllers/BbsArticlesController.ts) | [Functions](https://github.com/samchon/nestia-template/blob/master/src/api/functional/bbs/articles/index.ts) | [Editor](https://editor.swagger.io/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsamchon%2Fnestia-template%2Fmaster%2Fdist%2Fswagger.json)
|
|
162
|
+
[fake-iamport](https://github.com/samchon/fake-iamport-server) | [`IamportCertificationsController`](https://github.com/samchon/fake-iamport-server/blob/master/src/controllers/FakeIamportCertificationsController.ts) | [Functions](https://github.com/samchon/fake-iamport-server/blob/master/src/api/functional/certifications/index.ts) | [Editor](https://editor.swagger.io/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsamchon%2Ffake-iamport-server%2Fmaster%2Fdist%2Fswagger.json)
|
|
163
|
+
[fake-toss-payments](https://github.com/samchon/fake-toss-payments-server) | [`TossPaymentsController`](https://github.com/samchon/fake-toss-payments-server/blob/master/src/controllers/FakeTossPaymentsController.ts) | [Functions](https://github.com/samchon/fake-toss-payments-server/blob/master/src/api/functional/v1/payments/index.ts) | [Editor](https://editor.swagger.io/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsamchon%2Ffake-toss-payments-server%2Fmaster%2Fdist%2Fswagger.json)
|
|
245
164
|
|
|
246
165
|
|
|
247
166
|
|
|
@@ -285,4 +204,59 @@ export function assertStringify<T>(input: T): string; // safe and faster
|
|
|
285
204
|
|
|
286
205
|
All functions in `typia` require **only one line**. You don't need any extra dedication like JSON schema definitions or decorator function calls. Just call `typia` function with only one line like `typia.assert<T>(input)`.
|
|
287
206
|
|
|
288
|
-
Also, as `typia` performs AOT (Ahead of Time) compilation skill, its performance is much faster than other competitive libaries. For an example, when comparing validate function `is()` with other competitive libraries, `typia` is maximum **15,000x times faster** than `class-validator`.
|
|
207
|
+
Also, as `typia` performs AOT (Ahead of Time) compilation skill, its performance is much faster than other competitive libaries. For an example, when comparing validate function `is()` with other competitive libraries, `typia` is maximum **15,000x times faster** than `class-validator`.
|
|
208
|
+
|
|
209
|
+
### Reactia
|
|
210
|
+
> https://github.com/samchon/reactia
|
|
211
|
+
>
|
|
212
|
+
> Not published yet, but soon
|
|
213
|
+
|
|
214
|
+
[](https://github.com/samchon/reactia/blob/master/LICENSE)
|
|
215
|
+
[](https://github.com/samchon/reactia/actions?query=workflow%3Abuild)
|
|
216
|
+
[](https://github.com/samchon/reactia/wiki)
|
|
217
|
+
|
|
218
|
+
Reactia is an automatic React components generator, just by analyzing TypeScript type.
|
|
219
|
+
|
|
220
|
+
- `@reactia/core`: Core Library analyzing TypeScript type
|
|
221
|
+
- `@reactia/mui`: Material UI Theme for `core` and `nest`
|
|
222
|
+
- `@reactia/nest`: Automatic Frontend Application Builder for `NestJS`
|
|
223
|
+
<!-- - `reactia`: Just CLI tool -->
|
|
224
|
+
|
|
225
|
+

|
|
226
|
+
|
|
227
|
+
When you want to automate an individual component, just use `@reactia/core`.
|
|
228
|
+
|
|
229
|
+
```tsx
|
|
230
|
+
import ReactDOM from "react-dom";
|
|
231
|
+
|
|
232
|
+
import typia from "typia";
|
|
233
|
+
import { ReactiaComponent } from "@reactia/core";
|
|
234
|
+
import { MuiInputTheme } from "@reactia/mui";
|
|
235
|
+
|
|
236
|
+
const RequestInput = ReactiaComponent<IRequestDto>(MuiInputTheme());
|
|
237
|
+
const input: IRequestDto = { ... };
|
|
238
|
+
|
|
239
|
+
ReactDOM.render(
|
|
240
|
+
<RequestInput input={input} />,
|
|
241
|
+
document.body
|
|
242
|
+
);
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Otherwise, you can fully automate frontend application development through `@reactia/nest`.
|
|
246
|
+
|
|
247
|
+
```tsx
|
|
248
|
+
import React from "react";
|
|
249
|
+
import ReactDOM from "react-dom";
|
|
250
|
+
|
|
251
|
+
import { ISwagger } "@nestia/swagger";
|
|
252
|
+
import { MuiApplicationTheme } from "@reactia/mui";
|
|
253
|
+
import { ReactiaApplication } from "@reactia/nest";
|
|
254
|
+
|
|
255
|
+
const swagger: ISwagger = await import("./swagger.json");
|
|
256
|
+
const App: React.FC = ReactiaApplication(MuiApplicationTheme())(swagger);
|
|
257
|
+
|
|
258
|
+
ReactDOM.render(
|
|
259
|
+
<App />,
|
|
260
|
+
document.body
|
|
261
|
+
);
|
|
262
|
+
```
|
package/bin/NestiaSetupWizard.js
CHANGED
|
@@ -61,7 +61,8 @@ var NestiaSetupWizard;
|
|
|
61
61
|
halt(() => { })("make package.json file or move to it.");
|
|
62
62
|
const pack = JSON.parse(yield fs_1.default.promises.readFile("package.json", "utf8"));
|
|
63
63
|
add(args.manager)(pack)("@nestia/core", false);
|
|
64
|
-
add(args.manager)(pack)("@nestia/sdk",
|
|
64
|
+
add(args.manager)(pack)("@nestia/sdk", true);
|
|
65
|
+
add(args.manager)(pack)("nestia", true);
|
|
65
66
|
const modulo = yield (_a = process.cwd() +
|
|
66
67
|
"/node_modules/@nestia/core/lib/executable/internal/CoreSetupWizard", Promise.resolve().then(() => __importStar(require(_a))));
|
|
67
68
|
return modulo.CoreSetupWizard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaSetupWizard.js","sourceRoot":"","sources":["../src/NestiaSetupWizard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAA+B;AAC/B,4CAAoB;AAEpB,IAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"NestiaSetupWizard.js","sourceRoot":"","sources":["../src/NestiaSetupWizard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAA+B;AAC/B,4CAAoB;AAEpB,IAAiB,iBAAiB,CAkCjC;AAlCD,WAAiB,iBAAiB;IAM9B,SAAsB,WAAW,CAAC,IAAgB;;YAC9C,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;YACnC,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;KAAA;IAHqB,6BAAW,cAGhC,CAAA;IAED,SAAsB,OAAO,CAAC,IAAgB;;YAC1C,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,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CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC/D,YAAE,CAAC,UAAU,CAAC,eAAe,GAAG,MAAM,CAAC,CAAC;IAC5C,MAAM,MAAM,GACR,OAAO,KAAK,MAAM;QACd,CAAC,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QAC9B,CAAC,CAAC,WAAW,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACzD,IAAI,MAAM,KAAK,KAAK;QAAE,OAAO,CAAC,GAAG,OAAO,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC,CAAC;AACpE,CAAC,CAAC;AAEN,MAAM,IAAI,GACN,CAAC,MAAiB,EAAE,EAAE,CACtB,CAAC,IAAY,EAAS,EAAE;IACpB,MAAM,EAAE,CAAC;IACT,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC,CAAC;AAEN,SAAS,OAAO,CAAC,OAAe;IAC5B,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACrB,uBAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAC/C,CAAC"}
|
package/bin/index.js
CHANGED
|
@@ -86,6 +86,7 @@ function setup() {
|
|
|
86
86
|
}
|
|
87
87
|
function main() {
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
var _a, _b;
|
|
89
90
|
const type = process.argv[2];
|
|
90
91
|
const argv = process.argv.slice(3);
|
|
91
92
|
if (type === "start")
|
|
@@ -97,12 +98,12 @@ function main() {
|
|
|
97
98
|
type === "sdk" ||
|
|
98
99
|
type === "swagger") {
|
|
99
100
|
try {
|
|
100
|
-
yield Promise.resolve().then(() => __importStar(require(
|
|
101
|
+
yield (_a = process.cwd() + "/node_modules/@nestia/sdk", Promise.resolve().then(() => __importStar(require(_a))));
|
|
101
102
|
}
|
|
102
|
-
catch (
|
|
103
|
+
catch (_c) {
|
|
103
104
|
halt(`@nestia/sdk has not been installed. Run "npx nestia setup" before.`);
|
|
104
105
|
}
|
|
105
|
-
yield
|
|
106
|
+
yield (_b = process.cwd() + "/node_modules/@nestia/sdk/lib/executable/sdk", Promise.resolve().then(() => __importStar(require(_b))));
|
|
106
107
|
}
|
|
107
108
|
else
|
|
108
109
|
halt(USAGE);
|
package/bin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,mDAAgD;AAChD,2DAAwD;AACxD,mDAAgD;AAEhD,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Bb,CAAC;AAEF,SAAS,IAAI,CAAC,IAAY;IACtB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;AAED,SAAe,KAAK;;;QAChB,MAAM,OAAO,GAA2B,6BAAa,CAAC,KAAK,CACvD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACxB,CAAC;QACF,MAAM,OAAO,GAAW,MAAA,OAAO,CAAC,OAAO,mCAAI,KAAK,CAAC;QACjD,MAAM,QAAQ,GAAW,MAAA,OAAO,CAAC,QAAQ,mCAAI,aAAa,CAAC;QAC3D,MAAM,OAAO,GAAW,MAAA,OAAO,CAAC,OAAO,mCAAI,eAAe,CAAC;QAE3D,IACI,CAAC,QAAQ,KAAK,aAAa,IAAI,QAAQ,KAAK,UAAU,CAAC;YACvD,CAAC,OAAO,KAAK,KAAK,IAAI,OAAO,KAAK,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC;YAE/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