@coinbase/cdp-api-client 0.0.124 → 0.0.125

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 CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Analytics as e } from "./index2.js";
2
2
  import "./index3.js";
3
3
  import { VERSION as t } from "./index4.js";
4
- import { BorrowPositionHealthStatus as s, BorrowProductAssetCapabilityType as c, BorrowProductNetwork as d, BorrowProductProtocol as E, CapabilityName as u, CreateEndUserBtcAccountBodyAddressType as l, CreateEndUserBtcAccountBodyNetwork as m, DeveloperJWTAuthenticationType as p, EmailAuthenticationType as A, EndUserBtcAccountAddressType as h, EndUserBtcAccountNetwork as y, EndUserOnrampFeeType as U, EndUserOnrampOrderStatus as S, ErrorType as g, EvmEip7702DelegationNetwork as T, EvmEip7702DelegationOperationStatus as P, EvmSwapsNetwork as f, EvmUserOperationNetwork as v, EvmUserOperationStatus as k, InitiateEmailAuthenticationNextStepType as B, InitiateEmailAuthenticationRequestType as W, InitiatePasskeyMfaEnrollmentType as w, InitiateSiweAuthenticationRequestType as O, InitiateSmsAuthenticationNextStepType as M, InitiateSmsAuthenticationRequestType as C, InitiateSmsMfaEnrollmentType as I, InitiateTotpMfaEnrollmentType as N, IosAttestationRegistrationResponsePlatform as D, MfaMethod as R, MorphoBlueOnchainStateType as b, MorphoBlueProtocolDetailsType as V, Network as X, OAuth2ProviderType as x, OnrampQuotePaymentMethodTypeId as F, OtpEmailLogoStatus as H, PasskeySummaryTransportsItem as q, PasskeyUserVerification as j, RefreshAccessTokenBodyGrantType as G, SendEvmAssetWithEndUserAccountBodyNetwork as J, SendEvmTransactionWithEndUserAccountBodyNetwork as L, SendSolanaAssetWithEndUserAccountBodyNetwork as Q, SendSolanaTransactionWithEndUserAccountBodyNetwork as _, SignBtcHashWithEndUserAccountBodyChange as z, SiweAuthenticationType as K, SmsAuthenticationType as Y, SpendPermissionNetwork as Z, SubmitPasskeyRegistrationType as $, SubmitPasskeyVerificationType as ee, X402BatchSettlementClaimPayloadType as te, X402BatchSettlementDepositPayloadType as ne, X402BatchSettlementRefundPayloadType as oe, X402BatchSettlementSettlePayloadType as re, X402BatchSettlementVoucherPayloadType as ie, X402V1Network as ae, X402V1PaymentPayloadScheme as se, X402V1PaymentRequirementsScheme as ce, X402V2Network as de, X402V2PaymentRequirementsScheme as Ee, X402Version as ue } from "./index5.js";
5
- import { configureCdpApiClient as me, setAuthManager as pe, setCookieDomain as Ae } from "./index6.js";
6
- import { APIError as ye, HttpErrorType as Ue, RefreshTokenUnavailableError as Se, UnknownApiError as ge, UnknownError as Te, isOpenAPIError as Pe, isRefreshTokenUnavailableError as fe, isTransientTokenReadError as ve } from "./index7.js";
7
- import { adjustBorrowPositionWithEndUserAccount as Be, authenticateUserWithCustomAuth as We, closeBorrowPositionWithEndUserAccount as we, createBorrowPositionWithEndUserAccount as Oe, createDelegationForEndUser as Me, createDelegationForEndUserAccount as Ce, createEndUserApplePayOnrampOrder as Ie, createEndUserBtcAccount as Ne, createEndUserEvmAccount as De, createEndUserEvmSmartAccount as Re, createEndUserEvmSwap as be, createEndUserSolanaAccount as Ve, createEvmEip7702DelegationWithEndUserAccount as Xe, createSpendPermissionWithEndUserAccount as xe, deletePasskey as Fe, enableSpendPermissionWithEndUserAccount as He, exportEndUserEvmAccount as qe, exportEndUserSolanaAccount as je, generateAttestationChallenge as Ge, getAuthenticatedEndUser as Je, getDelegationForEndUser as Le, getDelegationForEndUserAccount as Qe, getEndUserEvmSwapPrice as _e, getEvmBorrowProduct as ze, getEvmEip7702DelegationOperationByIdWithEndUserAccount as Ke, getMfaConfig as Ye, getProjectConfig as Ze, getUserOperationWithEndUserAccount as $e, initiateAuthentication as et, initiateMfaEnrollment as tt, initiateMfaEnrollment2 as nt, initiateMfaVerification as ot, listBorrowPositionsWithEndUserAccount as rt, listEvmBorrowProducts as it, listPasskeys as at, listSpendPermissionsWithEndUserAccount as st, logOutEndUser as ct, receiveOAuthCallback as dt, receiveOAuthCallbackPost as Et, recordMfaEnrollmentPrompted as ut, refreshAccessToken as lt, registerAttestation as mt, registerTemporaryWalletSecret as pt, revokeDelegationForEndUser as At, revokeDelegationForEndUserAccount as ht, revokeSpendPermissionWithEndUserAccount as yt, sendEvmAssetWithEndUserAccount as Ut, sendEvmTransactionWithEndUserAccount as St, sendSolanaAssetWithEndUserAccount as gt, sendSolanaTransactionWithEndUserAccount as Tt, sendUserOperationWithEndUserAccount as Pt, signBtcHashWithEndUserAccount as ft, signEvmHashWithEndUserAccount as vt, signEvmMessageWithEndUserAccount as kt, signEvmTransactionWithEndUserAccount as Bt, signEvmTypedDataWithEndUserAccount as Wt, signSolanaHashWithEndUserAccount as wt, signSolanaMessageWithEndUserAccount as Ot, signSolanaTransactionWithEndUserAccount as Mt, signSolanaX402PaymentWithEndUserAccount as Ct, submitMfaEnrollment as It, submitMfaVerification as Nt, verifyEmailAuthentication as Dt, verifyOAuthCode as Rt, verifyOAuthEndUserIdentity as bt, verifySiweAuthentication as Vt, verifySmsAuthentication as Xt } from "./index8.js";
8
- import { createOnrampIosAttestationChallenge as Ft, createOnrampMobileChallenge as Ht, createOnrampMobileSession as qt, registerOnrampIosAttestation as jt } from "./index9.js";
4
+ import { BorrowPositionHealthStatus as s, BorrowProductAssetCapabilityType as c, BorrowProductNetwork as d, BorrowProductProtocol as E, CapabilityName as u, CreateEndUserBtcAccountBodyAddressType as l, CreateEndUserBtcAccountBodyNetwork as m, DeveloperJWTAuthenticationType as p, EmailAuthenticationType as A, EndUserBtcAccountAddressType as h, EndUserBtcAccountNetwork as y, EndUserOnrampFeeType as U, EndUserOnrampOrderStatus as S, ErrorType as g, EvmEip7702DelegationNetwork as T, EvmEip7702DelegationOperationStatus as P, EvmSwapsNetwork as f, EvmUserOperationNetwork as k, EvmUserOperationStatus as v, InitiateEmailAuthenticationNextStepType as B, InitiateEmailAuthenticationRequestType as W, InitiatePasskeyMfaEnrollmentType as w, InitiateSiweAuthenticationRequestType as O, InitiateSmsAuthenticationNextStepType as M, InitiateSmsAuthenticationRequestType as N, InitiateSmsMfaEnrollmentType as C, InitiateTotpMfaEnrollmentType as I, IosAttestationRegistrationResponsePlatform as D, MfaMethod as R, MfaVerificationScope as V, MorphoBlueOnchainStateType as b, MorphoBlueProtocolDetailsType as X, Network as x, OAuth2ProviderType as F, OnrampQuotePaymentMethodTypeId as H, OtpEmailLogoStatus as q, PasskeySummaryTransportsItem as j, PasskeyUserVerification as G, RefreshAccessTokenBodyGrantType as J, SendEvmAssetWithEndUserAccountBodyNetwork as L, SendEvmTransactionWithEndUserAccountBodyNetwork as Q, SendSolanaAssetWithEndUserAccountBodyNetwork as _, SendSolanaTransactionWithEndUserAccountBodyNetwork as z, SignBtcHashWithEndUserAccountBodyChange as K, SignSolanaTransactionWithEndUserAccountBodyNetwork as Y, SiweAuthenticationType as Z, SmsAuthenticationType as $, SpendPermissionNetwork as ee, SubmitPasskeyRegistrationType as te, SubmitPasskeyVerificationType as ne, X402BatchSettlementClaimPayloadType as oe, X402BatchSettlementDepositPayloadType as re, X402BatchSettlementRefundPayloadType as ie, X402BatchSettlementSettlePayloadType as ae, X402BatchSettlementVoucherPayloadType as se, X402V1Network as ce, X402V1PaymentPayloadScheme as de, X402V1PaymentRequirementsScheme as Ee, X402V2Network as ue, X402V2PaymentRequirementsScheme as le, X402Version as me } from "./index5.js";
5
+ import { configureCdpApiClient as Ae, setAuthManager as he, setCookieDomain as ye } from "./index6.js";
6
+ import { APIError as Se, HttpErrorType as ge, RefreshTokenUnavailableError as Te, UnknownApiError as Pe, UnknownError as fe, isOpenAPIError as ke, isRefreshTokenUnavailableError as ve, isTransientTokenReadError as Be } from "./index7.js";
7
+ import { adjustBorrowPositionWithEndUserAccount as we, authenticateUserWithCustomAuth as Oe, closeBorrowPositionWithEndUserAccount as Me, createBorrowPositionWithEndUserAccount as Ne, createDelegationForEndUser as Ce, createDelegationForEndUserAccount as Ie, createEndUserApplePayOnrampOrder as De, createEndUserBtcAccount as Re, createEndUserEvmAccount as Ve, createEndUserEvmSmartAccount as be, createEndUserEvmSwap as Xe, createEndUserSolanaAccount as xe, createEvmEip7702DelegationWithEndUserAccount as Fe, createSpendPermissionWithEndUserAccount as He, deletePasskey as qe, enableSpendPermissionWithEndUserAccount as je, exportEndUserBtcAccount as Ge, exportEndUserEvmAccount as Je, exportEndUserSolanaAccount as Le, generateAttestationChallenge as Qe, getAuthenticatedEndUser as _e, getDelegationForEndUser as ze, getDelegationForEndUserAccount as Ke, getEndUserEvmSwapPrice as Ye, getEvmBorrowProduct as Ze, getEvmEip7702DelegationOperationByIdWithEndUserAccount as $e, getMfaConfig as et, getProjectConfig as tt, getUserOperationWithEndUserAccount as nt, initiateAuthentication as ot, initiateMfaEnrollment as rt, initiateMfaEnrollment2 as it, initiateMfaVerification as at, listBorrowPositionsWithEndUserAccount as st, listEvmBorrowProducts as ct, listPasskeys as dt, listSpendPermissionsWithEndUserAccount as Et, logOutEndUser as ut, receiveOAuthCallback as lt, receiveOAuthCallbackPost as mt, recordMfaEnrollmentPrompted as pt, refreshAccessToken as At, registerAttestation as ht, registerTemporaryWalletSecret as yt, revokeDelegationForEndUser as Ut, revokeDelegationForEndUserAccount as St, revokeSpendPermissionWithEndUserAccount as gt, sendEvmAssetWithEndUserAccount as Tt, sendEvmTransactionWithEndUserAccount as Pt, sendSolanaAssetWithEndUserAccount as ft, sendSolanaTransactionWithEndUserAccount as kt, sendUserOperationWithEndUserAccount as vt, signBtcHashWithEndUserAccount as Bt, signEvmHashWithEndUserAccount as Wt, signEvmMessageWithEndUserAccount as wt, signEvmTransactionWithEndUserAccount as Ot, signEvmTypedDataWithEndUserAccount as Mt, signSolanaHashWithEndUserAccount as Nt, signSolanaMessageWithEndUserAccount as Ct, signSolanaTransactionWithEndUserAccount as It, signSolanaX402PaymentWithEndUserAccount as Dt, submitMfaEnrollment as Rt, submitMfaVerification as Vt, verifyEmailAuthentication as bt, verifyOAuthCode as Xt, verifyOAuthEndUserIdentity as xt, verifySiweAuthentication as Ft, verifySmsAuthentication as Ht } from "./index8.js";
8
+ import { createOnrampIosAttestationChallenge as jt, createOnrampMobileChallenge as Gt, createOnrampMobileSession as Jt, registerOnrampIosAttestation as Lt } from "./index9.js";
9
9
  e.registerPackageVersion("api_client", t);
