@coinbase/cdp-api-client 0.0.54 → 0.0.56
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/esm/index.js +167 -163
- package/dist/esm/index10.js +7 -0
- package/dist/esm/index11.js +50 -0
- package/dist/esm/index12.js +41 -0
- package/dist/esm/index13.js +4 -0
- package/dist/esm/index14.js +72 -0
- package/dist/esm/index15.js +37 -0
- package/dist/esm/index16.js +23 -0
- package/dist/esm/index17.js +10 -0
- package/dist/esm/index18.js +4 -0
- package/dist/esm/index19.js +380 -0
- package/dist/esm/index2.js +58 -237
- package/dist/esm/index20.js +835 -0
- package/dist/esm/index21.js +4 -0
- package/dist/esm/index22.js +4 -0
- package/dist/esm/index23.js +4 -0
- package/dist/esm/index24.js +6 -0
- package/dist/esm/index3.js +2 -683
- package/dist/esm/index4.js +2 -177
- package/dist/esm/index5.js +237 -74
- package/dist/esm/index6.js +682 -2
- package/dist/esm/index7.js +179 -0
- package/dist/esm/index8.js +76 -0
- package/dist/esm/index9.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,165 +1,169 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Analytics as e } from "./index2.js";
|
|
2
|
+
import "./index3.js";
|
|
3
|
+
import { VERSION as t } from "./index4.js";
|
|
4
|
+
import { createEndUserEvmAccount as s, createEndUserEvmSmartAccount as p, createEndUserSolanaAccount as c, createSpendPermissionWithEndUserAccount as d, exportEndUserEvmAccount as m, exportEndUserSolanaAccount as u, getAuthenticatedEndUser as y, getUserOperationWithEndUserAccount as l, initiateAuthentication as T, listSpendPermissionsWithEndUserAccount as S, logOutEndUser as E, refreshAccessToken as A, registerTemporaryWalletSecret as C, revokeSpendPermissionWithEndUserAccount as h, sendEvmTransactionWithEndUserAccount as O, sendSolanaTransactionWithEndUserAccount as v, sendUserOperationWithEndUserAccount as g, signEvmHashWithEndUserAccount as R, signEvmMessageWithEndUserAccount as P, signEvmTransactionWithEndUserAccount as k, signEvmTypedDataWithEndUserAccount as U, signSolanaHashWithEndUserAccount as N, signSolanaMessageWithEndUserAccount as w, signSolanaTransactionWithEndUserAccount as f, verifyEmailAuthentication as I, verifyOAuthCode as D, verifySmsAuthentication as M } from "./index5.js";
|
|
5
|
+
import { AbiFunctionType as V, AbiInputType as b, AbiStateMutability as L, AccountType as X, AchDetailsAccountType as q, AddressRiskNetwork as x, AddressRiskRiskLevel as B, AssetType as F, CapabilityStatus as H, CoolPaymentMethodType as K, CreateAccountRequestType as j, CreatePaymentMethodRequestAchType as G, CreatePaymentMethodRequestFedwireType as J, CustomerType as Q, DeveloperJWTAuthenticationType as _, EmailAuthenticationType as z, ErrorType as Y, EthValueCriterionOperator as Z, EthValueCriterionType as $, EvmAddressCriterionOperator as ee, EvmAddressCriterionType as te, EvmDataCriterionType as re, EvmDataParameterConditionListOperator as ne, EvmDataParameterConditionOperator as ie, EvmMessageCriterionType as oe, EvmNetworkCriterionNetworksItem as ae, EvmNetworkCriterionOperator as se, EvmNetworkCriterionType as pe, EvmSwapsNetwork as ce, EvmTypedAddressConditionOperator as de, EvmTypedNumericalConditionOperator as me, EvmUserOperationNetwork as ue, EvmUserOperationStatus as ye, InitiateEmailAuthenticationNextStepType as le, InitiateEmailAuthenticationRequestType as Te, InitiateSmsAuthenticationNextStepType as Se, InitiateSmsAuthenticationRequestType as Ee, InvitationStatus as Ae, KnownAbiType as Ce, KnownIdlType as he, LimitPeriod as Oe, LinkAccountType as ve, LinkableEntityRole as ge, LinkableEntityType as Re, ListEvmTokenBalancesNetwork as Pe, ListSolanaTokenBalancesNetwork as ke, MintAddressCriterionOperator as Ue, MintAddressCriterionType as Ne, NetUSDChangeCriterionOperator as we, NetUSDChangeCriterionType as fe, Network as Ie, OAuth2ProviderType as De, OnchainDataResultSchemaColumnsItemType as Me, OnrampOrderFeeType as We, OnrampOrderPaymentMethodTypeId as Ve, OnrampOrderStatus as be, OnrampPaymentLinkType as Le, OnrampQuotePaymentMethodTypeId as Xe, PermissionCatalogObjectsItemType as qe, PermissionSubjectType as xe, PermissionVerb as Be, PolicyScope as Fe, PrepareUserOperationRuleAction as He, PrepareUserOperationRuleOperation as Ke, ProgramIdCriterionOperator as je, ProgramIdCriterionType as Ge, RefreshAccessTokenBodyGrantType as Je, RequirementErrorCode as Qe, SendEvmTransactionRuleAction as _e, SendEvmTransactionRuleOperation as ze, SendEvmTransactionWithEndUserAccountBodyNetwork as Ye, SendSolTransactionRuleAction as Ze, SendSolTransactionRuleOperation as $e, SendSolanaTransactionWithEndUserAccountBodyNetwork as et, SendUserOperationRuleAction as tt, SendUserOperationRuleOperation as rt, SignEvmHashRuleAction as nt, SignEvmHashRuleOperation as it, SignEvmMessageRuleAction as ot, SignEvmMessageRuleOperation as at, SignEvmTransactionRuleAction as st, SignEvmTransactionRuleOperation as pt, SignEvmTypedDataFieldCriterionType as ct, SignEvmTypedDataRuleAction as dt, SignEvmTypedDataRuleOperation as mt, SignEvmTypedDataVerifyingContractCriterionOperator as ut, SignEvmTypedDataVerifyingContractCriterionType as yt, SignSolMessageRuleAction as lt, SignSolMessageRuleOperation as Tt, SignSolTransactionRuleAction as St, SignSolTransactionRuleOperation as Et, SmsAuthenticationType as At, SolAddressCriterionOperator as Ct, SolAddressCriterionType as ht, SolDataCriterionType as Ot, SolDataParameterConditionListOperator as vt, SolDataParameterConditionOperator as gt, SolMessageCriterionType as Rt, SolNetworkCriterionNetworksItem as Pt, SolNetworkCriterionOperator as kt, SolNetworkCriterionType as Ut, SolValueCriterionOperator as Nt, SolValueCriterionType as wt, SpendPermissionNetwork as ft, SplAddressCriterionOperator as It, SplAddressCriterionType as Dt, SplValueCriterionOperator as Mt, SplValueCriterionType as Wt, TransferCancellationReason as Vt, TransferFeeName as bt, TransferRequestAmountType as Lt, TransferReversalReason as Xt, TransferSourceDepositsInstructionsAsset as qt, TransferSourceDepositsInstructionsPaymentMethodType as xt, TransferStatus as Bt, X402DiscoveryResourceType as Ft, X402PaymentPayloadNetwork as Ht, X402PaymentPayloadScheme as Kt, X402PaymentRequirementsNetwork as jt, X402PaymentRequirementsScheme as Gt, X402SettleErrorReason as Jt, X402SupportedPaymentKindNetwork as Qt, X402SupportedPaymentKindScheme as _t, X402VerifyInvalidReason as zt, X402Version as Yt } from "./index6.js";
|
|
6
|
+
import { configureCdpApiClient as $t, setAuthManager as er } from "./index7.js";
|
|
7
|
+
import { APIError as rr, HttpErrorType as nr, UnknownApiError as ir, UnknownError as or, isOpenAPIError as ar } from "./index8.js";
|
|
8
|
+
e.registerPackageVersion("api_client", t);
|
|
5
9
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
10
|
+
rr as APIError,
|
|
11
|
+
V as AbiFunctionType,
|
|
12
|
+
b as AbiInputType,
|
|
13
|
+
L as AbiStateMutability,
|
|
14
|
+
X as AccountType,
|
|
15
|
+
q as AchDetailsAccountType,
|
|
16
|
+
x as AddressRiskNetwork,
|
|
17
|
+
B as AddressRiskRiskLevel,
|
|
18
|
+
F as AssetType,
|
|
19
|
+
H as CapabilityStatus,
|
|
20
|
+
K as CoolPaymentMethodType,
|
|
21
|
+
j as CreateAccountRequestType,
|
|
22
|
+
G as CreatePaymentMethodRequestAchType,
|
|
23
|
+
J as CreatePaymentMethodRequestFedwireType,
|
|
24
|
+
Q as CustomerType,
|
|
25
|
+
_ as DeveloperJWTAuthenticationType,
|
|
26
|
+
z as EmailAuthenticationType,
|
|
27
|
+
Y as ErrorType,
|
|
28
|
+
Z as EthValueCriterionOperator,
|
|
29
|
+
$ as EthValueCriterionType,
|
|
30
|
+
ee as EvmAddressCriterionOperator,
|
|
31
|
+
te as EvmAddressCriterionType,
|
|
32
|
+
re as EvmDataCriterionType,
|
|
33
|
+
ne as EvmDataParameterConditionListOperator,
|
|
34
|
+
ie as EvmDataParameterConditionOperator,
|
|
35
|
+
oe as EvmMessageCriterionType,
|
|
36
|
+
ae as EvmNetworkCriterionNetworksItem,
|
|
37
|
+
se as EvmNetworkCriterionOperator,
|
|
38
|
+
pe as EvmNetworkCriterionType,
|
|
39
|
+
ce as EvmSwapsNetwork,
|
|
40
|
+
de as EvmTypedAddressConditionOperator,
|
|
41
|
+
me as EvmTypedNumericalConditionOperator,
|
|
42
|
+
ue as EvmUserOperationNetwork,
|
|
43
|
+
ye as EvmUserOperationStatus,
|
|
44
|
+
nr as HttpErrorType,
|
|
45
|
+
le as InitiateEmailAuthenticationNextStepType,
|
|
46
|
+
Te as InitiateEmailAuthenticationRequestType,
|
|
47
|
+
Se as InitiateSmsAuthenticationNextStepType,
|
|
48
|
+
Ee as InitiateSmsAuthenticationRequestType,
|
|
49
|
+
Ae as InvitationStatus,
|
|
50
|
+
Ce as KnownAbiType,
|
|
51
|
+
he as KnownIdlType,
|
|
52
|
+
Oe as LimitPeriod,
|
|
53
|
+
ve as LinkAccountType,
|
|
54
|
+
ge as LinkableEntityRole,
|
|
55
|
+
Re as LinkableEntityType,
|
|
56
|
+
Pe as ListEvmTokenBalancesNetwork,
|
|
57
|
+
ke as ListSolanaTokenBalancesNetwork,
|
|
58
|
+
Ue as MintAddressCriterionOperator,
|
|
59
|
+
Ne as MintAddressCriterionType,
|
|
60
|
+
we as NetUSDChangeCriterionOperator,
|
|
61
|
+
fe as NetUSDChangeCriterionType,
|
|
62
|
+
Ie as Network,
|
|
63
|
+
De as OAuth2ProviderType,
|
|
64
|
+
Me as OnchainDataResultSchemaColumnsItemType,
|
|
65
|
+
We as OnrampOrderFeeType,
|
|
66
|
+
Ve as OnrampOrderPaymentMethodTypeId,
|
|
67
|
+
be as OnrampOrderStatus,
|
|
68
|
+
Le as OnrampPaymentLinkType,
|
|
69
|
+
Xe as OnrampQuotePaymentMethodTypeId,
|
|
70
|
+
qe as PermissionCatalogObjectsItemType,
|
|
71
|
+
xe as PermissionSubjectType,
|
|
72
|
+
Be as PermissionVerb,
|
|
73
|
+
Fe as PolicyScope,
|
|
74
|
+
He as PrepareUserOperationRuleAction,
|
|
75
|
+
Ke as PrepareUserOperationRuleOperation,
|
|
76
|
+
je as ProgramIdCriterionOperator,
|
|
77
|
+
Ge as ProgramIdCriterionType,
|
|
78
|
+
Je as RefreshAccessTokenBodyGrantType,
|
|
79
|
+
Qe as RequirementErrorCode,
|
|
80
|
+
_e as SendEvmTransactionRuleAction,
|
|
81
|
+
ze as SendEvmTransactionRuleOperation,
|
|
82
|
+
Ye as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
83
|
+
Ze as SendSolTransactionRuleAction,
|
|
84
|
+
$e as SendSolTransactionRuleOperation,
|
|
85
|
+
et as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
86
|
+
tt as SendUserOperationRuleAction,
|
|
87
|
+
rt as SendUserOperationRuleOperation,
|
|
88
|
+
nt as SignEvmHashRuleAction,
|
|
89
|
+
it as SignEvmHashRuleOperation,
|
|
90
|
+
ot as SignEvmMessageRuleAction,
|
|
91
|
+
at as SignEvmMessageRuleOperation,
|
|
92
|
+
st as SignEvmTransactionRuleAction,
|
|
93
|
+
pt as SignEvmTransactionRuleOperation,
|
|
94
|
+
ct as SignEvmTypedDataFieldCriterionType,
|
|
95
|
+
dt as SignEvmTypedDataRuleAction,
|
|
96
|
+
mt as SignEvmTypedDataRuleOperation,
|
|
97
|
+
ut as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
98
|
+
yt as SignEvmTypedDataVerifyingContractCriterionType,
|
|
99
|
+
lt as SignSolMessageRuleAction,
|
|
100
|
+
Tt as SignSolMessageRuleOperation,
|
|
101
|
+
St as SignSolTransactionRuleAction,
|
|
102
|
+
Et as SignSolTransactionRuleOperation,
|
|
103
|
+
At as SmsAuthenticationType,
|
|
104
|
+
Ct as SolAddressCriterionOperator,
|
|
105
|
+
ht as SolAddressCriterionType,
|
|
106
|
+
Ot as SolDataCriterionType,
|
|
107
|
+
vt as SolDataParameterConditionListOperator,
|
|
108
|
+
gt as SolDataParameterConditionOperator,
|
|
109
|
+
Rt as SolMessageCriterionType,
|
|
110
|
+
Pt as SolNetworkCriterionNetworksItem,
|
|
111
|
+
kt as SolNetworkCriterionOperator,
|
|
112
|
+
Ut as SolNetworkCriterionType,
|
|
113
|
+
Nt as SolValueCriterionOperator,
|
|
114
|
+
wt as SolValueCriterionType,
|
|
115
|
+
ft as SpendPermissionNetwork,
|
|
116
|
+
It as SplAddressCriterionOperator,
|
|
117
|
+
Dt as SplAddressCriterionType,
|
|
118
|
+
Mt as SplValueCriterionOperator,
|
|
119
|
+
Wt as SplValueCriterionType,
|
|
120
|
+
Vt as TransferCancellationReason,
|
|
121
|
+
bt as TransferFeeName,
|
|
122
|
+
Lt as TransferRequestAmountType,
|
|
123
|
+
Xt as TransferReversalReason,
|
|
124
|
+
qt as TransferSourceDepositsInstructionsAsset,
|
|
125
|
+
xt as TransferSourceDepositsInstructionsPaymentMethodType,
|
|
126
|
+
Bt as TransferStatus,
|
|
127
|
+
ir as UnknownApiError,
|
|
128
|
+
or as UnknownError,
|
|
129
|
+
Ft as X402DiscoveryResourceType,
|
|
130
|
+
Ht as X402PaymentPayloadNetwork,
|
|
131
|
+
Kt as X402PaymentPayloadScheme,
|
|
132
|
+
jt as X402PaymentRequirementsNetwork,
|
|
133
|
+
Gt as X402PaymentRequirementsScheme,
|
|
134
|
+
Jt as X402SettleErrorReason,
|
|
135
|
+
Qt as X402SupportedPaymentKindNetwork,
|
|
136
|
+
_t as X402SupportedPaymentKindScheme,
|
|
137
|
+
zt as X402VerifyInvalidReason,
|
|
138
|
+
Yt as X402Version,
|
|
139
|
+
$t as configureCdpApiClient,
|
|
140
|
+
s as createEndUserEvmAccount,
|
|
141
|
+
p as createEndUserEvmSmartAccount,
|
|
142
|
+
c as createEndUserSolanaAccount,
|
|
143
|
+
d as createSpendPermissionWithEndUserAccount,
|
|
144
|
+
m as exportEndUserEvmAccount,
|
|
145
|
+
u as exportEndUserSolanaAccount,
|
|
146
|
+
y as getAuthenticatedEndUser,
|
|
147
|
+
l as getUserOperationWithEndUserAccount,
|
|
148
|
+
T as initiateAuthentication,
|
|
149
|
+
ar as isOpenAPIError,
|
|
150
|
+
S as listSpendPermissionsWithEndUserAccount,
|
|
151
|
+
E as logOutEndUser,
|
|
152
|
+
A as refreshAccessToken,
|
|
153
|
+
C as registerTemporaryWalletSecret,
|
|
154
|
+
h as revokeSpendPermissionWithEndUserAccount,
|
|
155
|
+
O as sendEvmTransactionWithEndUserAccount,
|
|
156
|
+
v as sendSolanaTransactionWithEndUserAccount,
|
|
157
|
+
g as sendUserOperationWithEndUserAccount,
|
|
158
|
+
er as setAuthManager,
|
|
159
|
+
R as signEvmHashWithEndUserAccount,
|
|
160
|
+
P as signEvmMessageWithEndUserAccount,
|
|
161
|
+
k as signEvmTransactionWithEndUserAccount,
|
|
162
|
+
U as signEvmTypedDataWithEndUserAccount,
|
|
163
|
+
N as signSolanaHashWithEndUserAccount,
|
|
164
|
+
w as signSolanaMessageWithEndUserAccount,
|
|
165
|
+
f as signSolanaTransactionWithEndUserAccount,
|
|
166
|
+
I as verifyEmailAuthentication,
|
|
167
|
+
D as verifyOAuthCode,
|
|
168
|
+
M as verifySmsAuthentication
|
|
165
169
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function n() {
|
|
2
|
+
try {
|
|
3
|
+
return typeof navigator < "u" && navigator.product === "ReactNative";
|
|
4
|
+
} catch {
|
|
5
|
+
return !1;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function r() {
|
|
9
|
+
try {
|
|
10
|
+
if (typeof window > "u")
|
|
11
|
+
return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
|
|
12
|
+
const e = window;
|
|
13
|
+
return !!(e.__NEXT_DATA__ || e.next || document.getElementById("__next"));
|
|
14
|
+
} catch {
|
|
15
|
+
return !1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function o() {
|
|
19
|
+
try {
|
|
20
|
+
if (typeof window > "u")
|
|
21
|
+
return !1;
|
|
22
|
+
const e = window;
|
|
23
|
+
return !!(e.__VUE__ || e.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
|
|
24
|
+
} catch {
|
|
25
|
+
return !1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function u() {
|
|
29
|
+
try {
|
|
30
|
+
if (typeof window > "u")
|
|
31
|
+
return !1;
|
|
32
|
+
const e = window;
|
|
33
|
+
return e.__REACT_DEVTOOLS_GLOBAL_HOOK__ || e.React ? !0 : !!document.querySelector(
|
|
34
|
+
"[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
|
|
35
|
+
);
|
|
36
|
+
} catch {
|
|
37
|
+
return !1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function a() {
|
|
41
|
+
return u() ? "react" : n() ? "react-native" : r() ? "nextjs" : o() ? "vue" : "unknown";
|
|
42
|
+
}
|
|
43
|
+
let t = null;
|
|
44
|
+
function i() {
|
|
45
|
+
return t === null && (t = a()), t;
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
a as detectFramework,
|
|
49
|
+
i as getFramework
|
|
50
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __module as h } from "./index13.js";
|
|
2
|
+
import { __require as S } from "./index14.js";
|
|
3
|
+
import { __require as q } from "./index15.js";
|
|
4
|
+
import { __require as w } from "./index16.js";
|
|
5
|
+
var x;
|
|
6
|
+
function G() {
|
|
7
|
+
return x ? h.exports : (x = 1, function() {
|
|
8
|
+
var v = S(), p = q().utf8, B = w(), F = q().bin, d = function(o, f) {
|
|
9
|
+
o.constructor == String ? f && f.encoding === "binary" ? o = F.stringToBytes(o) : o = p.stringToBytes(o) : B(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
|
|
10
|
+
for (var u = v.bytesToWords(o), a = o.length * 8, n = 1732584193, r = -271733879, i = -1732584194, t = 271733878, e = 0; e < u.length; e++)
|
|
11
|
+
u[e] = (u[e] << 8 | u[e] >>> 24) & 16711935 | (u[e] << 24 | u[e] >>> 8) & 4278255360;
|
|
12
|
+
u[a >>> 5] |= 128 << a % 32, u[(a + 64 >>> 9 << 4) + 14] = a;
|
|
13
|
+
for (var _ = d._ff, c = d._gg, l = d._hh, y = d._ii, e = 0; e < u.length; e += 16) {
|
|
14
|
+
var T = n, b = r, A = i, I = t;
|
|
15
|
+
n = _(n, r, i, t, u[e + 0], 7, -680876936), t = _(t, n, r, i, u[e + 1], 12, -389564586), i = _(i, t, n, r, u[e + 2], 17, 606105819), r = _(r, i, t, n, u[e + 3], 22, -1044525330), n = _(n, r, i, t, u[e + 4], 7, -176418897), t = _(t, n, r, i, u[e + 5], 12, 1200080426), i = _(i, t, n, r, u[e + 6], 17, -1473231341), r = _(r, i, t, n, u[e + 7], 22, -45705983), n = _(n, r, i, t, u[e + 8], 7, 1770035416), t = _(t, n, r, i, u[e + 9], 12, -1958414417), i = _(i, t, n, r, u[e + 10], 17, -42063), r = _(r, i, t, n, u[e + 11], 22, -1990404162), n = _(n, r, i, t, u[e + 12], 7, 1804603682), t = _(t, n, r, i, u[e + 13], 12, -40341101), i = _(i, t, n, r, u[e + 14], 17, -1502002290), r = _(r, i, t, n, u[e + 15], 22, 1236535329), n = c(n, r, i, t, u[e + 1], 5, -165796510), t = c(t, n, r, i, u[e + 6], 9, -1069501632), i = c(i, t, n, r, u[e + 11], 14, 643717713), r = c(r, i, t, n, u[e + 0], 20, -373897302), n = c(n, r, i, t, u[e + 5], 5, -701558691), t = c(t, n, r, i, u[e + 10], 9, 38016083), i = c(i, t, n, r, u[e + 15], 14, -660478335), r = c(r, i, t, n, u[e + 4], 20, -405537848), n = c(n, r, i, t, u[e + 9], 5, 568446438), t = c(t, n, r, i, u[e + 14], 9, -1019803690), i = c(i, t, n, r, u[e + 3], 14, -187363961), r = c(r, i, t, n, u[e + 8], 20, 1163531501), n = c(n, r, i, t, u[e + 13], 5, -1444681467), t = c(t, n, r, i, u[e + 2], 9, -51403784), i = c(i, t, n, r, u[e + 7], 14, 1735328473), r = c(r, i, t, n, u[e + 12], 20, -1926607734), n = l(n, r, i, t, u[e + 5], 4, -378558), t = l(t, n, r, i, u[e + 8], 11, -2022574463), i = l(i, t, n, r, u[e + 11], 16, 1839030562), r = l(r, i, t, n, u[e + 14], 23, -35309556), n = l(n, r, i, t, u[e + 1], 4, -1530992060), t = l(t, n, r, i, u[e + 4], 11, 1272893353), i = l(i, t, n, r, u[e + 7], 16, -155497632), r = l(r, i, t, n, u[e + 10], 23, -1094730640), n = l(n, r, i, t, u[e + 13], 4, 681279174), t = l(t, n, r, i, u[e + 0], 11, -358537222), i = l(i, t, n, r, u[e + 3], 16, -722521979), r = l(r, i, t, n, u[e + 6], 23, 76029189), n = l(n, r, i, t, u[e + 9], 4, -640364487), t = l(t, n, r, i, u[e + 12], 11, -421815835), i = l(i, t, n, r, u[e + 15], 16, 530742520), r = l(r, i, t, n, u[e + 2], 23, -995338651), n = y(n, r, i, t, u[e + 0], 6, -198630844), t = y(t, n, r, i, u[e + 7], 10, 1126891415), i = y(i, t, n, r, u[e + 14], 15, -1416354905), r = y(r, i, t, n, u[e + 5], 21, -57434055), n = y(n, r, i, t, u[e + 12], 6, 1700485571), t = y(t, n, r, i, u[e + 3], 10, -1894986606), i = y(i, t, n, r, u[e + 10], 15, -1051523), r = y(r, i, t, n, u[e + 1], 21, -2054922799), n = y(n, r, i, t, u[e + 8], 6, 1873313359), t = y(t, n, r, i, u[e + 15], 10, -30611744), i = y(i, t, n, r, u[e + 6], 15, -1560198380), r = y(r, i, t, n, u[e + 13], 21, 1309151649), n = y(n, r, i, t, u[e + 4], 6, -145523070), t = y(t, n, r, i, u[e + 11], 10, -1120210379), i = y(i, t, n, r, u[e + 2], 15, 718787259), r = y(r, i, t, n, u[e + 9], 21, -343485551), n = n + T >>> 0, r = r + b >>> 0, i = i + A >>> 0, t = t + I >>> 0;
|
|
16
|
+
}
|
|
17
|
+
return v.endian([n, r, i, t]);
|
|
18
|
+
};
|
|
19
|
+
d._ff = function(o, f, u, a, n, r, i) {
|
|
20
|
+
var t = o + (f & u | ~f & a) + (n >>> 0) + i;
|
|
21
|
+
return (t << r | t >>> 32 - r) + f;
|
|
22
|
+
}, d._gg = function(o, f, u, a, n, r, i) {
|
|
23
|
+
var t = o + (f & a | u & ~a) + (n >>> 0) + i;
|
|
24
|
+
return (t << r | t >>> 32 - r) + f;
|
|
25
|
+
}, d._hh = function(o, f, u, a, n, r, i) {
|
|
26
|
+
var t = o + (f ^ u ^ a) + (n >>> 0) + i;
|
|
27
|
+
return (t << r | t >>> 32 - r) + f;
|
|
28
|
+
}, d._ii = function(o, f, u, a, n, r, i) {
|
|
29
|
+
var t = o + (u ^ (f | ~a)) + (n >>> 0) + i;
|
|
30
|
+
return (t << r | t >>> 32 - r) + f;
|
|
31
|
+
}, d._blocksize = 16, d._digestsize = 16, h.exports = function(o, f) {
|
|
32
|
+
if (o == null)
|
|
33
|
+
throw new Error("Illegal argument " + o);
|
|
34
|
+
var u = v.wordsToBytes(d(o, f));
|
|
35
|
+
return f && f.asBytes ? u : f && f.asString ? F.bytesToString(u) : v.bytesToHex(u);
|
|
36
|
+
};
|
|
37
|
+
}(), h.exports);
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
G as __require
|
|
41
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { __module as a } from "./index21.js";
|
|
2
|
+
var h;
|
|
3
|
+
function c() {
|
|
4
|
+
return h ? a.exports : (h = 1, function() {
|
|
5
|
+
var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
|
|
6
|
+
// Bit-wise rotation left
|
|
7
|
+
rotl: function(r, t) {
|
|
8
|
+
return r << t | r >>> 32 - t;
|
|
9
|
+
},
|
|
10
|
+
// Bit-wise rotation right
|
|
11
|
+
rotr: function(r, t) {
|
|
12
|
+
return r << 32 - t | r >>> t;
|
|
13
|
+
},
|
|
14
|
+
// Swap big-endian to little-endian and vice versa
|
|
15
|
+
endian: function(r) {
|
|
16
|
+
if (r.constructor == Number)
|
|
17
|
+
return u.rotl(r, 8) & 16711935 | u.rotl(r, 24) & 4278255360;
|
|
18
|
+
for (var t = 0; t < r.length; t++)
|
|
19
|
+
r[t] = u.endian(r[t]);
|
|
20
|
+
return r;
|
|
21
|
+
},
|
|
22
|
+
// Generate an array of any length of random bytes
|
|
23
|
+
randomBytes: function(r) {
|
|
24
|
+
for (var t = []; r > 0; r--)
|
|
25
|
+
t.push(Math.floor(Math.random() * 256));
|
|
26
|
+
return t;
|
|
27
|
+
},
|
|
28
|
+
// Convert a byte array to big-endian 32-bit words
|
|
29
|
+
bytesToWords: function(r) {
|
|
30
|
+
for (var t = [], n = 0, o = 0; n < r.length; n++, o += 8)
|
|
31
|
+
t[o >>> 5] |= r[n] << 24 - o % 32;
|
|
32
|
+
return t;
|
|
33
|
+
},
|
|
34
|
+
// Convert big-endian 32-bit words to a byte array
|
|
35
|
+
wordsToBytes: function(r) {
|
|
36
|
+
for (var t = [], n = 0; n < r.length * 32; n += 8)
|
|
37
|
+
t.push(r[n >>> 5] >>> 24 - n % 32 & 255);
|
|
38
|
+
return t;
|
|
39
|
+
},
|
|
40
|
+
// Convert a byte array to a hex string
|
|
41
|
+
bytesToHex: function(r) {
|
|
42
|
+
for (var t = [], n = 0; n < r.length; n++)
|
|
43
|
+
t.push((r[n] >>> 4).toString(16)), t.push((r[n] & 15).toString(16));
|
|
44
|
+
return t.join("");
|
|
45
|
+
},
|
|
46
|
+
// Convert a hex string to a byte array
|
|
47
|
+
hexToBytes: function(r) {
|
|
48
|
+
for (var t = [], n = 0; n < r.length; n += 2)
|
|
49
|
+
t.push(parseInt(r.substr(n, 2), 16));
|
|
50
|
+
return t;
|
|
51
|
+
},
|
|
52
|
+
// Convert a byte array to a base-64 string
|
|
53
|
+
bytesToBase64: function(r) {
|
|
54
|
+
for (var t = [], n = 0; n < r.length; n += 3)
|
|
55
|
+
for (var o = r[n] << 16 | r[n + 1] << 8 | r[n + 2], e = 0; e < 4; e++)
|
|
56
|
+
n * 8 + e * 6 <= r.length * 8 ? t.push(f.charAt(o >>> 6 * (3 - e) & 63)) : t.push("=");
|
|
57
|
+
return t.join("");
|
|
58
|
+
},
|
|
59
|
+
// Convert a base-64 string to a byte array
|
|
60
|
+
base64ToBytes: function(r) {
|
|
61
|
+
r = r.replace(/[^A-Z0-9+\/]/ig, "");
|
|
62
|
+
for (var t = [], n = 0, o = 0; n < r.length; o = ++n % 4)
|
|
63
|
+
o != 0 && t.push((f.indexOf(r.charAt(n - 1)) & Math.pow(2, -2 * o + 8) - 1) << o * 2 | f.indexOf(r.charAt(n)) >>> 6 - o * 2);
|
|
64
|
+
return t;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
a.exports = u;
|
|
68
|
+
}(), a.exports);
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
c as __require
|
|
72
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var o, u;
|
|
2
|
+
function c() {
|
|
3
|
+
if (u) return o;
|
|
4
|
+
u = 1;
|
|
5
|
+
var t = {
|
|
6
|
+
// UTF-8 encoding
|
|
7
|
+
utf8: {
|
|
8
|
+
// Convert a string to a byte array
|
|
9
|
+
stringToBytes: function(n) {
|
|
10
|
+
return t.bin.stringToBytes(unescape(encodeURIComponent(n)));
|
|
11
|
+
},
|
|
12
|
+
// Convert a byte array to a string
|
|
13
|
+
bytesToString: function(n) {
|
|
14
|
+
return decodeURIComponent(escape(t.bin.bytesToString(n)));
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
// Binary encoding
|
|
18
|
+
bin: {
|
|
19
|
+
// Convert a string to a byte array
|
|
20
|
+
stringToBytes: function(n) {
|
|
21
|
+
for (var e = [], r = 0; r < n.length; r++)
|
|
22
|
+
e.push(n.charCodeAt(r) & 255);
|
|
23
|
+
return e;
|
|
24
|
+
},
|
|
25
|
+
// Convert a byte array to a string
|
|
26
|
+
bytesToString: function(n) {
|
|
27
|
+
for (var e = [], r = 0; r < n.length; r++)
|
|
28
|
+
e.push(String.fromCharCode(n[r]));
|
|
29
|
+
return e.join("");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return o = t, o;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
c as __require
|
|
37
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Determine if an object is a Buffer
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
var f, e;
|
|
8
|
+
function t() {
|
|
9
|
+
if (e) return f;
|
|
10
|
+
e = 1, f = function(r) {
|
|
11
|
+
return r != null && (u(r) || n(r) || !!r._isBuffer);
|
|
12
|
+
};
|
|
13
|
+
function u(r) {
|
|
14
|
+
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
15
|
+
}
|
|
16
|
+
function n(r) {
|
|
17
|
+
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && u(r.slice(0, 0));
|
|
18
|
+
}
|
|
19
|
+
return f;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
t as __require
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __module as e } from "./index18.js";
|
|
2
|
+
import { __require as o } from "./index19.js";
|
|
3
|
+
import { __require as t } from "./index20.js";
|
|
4
|
+
var r;
|
|
5
|
+
function s() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as __require
|
|
10
|
+
};
|