@adapt-toolkit/sdk-native 0.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/adapt_js.cc +915 -0
- package/adapt_js.h +128 -0
- package/addon.cc +11 -0
- package/binding.gyp +67 -0
- package/dist/adapt.d.ts +135 -0
- package/dist/adapt.d.ts.map +1 -0
- package/dist/adapt.js +371 -0
- package/dist/adapt.js.map +1 -0
- package/dist/addon_types.d.ts +63 -0
- package/dist/addon_types.d.ts.map +1 -0
- package/dist/addon_types.js +2 -0
- package/dist/addon_types.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/package.json +43 -0
package/adapt_js.h
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
#ifndef MYOBJECT_H
|
|
2
|
+
#define MYOBJECT_H
|
|
3
|
+
|
|
4
|
+
#include <napi.h>
|
|
5
|
+
|
|
6
|
+
#include "../../src/eval/adapt_wrap.h"
|
|
7
|
+
|
|
8
|
+
class AdaptEvaluationUnit : public Napi::ObjectWrap<AdaptEvaluationUnit>
|
|
9
|
+
{
|
|
10
|
+
friend class AdaptEnvironment;
|
|
11
|
+
|
|
12
|
+
public:
|
|
13
|
+
static Napi::Object Init( Napi::Env env, Napi::Object exports );
|
|
14
|
+
static Napi::Object NewInstance( Napi::Env env, Napi::Value arg );
|
|
15
|
+
static Napi::FunctionReference* constructor;
|
|
16
|
+
AdaptEvaluationUnit( const Napi::CallbackInfo& info );
|
|
17
|
+
static Napi::Value LoadFromFile( const Napi::CallbackInfo& info );
|
|
18
|
+
static Napi::Value LoadFromContents( const Napi::CallbackInfo& info );
|
|
19
|
+
Napi::Value Clone( const Napi::CallbackInfo& info );
|
|
20
|
+
|
|
21
|
+
private:
|
|
22
|
+
Napi::Value Destroy( const Napi::CallbackInfo& info );
|
|
23
|
+
|
|
24
|
+
AW_EvaluationUnit m_unit;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
class AdaptEnvironment : public Napi::ObjectWrap<AdaptEnvironment>
|
|
28
|
+
{
|
|
29
|
+
public:
|
|
30
|
+
static Napi::Object Init( Napi::Env env, Napi::Object exports );
|
|
31
|
+
static Napi::Value EmptyPacket( const Napi::CallbackInfo& info );
|
|
32
|
+
static Napi::Value CreatePacket( const Napi::CallbackInfo& info );
|
|
33
|
+
static Napi::Value InitializeEnvironment( const Napi::CallbackInfo& info );
|
|
34
|
+
static Napi::Value IsAdaptValue( const Napi::CallbackInfo& info );
|
|
35
|
+
static Napi::Value IsAdaptPacket( const Napi::CallbackInfo& info );
|
|
36
|
+
static Napi::Value IsAdaptEvaluationUnit( const Napi::CallbackInfo& info );
|
|
37
|
+
static Napi::Value SystemTime( const Napi::CallbackInfo& info );
|
|
38
|
+
static Napi::Value ParseTime( const Napi::CallbackInfo& info );
|
|
39
|
+
static Napi::Value GetRandomBytes( const Napi::CallbackInfo& info );
|
|
40
|
+
static Napi::Value GetStdoutContents( const Napi::CallbackInfo& info );
|
|
41
|
+
static Napi::Value GetStderrContents( const Napi::CallbackInfo& info );
|
|
42
|
+
|
|
43
|
+
private:
|
|
44
|
+
static bool initialized;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
class AdaptPacketContext : public Napi::ObjectWrap<AdaptPacketContext>
|
|
48
|
+
{
|
|
49
|
+
friend class AdaptEnvironment;
|
|
50
|
+
friend class AdaptValue;
|
|
51
|
+
|
|
52
|
+
public:
|
|
53
|
+
static Napi::Object Init( Napi::Env env, Napi::Object exports );
|
|
54
|
+
static Napi::Object NewInstance( Napi::Env env, Napi::Value arg );
|
|
55
|
+
static Napi::FunctionReference* constructor;
|
|
56
|
+
static Napi::Value LoadFromFile( const Napi::CallbackInfo& info );
|
|
57
|
+
static Napi::Value LoadFromContents( const Napi::CallbackInfo& info );
|
|
58
|
+
|
|
59
|
+
AdaptPacketContext( const Napi::CallbackInfo& info );
|
|
60
|
+
|
|
61
|
+
private:
|
|
62
|
+
Napi::Value Destroy( const Napi::CallbackInfo& info );
|
|
63
|
+
Napi::Value ParseValue( const Napi::CallbackInfo& info );
|
|
64
|
+
Napi::Value ParseValueFromJSON( const Napi::CallbackInfo& info );
|
|
65
|
+
Napi::Value CreateDictionary( const Napi::CallbackInfo& info );
|
|
66
|
+
Napi::Value NewBinaryFromHex( const Napi::CallbackInfo& info );
|
|
67
|
+
Napi::Value NewBinaryFromBuffer( const Napi::CallbackInfo& info );
|
|
68
|
+
Napi::Value ExecuteTransaction( const Napi::CallbackInfo& info );
|
|
69
|
+
Napi::Value ExecuteFunction( const Napi::CallbackInfo& info );
|
|
70
|
+
Napi::Value GetHash( const Napi::CallbackInfo& info );
|
|
71
|
+
Napi::Value GetContainerID( const Napi::CallbackInfo& info );
|
|
72
|
+
Napi::Value GetCodeID( const Napi::CallbackInfo& info );
|
|
73
|
+
Napi::Value Serialize( const Napi::CallbackInfo& info );
|
|
74
|
+
Napi::Value Clone( const Napi::CallbackInfo& info );
|
|
75
|
+
Napi::Value TransactionsList( const Napi::CallbackInfo& info );
|
|
76
|
+
Napi::Value NilObject( const Napi::CallbackInfo& info );
|
|
77
|
+
/*
|
|
78
|
+
Napi::Value NewString( const Napi::CallbackInfo& info );
|
|
79
|
+
Napi::Value NewNumber( const Napi::CallbackInfo& info );
|
|
80
|
+
Napi::Value NewBinaryBase64( const Napi::CallbackInfo& info );
|
|
81
|
+
Napi::Value Nil( const Napi::CallbackInfo& info );
|
|
82
|
+
Napi::Value True( const Napi::CallbackInfo& info );
|
|
83
|
+
Napi::Value EmptyDictionary( const Napi::CallbackInfo& info );
|
|
84
|
+
Napi::Value Pair( const Napi::CallbackInfo& info );
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
AW_PacketContext m_packet;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
class AdaptValue : public Napi::ObjectWrap<AdaptValue>
|
|
91
|
+
{
|
|
92
|
+
friend class AdaptPacketContext;
|
|
93
|
+
friend class AdaptEnvironment;
|
|
94
|
+
|
|
95
|
+
public:
|
|
96
|
+
// static Napi::Object Init( Napi::Env env, Napi::Object exports );
|
|
97
|
+
AdaptValue( const Napi::CallbackInfo& info );
|
|
98
|
+
static Napi::Object Init( Napi::Env env, Napi::Object exports );
|
|
99
|
+
static Napi::Object NewInstance( Napi::Env env, Napi::Value arg );
|
|
100
|
+
static Napi::FunctionReference* constructor;
|
|
101
|
+
|
|
102
|
+
private:
|
|
103
|
+
Napi::Value Destroy( const Napi::CallbackInfo& info );
|
|
104
|
+
Napi::Value Clone( const Napi::CallbackInfo& info );
|
|
105
|
+
Napi::Value Visualize( const Napi::CallbackInfo& info );
|
|
106
|
+
Napi::Value Serialize( const Napi::CallbackInfo& info );
|
|
107
|
+
Napi::Value GetHash( const Napi::CallbackInfo& info );
|
|
108
|
+
Napi::Value Reduce( const Napi::CallbackInfo& info );
|
|
109
|
+
Napi::Value Mutate( const Napi::CallbackInfo& info );
|
|
110
|
+
Napi::Value GetPacket( const Napi::CallbackInfo& info );
|
|
111
|
+
Napi::Value GetNumber( const Napi::CallbackInfo& info );
|
|
112
|
+
Napi::Value GetBoolean( const Napi::CallbackInfo& info );
|
|
113
|
+
Napi::Value GetBinary( const Napi::CallbackInfo& info );
|
|
114
|
+
Napi::Value IsNil( const Napi::CallbackInfo& info );
|
|
115
|
+
Napi::Value Equals( const Napi::CallbackInfo& info );
|
|
116
|
+
Napi::Value Less( const Napi::CallbackInfo& info );
|
|
117
|
+
Napi::Value GetKeys( const Napi::CallbackInfo& info );
|
|
118
|
+
/*
|
|
119
|
+
Napi::Value Combine( const Napi::CallbackInfo& info );
|
|
120
|
+
Napi::Value Append( const Napi::CallbackInfo& info );
|
|
121
|
+
Napi::Value GetString( const Napi::CallbackInfo& info );
|
|
122
|
+
Napi::Value GetBinaryHex( const Napi::CallbackInfo& info );
|
|
123
|
+
Napi::Value GetBinaryBase64( const Napi::CallbackInfo& info );
|
|
124
|
+
*/
|
|
125
|
+
AW_Value m_value;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
#endif
|
package/addon.cc
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#include <napi.h>
|
|
2
|
+
#include "adapt_js.h"
|
|
3
|
+
|
|
4
|
+
Napi::Object InitAll(Napi::Env env, Napi::Object exports) {
|
|
5
|
+
exports = AdaptEvaluationUnit::Init( env, exports );
|
|
6
|
+
exports = AdaptEnvironment::Init( env, exports );
|
|
7
|
+
exports = AdaptPacketContext::Init(env, exports);
|
|
8
|
+
return AdaptValue::Init( env, exports );
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
NODE_API_MODULE(adapt_js, InitAll)
|
package/binding.gyp
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
'variables': {
|
|
3
|
+
'nitro%': ''
|
|
4
|
+
},
|
|
5
|
+
"targets": [
|
|
6
|
+
{
|
|
7
|
+
"target_name": "adapt_js",
|
|
8
|
+
"cflags!": [ '-fno-exceptions' ],
|
|
9
|
+
"cflags_cc!": [ '-fno-exceptions' ],
|
|
10
|
+
"cflags_cc": [ '-std=c++17' ],
|
|
11
|
+
"xcode_settings": {
|
|
12
|
+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
|
13
|
+
'CLANG_CXX_LIBRARY': 'libc++',
|
|
14
|
+
'MACOSX_DEPLOYMENT_TARGET': '10.13',
|
|
15
|
+
},
|
|
16
|
+
"msvs_settings": {
|
|
17
|
+
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
|
|
18
|
+
},
|
|
19
|
+
"sources": [ "addon.cc", "adapt_js.cc" ],
|
|
20
|
+
'conditions': [
|
|
21
|
+
['"<(nitro)"!=""', {
|
|
22
|
+
"libraries": [
|
|
23
|
+
"<(module_root_dir)/../../install/linux/libadapt.a",
|
|
24
|
+
"<(module_root_dir)/../../install/linux/libsodium/lib/libsodium.a",
|
|
25
|
+
"<(module_root_dir)/../../install/linux/nitroattest/lib/libnitroattest.a",
|
|
26
|
+
"<(module_root_dir)/../../install/linux/wolfssl/lib/libwolfssl.a",
|
|
27
|
+
"<(module_root_dir)/../../install/linux/utf8proc/lib/libutf8proc.a",
|
|
28
|
+
"<(module_root_dir)/../../install/linux/gmp/lib/libgmp.a",
|
|
29
|
+
"-laws-nitro-enclaves-sdk-c", "-laws-c-auth",
|
|
30
|
+
"-laws-c-http",
|
|
31
|
+
"-laws-c-io",
|
|
32
|
+
"-ls2n -laws-c-cal",
|
|
33
|
+
"-laws-c-compression",
|
|
34
|
+
"-lnsm",
|
|
35
|
+
"-laws-c-common",
|
|
36
|
+
"-lpthread"
|
|
37
|
+
]
|
|
38
|
+
}],
|
|
39
|
+
['OS=="linux"', {
|
|
40
|
+
"libraries": [
|
|
41
|
+
"<(module_root_dir)/../../install/linux/libadapt.a",
|
|
42
|
+
"<(module_root_dir)/../../install/linux/libsodium/lib/libsodium.a",
|
|
43
|
+
"<(module_root_dir)/../../install/linux/nitroattest/lib/libnitroattest.a",
|
|
44
|
+
"<(module_root_dir)/../../install/linux/wolfssl/lib/libwolfssl.a",
|
|
45
|
+
"<(module_root_dir)/../../install/linux/utf8proc/lib/libutf8proc.a",
|
|
46
|
+
"<(module_root_dir)/../../install/linux/gmp/lib/libgmp.a"
|
|
47
|
+
]
|
|
48
|
+
}],
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
['OS=="mac"', {
|
|
52
|
+
"libraries": [
|
|
53
|
+
"<(module_root_dir)/../../install/darwin/libadapt.a",
|
|
54
|
+
"<(module_root_dir)/../../install/darwin/libsodium/lib/libsodium.a",
|
|
55
|
+
"<(module_root_dir)/../../install/darwin/nitroattest/lib/libnitroattest.a",
|
|
56
|
+
"<(module_root_dir)/../../install/darwin/wolfssl/lib/libwolfssl.a",
|
|
57
|
+
"<(module_root_dir)/../../install/darwin/utf8proc/lib/libutf8proc.a",
|
|
58
|
+
"<(module_root_dir)/../../install/darwin/gmp/lib/libgmp.a"
|
|
59
|
+
]
|
|
60
|
+
}]
|
|
61
|
+
],
|
|
62
|
+
"include_dirs": [
|
|
63
|
+
"<!@(node -p \"require('node-addon-api').include\")"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
package/dist/adapt.d.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as addon from './addon_types.js';
|
|
2
|
+
import { AdaptObject, AdaptObjectLifetime, Destroyable, nm_AdaptValue, nm_AdaptPacketContext, AddonTypesConstraints } from '@adapt-toolkit/sdk/common';
|
|
3
|
+
export { AdaptObject, AdaptObjectLifetime } from '@adapt-toolkit/sdk/common';
|
|
4
|
+
export declare type Convertible = addon.Convertible;
|
|
5
|
+
export declare type AdaptValueOrConvertible = AdaptValue | Convertible;
|
|
6
|
+
declare const AddonTypes: AddonTypesConstraints;
|
|
7
|
+
export declare class AdaptEnvironment {
|
|
8
|
+
/** @ignore */
|
|
9
|
+
static adapt: addon.AdaptEnvironment | undefined;
|
|
10
|
+
/** @ignore */
|
|
11
|
+
constructor();
|
|
12
|
+
static DetermineEnvironment: () => "nitro" | "native";
|
|
13
|
+
/**
|
|
14
|
+
* Asynchronously initialise ADAPT in either test or release mode.
|
|
15
|
+
*
|
|
16
|
+
* @param test_mode true to initialise in test mode
|
|
17
|
+
*/
|
|
18
|
+
static InitializeAsync: (test_mode: boolean) => Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Synchronously initialise ADAPT.
|
|
21
|
+
*
|
|
22
|
+
* @returns true if initialisation succeeded
|
|
23
|
+
*/
|
|
24
|
+
static Initialize(test_mode: boolean): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Throw if ADAPT has not been initialised.
|
|
27
|
+
*/
|
|
28
|
+
static Check(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Create an empty packet that does not carry compiled MUFL code.
|
|
31
|
+
*
|
|
32
|
+
* @param lt lifetime; if undefined, caller is responsible for Destroy()
|
|
33
|
+
* @param secure if true, in-packet primitive calls are forbidden
|
|
34
|
+
*/
|
|
35
|
+
static EmptyPacket(lt: AdaptObjectLifetime | undefined, secure: boolean): AdaptPacketContext;
|
|
36
|
+
/**
|
|
37
|
+
* Create an ADAPT packet from a loaded MUFL evaluation unit.
|
|
38
|
+
*/
|
|
39
|
+
static CreatePacket(lt: AdaptObjectLifetime | undefined, unit: AdaptEvaluationUnit, seed_phrase: string, entropy: string, secure: boolean, init_arg?: AdaptValue): AdaptPacketContext;
|
|
40
|
+
/**
|
|
41
|
+
* AdaptValue of domain TIME representing the current system time.
|
|
42
|
+
*/
|
|
43
|
+
static SystemTime(lt: AdaptObjectLifetime | undefined): AdaptValue;
|
|
44
|
+
/**
|
|
45
|
+
* Parse a timestamp formatted as `YYYY-MM-DD hh:mm:ss[.nnnnnnnnn] (UTC[+x])`.
|
|
46
|
+
*/
|
|
47
|
+
static ParseTime(lt: AdaptObjectLifetime | undefined, time: string): AdaptValue;
|
|
48
|
+
/**
|
|
49
|
+
* Cryptographically secure random bytes as an AdaptValue of domain BINARY.
|
|
50
|
+
*/
|
|
51
|
+
static GetRandomBytes(lt: AdaptObjectLifetime | undefined, length: number): AdaptValue;
|
|
52
|
+
/**
|
|
53
|
+
* Drain the ADAPT-internal stdout buffer and return its contents.
|
|
54
|
+
*/
|
|
55
|
+
static getStdoutContents(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Drain the ADAPT-internal stderr buffer and return its contents.
|
|
58
|
+
*/
|
|
59
|
+
static getStderrContents(): string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A compiled MUFL application loaded from a `.muflo` binary file or buffer.
|
|
63
|
+
* Same memory-management contract as {@link AdaptPacketContext} and {@link AdaptValue}.
|
|
64
|
+
*/
|
|
65
|
+
export declare class AdaptEvaluationUnit extends AdaptObject {
|
|
66
|
+
/** @ignore */
|
|
67
|
+
unit: addon.AdaptEvaluationUnit;
|
|
68
|
+
/** @ignore */
|
|
69
|
+
constructor(lt: AdaptObjectLifetime | undefined, unit: addon.AdaptEvaluationUnit);
|
|
70
|
+
/** @ignore */
|
|
71
|
+
protected ManagedObjects(): Destroyable[];
|
|
72
|
+
Clone(lifetime?: AdaptObjectLifetime): this;
|
|
73
|
+
/**
|
|
74
|
+
* Load a compiled MUFL application from a `.muflo` file.
|
|
75
|
+
*/
|
|
76
|
+
static LoadFromFile: (lt: AdaptObjectLifetime | undefined, fileName: string) => AdaptEvaluationUnit;
|
|
77
|
+
/**
|
|
78
|
+
* Load a compiled MUFL application from raw binary contents.
|
|
79
|
+
*/
|
|
80
|
+
static LoadFromContents: (lt: AdaptObjectLifetime | undefined, contents: Uint8Array) => AdaptEvaluationUnit;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Wraps a MUFL value. Values must be destroyed via {@link AdaptValue.Destroy}
|
|
84
|
+
* or attached to an {@link AdaptObjectLifetime} that owns their cleanup.
|
|
85
|
+
*/
|
|
86
|
+
export declare class AdaptValue extends AdaptObject implements nm_AdaptValue.I_AdaptValue<typeof AddonTypes> {
|
|
87
|
+
/** @ignore */
|
|
88
|
+
value: addon.AdaptValue;
|
|
89
|
+
constructor(lt: AdaptObjectLifetime | undefined, from: AdaptValueOrConvertible | addon.AdaptValue);
|
|
90
|
+
/** @ignore */
|
|
91
|
+
protected ManagedObjects(): Destroyable[];
|
|
92
|
+
Visualize(): string;
|
|
93
|
+
Serialize(): Uint8Array;
|
|
94
|
+
GetHash(): AdaptValue;
|
|
95
|
+
Reduce(reducer: AdaptValueOrConvertible): AdaptValue;
|
|
96
|
+
Mutate(reducer: AdaptValueOrConvertible, product: AdaptValueOrConvertible): AdaptValue;
|
|
97
|
+
GetPacket(): AdaptPacketContext;
|
|
98
|
+
GetNumber(): number;
|
|
99
|
+
GetBoolean(): boolean;
|
|
100
|
+
GetBinary(): Uint8Array;
|
|
101
|
+
IsNil(): boolean;
|
|
102
|
+
Equals(rhs: AdaptValueOrConvertible): boolean;
|
|
103
|
+
Less(rhs: AdaptValueOrConvertible): boolean;
|
|
104
|
+
Clone(lifetime?: AdaptObjectLifetime): this;
|
|
105
|
+
GetKeys(): Array<AdaptValue>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The ADAPT packet context — a MUFL packet wrapped for use from TypeScript.
|
|
109
|
+
*/
|
|
110
|
+
export declare class AdaptPacketContext extends AdaptObject implements nm_AdaptPacketContext.I_AdaptPacketContext<typeof AddonTypes> {
|
|
111
|
+
/** @ignore */
|
|
112
|
+
packet: addon.AdaptPacketContext;
|
|
113
|
+
/** @ignore */
|
|
114
|
+
constructor(lt: AdaptObjectLifetime | undefined, from: addon.AdaptPacketContext);
|
|
115
|
+
/** @ignore */
|
|
116
|
+
protected ManagedObjects(): Destroyable[];
|
|
117
|
+
static LoadFromFile(lifetime: AdaptObjectLifetime | undefined, path: string): AdaptPacketContext;
|
|
118
|
+
static LoadFromContents(lifetime: AdaptObjectLifetime | undefined, contents: Uint8Array): AdaptPacketContext;
|
|
119
|
+
Clone(lifetime?: AdaptObjectLifetime): this;
|
|
120
|
+
ParseValue(value: Uint8Array): AdaptValue;
|
|
121
|
+
ParseValueFromJSON(json: string): AdaptValue;
|
|
122
|
+
CreateDictionary(): AdaptValue;
|
|
123
|
+
NewBinaryFromHex(hex: string): AdaptValue;
|
|
124
|
+
NewBinaryFromBuffer(buffer: Uint8Array): AdaptValue;
|
|
125
|
+
ExecuteTransaction(envelope: AdaptValue | addon.Convertible, entropy_hex?: string, timestamp?: AdaptValue | addon.Convertible): AdaptValue;
|
|
126
|
+
ExecuteFunction(func_name: string, args?: AdaptValueOrConvertible[] | AdaptValueOrConvertible): AdaptValue;
|
|
127
|
+
GetHash(): AdaptValue;
|
|
128
|
+
GetContainerID(): AdaptValue;
|
|
129
|
+
GetCodeID(): AdaptValue;
|
|
130
|
+
Serialize(): Uint8Array;
|
|
131
|
+
SaveToFile(_path: string): void;
|
|
132
|
+
TransactionsList(): Array<string>;
|
|
133
|
+
Nil(): AdaptValue;
|
|
134
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