@zama-fhe/sdk 3.9.0-beta.9 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/configs.cjs +1 -1
- package/dist/cjs/configs.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/public-decrypt.cjs +2 -0
- package/dist/cjs/public-decrypt.cjs.map +1 -0
- package/dist/cjs/query/index.cjs +1 -1
- package/dist/cjs/query/index.cjs.map +1 -1
- package/dist/cjs/relayer.cjs.map +1 -1
- package/dist/cjs/telemetry.cjs +1 -1
- package/dist/cjs/telemetry.cjs.map +1 -1
- package/dist/cjs/unshield.cjs +2 -0
- package/dist/cjs/unshield.cjs.map +1 -0
- package/dist/cjs/vaults/index.cjs +1 -1
- package/dist/cjs/vaults/index.cjs.map +1 -1
- package/dist/esm/{base-signer-DuHym9wR.d.ts → base-signer-C3_eu3aC.d.ts} +1 -1
- package/dist/esm/{base-signer-C6h8RUMT.js → base-signer-CD9a2hyy.js} +2 -2
- package/dist/esm/{base-signer-C6h8RUMT.js.map → base-signer-CD9a2hyy.js.map} +1 -1
- package/dist/esm/chains/index.d.ts +1 -1
- package/dist/esm/chains/index.js +1 -1
- package/dist/esm/cleartext/index.d.ts +2 -2
- package/dist/esm/cleartext/index.js +1 -1
- package/dist/esm/{cleartext-4VgPwU6v.js → cleartext-Bmwhc1xE.js} +2 -2
- package/dist/esm/{cleartext-4VgPwU6v.js.map → cleartext-Bmwhc1xE.js.map} +1 -1
- package/dist/esm/{cleartext-DydTYxOw.d.ts → cleartext-BxZphbB4.d.ts} +1 -1
- package/dist/esm/{configs-C65OaOKz.js → configs-9EL-DJHq.js} +2 -2
- package/dist/esm/{configs-C65OaOKz.js.map → configs-9EL-DJHq.js.map} +1 -1
- package/dist/esm/{decryption-DVfeQvb9.d.ts → decryption-BvvhpFM2.d.ts} +10 -4
- package/dist/esm/{encrypt-worker-client-BJJbrdZB.d.ts → encrypt-worker-client-Dt_x4FZd.d.ts} +1 -1
- package/dist/esm/encrypt.worker.js +47 -45
- package/dist/esm/ethers/index.d.ts +4 -4
- package/dist/esm/ethers/index.js +1 -1
- package/dist/esm/{fhevm-relayer-B6Xs5fOl.js → fhevm-relayer-ClfJ8FQG.js} +2 -2
- package/dist/esm/{fhevm-relayer-B6Xs5fOl.js.map → fhevm-relayer-ClfJ8FQG.js.map} +1 -1
- package/dist/esm/{index-BL2fvV8e.d.ts → index-B7M2GEtA.d.ts} +6 -6
- package/dist/esm/{index-O1xwLjWX.d.ts → index-BSkvEzGu.d.ts} +25 -11
- package/dist/esm/{index-8R-9woWN.d.ts → index-DTLVaNIj.d.ts} +3 -3
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal/index.d.ts +4 -4
- package/dist/esm/internal/index.js +1 -1
- package/dist/esm/{invalidation-IBiMIXGB.d.ts → invalidation-BpkhN3Qu.d.ts} +3 -1
- package/dist/esm/node/index.d.ts +4 -4
- package/dist/esm/node/index.js +1 -1
- package/dist/esm/public-decrypt-Bec9uoNY.js +2 -0
- package/dist/esm/public-decrypt-Bec9uoNY.js.map +1 -0
- package/dist/esm/query/index.d.ts +7 -7
- package/dist/esm/query/index.js +1 -1
- package/dist/esm/query/index.js.map +1 -1
- package/dist/esm/relayer-Cki3j_Ba.js.map +1 -1
- package/dist/esm/{telemetry-CUO0AOiR.js → telemetry-B0ypjU_K.js} +2 -2
- package/dist/esm/{telemetry-CUO0AOiR.js.map → telemetry-B0ypjU_K.js.map} +1 -1
- package/dist/esm/{types-gKZ_zPFn.d.ts → types-BGMWYQds.d.ts} +2 -2
- package/dist/esm/{types-NmMfCGuC.d.ts → types-CHA7Mcqr.d.ts} +1 -1
- package/dist/esm/{types-D1kIafm6.d.ts → types-CoI5slhu.d.ts} +2 -2
- package/dist/esm/unshield-xO66p_da.js +2 -0
- package/dist/esm/unshield-xO66p_da.js.map +1 -0
- package/dist/esm/vaults/index.d.ts +20 -17
- package/dist/esm/vaults/index.js +1 -1
- package/dist/esm/vaults/index.js.map +1 -1
- package/dist/esm/viem/index.d.ts +4 -4
- package/dist/esm/viem/index.js +1 -1
- package/dist/esm/web/index.d.ts +2 -2
- package/dist/esm/web/index.js +1 -1
- package/package.json +12 -2
- package/dist/cjs/log-decoding.cjs +0 -2
- package/dist/cjs/log-decoding.cjs.map +0 -1
- package/dist/esm/log-decoding-Cl4zZCe8.js +0 -2
- package/dist/esm/log-decoding-Cl4zZCe8.js.map +0 -1
package/dist/esm/viem/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import { t as ZamaConfigViem } from "../types-
|
|
8
|
-
import { $ as RevokeDelegationSubmittedEvent, $t as RawLog, A as WalletAccountListener, B as WriteFunctionName, D as GenericSigner, F as ReadContractConfig, G as DecryptStartEvent, H as BaseEvent, I as ReadContractReturnType, J as EncryptErrorEvent, K as DelegationSubmittedEvent, L as ReadFunctionName, M as ContractAbi, N as MulticallReturnType, O as WalletAccount, P as ReadContractArgs, Q as PermitOperation, R as WriteContractArgs, U as DecryptEndEvent, V as ApproveUnderlyingSubmittedEvent, W as DecryptErrorEvent, X as FinalizeUnwrapSubmittedEvent, Y as EncryptStartEvent, Z as PermitErrorEvent, a as ZamaConfigBase, an as EIP712TypedData, at as TransferSubmittedEvent, c as GenericStorage, ct as UnshieldPhase2SubmittedEvent, en as TransactionReceipt, et as SetOperatorSubmittedEvent, ft as WrapSubmittedEvent, gt as ZamaSDKEvents, ht as ZamaSDKEventType, i as ZamaConfig, it as TransferFromSubmittedEvent, j as WalletAccountStore, k as WalletAccountChange, l as GenericProvider, ln as EncryptedValue, lt as UnwrapSubmittedEvent, mt as ZamaSDKEventListener, n as RelayerConfig, nn as ClearValue, nt as TransactionErrorEvent, ot as UnshieldPhase1SubmittedEvent, pn as FhevmRuntimeConfig, pt as ZamaSDKEvent, q as EncryptEndEvent, rt as TransactionOperation, s as GenericLogger, st as UnshieldPhase2StartedEvent, tt as ShieldSubmittedEvent, yt as ShieldPath, z as WriteContractConfig } from "../types-
|
|
9
|
-
import { d as AtLeastOneChain, f as FheChain, p as FheChainAuth } from "../index-
|
|
10
|
-
import { n as MutableWalletAccountStore, t as BaseSigner } from "../base-signer-
|
|
7
|
+
import { t as ZamaConfigViem } from "../types-CoI5slhu.js";
|
|
8
|
+
import { $ as RevokeDelegationSubmittedEvent, $t as RawLog, A as WalletAccountListener, B as WriteFunctionName, D as GenericSigner, F as ReadContractConfig, G as DecryptStartEvent, H as BaseEvent, I as ReadContractReturnType, J as EncryptErrorEvent, K as DelegationSubmittedEvent, L as ReadFunctionName, M as ContractAbi, N as MulticallReturnType, O as WalletAccount, P as ReadContractArgs, Q as PermitOperation, R as WriteContractArgs, U as DecryptEndEvent, V as ApproveUnderlyingSubmittedEvent, W as DecryptErrorEvent, X as FinalizeUnwrapSubmittedEvent, Y as EncryptStartEvent, Z as PermitErrorEvent, a as ZamaConfigBase, an as EIP712TypedData, at as TransferSubmittedEvent, c as GenericStorage, ct as UnshieldPhase2SubmittedEvent, en as TransactionReceipt, et as SetOperatorSubmittedEvent, ft as WrapSubmittedEvent, gt as ZamaSDKEvents, ht as ZamaSDKEventType, i as ZamaConfig, it as TransferFromSubmittedEvent, j as WalletAccountStore, k as WalletAccountChange, l as GenericProvider, ln as EncryptedValue, lt as UnwrapSubmittedEvent, mt as ZamaSDKEventListener, n as RelayerConfig, nn as ClearValue, nt as TransactionErrorEvent, ot as UnshieldPhase1SubmittedEvent, pn as FhevmRuntimeConfig, pt as ZamaSDKEvent, q as EncryptEndEvent, rt as TransactionOperation, s as GenericLogger, st as UnshieldPhase2StartedEvent, tt as ShieldSubmittedEvent, yt as ShieldPath, z as WriteContractConfig } from "../types-CHA7Mcqr.js";
|
|
9
|
+
import { d as AtLeastOneChain, f as FheChain, p as FheChainAuth } from "../index-BSkvEzGu.js";
|
|
10
|
+
import { n as MutableWalletAccountStore, t as BaseSigner } from "../base-signer-C3_eu3aC.js";
|
|
11
11
|
import { Abi, Address, ContractFunctionArgs, ContractFunctionName, ContractFunctionReturnType, EIP1193Provider, Hex, Hex as Hex$1, PublicClient, WalletClient } from "viem";
|
|
12
12
|
/** Create a {@link ZamaConfig} from viem clients. */
|
|
13
13
|
export declare function createConfig<const TChains extends readonly [FheChain, ...FheChain[]]>(params: ZamaConfigViem<TChains>): ZamaConfig;
|
package/dist/esm/viem/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as e,B as t,F as n,G as r,M as i,N as a,S as o,T as s,X as c,d as l,k as u,r as d,y as f}from"../alignment-D1cVCzw8.js";import{i as p,t as m}from"../base-signer-
|
|
1
|
+
import{A as e,B as t,F as n,G as r,M as i,N as a,S as o,T as s,X as c,d as l,k as u,r as d,y as f}from"../alignment-D1cVCzw8.js";import{i as p,t as m}from"../base-signer-CD9a2hyy.js";import{t as h}from"../eip1193-subscribe-DxAQh8dY.js";import{t as g}from"../typed-data-eAgGr9V-.js";import{a as _,i as v,n as y,o as b,r as x,s as S,t as C}from"../wrappers-registry-Cm3JJeqx.js";import{TransactionReceiptNotFoundError as w,encodeFunctionData as T,getAddress as E,serializeTransaction as D}from"viem";var O=class{#e;constructor(e){this.#e=e.publicClient}async getChainId(){return this.#e.getChainId()}async readContract(e){let{chainId:t,...n}=e;return await d(`ViemProvider`,t,()=>this.getChainId()),this.#e.readContract(n)}async multicall(e){return await d(`ViemProvider`,e.chainId,()=>this.getChainId()),await this.#e.multicall({contracts:e.calls.map(({chainId:e,...t})=>t),allowFailure:!1,deployless:this.#e.chain?.contracts?.multicall3===void 0})}async waitForTransactionReceipt(e){return this.#e.waitForTransactionReceipt({hash:e})}async getTransactionReceipt(e){try{return await this.#e.getTransactionReceipt({hash:e})}catch(e){if(e instanceof w)return null;throw e}}async getBlockTimestamp(e){return await d(`ViemProvider`,e,()=>this.getChainId()),(await this.#e.getBlock()).timestamp}async prepareTransaction(e){let{from:t,calldata:n}=e,r=T({abi:n.abi,functionName:n.functionName,args:n.args}),i=this.#e.getChainId(),a=e.nonce===void 0?this.#e.getTransactionCount({address:t,blockTag:`pending`}):Promise.resolve(e.nonce),o=e.gasLimit===void 0?n.gas??this.#e.estimateGas({account:t,to:n.address,data:r,value:n.value??0n}).catch(e=>{throw new c(`ViemProvider.prepareTransaction: gas estimation reverted for ${n.functionName} on ${n.address}`,{cause:e})}):Promise.resolve(e.gasLimit),s=e.fees??this.#e.estimateFeesPerGas(),[l,u,d,f]=await Promise.all([i,a,o,s]);return D({type:`eip1559`,chainId:l,nonce:u,to:n.address,data:r,value:n.value??0n,gas:d,maxFeePerGas:f.maxFeePerGas,maxPriorityFeePerGas:f.maxPriorityFeePerGas})}};function k(e){if(e.account&&e.chain)return{address:E(e.account.address),chainId:e.chain.id}}var A=class extends m{#e;#t;#n;constructor(e){super(k(e.walletClient)),this.#e=e.walletClient,this.#t=e.ethereum,this.#n=this.#i()}#r(e){if(!this.#e.account)throw new r(e);return{walletClient:this.#e,account:this.#e.account}}async signTypedData(e){let{walletClient:t,account:n}=this.#r(`signTypedData`);return t.signTypedData({account:n,...g(e)})}async writeContract(e){let{walletClient:t,account:n}=this.#r(`writeContract`);return t.writeContract({chain:t.chain,account:n,...e})}#i(){return this.#t?h({provider:this.#t,getInitialWalletAccount:()=>k(this.#e),onWalletAccountChange:({next:e})=>{this.walletAccount.setSnapshot(e)}}):()=>{}}onDispose(){this.#n()}};function j(e){let t=new A({walletClient:e.walletClient,ethereum:e.ethereum}),n=new O({publicClient:e.publicClient});return p(t,n,e)}function M(e){if(!e.account)throw TypeError(`WalletClient has no account`);return e.account}function N(e,t,n){return e.readContract(f(t,n))}function P(t,n){return t.readContract(e(n))}function F(e,t,n){return e.readContract(l(t,n))}function I(e,t,n,r,i){return e.writeContract({chain:e.chain,account:M(e),...o(t,n,r,i)})}function L(e,t,n,r,a,o){return e.writeContract({chain:e.chain,account:M(e),...i(t,n,r,a,o)})}function R(e,t,n,r,i){return e.writeContract({chain:e.chain,account:M(e),...a(t,n,r,i)})}function z(e,t,n,r,i){return e.writeContract({chain:e.chain,account:M(e),...s(t,n,r,i)})}function B(e,t,n,r){return e.writeContract({chain:e.chain,account:M(e),...u(t,n,r)})}function V(e,t,r,i){return e.writeContract({chain:e.chain,account:M(e),...n(t,r,i)})}function H(e,t){return e.readContract(v(t))}function U(e,t){return e.readContract(_(t))}function W(e,t,n,r){return e.readContract(b(t,n,r))}function G(e,t,n){return e.readContract(x(t,n))}function K(e,t,n){return e.readContract(C(t,n))}function q(e,t,n){return e.readContract(y(t,n))}function J(e,t,n){return e.readContract(S(t,n))}export{m as BaseSigner,O as ViemProvider,A as ViemSigner,t as ZamaSDKEvents,j as createConfig,N as readConfidentialBalanceOfContract,K as readConfidentialTokenAddressContract,J as readIsConfidentialTokenValidContract,F as readSupportsInterfaceContract,q as readTokenAddressContract,G as readTokenPairContract,H as readTokenPairsContract,U as readTokenPairsLengthContract,W as readTokenPairsSliceContract,P as readUnderlyingTokenContract,I as writeConfidentialTransferContract,z as writeFinalizeUnwrapContract,B as writeSetOperatorContract,L as writeUnwrapContract,R as writeUnwrapFromBalanceContract,V as writeWrapContract};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/web/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
|
-
import { dn as FhevmClientOptions, fn as FhevmRelayerOptions, mn as RelayerOptions, n as RelayerConfig, pn as FhevmRuntimeConfig, r as WebRelayerConfig } from "../types-
|
|
11
|
-
import { t as EncryptWorkerTimeouts } from "../encrypt-worker-client-
|
|
10
|
+
import { dn as FhevmClientOptions, fn as FhevmRelayerOptions, mn as RelayerOptions, n as RelayerConfig, pn as FhevmRuntimeConfig, r as WebRelayerConfig } from "../types-CHA7Mcqr.js";
|
|
11
|
+
import { t as EncryptWorkerTimeouts } from "../encrypt-worker-client-Dt_x4FZd.js";
|
|
12
12
|
/** {@link RelayerOptions} plus the web-only encryption offload switches. */
|
|
13
13
|
interface WebRelayerOptions extends RelayerOptions {
|
|
14
14
|
/**
|
package/dist/esm/web/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,t}from"../fhevm-relayer-
|
|
1
|
+
import{r as e,t}from"../fhevm-relayer-ClfJ8FQG.js";import{t as n}from"../validation-BLmG7UVk.js";import{z as r}from"zod/mini";const i=e=>r._default(r.number().check(r.positive()),e),a=r.custom(e=>typeof e==`function`),o=r.object({offloadEncrypt:r._default(r.union([r.literal(`auto`),r.boolean()]),`auto`),offloadTimeouts:r.optional(r.object({spawn:i(e.spawn),init:i(e.init)})),offloadWorker:r.optional(r.union([r.string().check(r.minLength(1)),r.instanceof(URL),a]))});function s(e){let{offloadEncrypt:r,offloadTimeouts:i,offloadWorker:a,...s}=e??{},c=n(o,{offloadEncrypt:r,offloadTimeouts:i,offloadWorker:a});return{type:`web`,createRelayer:(e,n,r)=>new t({chain:e,options:s,telemetry:r&&{state:r,runtime:`web`,mode:r.mode},offloadEncrypt:c.offloadEncrypt,offloadTimeouts:c.offloadTimeouts,offloadWorker:c.offloadWorker,logger:n})}}export{s as web};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zama-fhe/sdk",
|
|
3
|
-
"version": "3.9.0
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "TypeScript SDK for Zama fhEVM confidential smart contracts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blockchain",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"exports": {
|
|
72
72
|
".": {
|
|
73
|
+
"@zama-fhe/source": "./src/index.ts",
|
|
73
74
|
"import": {
|
|
74
75
|
"types": "./dist/esm/index.d.ts",
|
|
75
76
|
"default": "./dist/esm/index.js"
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
"default": "./dist/esm/index.js"
|
|
82
83
|
},
|
|
83
84
|
"./cleartext": {
|
|
85
|
+
"@zama-fhe/source": "./src/cleartext/index.ts",
|
|
84
86
|
"import": {
|
|
85
87
|
"types": "./dist/esm/cleartext/index.d.ts",
|
|
86
88
|
"default": "./dist/esm/cleartext/index.js"
|
|
@@ -92,6 +94,7 @@
|
|
|
92
94
|
"default": "./dist/esm/cleartext/index.js"
|
|
93
95
|
},
|
|
94
96
|
"./query": {
|
|
97
|
+
"@zama-fhe/source": "./src/query/index.ts",
|
|
95
98
|
"import": {
|
|
96
99
|
"types": "./dist/esm/query/index.d.ts",
|
|
97
100
|
"default": "./dist/esm/query/index.js"
|
|
@@ -103,6 +106,7 @@
|
|
|
103
106
|
"default": "./dist/esm/query/index.js"
|
|
104
107
|
},
|
|
105
108
|
"./viem": {
|
|
109
|
+
"@zama-fhe/source": "./src/viem/index.ts",
|
|
106
110
|
"import": {
|
|
107
111
|
"types": "./dist/esm/viem/index.d.ts",
|
|
108
112
|
"default": "./dist/esm/viem/index.js"
|
|
@@ -114,6 +118,7 @@
|
|
|
114
118
|
"default": "./dist/esm/viem/index.js"
|
|
115
119
|
},
|
|
116
120
|
"./ethers": {
|
|
121
|
+
"@zama-fhe/source": "./src/ethers/index.ts",
|
|
117
122
|
"import": {
|
|
118
123
|
"types": "./dist/esm/ethers/index.d.ts",
|
|
119
124
|
"default": "./dist/esm/ethers/index.js"
|
|
@@ -125,6 +130,7 @@
|
|
|
125
130
|
"default": "./dist/esm/ethers/index.js"
|
|
126
131
|
},
|
|
127
132
|
"./web": {
|
|
133
|
+
"@zama-fhe/source": "./src/web/index.ts",
|
|
128
134
|
"import": {
|
|
129
135
|
"types": "./dist/esm/web/index.d.ts",
|
|
130
136
|
"default": "./dist/esm/web/index.js"
|
|
@@ -136,6 +142,7 @@
|
|
|
136
142
|
"default": "./dist/esm/web/index.js"
|
|
137
143
|
},
|
|
138
144
|
"./node": {
|
|
145
|
+
"@zama-fhe/source": "./src/node/index.ts",
|
|
139
146
|
"import": {
|
|
140
147
|
"types": "./dist/esm/node/index.d.ts",
|
|
141
148
|
"default": "./dist/esm/node/index.js"
|
|
@@ -147,6 +154,7 @@
|
|
|
147
154
|
"default": "./dist/esm/node/index.js"
|
|
148
155
|
},
|
|
149
156
|
"./chains": {
|
|
157
|
+
"@zama-fhe/source": "./src/chains/index.ts",
|
|
150
158
|
"import": {
|
|
151
159
|
"types": "./dist/esm/chains/index.d.ts",
|
|
152
160
|
"default": "./dist/esm/chains/index.js"
|
|
@@ -158,6 +166,7 @@
|
|
|
158
166
|
"default": "./dist/esm/chains/index.js"
|
|
159
167
|
},
|
|
160
168
|
"./vaults": {
|
|
169
|
+
"@zama-fhe/source": "./src/vaults/index.ts",
|
|
161
170
|
"import": {
|
|
162
171
|
"types": "./dist/esm/vaults/index.d.ts",
|
|
163
172
|
"default": "./dist/esm/vaults/index.js"
|
|
@@ -173,6 +182,7 @@
|
|
|
173
182
|
"default": "./package.json"
|
|
174
183
|
},
|
|
175
184
|
"./internal": {
|
|
185
|
+
"@zama-fhe/source": "./src/internal/index.ts",
|
|
176
186
|
"import": {
|
|
177
187
|
"types": "./dist/esm/internal/index.d.ts",
|
|
178
188
|
"default": "./dist/esm/internal/index.js"
|
|
@@ -202,7 +212,7 @@
|
|
|
202
212
|
"devDependencies": {
|
|
203
213
|
"@dfns/sdk": "^0.8.20",
|
|
204
214
|
"@dfns/sdk-keysigner": "^0.8.20",
|
|
205
|
-
"@tanstack/query-core": "^5.
|
|
215
|
+
"@tanstack/query-core": "^5.108.2",
|
|
206
216
|
"comlink": "^4.4.2"
|
|
207
217
|
},
|
|
208
218
|
"peerDependencies": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("./relayer.cjs");let t=require("viem");var n=class extends e.r{batcher;vaultId;constructor(t,n,r){super(e.i.VaultBatcherPaused,t,r),this.name=`VaultBatcherPausedError`,this.batcher=n.batcher,this.vaultId=n.vaultId}},r=class extends e.r{batcher;vaultId;constructor(t,n,r){super(e.i.VaultBatcherReadFailed,t,{...r,retryable:r?.retryable??(e.a(r?.cause)||e.y(r?.cause))}),this.name=`VaultBatcherReadFailedError`,this.batcher=n.batcher,this.vaultId=n.vaultId}},i=class extends e.r{batcher;batchId;state;constructor(t,n,r){super(e.i.VaultBatchNotDispatched,t,r),this.name=`VaultBatchNotDispatchedError`,this.batcher=n.batcher,this.batchId=n.batchId,this.state=n.state}},a=class extends e.r{txHash;receipt;unconfirmedVaultIds;constructor(t,n,r){super(e.i.VaultJoinUnconfirmed,t,r),this.name=`VaultJoinUnconfirmedError`,this.txHash=n.txHash,this.receipt=n.receipt,this.unconfirmedVaultIds=n.unconfirmedVaultIds}};function o(e){return e.startsWith(`0x`)?e:`0x${e}`}function s(e){return(0,t.keccak256)((0,t.toBytes)(e))}function c(e){return(0,t.getAddress)(o(e.slice(-40)))}function l(e){return e}function u(e,t){let n=2+t*64,r=e.slice(n,n+64);return r.length===64?r:r.padEnd(64,`0`)}function d(e,n){return(0,t.getAddress)(o(u(e,n).slice(-40)))}function f(e,t){return BigInt(`0x`+u(e,t))}function p(e,t){return o(u(e,t))}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return a}});
|
|
2
|
-
//# sourceMappingURL=log-decoding.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log-decoding.cjs","names":["ZamaError","ZamaErrorCode","isRetryable","isRpcRateLimitError","keccak256","toBytes","getAddress","require_relayer","viem","VaultBatcherPausedError","message","options","details","VaultBatcherReadFailedError","VaultBatchNotDispatchedError","VaultJoinUnconfirmedError","prefixHex","value","eventTopic","signature","topicToAddress","topic","topicToBytes32","wordAt","start","index","word","data","wordToAddress","wordToBigInt","wordToBytes32"],"sources":["../../src/errors/vaults.ts","../../src/utils/hex.ts","../../src/events/log-decoding.ts"],"sourcesContent":["import type { Address, Hex } from \"viem\";\nimport type { TransactionReceipt } from \"../types/transaction\";\nimport type { BatchState } from \"../vaults/types\";\nimport { isRpcRateLimitError } from \"../utils/error\";\nimport { isRetryable, ZamaError, ZamaErrorCode } from \"./base\";\n\n/** What a {@link VaultBatcherPausedError} carries. */\nexport interface VaultBatcherPausedDetails {\n /** A paused or closed batcher of the vault. */\n readonly batcher: Address;\n /** The vault whose leg needs the batcher. */\n readonly vaultId: string;\n}\n\n/** No batcher of a vault is open: each one is paused or closed. */\nexport class VaultBatcherPausedError extends ZamaError {\n /** A paused or closed batcher of the vault. */\n readonly batcher: Address;\n /** The vault whose leg needs the batcher. */\n readonly vaultId: string;\n\n constructor(message: string, details: VaultBatcherPausedDetails, options?: ErrorOptions) {\n super(ZamaErrorCode.VaultBatcherPaused, message, options);\n this.name = \"VaultBatcherPausedError\";\n this.batcher = details.batcher;\n this.vaultId = details.vaultId;\n }\n}\n\n/** What a {@link VaultBatcherReadFailedError} carries. */\nexport interface VaultBatcherReadFailedDetails {\n /** The batcher that could not be read. */\n readonly batcher: Address;\n /** The vault that lists the batcher. */\n readonly vaultId: string;\n}\n\n/**\n * A batcher of a vault could not be read, so the SDK cannot tell which batch a join reaches.\n * Retryable when its `cause` is, or when RPC nodes returned reads from different blocks.\n */\nexport class VaultBatcherReadFailedError extends ZamaError {\n /** The batcher that could not be read. */\n readonly batcher: Address;\n /** The vault that lists the batcher. */\n readonly vaultId: string;\n\n constructor(\n message: string,\n details: VaultBatcherReadFailedDetails,\n options?: ErrorOptions & { retryable?: boolean },\n ) {\n super(ZamaErrorCode.VaultBatcherReadFailed, message, {\n ...options,\n // Providers pass an RPC rate limit through as a raw viem or ethers error, not an SDK one.\n retryable:\n options?.retryable ?? (isRetryable(options?.cause) || isRpcRateLimitError(options?.cause)),\n });\n this.name = \"VaultBatcherReadFailedError\";\n this.batcher = details.batcher;\n this.vaultId = details.vaultId;\n }\n}\n\n/** What a {@link VaultBatchNotDispatchedError} carries. */\nexport interface VaultBatchNotDispatchedDetails {\n /** The batcher the batch belongs to. */\n readonly batcher: Address;\n /** The batch that was to be finalized. */\n readonly batchId: bigint;\n /** The state the batch is in instead. */\n readonly state: BatchState;\n}\n\n/** The batch to finalize is not dispatched. */\nexport class VaultBatchNotDispatchedError extends ZamaError {\n /** The batcher the batch belongs to. */\n readonly batcher: Address;\n /** The batch that was to be finalized. */\n readonly batchId: bigint;\n /** The state the batch is in instead. */\n readonly state: BatchState;\n\n constructor(message: string, details: VaultBatchNotDispatchedDetails, options?: ErrorOptions) {\n super(ZamaErrorCode.VaultBatchNotDispatched, message, options);\n this.name = \"VaultBatchNotDispatchedError\";\n this.batcher = details.batcher;\n this.batchId = details.batchId;\n this.state = details.state;\n }\n}\n\n/** What a {@link VaultJoinUnconfirmedError} carries. */\nexport interface VaultJoinUnconfirmedDetails {\n /** The mined join transaction. */\n readonly txHash: Hex;\n /** Its receipt, to inspect the logs. */\n readonly receipt: TransactionReceipt;\n /** The vaults whose `Joined` log the SDK could not match. Not a list of legs that did not join. */\n readonly unconfirmedVaultIds: readonly string[];\n}\n\n/**\n * A join was mined, but the SDK could not match a `Joined` log to every leg.\n */\nexport class VaultJoinUnconfirmedError extends ZamaError {\n /** The mined join transaction. */\n readonly txHash: Hex;\n /** Its receipt, to inspect the logs. */\n readonly receipt: TransactionReceipt;\n /** The vaults whose `Joined` log the SDK could not match. Not a list of legs that did not join. */\n readonly unconfirmedVaultIds: readonly string[];\n\n constructor(message: string, details: VaultJoinUnconfirmedDetails, options?: ErrorOptions) {\n super(ZamaErrorCode.VaultJoinUnconfirmed, message, options);\n this.name = \"VaultJoinUnconfirmedError\";\n this.txHash = details.txHash;\n this.receipt = details.receipt;\n this.unconfirmedVaultIds = details.unconfirmedVaultIds;\n }\n}\n","import type { Hex } from \"viem\";\nimport { assertCondition } from \"./assertions\";\n\n/** Normalize a un-prefixed hex payload to a 0x-prefixed `Hex` value. */\nexport function prefixHex(value: string): Hex {\n return (value.startsWith(\"0x\") ? value : `0x${value}`) as Hex;\n}\n\n/** Convert a public `Hex` value back an unprefixed format. */\nexport function unprefixHex(value: Hex): string {\n assertCondition(value.startsWith(\"0x\"), `Expected 0x-prefixed hex, got: ${value}`);\n return value.slice(2);\n}\n","/**\n * Primitives for decoding raw EVM logs without an ABI decoder.\n *\n * @internal\n */\n\nimport { getAddress, keccak256, toBytes, type Address, type Hex } from \"viem\";\nimport type { EncryptedValue } from \"../relayer/types\";\nimport { prefixHex } from \"../utils\";\n\n/** Hashes the canonical signature — `Joined(uint256,address,bytes32)`, not the declaration with parameter names. */\nexport function eventTopic(signature: string): Hex {\n return keccak256(toBytes(signature));\n}\n\nexport function topicToAddress(topic: Hex): Address {\n return getAddress(prefixHex(topic.slice(-40)));\n}\n\nexport function topicToBytes32(topic: Hex): EncryptedValue {\n // EVM topics are already 32-byte 0x-prefixed hex — cast directly\n return topic as EncryptedValue;\n}\n\nexport function wordAt(data: Hex, index: number): string {\n // data starts with \"0x\", each word is 64 hex chars (32 bytes)\n const start = 2 + index * 64;\n const word = data.slice(start, start + 64);\n return word.length === 64 ? word : word.padEnd(64, \"0\");\n}\n\nexport function wordToAddress(data: Hex, index: number): Address {\n return getAddress(prefixHex(wordAt(data, index).slice(-40)));\n}\n\nexport function wordToBigInt(data: Hex, index: number): bigint {\n return BigInt(\"0x\" + wordAt(data, index));\n}\n\nexport function wordToBytes32(data: Hex, index: number): EncryptedValue {\n // wordAt returns exactly 64 hex chars — prefix and cast directly\n return prefixHex(wordAt(data, index)) as EncryptedValue;\n}\n"],"mappings":"A,uDAeA,IAAaS,EAAb,cAA6CT,EAAAA,CAAU,CAErD,QAEA,QAEA,YAAY,EAAiB,EAAoC,EAAwB,CACvF,MAAMC,EAAAA,EAAc,mBAAoBS,EAASC,CAAO,EACxD,KAAK,KAAO,0BACZ,KAAK,QAAUC,EAAQ,QACvB,KAAK,QAAUA,EAAQ,OACzB,CACF,EAcaC,EAAb,cAAiDb,EAAAA,CAAU,CAEzD,QAEA,QAEA,YACE,EACA,EACA,EACA,CACA,MAAMC,EAAAA,EAAc,uBAAwBS,EAAS,CACnD,GAAGC,EAEH,UACEA,GAAS,YAAcT,EAAAA,EAAYS,GAAS,KAAK,GAAKR,EAAAA,EAAoBQ,GAAS,KAAK,EAC5F,CAAC,EACD,KAAK,KAAO,8BACZ,KAAK,QAAUC,EAAQ,QACvB,KAAK,QAAUA,EAAQ,OACzB,CACF,EAaaE,EAAb,cAAkDd,EAAAA,CAAU,CAE1D,QAEA,QAEA,MAEA,YAAY,EAAiB,EAAyC,EAAwB,CAC5F,MAAMC,EAAAA,EAAc,wBAAyBS,EAASC,CAAO,EAC7D,KAAK,KAAO,+BACZ,KAAK,QAAUC,EAAQ,QACvB,KAAK,QAAUA,EAAQ,QACvB,KAAK,MAAQA,EAAQ,KACvB,CACF,EAeaG,EAAb,cAA+Cf,EAAAA,CAAU,CAEvD,OAEA,QAEA,oBAEA,YAAY,EAAiB,EAAsC,EAAwB,CACzF,MAAMC,EAAAA,EAAc,qBAAsBS,EAASC,CAAO,EAC1D,KAAK,KAAO,4BACZ,KAAK,OAASC,EAAQ,OACtB,KAAK,QAAUA,EAAQ,QACvB,KAAK,oBAAsBA,EAAQ,mBACrC,CACF,ECpHA,SAAgBI,EAAU,EAAoB,CAC5C,OAAQC,EAAM,WAAW,IAAI,EAAIA,EAAQ,KAAKA,GAChD,CCKA,SAAgBC,EAAW,EAAwB,CACjD,OAAA,EAAOd,EAAAA,UAAAA,EAAAA,EAAUC,EAAAA,QAAAA,CAAQc,CAAS,CAAC,CACrC,CAEA,SAAgBC,EAAe,EAAqB,CAClD,OAAA,EAAOd,EAAAA,WAAAA,CAAWU,EAAUK,EAAM,MAAM,GAAG,CAAC,CAAC,CAC/C,CAEA,SAAgBC,EAAe,EAA4B,CAEzD,OAAOD,CACT,CAEA,SAAgBE,EAAO,EAAW,EAAuB,CAEvD,IAAMC,EAAQ,EAAIC,EAAQ,GACpBC,EAAOC,EAAK,MAAMH,EAAOA,EAAQ,EAAE,EACzC,OAAOE,EAAK,SAAW,GAAKA,EAAOA,EAAK,OAAO,GAAI,GAAG,CACxD,CAEA,SAAgBE,EAAc,EAAW,EAAwB,CAC/D,OAAA,EAAOtB,EAAAA,WAAAA,CAAWU,EAAUO,EAAOI,EAAMF,CAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAC7D,CAEA,SAAgBI,EAAa,EAAW,EAAuB,CAC7D,OAAO,OAAO,KAAON,EAAOI,EAAMF,CAAK,CAAC,CAC1C,CAEA,SAAgBK,EAAc,EAAW,EAA+B,CAEtE,OAAOd,EAAUO,EAAOI,EAAMF,CAAK,CAAC,CACtC,C"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,r as n,y as r}from"./relayer-Cki3j_Ba.js";import{getAddress as i,keccak256 as a,toBytes as o}from"viem";var s=class extends n{batcher;vaultId;constructor(e,n,r){super(t.VaultBatcherPaused,e,r),this.name=`VaultBatcherPausedError`,this.batcher=n.batcher,this.vaultId=n.vaultId}},c=class extends n{batcher;vaultId;constructor(n,i,a){super(t.VaultBatcherReadFailed,n,{...a,retryable:a?.retryable??(e(a?.cause)||r(a?.cause))}),this.name=`VaultBatcherReadFailedError`,this.batcher=i.batcher,this.vaultId=i.vaultId}},l=class extends n{batcher;batchId;state;constructor(e,n,r){super(t.VaultBatchNotDispatched,e,r),this.name=`VaultBatchNotDispatchedError`,this.batcher=n.batcher,this.batchId=n.batchId,this.state=n.state}},u=class extends n{txHash;receipt;unconfirmedVaultIds;constructor(e,n,r){super(t.VaultJoinUnconfirmed,e,r),this.name=`VaultJoinUnconfirmedError`,this.txHash=n.txHash,this.receipt=n.receipt,this.unconfirmedVaultIds=n.unconfirmedVaultIds}};function d(e){return e.startsWith(`0x`)?e:`0x${e}`}function f(e){return a(o(e))}function p(e){return i(d(e.slice(-40)))}function m(e){return e}function h(e,t){let n=2+t*64,r=e.slice(n,n+64);return r.length===64?r:r.padEnd(64,`0`)}function g(e,t){return i(d(h(e,t).slice(-40)))}function _(e,t){return BigInt(`0x`+h(e,t))}function v(e,t){return d(h(e,t))}export{_ as a,s as c,g as i,c as l,p as n,v as o,m as r,l as s,f as t,u};
|
|
2
|
-
//# sourceMappingURL=log-decoding-Cl4zZCe8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log-decoding-Cl4zZCe8.js","names":["isRetryable","ZamaErrorCode","ZamaError","isRpcRateLimitError","VaultBatcherPausedError","message","options","details","VaultBatcherReadFailedError","VaultBatchNotDispatchedError","VaultJoinUnconfirmedError","prefixHex","value","eventTopic","keccak256","toBytes","signature","topicToAddress","getAddress","topic","topicToBytes32","wordAt","start","index","word","data","wordToAddress","wordToBigInt","wordToBytes32"],"sources":["../../src/errors/vaults.ts","../../src/utils/hex.ts","../../src/events/log-decoding.ts"],"sourcesContent":["import type { Address, Hex } from \"viem\";\nimport type { TransactionReceipt } from \"../types/transaction\";\nimport type { BatchState } from \"../vaults/types\";\nimport { isRpcRateLimitError } from \"../utils/error\";\nimport { isRetryable, ZamaError, ZamaErrorCode } from \"./base\";\n\n/** What a {@link VaultBatcherPausedError} carries. */\nexport interface VaultBatcherPausedDetails {\n /** A paused or closed batcher of the vault. */\n readonly batcher: Address;\n /** The vault whose leg needs the batcher. */\n readonly vaultId: string;\n}\n\n/** No batcher of a vault is open: each one is paused or closed. */\nexport class VaultBatcherPausedError extends ZamaError {\n /** A paused or closed batcher of the vault. */\n readonly batcher: Address;\n /** The vault whose leg needs the batcher. */\n readonly vaultId: string;\n\n constructor(message: string, details: VaultBatcherPausedDetails, options?: ErrorOptions) {\n super(ZamaErrorCode.VaultBatcherPaused, message, options);\n this.name = \"VaultBatcherPausedError\";\n this.batcher = details.batcher;\n this.vaultId = details.vaultId;\n }\n}\n\n/** What a {@link VaultBatcherReadFailedError} carries. */\nexport interface VaultBatcherReadFailedDetails {\n /** The batcher that could not be read. */\n readonly batcher: Address;\n /** The vault that lists the batcher. */\n readonly vaultId: string;\n}\n\n/**\n * A batcher of a vault could not be read, so the SDK cannot tell which batch a join reaches.\n * Retryable when its `cause` is, or when RPC nodes returned reads from different blocks.\n */\nexport class VaultBatcherReadFailedError extends ZamaError {\n /** The batcher that could not be read. */\n readonly batcher: Address;\n /** The vault that lists the batcher. */\n readonly vaultId: string;\n\n constructor(\n message: string,\n details: VaultBatcherReadFailedDetails,\n options?: ErrorOptions & { retryable?: boolean },\n ) {\n super(ZamaErrorCode.VaultBatcherReadFailed, message, {\n ...options,\n // Providers pass an RPC rate limit through as a raw viem or ethers error, not an SDK one.\n retryable:\n options?.retryable ?? (isRetryable(options?.cause) || isRpcRateLimitError(options?.cause)),\n });\n this.name = \"VaultBatcherReadFailedError\";\n this.batcher = details.batcher;\n this.vaultId = details.vaultId;\n }\n}\n\n/** What a {@link VaultBatchNotDispatchedError} carries. */\nexport interface VaultBatchNotDispatchedDetails {\n /** The batcher the batch belongs to. */\n readonly batcher: Address;\n /** The batch that was to be finalized. */\n readonly batchId: bigint;\n /** The state the batch is in instead. */\n readonly state: BatchState;\n}\n\n/** The batch to finalize is not dispatched. */\nexport class VaultBatchNotDispatchedError extends ZamaError {\n /** The batcher the batch belongs to. */\n readonly batcher: Address;\n /** The batch that was to be finalized. */\n readonly batchId: bigint;\n /** The state the batch is in instead. */\n readonly state: BatchState;\n\n constructor(message: string, details: VaultBatchNotDispatchedDetails, options?: ErrorOptions) {\n super(ZamaErrorCode.VaultBatchNotDispatched, message, options);\n this.name = \"VaultBatchNotDispatchedError\";\n this.batcher = details.batcher;\n this.batchId = details.batchId;\n this.state = details.state;\n }\n}\n\n/** What a {@link VaultJoinUnconfirmedError} carries. */\nexport interface VaultJoinUnconfirmedDetails {\n /** The mined join transaction. */\n readonly txHash: Hex;\n /** Its receipt, to inspect the logs. */\n readonly receipt: TransactionReceipt;\n /** The vaults whose `Joined` log the SDK could not match. Not a list of legs that did not join. */\n readonly unconfirmedVaultIds: readonly string[];\n}\n\n/**\n * A join was mined, but the SDK could not match a `Joined` log to every leg.\n */\nexport class VaultJoinUnconfirmedError extends ZamaError {\n /** The mined join transaction. */\n readonly txHash: Hex;\n /** Its receipt, to inspect the logs. */\n readonly receipt: TransactionReceipt;\n /** The vaults whose `Joined` log the SDK could not match. Not a list of legs that did not join. */\n readonly unconfirmedVaultIds: readonly string[];\n\n constructor(message: string, details: VaultJoinUnconfirmedDetails, options?: ErrorOptions) {\n super(ZamaErrorCode.VaultJoinUnconfirmed, message, options);\n this.name = \"VaultJoinUnconfirmedError\";\n this.txHash = details.txHash;\n this.receipt = details.receipt;\n this.unconfirmedVaultIds = details.unconfirmedVaultIds;\n }\n}\n","import type { Hex } from \"viem\";\nimport { assertCondition } from \"./assertions\";\n\n/** Normalize a un-prefixed hex payload to a 0x-prefixed `Hex` value. */\nexport function prefixHex(value: string): Hex {\n return (value.startsWith(\"0x\") ? value : `0x${value}`) as Hex;\n}\n\n/** Convert a public `Hex` value back an unprefixed format. */\nexport function unprefixHex(value: Hex): string {\n assertCondition(value.startsWith(\"0x\"), `Expected 0x-prefixed hex, got: ${value}`);\n return value.slice(2);\n}\n","/**\n * Primitives for decoding raw EVM logs without an ABI decoder.\n *\n * @internal\n */\n\nimport { getAddress, keccak256, toBytes, type Address, type Hex } from \"viem\";\nimport type { EncryptedValue } from \"../relayer/types\";\nimport { prefixHex } from \"../utils\";\n\n/** Hashes the canonical signature — `Joined(uint256,address,bytes32)`, not the declaration with parameter names. */\nexport function eventTopic(signature: string): Hex {\n return keccak256(toBytes(signature));\n}\n\nexport function topicToAddress(topic: Hex): Address {\n return getAddress(prefixHex(topic.slice(-40)));\n}\n\nexport function topicToBytes32(topic: Hex): EncryptedValue {\n // EVM topics are already 32-byte 0x-prefixed hex — cast directly\n return topic as EncryptedValue;\n}\n\nexport function wordAt(data: Hex, index: number): string {\n // data starts with \"0x\", each word is 64 hex chars (32 bytes)\n const start = 2 + index * 64;\n const word = data.slice(start, start + 64);\n return word.length === 64 ? word : word.padEnd(64, \"0\");\n}\n\nexport function wordToAddress(data: Hex, index: number): Address {\n return getAddress(prefixHex(wordAt(data, index).slice(-40)));\n}\n\nexport function wordToBigInt(data: Hex, index: number): bigint {\n return BigInt(\"0x\" + wordAt(data, index));\n}\n\nexport function wordToBytes32(data: Hex, index: number): EncryptedValue {\n // wordAt returns exactly 64 hex chars — prefix and cast directly\n return prefixHex(wordAt(data, index)) as EncryptedValue;\n}\n"],"mappings":"A,6HAeA,IAAaI,EAAb,cAA6CF,CAAU,CAErD,QAEA,QAEA,YAAY,EAAiB,EAAoC,EAAwB,CACvF,MAAMD,EAAc,mBAAoBI,EAASC,CAAO,EACxD,KAAK,KAAO,0BACZ,KAAK,QAAUC,EAAQ,QACvB,KAAK,QAAUA,EAAQ,OACzB,CACF,EAcaC,EAAb,cAAiDN,CAAU,CAEzD,QAEA,QAEA,YACE,EACA,EACA,EACA,CACA,MAAMD,EAAc,uBAAwBI,EAAS,CACnD,GAAGC,EAEH,UACEA,GAAS,YAAcN,EAAYM,GAAS,KAAK,GAAKH,EAAoBG,GAAS,KAAK,EAC5F,CAAC,EACD,KAAK,KAAO,8BACZ,KAAK,QAAUC,EAAQ,QACvB,KAAK,QAAUA,EAAQ,OACzB,CACF,EAaaE,EAAb,cAAkDP,CAAU,CAE1D,QAEA,QAEA,MAEA,YAAY,EAAiB,EAAyC,EAAwB,CAC5F,MAAMD,EAAc,wBAAyBI,EAASC,CAAO,EAC7D,KAAK,KAAO,+BACZ,KAAK,QAAUC,EAAQ,QACvB,KAAK,QAAUA,EAAQ,QACvB,KAAK,MAAQA,EAAQ,KACvB,CACF,EAeaG,EAAb,cAA+CR,CAAU,CAEvD,OAEA,QAEA,oBAEA,YAAY,EAAiB,EAAsC,EAAwB,CACzF,MAAMD,EAAc,qBAAsBI,EAASC,CAAO,EAC1D,KAAK,KAAO,4BACZ,KAAK,OAASC,EAAQ,OACtB,KAAK,QAAUA,EAAQ,QACvB,KAAK,oBAAsBA,EAAQ,mBACrC,CACF,ECpHA,SAAgBI,EAAU,EAAoB,CAC5C,OAAQC,EAAM,WAAW,IAAI,EAAIA,EAAQ,KAAKA,GAChD,CCKA,SAAgBC,EAAW,EAAwB,CACjD,OAAOC,EAAUC,EAAQC,CAAS,CAAC,CACrC,CAEA,SAAgBC,EAAe,EAAqB,CAClD,OAAOC,EAAWP,EAAUQ,EAAM,MAAM,GAAG,CAAC,CAAC,CAC/C,CAEA,SAAgBC,EAAe,EAA4B,CAEzD,OAAOD,CACT,CAEA,SAAgBE,EAAO,EAAW,EAAuB,CAEvD,IAAMC,EAAQ,EAAIC,EAAQ,GACpBC,EAAOC,EAAK,MAAMH,EAAOA,EAAQ,EAAE,EACzC,OAAOE,EAAK,SAAW,GAAKA,EAAOA,EAAK,OAAO,GAAI,GAAG,CACxD,CAEA,SAAgBE,EAAc,EAAW,EAAwB,CAC/D,OAAOR,EAAWP,EAAUU,EAAOI,EAAMF,CAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAC7D,CAEA,SAAgBI,EAAa,EAAW,EAAuB,CAC7D,OAAO,OAAO,KAAON,EAAOI,EAAMF,CAAK,CAAC,CAC1C,CAEA,SAAgBK,EAAc,EAAW,EAA+B,CAEtE,OAAOjB,EAAUU,EAAOI,EAAMF,CAAK,CAAC,CACtC,C"}
|