10
10
  export {
11
- ye as APIError,
11
+ Se as APIError,
12
12
  s as BorrowPositionHealthStatus,
13
13
  c as BorrowProductAssetCapabilityType,
14
14
  d as BorrowProductNetwork,
@@ -26,127 +26,130 @@ export {
26
26
  T as EvmEip7702DelegationNetwork,
27
27
  P as EvmEip7702DelegationOperationStatus,
28
28
  f as EvmSwapsNetwork,
29
- v as EvmUserOperationNetwork,
30
- k as EvmUserOperationStatus,
31
- Ue as HttpErrorType,
29
+ k as EvmUserOperationNetwork,
30
+ v as EvmUserOperationStatus,
31
+ ge as HttpErrorType,
32
32
  B as InitiateEmailAuthenticationNextStepType,
33
33
  W as InitiateEmailAuthenticationRequestType,
34
34
  w as InitiatePasskeyMfaEnrollmentType,
35
35
  O as InitiateSiweAuthenticationRequestType,
36
36
  M as InitiateSmsAuthenticationNextStepType,
37
- C as InitiateSmsAuthenticationRequestType,
38
- I as InitiateSmsMfaEnrollmentType,
39
- N as InitiateTotpMfaEnrollmentType,
37
+ N as InitiateSmsAuthenticationRequestType,
38
+ C as InitiateSmsMfaEnrollmentType,
39
+ I as InitiateTotpMfaEnrollmentType,
40
40
  D as IosAttestationRegistrationResponsePlatform,
41
41
  R as MfaMethod,
42
+ V as MfaVerificationScope,
42
43
  b as MorphoBlueOnchainStateType,
43
- V as MorphoBlueProtocolDetailsType,
44
- X as Network,
45
- x as OAuth2ProviderType,
46
- F as OnrampQuotePaymentMethodTypeId,
47
- H as OtpEmailLogoStatus,
48
- q as PasskeySummaryTransportsItem,
49
- j as PasskeyUserVerification,
50
- G as RefreshAccessTokenBodyGrantType,
51
- Se as RefreshTokenUnavailableError,
52
- J as SendEvmAssetWithEndUserAccountBodyNetwork,
53
- L as SendEvmTransactionWithEndUserAccountBodyNetwork,
54
- Q as SendSolanaAssetWithEndUserAccountBodyNetwork,
55
- _ as SendSolanaTransactionWithEndUserAccountBodyNetwork,
56
- z as SignBtcHashWithEndUserAccountBodyChange,
57
- K as SiweAuthenticationType,
58
- Y as SmsAuthenticationType,
59
- Z as SpendPermissionNetwork,
60
- $ as SubmitPasskeyRegistrationType,
61
- ee as SubmitPasskeyVerificationType,
62
- ge as UnknownApiError,
63
- Te as UnknownError,
64
- te as X402BatchSettlementClaimPayloadType,
65
- ne as X402BatchSettlementDepositPayloadType,
66
- oe as X402BatchSettlementRefundPayloadType,
67
- re as X402BatchSettlementSettlePayloadType,
68
- ie as X402BatchSettlementVoucherPayloadType,
69
- ae as X402V1Network,
70
- se as X402V1PaymentPayloadScheme,
71
- ce as X402V1PaymentRequirementsScheme,
72
- de as X402V2Network,
73
- Ee as X402V2PaymentRequirementsScheme,
74
- ue as X402Version,
75
- Be as adjustBorrowPositionWithEndUserAccount,
76
- We as authenticateUserWithCustomAuth,
77
- we as closeBorrowPositionWithEndUserAccount,
78
- me as configureCdpApiClient,
79
- Oe as createBorrowPositionWithEndUserAccount,
80
- Me as createDelegationForEndUser,
81
- Ce as createDelegationForEndUserAccount,
82
- Ie as createEndUserApplePayOnrampOrder,
83
- Ne as createEndUserBtcAccount,
84
- De as createEndUserEvmAccount,
85
- Re as createEndUserEvmSmartAccount,
86
- be as createEndUserEvmSwap,
87
- Ve as createEndUserSolanaAccount,
88
- Xe as createEvmEip7702DelegationWithEndUserAccount,
89
- Ft as createOnrampIosAttestationChallenge,
90
- Ht as createOnrampMobileChallenge,
91
- qt as createOnrampMobileSession,
92
- xe as createSpendPermissionWithEndUserAccount,
93
- Fe as deletePasskey,
94
- He as enableSpendPermissionWithEndUserAccount,
95
- qe as exportEndUserEvmAccount,
96
- je as exportEndUserSolanaAccount,
97
- Ge as generateAttestationChallenge,
98
- Je as getAuthenticatedEndUser,
99
- Le as getDelegationForEndUser,
100
- Qe as getDelegationForEndUserAccount,
101
- _e as getEndUserEvmSwapPrice,
102
- ze as getEvmBorrowProduct,
103
- Ke as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
104
- Ye as getMfaConfig,
105
- Ze as getProjectConfig,
106
- $e as getUserOperationWithEndUserAccount,
107
- et as initiateAuthentication,
108
- tt as initiateMfaEnrollment,
109
- nt as initiateMfaEnrollment2,
110
- ot as initiateMfaVerification,
111
- Pe as isOpenAPIError,
112
- fe as isRefreshTokenUnavailableError,
113
- ve as isTransientTokenReadError,
114
- rt as listBorrowPositionsWithEndUserAccount,
115
- it as listEvmBorrowProducts,
116
- at as listPasskeys,
117
- st as listSpendPermissionsWithEndUserAccount,
118
- ct as logOutEndUser,
119
- dt as receiveOAuthCallback,
120
- Et as receiveOAuthCallbackPost,
121
- ut as recordMfaEnrollmentPrompted,
122
- lt as refreshAccessToken,
123
- mt as registerAttestation,
124
- jt as registerOnrampIosAttestation,
125
- pt as registerTemporaryWalletSecret,
126
- At as revokeDelegationForEndUser,
127
- ht as revokeDelegationForEndUserAccount,
128
- yt as revokeSpendPermissionWithEndUserAccount,
129
- Ut as sendEvmAssetWithEndUserAccount,
130
- St as sendEvmTransactionWithEndUserAccount,
131
- gt as sendSolanaAssetWithEndUserAccount,
132
- Tt as sendSolanaTransactionWithEndUserAccount,
133
- Pt as sendUserOperationWithEndUserAccount,
134
- pe as setAuthManager,
135
- Ae as setCookieDomain,
136
- ft as signBtcHashWithEndUserAccount,
137
- vt as signEvmHashWithEndUserAccount,
138
- kt as signEvmMessageWithEndUserAccount,
139
- Bt as signEvmTransactionWithEndUserAccount,
140
- Wt as signEvmTypedDataWithEndUserAccount,
141
- wt as signSolanaHashWithEndUserAccount,
142
- Ot as signSolanaMessageWithEndUserAccount,
143
- Mt as signSolanaTransactionWithEndUserAccount,
144
- Ct as signSolanaX402PaymentWithEndUserAccount,
145
- It as submitMfaEnrollment,
146
- Nt as submitMfaVerification,
147
- Dt as verifyEmailAuthentication,
148
- Rt as verifyOAuthCode,
149
- bt as verifyOAuthEndUserIdentity,
150
- Vt as verifySiweAuthentication,
151
- Xt as verifySmsAuthentication
44
+ X as MorphoBlueProtocolDetailsType,
45
+ x as Network,
46
+ F as OAuth2ProviderType,
47
+ H as OnrampQuotePaymentMethodTypeId,
48
+ q as OtpEmailLogoStatus,
49
+ j as PasskeySummaryTransportsItem,
50
+ G as PasskeyUserVerification,
51
+ J as RefreshAccessTokenBodyGrantType,
52
+ Te as RefreshTokenUnavailableError,
53
+ L as SendEvmAssetWithEndUserAccountBodyNetwork,
54
+ Q as SendEvmTransactionWithEndUserAccountBodyNetwork,
55
+ _ as SendSolanaAssetWithEndUserAccountBodyNetwork,
56
+ z as SendSolanaTransactionWithEndUserAccountBodyNetwork,
57
+ K as SignBtcHashWithEndUserAccountBodyChange,
58
+ Y as SignSolanaTransactionWithEndUserAccountBodyNetwork,
59
+ Z as SiweAuthenticationType,
60
+ $ as SmsAuthenticationType,
61
+ ee as SpendPermissionNetwork,
62
+ te as SubmitPasskeyRegistrationType,
63
+ ne as SubmitPasskeyVerificationType,
64
+ Pe as UnknownApiError,
65
+ fe as UnknownError,
66
+ oe as X402BatchSettlementClaimPayloadType,
67
+ re as X402BatchSettlementDepositPayloadType,
68
+ ie as X402BatchSettlementRefundPayloadType,
69
+ ae as X402BatchSettlementSettlePayloadType,
70
+ se as X402BatchSettlementVoucherPayloadType,
71
+ ce as X402V1Network,
72
+ de as X402V1PaymentPayloadScheme,
73
+ Ee as X402V1PaymentRequirementsScheme,
74
+ ue as X402V2Network,
75
+ le as X402V2PaymentRequirementsScheme,
76
+ me as X402Version,
77
+ we as adjustBorrowPositionWithEndUserAccount,
78
+ Oe as authenticateUserWithCustomAuth,
79
+ Me as closeBorrowPositionWithEndUserAccount,
80
+ Ae as configureCdpApiClient,
81
+ Ne as createBorrowPositionWithEndUserAccount,
82
+ Ce as createDelegationForEndUser,
83
+ Ie as createDelegationForEndUserAccount,
84
+ De as createEndUserApplePayOnrampOrder,
85
+ Re as createEndUserBtcAccount,
86
+ Ve as createEndUserEvmAccount,
87
+ be as createEndUserEvmSmartAccount,
88
+ Xe as createEndUserEvmSwap,
89
+ xe as createEndUserSolanaAccount,
90
+ Fe as createEvmEip7702DelegationWithEndUserAccount,
91
+ jt as createOnrampIosAttestationChallenge,
92
+ Gt as createOnrampMobileChallenge,
93
+ Jt as createOnrampMobileSession,
94
+ He as createSpendPermissionWithEndUserAccount,
95
+ qe as deletePasskey,
96
+ je as enableSpendPermissionWithEndUserAccount,
97
+ Ge as exportEndUserBtcAccount,
98
+ Je as exportEndUserEvmAccount,
99
+ Le as exportEndUserSolanaAccount,
100
+ Qe as generateAttestationChallenge,
101
+ _e as getAuthenticatedEndUser,
102
+ ze as getDelegationForEndUser,
103
+ Ke as getDelegationForEndUserAccount,
104
+ Ye as getEndUserEvmSwapPrice,
105
+ Ze as getEvmBorrowProduct,
106
+ $e as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
107
+ et as getMfaConfig,
108
+ tt as getProjectConfig,
109
+ nt as getUserOperationWithEndUserAccount,
110
+ ot as initiateAuthentication,
111
+ rt as initiateMfaEnrollment,
112
+ it as initiateMfaEnrollment2,
113
+ at as initiateMfaVerification,
114
+ ke as isOpenAPIError,
115
+ ve as isRefreshTokenUnavailableError,
116
+ Be as isTransientTokenReadError,
117
+ st as listBorrowPositionsWithEndUserAccount,
118
+ ct as listEvmBorrowProducts,
119
+ dt as listPasskeys,
120
+ Et as listSpendPermissionsWithEndUserAccount,
121
+ ut as logOutEndUser,
122
+ lt as receiveOAuthCallback,
123
+ mt as receiveOAuthCallbackPost,
124
+ pt as recordMfaEnrollmentPrompted,
125
+ At as refreshAccessToken,
126
+ ht as registerAttestation,
127
+ Lt as registerOnrampIosAttestation,
128
+ yt as registerTemporaryWalletSecret,
129
+ Ut as revokeDelegationForEndUser,
130
+ St as revokeDelegationForEndUserAccount,
131
+ gt as revokeSpendPermissionWithEndUserAccount,
132
+ Tt as sendEvmAssetWithEndUserAccount,
133
+ Pt as sendEvmTransactionWithEndUserAccount,
134
+ ft as sendSolanaAssetWithEndUserAccount,
135
+ kt as sendSolanaTransactionWithEndUserAccount,
136
+ vt as sendUserOperationWithEndUserAccount,
137
+ he as setAuthManager,
138
+ ye as setCookieDomain,
139
+ Bt as signBtcHashWithEndUserAccount,
140
+ Wt as signEvmHashWithEndUserAccount,
141
+ wt as signEvmMessageWithEndUserAccount,
142
+ Ot as signEvmTransactionWithEndUserAccount,
143
+ Mt as signEvmTypedDataWithEndUserAccount,
144
+ Nt as signSolanaHashWithEndUserAccount,
145
+ Ct as signSolanaMessageWithEndUserAccount,
146
+ It as signSolanaTransactionWithEndUserAccount,
147
+ Dt as signSolanaX402PaymentWithEndUserAccount,
148
+ Rt as submitMfaEnrollment,
149
+ Vt as submitMfaVerification,
150
+ bt as verifyEmailAuthentication,
151
+ Xt as verifyOAuthCode,
152
+ xt as verifyOAuthEndUserIdentity,
153
+ Ft as verifySiweAuthentication,
154
+ Ht as verifySmsAuthentication
152
155
  };
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./index25.js";
2
- import { __require as o } from "./index19.js";
2
+ import { __require as o } from "./index17.js";
3
3
  var t = o();
4
4
  const a = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { __exports as n } from "./index17.js";
1
+ import { __exports as n } from "./index22.js";
2
2
  var $;
3
3
  function Z() {
4
4
  if ($) return n;
@@ -1,4 +1,4 @@
1
- import { __module as E } from "./index18.js";
1
+ import { __module as E } from "./index23.js";
2
2
  E.exports;
3
3
  var we;
4
4
  function Ye() {
@@ -1,4 +1,41 @@
1
- var r = {};
1
+ import { __module as h } from "./index18.js";
2
+ import { __require as S } from "./index19.js";
3
+ import { __require as q } from "./index20.js";
4
+ import { __require as w } from "./index21.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
+ }
2
39
  export {
3
- r as __exports
40
+ G as __require
4
41
  };
@@ -1,41 +1,72 @@
1
- import { __module as h } from "./index20.js";
2
- import { __require as S } from "./index21.js";
3
- import { __require as q } from "./index22.js";
4
- import { __require as w } from "./index23.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;
1
+ import { __module as a } from "./index24.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;
16
65
  }
17
- return v.endian([n, r, i, t]);
18
66
  };
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);
67
+ a.exports = u;
68
+ })(), a.exports);
38
69
  }
39
70
  export {
40
- G as __require
71
+ c as __require
41
72
  };
@@ -1,4 +1,37 @@
1
- var e = { exports: {} };
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
+ }
2
35
  export {
3
- e as __module
36
+ c as __require
4
37
  };
@@ -1,72 +1,17 @@
1
- import { __module as a } from "./index24.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);
1
+ var f, e;
2
+ function t() {
3
+ if (e) return f;
4
+ e = 1, f = function(r) {
5
+ return r != null && (u(r) || n(r) || !!r._isBuffer);
6
+ };
7
+ function u(r) {
8
+ return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
9
+ }
10
+ function n(r) {
11
+ return typeof r.readFloatLE == "function" && typeof r.slice == "function" && u(r.slice(0, 0));
12
+ }
13
+ return f;
69
14
  }
70
15
  export {
71
- c as __require
16
+ t as __require
72
17
  };
@@ -1,37 +1,4 @@
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
- }
1
+ var r = {};
35
2
  export {
36
- c as __require
3
+ r as __exports
37
4
  };