@ghostspeak/sdk 2.0.6 → 2.0.7

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.
Files changed (117) hide show
  1. package/README.md +152 -30
  2. package/dist/GhostSpeakClient-CWmGaM9Q.d.ts +1007 -0
  3. package/dist/StakingModule-C5rzuOWb.d.ts +2526 -0
  4. package/dist/{agent-M74TCRON.js → agent-5YLZ7DAC.js} +4 -4
  5. package/dist/{agent-M74TCRON.js.map → agent-5YLZ7DAC.js.map} +1 -1
  6. package/dist/batch-operations-45CQFEID.js +4 -0
  7. package/dist/batch-operations-45CQFEID.js.map +1 -0
  8. package/dist/browser.d.ts +45 -554
  9. package/dist/browser.js +15 -842
  10. package/dist/browser.js.map +1 -1
  11. package/dist/chunk-AL3HQN73.js +754 -0
  12. package/dist/chunk-AL3HQN73.js.map +1 -0
  13. package/dist/chunk-BF3IQ35I.js +284 -0
  14. package/dist/chunk-BF3IQ35I.js.map +1 -0
  15. package/dist/chunk-BQDGRTVP.js +168 -0
  16. package/dist/chunk-BQDGRTVP.js.map +1 -0
  17. package/dist/chunk-C5CDA3WX.js +7314 -0
  18. package/dist/chunk-C5CDA3WX.js.map +1 -0
  19. package/dist/chunk-E3FD2CNY.js +1869 -0
  20. package/dist/chunk-E3FD2CNY.js.map +1 -0
  21. package/dist/{chunk-F3DZMBUA.js → chunk-G7S6B6WB.js} +327 -493
  22. package/dist/chunk-G7S6B6WB.js.map +1 -0
  23. package/dist/chunk-IHVDQ4YI.js +4231 -0
  24. package/dist/chunk-IHVDQ4YI.js.map +1 -0
  25. package/dist/chunk-JV2SWONF.js +98 -0
  26. package/dist/chunk-JV2SWONF.js.map +1 -0
  27. package/dist/chunk-KB6CKIUK.js +231 -0
  28. package/dist/chunk-KB6CKIUK.js.map +1 -0
  29. package/dist/chunk-S74EH3KD.js +7890 -0
  30. package/dist/chunk-S74EH3KD.js.map +1 -0
  31. package/dist/chunk-SFTSZ3LC.js +156 -0
  32. package/dist/chunk-SFTSZ3LC.js.map +1 -0
  33. package/dist/chunk-SKMJJ3Q6.js +125 -0
  34. package/dist/chunk-SKMJJ3Q6.js.map +1 -0
  35. package/dist/chunk-SZGFSCNU.js +3682 -0
  36. package/dist/chunk-SZGFSCNU.js.map +1 -0
  37. package/dist/chunk-TTB4OS2D.js +69 -0
  38. package/dist/chunk-TTB4OS2D.js.map +1 -0
  39. package/dist/chunk-UP2VWCW5.js +33 -0
  40. package/dist/{chunk-NSBPE2FW.js.map → chunk-UP2VWCW5.js.map} +1 -1
  41. package/dist/{chunk-UJUGGLMT.js → chunk-VQZQCHUT.js} +5 -5
  42. package/dist/{chunk-UJUGGLMT.js.map → chunk-VQZQCHUT.js.map} +1 -1
  43. package/dist/client.d.ts +5 -4
  44. package/dist/client.js +11 -10
  45. package/dist/createAgentAuthorization-ULG47ZJI.js +5 -0
  46. package/dist/createAgentAuthorization-ULG47ZJI.js.map +1 -0
  47. package/dist/credentials.js +1 -1
  48. package/dist/crypto.js +2 -2
  49. package/dist/errors.js +1 -1
  50. package/dist/feature-flags-B1g0DCPe.d.ts +1181 -0
  51. package/dist/generated-EG5USUFG.js +9 -0
  52. package/dist/{generated-VNLHMR6Y.js.map → generated-EG5USUFG.js.map} +1 -1
  53. package/dist/{ghostspeak_wasm-SB2RPJ3D.js → ghostspeak_wasm-F227HOSM.js} +3 -3
  54. package/dist/{ghostspeak_wasm-SB2RPJ3D.js.map → ghostspeak_wasm-F227HOSM.js.map} +1 -1
  55. package/dist/index.d.ts +1209 -1506
  56. package/dist/index.js +600 -3532
  57. package/dist/index.js.map +1 -1
  58. package/dist/metafile-esm.json +1 -1
  59. package/dist/minimal/core-minimal.d.ts +2383 -1264
  60. package/dist/minimal/core-minimal.js +9 -9
  61. package/dist/minimal/core-minimal.js.map +1 -1
  62. package/dist/nacl-fast-W5BJ3KZ2.js +2229 -0
  63. package/dist/nacl-fast-W5BJ3KZ2.js.map +1 -0
  64. package/dist/pda-4KP7CURF.js +4 -0
  65. package/dist/pda-4KP7CURF.js.map +1 -0
  66. package/dist/pda-Ce7VYg4T.d.ts +25 -0
  67. package/dist/reputation-types-Yebf0Rm_.d.ts +1071 -0
  68. package/dist/revokeAuthorization-OK7E7OK3.js +5 -0
  69. package/dist/revokeAuthorization-OK7E7OK3.js.map +1 -0
  70. package/dist/signature-verification-DGxR4aYQ.d.ts +448 -0
  71. package/dist/types.js +1 -1
  72. package/dist/updateReputationWithAuth-Y4ONEVSP.js +5 -0
  73. package/dist/updateReputationWithAuth-Y4ONEVSP.js.map +1 -0
  74. package/dist/utils.d.ts +69 -203
  75. package/dist/utils.js +15 -153
  76. package/dist/utils.js.map +1 -1
  77. package/package.json +24 -31
  78. package/dist/.tsbuildinfo +0 -1
  79. package/dist/GhostSpeakClient-D_66Uzsf.d.ts +0 -707
  80. package/dist/GovernanceModule-DQYYys-H.d.ts +0 -1766
  81. package/dist/chunk-APCKGD23.js +0 -1328
  82. package/dist/chunk-APCKGD23.js.map +0 -1
  83. package/dist/chunk-ASQXX4IT.js +0 -572
  84. package/dist/chunk-ASQXX4IT.js.map +0 -1
  85. package/dist/chunk-COGZFWOT.js +0 -19657
  86. package/dist/chunk-COGZFWOT.js.map +0 -1
  87. package/dist/chunk-F3DZMBUA.js.map +0 -1
  88. package/dist/chunk-GMHIUK2R.js +0 -7526
  89. package/dist/chunk-GMHIUK2R.js.map +0 -1
  90. package/dist/chunk-IAWBZYPE.js +0 -356
  91. package/dist/chunk-IAWBZYPE.js.map +0 -1
  92. package/dist/chunk-NSBPE2FW.js +0 -15
  93. package/dist/chunk-OWYHJG6H.js +0 -13311
  94. package/dist/chunk-OWYHJG6H.js.map +0 -1
  95. package/dist/chunk-RDDPOFR5.js +0 -3
  96. package/dist/chunk-RDDPOFR5.js.map +0 -1
  97. package/dist/chunk-RERCHKZP.js +0 -35
  98. package/dist/chunk-RERCHKZP.js.map +0 -1
  99. package/dist/chunk-TVVGXYCI.js +0 -2887
  100. package/dist/chunk-TVVGXYCI.js.map +0 -1
  101. package/dist/chunk-ZGP5552B.js +0 -377
  102. package/dist/chunk-ZGP5552B.js.map +0 -1
  103. package/dist/chunk-ZWOYNHVK.js +0 -196
  104. package/dist/chunk-ZWOYNHVK.js.map +0 -1
  105. package/dist/dist/.tsbuildinfo +0 -1
  106. package/dist/elgamal-VZLWB3XK.js +0 -5
  107. package/dist/elgamal-VZLWB3XK.js.map +0 -1
  108. package/dist/feature-flags-V722ZuXO.d.ts +0 -3512
  109. package/dist/generated-VNLHMR6Y.js +0 -5
  110. package/dist/ipfs-types-BOt9ZNg4.d.ts +0 -592
  111. package/dist/multisigConfig-BzEhy6jy.d.ts +0 -58
  112. package/dist/pda-B_nS8SbD.d.ts +0 -114
  113. package/dist/pda-S4BFJVGE.js +0 -4
  114. package/dist/pda-S4BFJVGE.js.map +0 -1
  115. package/dist/system-addresses-BFNLEbFx.d.ts +0 -857
  116. package/dist/token-2022-rpc-RALH4RK7.js +0 -593
  117. package/dist/token-2022-rpc-RALH4RK7.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import {getProgramDerivedAddress,getBytesEncoder,getAddressEncoder,getUtf8Encoder,getU64Encoder,isProgramError,containsBytes,fixEncoderSize,getStructEncoder,getU8Encoder,addEncoderSizePrefix,getOptionEncoder,getU32Encoder,getI64Encoder,getStructDecoder,getAddressDecoder,getU8Decoder,addDecoderSizePrefix,getOptionDecoder,getU32Decoder,getI64Decoder,getUtf8Decoder,combineCodec,getU64Decoder,getBooleanEncoder,getArrayEncoder,getBooleanDecoder,getArrayDecoder,getEnumEncoder,getEnumDecoder,transformEncoder,fixDecoderSize,getBytesDecoder,getU16Encoder,getU16Decoder,getI32Encoder,getI32Decoder,getF64Encoder,getF64Decoder,getI16Encoder,getI16Decoder,getF32Encoder,getF32Decoder,getDiscriminatedUnionEncoder,getUnitEncoder,getTupleEncoder as getTupleEncoder$1,getDiscriminatedUnionDecoder,getUnitDecoder,getTupleDecoder as getTupleDecoder$1,assertAccountExists,fetchEncodedAccount,assertAccountsExist,fetchEncodedAccounts,decodeAccount,AccountRole,upgradeRoleToSigner,isTransactionSigner,pipe,createTransactionMessage,setTransactionMessageFeePayerSigner,setTransactionMessageLifetimeUsingBlockhash,appendTransactionMessageInstructions,signTransactionMessageWithSigners,setTransactionMessageFeePayer,compileTransactionMessage,getBase64EncodedWireTransaction,createSolanaRpc,createSolanaRpcSubscriptions,lamports}from'@solana/kit';import {getTupleEncoder,getTupleDecoder}from'@solana/codecs-data-structures';import {address}from'@solana/addresses';import'@solana/sysvars';import {generateKeyPairSigner}from'@solana/signers';import {sha256}from'@noble/hashes/sha256';import Cvt from'bs58';var jte=Object.defineProperty;var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var jv=(e,t)=>{for(var r in t)jte(e,r,{get:t[r],enumerable:true});};function gne(){return fixEncoderSize(getBytesEncoder(),8).encode(Ll)}function oM(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",getU64Encoder()],["session",getAddressEncoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["sentAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Ll}))}function Kl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",getU64Decoder()],["session",getAddressDecoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["sentAt",getI64Decoder()],["bump",getU8Decoder()]])}function Ane(){return combineCodec(oM(),Kl())}function Vl(e){return decodeAccount(e,Kl())}async function pne(e,t,r){let o=await cM(e,t,r);return assertAccountExists(o),o}async function cM(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Vl(o)}async function lne(e,t,r){let o=await sM(e,t,r);return assertAccountsExist(o),o}async function sM(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Vl(n))}var Ll,iM=i(()=>{Ll=new Uint8Array([174,118,140,42,3,207,16,145]);});function wne(){return fixEncoderSize(getBytesEncoder(),8).encode(Hl)}function EM(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["sessionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Hl}))}function Jl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["sessionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["bump",getU8Decoder()]])}function Une(){return combineCodec(EM(),Jl())}function jl(e){return decodeAccount(e,Jl())}async function _ne(e,t,r){let o=await SM(e,t,r);return assertAccountExists(o),o}async function SM(e,t,r){let o=await fetchEncodedAccount(e,t,r);return jl(o)}async function One(e,t,r){let o=await PM(e,t,r);return assertAccountsExist(o),o}async function PM(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>jl(n))}var Hl,DM=i(()=>{Hl=new Uint8Array([35,65,251,143,132,134,104,33]);});function rre(){return fixEncoderSize(getBytesEncoder(),8).encode(ql)}function wM(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["lastUpdated",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:ql}))}function $l(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["lastUpdated",getI64Decoder()],["bump",getU8Decoder()]])}function ore(){return combineCodec(wM(),$l())}function Xl(e){return decodeAccount(e,$l())}async function cre(e,t,r){let o=await UM(e,t,r);return assertAccountExists(o),o}async function UM(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Xl(o)}async function sre(e,t,r){let o=await _M(e,t,r);return assertAccountsExist(o),o}async function _M(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Xl(n))}var ql,OM=i(()=>{ql=new Uint8Array([253,113,10,35,24,155,227,28]);});function FM(){return getStructEncoder([["messageId",getU64Encoder()],["sessionId",getU64Encoder()],["sender",getAddressEncoder()],["timestamp",getI64Encoder()]])}function GM(){return getStructDecoder([["messageId",getU64Decoder()],["sessionId",getU64Decoder()],["sender",getAddressDecoder()],["timestamp",getI64Decoder()]])}function lre(){return combineCodec(FM(),GM())}var BM=i(()=>{});function KM(){return getStructEncoder([["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["timestamp",getI64Encoder()]])}function VM(){return getStructDecoder([["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Pre(){return combineCodec(KM(),VM())}var HM=i(()=>{});function JM(){return getStructEncoder([["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["availability",getBooleanEncoder()],["timestamp",getI64Encoder()]])}function jM(){return getStructDecoder([["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["availability",getBooleanDecoder()],["timestamp",getI64Decoder()]])}function Fre(){return combineCodec(JM(),jM())}var qM=i(()=>{});function So(){return getStructEncoder([["auditEnabled",getBooleanEncoder()],["realTimeMonitoring",getBooleanEncoder()],["retentionPeriod",getI64Encoder()]])}function Po(){return getStructDecoder([["auditEnabled",getBooleanDecoder()],["realTimeMonitoring",getBooleanDecoder()],["retentionPeriod",getI64Decoder()]])}function Vre(){return combineCodec(So(),Po())}var QM=i(()=>{});function Do(){return getStructEncoder([["policyId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["policyType",Uo()],["rules",getArrayEncoder(ho())],["scope",vo()],["priority",getU8Encoder()],["status",ko()],["effectiveDate",getI64Encoder()],["expirationDate",getOptionEncoder(getI64Encoder())],["metadata",Co()]])}function bo(){return getStructDecoder([["policyId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["policyType",_o()],["rules",getArrayDecoder(Io())],["scope",Mo()],["priority",getU8Decoder()],["status",wo()],["effectiveDate",getI64Decoder()],["expirationDate",getOptionDecoder(getI64Decoder())],["metadata",Ro()]])}function eoe(){return combineCodec(Do(),bo())}var ek=i(()=>{p();});function Oo(){return getStructEncoder([["maxFailedAttempts",getU8Encoder()],["lockoutDuration",getI64Encoder()],["progressiveLockout",getBooleanEncoder()],["unlockMethods",getArrayEncoder(Wo())],["notificationRequirements",getArrayEncoder(vt())]])}function zo(){return getStructDecoder([["maxFailedAttempts",getU8Decoder()],["lockoutDuration",getI64Decoder()],["progressiveLockout",getBooleanDecoder()],["unlockMethods",getArrayDecoder(Fo())],["notificationRequirements",getArrayDecoder(Mt())]])}function uoe(){return combineCodec(Oo(),zo())}var rk=i(()=>{p();});function re(){return getEnumEncoder(Go)}function oe(){return getEnumDecoder(Go)}function loe(){return combineCodec(re(),oe())}var Go,ok=i(()=>{Go=(o=>(o[o.Uninitialized=0]="Uninitialized",o[o.Initialized=1]="Initialized",o[o.Frozen=2]="Frozen",o))(Go||{});});function ck(){return getStructEncoder([["data",fe()]])}function sk(){return getStructDecoder([["data",xe()]])}function foe(){return combineCodec(ck(),sk())}var ik=i(()=>{p();});function Bo(){return getStructEncoder([["requirementType",Lo()],["approvers",getArrayEncoder(getAddressEncoder())],["minApprovals",getU8Encoder()],["approvalTimeout",getI64Encoder()],["evidenceRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function No(){return getStructDecoder([["requirementType",Ko()],["approvers",getArrayDecoder(getAddressDecoder())],["minApprovals",getU8Decoder()],["approvalTimeout",getI64Decoder()],["evidenceRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function _oe(){return combineCodec(Bo(),No())}var uk=i(()=>{p();});function Lo(){return getEnumEncoder(Vo)}function Ko(){return getEnumDecoder(Vo)}function Foe(){return combineCodec(Lo(),Ko())}var Vo,gk=i(()=>{Vo=(g=>(g[g.ManagerApproval=0]="ManagerApproval",g[g.PeerReview=1]="PeerReview",g[g.SecurityClearance=2]="SecurityClearance",g[g.BackgroundCheck=3]="BackgroundCheck",g[g.TrainingCompletion=4]="TrainingCompletion",g[g.CertificationRequired=5]="CertificationRequired",g[g.BusinessJustification=6]="BusinessJustification",g[g.TechnicalAssessment=7]="TechnicalAssessment",g))(Vo||{});});function lk(){return getStructEncoder([["agent",getAddressEncoder()],["operation",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["revenue",getU64Encoder()],["transactionCount",getU32Encoder()],["successRate",getU32Encoder()],["averageRating",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function mk(){return getStructDecoder([["agent",getAddressDecoder()],["operation",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["revenue",getU64Decoder()],["transactionCount",getU32Decoder()],["successRate",getU32Decoder()],["averageRating",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function Xoe(){return combineCodec(lk(),mk())}var yk=i(()=>{});function Ee(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["additionalCapabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["pricingModel",kt()],["isReplicable",getBooleanEncoder()],["replicationFee",getOptionEncoder(getU64Encoder())]])}function Se(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["additionalCapabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["pricingModel",wt()],["isReplicable",getBooleanDecoder()],["replicationFee",getOptionDecoder(getU64Decoder())]])}function sce(){return combineCodec(Ee(),Se())}var xk=i(()=>{p();});function Ek(){return getStructEncoder([["resale",getAddressEncoder()],["agent",getAddressEncoder()],["seller",getAddressEncoder()],["listingPrice",getU64Encoder()]])}function Sk(){return getStructDecoder([["resale",getAddressDecoder()],["agent",getAddressDecoder()],["seller",getAddressDecoder()],["listingPrice",getU64Decoder()]])}function Ace(){return combineCodec(Ek(),Sk())}var Pk=i(()=>{});function jo(){return getStructEncoder([["agent",getAddressEncoder()],["revenue",getU64Encoder()],["transactionCount",getU32Encoder()],["successRate",getU32Encoder()],["averageRating",getU32Encoder()],["responseTime",getU64Encoder()],["lastUpdated",getI64Encoder()]])}function qo(){return getStructDecoder([["agent",getAddressDecoder()],["revenue",getU64Decoder()],["transactionCount",getU32Decoder()],["successRate",getU32Decoder()],["averageRating",getU32Decoder()],["responseTime",getU64Decoder()],["lastUpdated",getI64Decoder()]])}function Ece(){return combineCodec(jo(),qo())}var Ck=i(()=>{});function Mk(){return getStructEncoder([["dashboard",getAddressEncoder()],["agent",getAddressEncoder()],["revenue",getU64Encoder()],["transactionCount",getU32Encoder()],["successRate",getU32Encoder()],["averageRating",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function kk(){return getStructDecoder([["dashboard",getAddressDecoder()],["agent",getAddressDecoder()],["revenue",getU64Decoder()],["transactionCount",getU32Decoder()],["successRate",getU32Decoder()],["averageRating",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function Rce(){return combineCodec(Mk(),kk())}var wk=i(()=>{});function Ok(){return getStructEncoder([["agent",getAddressEncoder()],["revenue",getU64Encoder()],["successRate",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function zk(){return getStructDecoder([["agent",getAddressDecoder()],["revenue",getU64Decoder()],["successRate",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function zce(){return combineCodec(Ok(),zk())}var Wk=i(()=>{});function Bk(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function Nk(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function qce(){return combineCodec(Bk(),Nk())}var Lk=i(()=>{});function Kk(){return getStructEncoder([["originalAgent",getAddressEncoder()],["replicatedAgent",getAddressEncoder()],["replicator",getAddressEncoder()],["feePaid",getU64Encoder()],["timestamp",getI64Encoder()]])}function Vk(){return getStructDecoder([["originalAgent",getAddressDecoder()],["replicatedAgent",getAddressDecoder()],["replicator",getAddressDecoder()],["feePaid",getU64Decoder()],["timestamp",getI64Decoder()]])}function nse(){return combineCodec(Kk(),Vk())}var Hk=i(()=>{});function qk(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()]])}function $k(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()]])}function yse(){return combineCodec(qk(),$k())}var Xk=i(()=>{});function tw(){return getStructEncoder([["agent",getAddressEncoder()],["previousStatus",getBooleanEncoder()],["newStatus",getBooleanEncoder()],["timestamp",getI64Encoder()],["authority",getAddressEncoder()]])}function nw(){return getStructDecoder([["agent",getAddressDecoder()],["previousStatus",getBooleanDecoder()],["newStatus",getBooleanDecoder()],["timestamp",getI64Decoder()],["authority",getAddressDecoder()]])}function Pse(){return combineCodec(tw(),nw())}var rw=i(()=>{});function sw(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()]])}function iw(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Ise(){return combineCodec(sw(),iw())}var aw=i(()=>{});function $o(){return getStructEncoder([["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedCapabilities",getArrayEncoder(getU64Encoder())],["verifiedAt",getI64Encoder()]])}function Xo(){return getStructDecoder([["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedCapabilities",getArrayDecoder(getU64Decoder())],["verifiedAt",getI64Decoder()]])}function Jse(){return combineCodec($o(),Xo())}var dw=i(()=>{});function Qo(){return getStructEncoder([["biometricType",Ut()],["maxAge",getI64Encoder()],["refreshRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["degradationHandling",Yo()]])}function Zo(){return getStructDecoder([["biometricType",_t()],["maxAge",getI64Decoder()],["refreshRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["degradationHandling",ec()]])}function sie(){return combineCodec(Qo(),Zo())}var uw=i(()=>{p();});function pw(){return getStructEncoder([["dashboard",getAddressEncoder()],["owner",getAddressEncoder()],["dashboardId",getU64Encoder()],["timestamp",getI64Encoder()]])}function lw(){return getStructDecoder([["dashboard",getAddressDecoder()],["owner",getAddressDecoder()],["dashboardId",getU64Decoder()],["timestamp",getI64Decoder()]])}function lie(){return combineCodec(pw(),lw())}var mw=i(()=>{});function fw(){return getStructEncoder([["dashboard",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()]])}function xw(){return getStructDecoder([["dashboard",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Eie(){return combineCodec(fw(),xw())}var Ew=i(()=>{});function Sw(){return getStructEncoder([["dashboard",getAddressEncoder()],["retentionDays",getU16Encoder()],["timestamp",getI64Encoder()]])}function Pw(){return getStructDecoder([["dashboard",getAddressDecoder()],["retentionDays",getU16Decoder()],["timestamp",getI64Decoder()]])}function Mie(){return combineCodec(Sw(),Pw())}var Dw=i(()=>{});function bw(){return getStructEncoder([["metricType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["value",getU64Encoder()],["timestamp",getI64Encoder()]])}function Cw(){return getStructDecoder([["metricType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["value",getU64Decoder()],["timestamp",getI64Decoder()]])}function Vie(){return combineCodec(bw(),Cw())}var Rw=i(()=>{});function nc(){return getEnumEncoder(tc)}function rc(){return getEnumDecoder(tc)}function qie(){return combineCodec(nc(),rc())}var tc,hw=i(()=>{tc=(n=>(n[n.Submitted=0]="Submitted",n[n.Accepted=1]="Accepted",n[n.Rejected=2]="Rejected",n[n.Withdrawn=3]="Withdrawn",n))(tc||{});});function oc(){return getStructEncoder([["actionType",Ot()],["requiredApprovers",getArrayEncoder(getAddressEncoder())],["minApprovals",getU8Encoder()],["approvalTimeout",getI64Encoder()]])}function cc(){return getStructDecoder([["actionType",zt()],["requiredApprovers",getArrayDecoder(getAddressDecoder())],["minApprovals",getU8Decoder()],["approvalTimeout",getI64Decoder()]])}function sae(){return combineCodec(oc(),cc())}var Iw=i(()=>{p();});function vw(){return getStructEncoder([["dispute",getAddressEncoder()],["arbitrator",getAddressEncoder()],["assignedBy",getAddressEncoder()],["timestamp",getI64Encoder()]])}function Mw(){return getStructDecoder([["dispute",getAddressDecoder()],["arbitrator",getAddressDecoder()],["assignedBy",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Aae(){return combineCodec(vw(),Mw())}var kw=i(()=>{});function sc(){return getStructEncoder([["fileType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["fileSize",getU64Encoder()],["fileHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["storageUrl",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function ic(){return getStructDecoder([["fileType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["fileSize",getU64Decoder()],["fileHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["storageUrl",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function fae(){return combineCodec(sc(),ic())}var ww=i(()=>{});function ac(){return getStructEncoder([["bidder",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()],["isWinning",getBooleanEncoder()]])}function dc(){return getStructDecoder([["bidder",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()],["isWinning",getBooleanDecoder()]])}function Mae(){return combineCodec(ac(),dc())}var Uw=i(()=>{});function zw(){return getStructEncoder([["auction",getAddressEncoder()],["bidder",getAddressEncoder()],["bidAmount",getU64Encoder()],["totalBids",getU32Encoder()]])}function Ww(){return getStructDecoder([["auction",getAddressDecoder()],["bidder",getAddressDecoder()],["bidAmount",getU64Decoder()],["totalBids",getU32Decoder()]])}function Fae(){return combineCodec(zw(),Ww())}var Fw=i(()=>{});function Gw(){return getStructEncoder([["auction",getAddressEncoder()],["extensionCount",getU8Encoder()],["newEndTime",getI64Encoder()],["reserveShortfall",getU64Encoder()],["isReserveHidden",getBooleanEncoder()]])}function Bw(){return getStructDecoder([["auction",getAddressDecoder()],["extensionCount",getU8Decoder()],["newEndTime",getI64Decoder()],["reserveShortfall",getU64Decoder()],["isReserveHidden",getBooleanDecoder()]])}function Zae(){return combineCodec(Gw(),Bw())}var Nw=i(()=>{});function Lw(){return getStructEncoder([["auction",getAddressEncoder()],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Kw(){return getStructDecoder([["auction",getAddressDecoder()],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function ude(){return combineCodec(Lw(),Kw())}var Vw=i(()=>{});function jw(){return getStructEncoder([["auction",getAddressEncoder()],["winner",getAddressEncoder()],["winningBid",getU64Encoder()]])}function qw(){return getStructDecoder([["auction",getAddressDecoder()],["winner",getAddressDecoder()],["winningBid",getU64Decoder()]])}function yde(){return combineCodec(jw(),qw())}var $w=i(()=>{});function Xw(){return getStructEncoder([["auction",getAddressEncoder()],["oldReservePrice",getU64Encoder()],["newReservePrice",getU64Encoder()],["reserveRevealed",getBooleanEncoder()],["currentHighestBid",getU64Encoder()]])}function Qw(){return getStructDecoder([["auction",getAddressDecoder()],["oldReservePrice",getU64Decoder()],["newReservePrice",getU64Decoder()],["reserveRevealed",getBooleanDecoder()],["currentHighestBid",getU64Decoder()]])}function bde(){return combineCodec(Xw(),Qw())}var Zw=i(()=>{});function gc(){return getEnumEncoder(uc)}function Ac(){return getEnumDecoder(uc)}function Ide(){return combineCodec(gc(),Ac())}var uc,Yw=i(()=>{uc=(n=>(n[n.Active=0]="Active",n[n.Ended=1]="Ended",n[n.Cancelled=2]="Cancelled",n[n.Settled=3]="Settled",n))(uc||{});});function ce(){return getEnumEncoder(Qn)}function se(){return getEnumDecoder(Qn)}function wde(){return combineCodec(ce(),se())}var Qn,eU=i(()=>{Qn=(n=>(n[n.English=0]="English",n[n.Dutch=1]="Dutch",n[n.SealedBid=2]="SealedBid",n[n.Vickrey=3]="Vickrey",n))(Qn||{});});function Ot(){return getEnumEncoder(pc)}function zt(){return getEnumDecoder(pc)}function zde(){return combineCodec(Ot(),zt())}var pc,tU=i(()=>{pc=(D=>(D[D.AgentRegistered=0]="AgentRegistered",D[D.AgentUpdated=1]="AgentUpdated",D[D.AgentDeactivated=2]="AgentDeactivated",D[D.AgentVerified=3]="AgentVerified",D[D.PaymentProcessed=4]="PaymentProcessed",D[D.EscrowCreated=5]="EscrowCreated",D[D.EscrowReleased=6]="EscrowReleased",D[D.FundsWithdrawn=7]="FundsWithdrawn",D[D.ProposalCreated=8]="ProposalCreated",D[D.VoteCast=9]="VoteCast",D[D.ProposalExecuted=10]="ProposalExecuted",D[D.GovernanceUpdated=11]="GovernanceUpdated",D[D.AccessGranted=12]="AccessGranted",D[D.AccessRevoked=13]="AccessRevoked",D[D.SecurityPolicyUpdated=14]="SecurityPolicyUpdated",D[D.SuspiciousActivity=15]="SuspiciousActivity",D[D.ComplianceReportGenerated=16]="ComplianceReportGenerated",D[D.RegulatorySubmission=17]="RegulatorySubmission",D[D.AuditRequested=18]="AuditRequested",D[D.ViolationDetected=19]="ViolationDetected",D[D.SystemConfigUpdated=20]="SystemConfigUpdated",D[D.EmergencyAction=21]="EmergencyAction",D[D.MaintenancePerformed=22]="MaintenancePerformed",D[D.WorkOrderCreated=23]="WorkOrderCreated",D[D.WorkOrderCompleted=24]="WorkOrderCompleted",D[D.DisputeRaised=25]="DisputeRaised",D[D.DisputeResolved=26]="DisputeResolved",D[D.MultisigCreated=27]="MultisigCreated",D[D.MultisigSigned=28]="MultisigSigned",D[D.MultisigExecuted=29]="MultisigExecuted",D[D.RiskAssessmentPerformed=30]="RiskAssessmentPerformed",D[D.RiskThresholdExceeded=31]="RiskThresholdExceeded",D[D.RiskMitigationApplied=32]="RiskMitigationApplied",D))(pc||{});});function Wt(){return getStructEncoder([["maxEntries",getU32Encoder()],["retentionPeriod",getI64Encoder()],["autoArchive",getBooleanEncoder()],["reportingFrequency",yc()],["approvalLevels",getArrayEncoder(oc())],["encryptionRequired",getBooleanEncoder()],["backupFrequency",lc()]])}function Ft(){return getStructDecoder([["maxEntries",getU32Decoder()],["retentionPeriod",getI64Decoder()],["autoArchive",getBooleanDecoder()],["reportingFrequency",Tc()],["approvalLevels",getArrayDecoder(cc())],["encryptionRequired",getBooleanDecoder()],["backupFrequency",mc()]])}function Jde(){return combineCodec(Wt(),Ft())}var oU=i(()=>{p();});function cU(){return getStructEncoder([["data",Pe()]])}function sU(){return getStructDecoder([["data",De()]])}function Xde(){return combineCodec(cU(),sU())}var iU=i(()=>{p();});function fc(){return getStructEncoder([["entryId",getU64Encoder()],["timestamp",getI64Encoder()],["action",Ot()],["actor",getAddressEncoder()],["target",getOptionEncoder(getAddressEncoder())],["context",Pe()],["complianceFlags",Gt()],["previousHash",fixEncoderSize(getBytesEncoder(),32)],["entryHash",fixEncoderSize(getBytesEncoder(),32)],["signature",getOptionEncoder(fixEncoderSize(getBytesEncoder(),64))]])}function xc(){return getStructDecoder([["entryId",getU64Decoder()],["timestamp",getI64Decoder()],["action",zt()],["actor",getAddressDecoder()],["target",getOptionDecoder(getAddressDecoder())],["context",De()],["complianceFlags",Bt()],["previousHash",fixDecoderSize(getBytesDecoder(),32)],["entryHash",fixDecoderSize(getBytesDecoder(),32)],["signature",getOptionDecoder(fixDecoderSize(getBytesDecoder(),64))]])}function oue(){return combineCodec(fc(),xc())}var AU=i(()=>{p();});function pU(){return getStructEncoder([["entity",getAddressEncoder()],["entityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function lU(){return getStructDecoder([["entity",getAddressDecoder()],["entityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function fue(){return combineCodec(pU(),lU())}var mU=i(()=>{});function Sc(){return getEnumEncoder(Ec)}function Pc(){return getEnumDecoder(Ec)}function Pue(){return combineCodec(Sc(),Pc())}var Ec,yU=i(()=>{Ec=(n=>(n[n.Low=0]="Low",n[n.Medium=1]="Medium",n[n.High=2]="High",n[n.VeryHigh=3]="VeryHigh",n))(Ec||{});});function bc(){return getEnumEncoder(Dc)}function Cc(){return getEnumDecoder(Dc)}function Rue(){return combineCodec(bc(),Cc())}var Dc,TU=i(()=>{Dc=(b=>(b[b.Password=0]="Password",b[b.DigitalSignature=1]="DigitalSignature",b[b.Biometric=2]="Biometric",b[b.Token=3]="Token",b[b.Certificate=4]="Certificate",b[b.Sms=5]="Sms",b[b.Email=6]="Email",b[b.App=7]="App",b[b.Hardware=8]="Hardware",b))(Dc||{});});function Rc(){return getStructEncoder([["mfaRequired",getBooleanEncoder()],["supportedMethods",getArrayEncoder(bc())],["strengthRequirements",Ic()],["lockoutPolicies",Oo()],["biometricPolicies",getOptionEncoder(Mc())]])}function hc(){return getStructDecoder([["mfaRequired",getBooleanDecoder()],["supportedMethods",getArrayDecoder(Cc())],["strengthRequirements",vc()],["lockoutPolicies",zo()],["biometricPolicies",getOptionDecoder(kc())]])}function zue(){return combineCodec(Rc(),hc())}var fU=i(()=>{p();});function Ic(){return getStructEncoder([["minimumLevel",Sc()],["riskBased",getBooleanEncoder()],["adaptive",getBooleanEncoder()],["stepUpTriggers",getArrayEncoder(wc())]])}function vc(){return getStructDecoder([["minimumLevel",Pc()],["riskBased",getBooleanDecoder()],["adaptive",getBooleanDecoder()],["stepUpTriggers",getArrayDecoder(Uc())]])}function Lue(){return combineCodec(Ic(),vc())}var SU=i(()=>{p();});function _c(){return getStructEncoder([["defaultDeny",getBooleanEncoder()],["explicitPermissionsRequired",getBooleanEncoder()]])}function Oc(){return getStructDecoder([["defaultDeny",getBooleanDecoder()],["explicitPermissionsRequired",getBooleanDecoder()]])}function Jue(){return combineCodec(_c(),Oc())}var bU=i(()=>{});function lc(){return getEnumEncoder(zc)}function mc(){return getEnumDecoder(zc)}function Xue(){return combineCodec(lc(),mc())}var zc,CU=i(()=>{zc=(n=>(n[n.Hourly=0]="Hourly",n[n.Daily=1]="Daily",n[n.Weekly=2]="Weekly",n[n.Monthly=3]="Monthly",n))(zc||{});});function IU(){return getStructEncoder([["auction",getAddressEncoder()],["bidder",getAddressEncoder()],["commitmentHash",fixEncoderSize(getBytesEncoder(),32)],["timestamp",getI64Encoder()]])}function vU(){return getStructDecoder([["auction",getAddressDecoder()],["bidder",getAddressDecoder()],["commitmentHash",fixDecoderSize(getBytesDecoder(),32)],["timestamp",getI64Decoder()]])}function sge(){return combineCodec(IU(),vU())}var MU=i(()=>{});function UU(){return getStructEncoder([["auction",getAddressEncoder()],["bidder",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()]])}function _U(){return getStructDecoder([["auction",getAddressDecoder()],["bidder",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()]])}function lge(){return combineCodec(UU(),_U())}var OU=i(()=>{});function Mc(){return getStructEncoder([["supportedTypes",getArrayEncoder(Ut())],["qualityRequirements",be()],["livenessDetection",getBooleanEncoder()],["templateProtection",Wc()]])}function kc(){return getStructDecoder([["supportedTypes",getArrayDecoder(_t())],["qualityRequirements",Ce()],["livenessDetection",getBooleanDecoder()],["templateProtection",Fc()]])}function Pge(){return combineCodec(Mc(),kc())}var zU=i(()=>{p();});function Wc(){return getStructEncoder([["encryptionRequired",getBooleanEncoder()],["storageMethod",Gc()],["revocationSupport",getBooleanEncoder()],["agingPolicies",getArrayEncoder(Qo())]])}function Fc(){return getStructDecoder([["encryptionRequired",getBooleanDecoder()],["storageMethod",Bc()],["revocationSupport",getBooleanDecoder()],["agingPolicies",getArrayDecoder(Zo())]])}function Ige(){return combineCodec(Wc(),Fc())}var GU=i(()=>{p();});function BU(){return getStructEncoder([["data",be()]])}function NU(){return getStructDecoder([["data",Ce()]])}function wge(){return combineCodec(BU(),NU())}var LU=i(()=>{p();});function Gc(){return getEnumEncoder(Nc)}function Bc(){return getEnumDecoder(Nc)}function zge(){return combineCodec(Gc(),Bc())}var Nc,KU=i(()=>{Nc=(s=>(s[s.OnDevice=0]="OnDevice",s[s.Encrypted=1]="Encrypted",s[s.Hashed=2]="Hashed",s[s.Distributed=3]="Distributed",s[s.None=4]="None",s))(Nc||{});});function Ut(){return getEnumEncoder(Lc)}function _t(){return getEnumDecoder(Lc)}function Bge(){return combineCodec(Ut(),_t())}var Lc,VU=i(()=>{Lc=(A=>(A[A.Fingerprint=0]="Fingerprint",A[A.FaceRecognition=1]="FaceRecognition",A[A.IrisRecognition=2]="IrisRecognition",A[A.VoiceRecognition=3]="VoiceRecognition",A[A.Signature=4]="Signature",A[A.Gait=5]="Gait",A[A.Behavioral=6]="Behavioral",A))(Lc||{});});function $U(){return getStructEncoder([["deal",getAddressEncoder()],["executor",getAddressEncoder()],["batchSize",getU32Encoder()],["totalExecuted",getU32Encoder()],["timestamp",getI64Encoder()]])}function XU(){return getStructDecoder([["deal",getAddressDecoder()],["executor",getAddressDecoder()],["batchSize",getU32Decoder()],["totalExecuted",getU32Decoder()],["timestamp",getI64Decoder()]])}function Jge(){return combineCodec($U(),XU())}var QU=i(()=>{});function ZU(){return getStructEncoder([["deal",getAddressEncoder()],["agent",getAddressEncoder()],["customer",getAddressEncoder()],["dealType",ie()],["totalValue",getU64Encoder()]])}function YU(){return getStructDecoder([["deal",getAddressDecoder()],["agent",getAddressDecoder()],["customer",getAddressDecoder()],["dealType",ae()],["totalValue",getU64Decoder()]])}function Zge(){return combineCodec(ZU(),YU())}var e_=i(()=>{p();});function r_(){return getStructEncoder([["channel",getAddressEncoder()],["creator",getAddressEncoder()],["channelType",G()]])}function o_(){return getStructDecoder([["channel",getAddressDecoder()],["creator",getAddressDecoder()],["channelType",B()]])}function nAe(){return combineCodec(r_(),o_())}var c_=i(()=>{p();});function Re(){return getStructEncoder([["name",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["description",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["avatarUrl",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["settings",$c()]])}function he(){return getStructDecoder([["name",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["description",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["avatarUrl",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["settings",Xc()]])}function aAe(){return combineCodec(Re(),he())}var s_=i(()=>{p();});function $c(){return getStructEncoder([["allowFileSharing",getBooleanEncoder()],["allowExternalInvites",getBooleanEncoder()],["messageRetentionDays",getU32Encoder()],["maxMessageSize",getU32Encoder()],["requireEncryption",getBooleanEncoder()],["autoArchiveAfterDays",getU32Encoder()]])}function Xc(){return getStructDecoder([["allowFileSharing",getBooleanDecoder()],["allowExternalInvites",getBooleanDecoder()],["messageRetentionDays",getU32Decoder()],["maxMessageSize",getU32Decoder()],["requireEncryption",getBooleanDecoder()],["autoArchiveAfterDays",getU32Decoder()]])}function AAe(){return combineCodec($c(),Xc())}var i_=i(()=>{});function u_(){return getStructEncoder([["channel",getAddressEncoder()],["updatedBy",getAddressEncoder()],["updatedAt",getI64Encoder()]])}function g_(){return getStructDecoder([["channel",getAddressDecoder()],["updatedBy",getAddressDecoder()],["updatedAt",getI64Decoder()]])}function fAe(){return combineCodec(u_(),g_())}var A_=i(()=>{});function G(){return getEnumEncoder(Zn)}function B(){return getEnumDecoder(Zn)}function PAe(){return combineCodec(G(),B())}var Zn,G1=i(()=>{Zn=(n=>(n[n.Direct=0]="Direct",n[n.Group=1]="Group",n[n.Public=2]="Public",n[n.Private=3]="Private",n))(Zn||{});});function m_(){return getStructEncoder([["agent",getAddressEncoder()],["revenue",getU64Encoder()],["successRate",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function y_(){return getStructDecoder([["agent",getAddressDecoder()],["revenue",getU64Decoder()],["successRate",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function wAe(){return combineCodec(m_(),y_())}var T_=i(()=>{});function E_(){return getStructEncoder([["messageId",getU64Encoder()],["sessionId",getU64Encoder()],["sender",getAddressEncoder()],["senderType",M()],["timestamp",getI64Encoder()]])}function S_(){return getStructDecoder([["messageId",getU64Decoder()],["sessionId",getU64Decoder()],["sender",getAddressDecoder()],["senderType",k()],["timestamp",getI64Decoder()]])}function BAe(){return combineCodec(E_(),S_())}var P_=i(()=>{p();});function C_(){return getStructEncoder([["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["initiatorType",M()],["responder",getAddressEncoder()],["responderType",M()],["timestamp",getI64Encoder()]])}function R_(){return getStructDecoder([["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["initiatorType",k()],["responder",getAddressDecoder()],["responderType",k()],["timestamp",getI64Decoder()]])}function qAe(){return combineCodec(C_(),R_())}var h_=i(()=>{p();});function Gt(){return getStructEncoder([["requiresReporting",getBooleanEncoder()],["highRisk",getBooleanEncoder()],["sensitiveData",getBooleanEncoder()],["crossBorder",getBooleanEncoder()],["largeAmount",getBooleanEncoder()],["suspicious",getBooleanEncoder()],["manualReview",getBooleanEncoder()],["jurisdiction",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Bt(){return getStructDecoder([["requiresReporting",getBooleanDecoder()],["highRisk",getBooleanDecoder()],["sensitiveData",getBooleanDecoder()],["crossBorder",getBooleanDecoder()],["largeAmount",getBooleanDecoder()],["suspicious",getBooleanDecoder()],["manualReview",getBooleanDecoder()],["jurisdiction",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function spe(){return combineCodec(Gt(),Bt())}var I_=i(()=>{});function Qc(){return getStructEncoder([["complianceScore",getU8Encoder()],["policyAdherenceRate",getU8Encoder()],["avgIncidentResponseTime",getU64Encoder()],["falsePositiveRate",getU8Encoder()],["coveragePercentage",getU8Encoder()],["auditReadinessScore",getU8Encoder()]])}function Zc(){return getStructDecoder([["complianceScore",getU8Decoder()],["policyAdherenceRate",getU8Decoder()],["avgIncidentResponseTime",getU64Decoder()],["falsePositiveRate",getU8Decoder()],["coveragePercentage",getU8Decoder()],["auditReadinessScore",getU8Decoder()]])}function Ape(){return combineCodec(Qc(),Zc())}var v_=i(()=>{});function Yc(){return getStructEncoder([["frameworks",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["auditRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reportingRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function es(){return getStructDecoder([["frameworks",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["auditRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reportingRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function ype(){return combineCodec(Yc(),es())}var M_=i(()=>{});function U_(){return getStructEncoder([["report",getAddressEncoder()],["reportId",getU64Encoder()],["reportType",Ie()],["complianceRate",getU64Encoder()]])}function __(){return getStructDecoder([["report",getAddressDecoder()],["reportId",getU64Decoder()],["reportType",ve()],["complianceRate",getU64Decoder()]])}function Ppe(){return combineCodec(U_(),__())}var O_=i(()=>{p();});function z_(){return getStructEncoder([["data",Me()]])}function W_(){return getStructDecoder([["data",ke()]])}function Rpe(){return combineCodec(z_(),W_())}var F_=i(()=>{p();});function H_(){return getStructEncoder([["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["owner",getAddressEncoder()],["treeAuthority",getAddressEncoder()],["merkleTree",getAddressEncoder()],["dataHash",fixEncoderSize(getBytesEncoder(),32)],["index",getU64Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["createdAt",getI64Encoder()]])}function J_(){return getStructDecoder([["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["owner",getAddressDecoder()],["treeAuthority",getAddressDecoder()],["merkleTree",getAddressDecoder()],["dataHash",fixDecoderSize(getBytesDecoder(),32)],["index",getU64Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["createdAt",getI64Decoder()]])}function Fpe(){return combineCodec(H_(),J_())}var j_=i(()=>{});function Nt(){return getEnumEncoder(ts)}function Lt(){return getEnumDecoder(ts)}function Lpe(){return combineCodec(Nt(),Lt())}var ts,q_=i(()=>{ts=(c=>(c[c.TimeDelay=0]="TimeDelay",c[c.TokenBalance=1]="TokenBalance",c[c.PriceThreshold=2]="PriceThreshold",c[c.VoteCount=3]="VoteCount",c[c.ExternalOracle=4]="ExternalOracle",c[c.CustomLogic=5]="CustomLogic",c))(ts||{});});function Y_(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["autoApproveNewAccounts",getBooleanEncoder()],["auditorConfigured",getBooleanEncoder()],["timestamp",getI64Encoder()]])}function e2(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["autoApproveNewAccounts",getBooleanDecoder()],["auditorConfigured",getBooleanDecoder()],["timestamp",getI64Decoder()]])}function qpe(){return combineCodec(Y_(),e2())}var t2=i(()=>{});function ns(){return getStructEncoder([["attribute",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["operator",os()],["value",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["valueType",ss()]])}function rs(){return getStructDecoder([["attribute",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["operator",cs()],["value",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["valueType",is()]])}function Zpe(){return combineCodec(ns(),rs())}var a2=i(()=>{p();});function os(){return getEnumEncoder(as)}function cs(){return getEnumDecoder(as)}function nle(){return combineCodec(os(),cs())}var as,d2=i(()=>{as=(S=>(S[S.Equals=0]="Equals",S[S.NotEquals=1]="NotEquals",S[S.GreaterThan=2]="GreaterThan",S[S.LessThan=3]="LessThan",S[S.GreaterThanOrEqual=4]="GreaterThanOrEqual",S[S.LessThanOrEqual=5]="LessThanOrEqual",S[S.Contains=6]="Contains",S[S.NotContains=7]="NotContains",S[S.In=8]="In",S[S.NotIn=9]="NotIn",S[S.Matches=10]="Matches",S[S.NotMatches=11]="NotMatches",S))(as||{});});function us(){return getEnumEncoder(ds)}function gs(){return getEnumDecoder(ds)}function sle(){return combineCodec(us(),gs())}var ds,u2=i(()=>{ds=(n=>(n[n.Active=0]="Active",n[n.Completed=1]="Completed",n[n.Cancelled=2]="Cancelled",n[n.Disputed=3]="Disputed",n))(ds||{});});function p2(){return getStructEncoder([["negotiation",getAddressEncoder()],["sender",getAddressEncoder()],["counterOffer",getU64Encoder()],["message",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["autoAccepted",getBooleanEncoder()]])}function l2(){return getStructDecoder([["negotiation",getAddressDecoder()],["sender",getAddressDecoder()],["counterOffer",getU64Decoder()],["message",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["autoAccepted",getBooleanDecoder()]])}function Ele(){return combineCodec(p2(),l2())}var m2=i(()=>{});function ps(){return getEnumEncoder(As)}function ls(){return getEnumDecoder(As)}function ble(){return combineCodec(ps(),ls())}var As,y2=i(()=>{As=(s=>(s[s.Public=0]="Public",s[s.Internal=1]="Internal",s[s.Confidential=2]="Confidential",s[s.Restricted=3]="Restricted",s[s.TopSecret=4]="TopSecret",s))(As||{});});function ms(){return getStructEncoder([["encryptionRequired",getBooleanEncoder()],["classificationRequired",getBooleanEncoder()],["dlpEnabled",getBooleanEncoder()]])}function ys(){return getStructDecoder([["encryptionRequired",getBooleanDecoder()],["classificationRequired",getBooleanDecoder()],["dlpEnabled",getBooleanDecoder()]])}function Ile(){return combineCodec(ms(),ys())}var T2=i(()=>{});function ie(){return getEnumEncoder(Ts)}function ae(){return getEnumDecoder(Ts)}function wle(){return combineCodec(ie(),ae())}var Ts,f2=i(()=>{Ts=(n=>(n[n.VolumeDiscount=0]="VolumeDiscount",n[n.BundleOffer=1]="BundleOffer",n[n.GroupPurchase=2]="GroupPurchase",n[n.Wholesale=3]="Wholesale",n))(Ts||{});});function S2(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["defaultState",re()],["timestamp",getI64Encoder()]])}function P2(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["defaultState",oe()],["timestamp",getI64Decoder()]])}function Fle(){return combineCodec(S2(),P2())}var D2=i(()=>{p();});function Yo(){return getEnumEncoder(fs)}function ec(){return getEnumDecoder(fs)}function Lle(){return combineCodec(Yo(),ec())}var fs,b2=i(()=>{fs=(n=>(n[n.RequireRefresh=0]="RequireRefresh",n[n.GradualDegradation=1]="GradualDegradation",n[n.ImmediateExpiry=2]="ImmediateExpiry",n[n.AdaptiveThreshold=3]="AdaptiveThreshold",n))(fs||{});});function xs(){return getStructEncoder([["delegator",getAddressEncoder()],["delegatedAt",getI64Encoder()],["scope",we()],["expiresAt",getOptionEncoder(getI64Encoder())]])}function Es(){return getStructDecoder([["delegator",getAddressDecoder()],["delegatedAt",getI64Decoder()],["scope",Ue()],["expiresAt",getOptionDecoder(getI64Decoder())]])}function Xle(){return combineCodec(xs(),Es())}var h2=i(()=>{p();});function we(){return getDiscriminatedUnionEncoder([["All",getUnitEncoder()],["ProposalType",getStructEncoder([["fields",getTupleEncoder$1([_e()])]])],["SingleProposal",getUnitEncoder()],["Limited",getUnitEncoder()]])}function Ue(){return getDiscriminatedUnionDecoder([["All",getUnitDecoder()],["ProposalType",getStructDecoder([["fields",getTupleDecoder$1([Oe()])]])],["SingleProposal",getUnitDecoder()],["Limited",getUnitDecoder()]])}function o1e(){return combineCodec(we(),Ue())}function c1e(e,t){return Array.isArray(t)?{__kind:e,fields:t}:{__kind:e,...t??{}}}function s1e(e,t){return t.__kind===e}var I2=i(()=>{p();});function ze(){return getEnumEncoder(Ss)}function We(){return getEnumDecoder(Ss)}function u1e(){return combineCodec(ze(),We())}var Ss,v2=i(()=>{Ss=(s=>(s[s.Code=0]="Code",s[s.Document=1]="Document",s[s.Design=2]="Design",s[s.Analysis=3]="Analysis",s[s.Other=4]="Other",s))(Ss||{});});function Ps(){return getStructEncoder([["submitter",getAddressEncoder()],["evidenceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["evidenceData",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()],["isVerified",getBooleanEncoder()]])}function Ds(){return getStructDecoder([["submitter",getAddressDecoder()],["evidenceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["evidenceData",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()],["isVerified",getBooleanDecoder()]])}function E1e(){return combineCodec(Ps(),Ds())}var z2=i(()=>{});function N2(){return getStructEncoder([["dispute",getAddressEncoder()],["submitter",getAddressEncoder()],["batchSize",getU32Encoder()],["totalEvidenceCount",getU32Encoder()]])}function L2(){return getStructDecoder([["dispute",getAddressDecoder()],["submitter",getAddressDecoder()],["batchSize",getU32Decoder()],["totalEvidenceCount",getU32Decoder()]])}function b1e(){return combineCodec(N2(),L2())}var K2=i(()=>{});function J2(){return getStructEncoder([["dispute",getAddressEncoder()],["submitter",getAddressEncoder()],["evidenceCount",getU32Encoder()]])}function j2(){return getStructDecoder([["dispute",getAddressDecoder()],["submitter",getAddressDecoder()],["evidenceCount",getU32Decoder()]])}function M1e(){return combineCodec(J2(),j2())}var q2=i(()=>{});function $2(){return getStructEncoder([["dispute",getAddressEncoder()],["complainant",getAddressEncoder()],["respondent",getAddressEncoder()],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function X2(){return getStructDecoder([["dispute",getAddressDecoder()],["complainant",getAddressDecoder()],["respondent",getAddressDecoder()],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function B1e(){return combineCodec($2(),X2())}var Q2=i(()=>{});function e0(){return getStructEncoder([["dispute",getAddressEncoder()],["arbitrator",getAddressEncoder()],["awardToComplainant",getBooleanEncoder()],["resolution",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function t0(){return getStructDecoder([["dispute",getAddressDecoder()],["arbitrator",getAddressDecoder()],["awardToComplainant",getBooleanDecoder()],["resolution",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function eme(){return combineCodec(e0(),t0())}var n0=i(()=>{});function Cs(){return getEnumEncoder(bs)}function Rs(){return getEnumDecoder(bs)}function ome(){return combineCodec(Cs(),Rs())}var bs,r0=i(()=>{bs=(c=>(c[c.Filed=0]="Filed",c[c.UnderReview=1]="UnderReview",c[c.EvidenceSubmitted=2]="EvidenceSubmitted",c[c.Resolved=3]="Resolved",c[c.Escalated=4]="Escalated",c[c.Closed=5]="Closed",c))(bs||{});});function Fe(){return getStructEncoder([["decayType",hs()],["priceStepCount",getU32Encoder()],["stepDuration",getI64Encoder()],["decayRateBasisPoints",getU16Encoder()]])}function Ge(){return getStructDecoder([["decayType",Is()],["priceStepCount",getU32Decoder()],["stepDuration",getI64Decoder()],["decayRateBasisPoints",getU16Decoder()]])}function lme(){return combineCodec(Fe(),Ge())}var o0=i(()=>{p();});function hs(){return getEnumEncoder(vs)}function Is(){return getEnumDecoder(vs)}function fme(){return combineCodec(hs(),Is())}var vs,c0=i(()=>{vs=(o=>(o[o.Linear=0]="Linear",o[o.Exponential=1]="Exponential",o[o.Stepped=2]="Stepped",o))(vs||{});});function a0(){return getStructEncoder([["auction",getAddressEncoder()],["winner",getAddressEncoder()],["finalPrice",getU64Encoder()],["startingPrice",getU64Encoder()],["reservePrice",getU64Encoder()],["timeElapsed",getI64Encoder()]])}function d0(){return getStructDecoder([["auction",getAddressDecoder()],["winner",getAddressDecoder()],["finalPrice",getU64Decoder()],["startingPrice",getU64Decoder()],["reservePrice",getU64Decoder()],["timeElapsed",getI64Decoder()]])}function bme(){return combineCodec(a0(),d0())}var u0=i(()=>{});function g0(){return getStructEncoder([["data",de()]])}function A0(){return getStructDecoder([["data",ue()]])}function Ime(){return combineCodec(g0(),A0())}var p0=i(()=>{p();});function l0(){return getStructEncoder([["engine",getAddressEncoder()],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["algorithm",Be()],["basePrice",getU64Encoder()]])}function m0(){return getStructDecoder([["engine",getAddressDecoder()],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["algorithm",Ne()],["basePrice",getU64Decoder()]])}function _me(){return combineCodec(l0(),m0())}var y0=i(()=>{p();});function x0(){return getStructEncoder([["engine",getAddressEncoder()],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["newPrice",getU64Encoder()],["demandMultiplier",getF64Encoder()],["supplyMultiplier",getF64Encoder()]])}function E0(){return getStructDecoder([["engine",getAddressDecoder()],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["newPrice",getU64Decoder()],["demandMultiplier",getF64Decoder()],["supplyMultiplier",getF64Decoder()]])}function Bme(){return combineCodec(x0(),E0())}var S0=i(()=>{});function Ms(){return getStructEncoder([["totalValueLocked",getU64Encoder()],["dailyVolume",getU64Encoder()],["totalFeeRevenue",getU64Encoder()],["uniqueActiveUsers",getU32Encoder()],["averageTransactionSize",getU64Encoder()],["tokenCirculation",getU64Encoder()],["lastUpdated",getI64Encoder()]])}function ks(){return getStructDecoder([["totalValueLocked",getU64Decoder()],["dailyVolume",getU64Decoder()],["totalFeeRevenue",getU64Decoder()],["uniqueActiveUsers",getU32Decoder()],["averageTransactionSize",getU64Decoder()],["tokenCirculation",getU64Decoder()],["lastUpdated",getI64Decoder()]])}function qme(){return combineCodec(Ms(),ks())}var P0=i(()=>{});function D0(){return getStructEncoder([["dashboard",getAddressEncoder()],["totalValueLocked",getU64Encoder()],["dailyVolume",getU64Encoder()],["feeRevenue",getU64Encoder()],["uniqueUsers",getU32Encoder()],["timestamp",getI64Encoder()]])}function b0(){return getStructDecoder([["dashboard",getAddressDecoder()],["totalValueLocked",getU64Decoder()],["dailyVolume",getU64Decoder()],["feeRevenue",getU64Decoder()],["uniqueUsers",getU32Decoder()],["timestamp",getI64Decoder()]])}function oye(){return combineCodec(D0(),b0())}var C0=i(()=>{});function R0(){return getStructEncoder([["totalValueLocked",getU64Encoder()],["dailyVolume",getU64Encoder()],["feeRevenue",getU64Encoder()],["uniqueUsers",getU32Encoder()],["timestamp",getI64Encoder()]])}function h0(){return getStructDecoder([["totalValueLocked",getU64Decoder()],["dailyVolume",getU64Decoder()],["feeRevenue",getU64Decoder()],["uniqueUsers",getU32Decoder()],["timestamp",getI64Decoder()]])}function Aye(){return combineCodec(R0(),h0())}var I0=i(()=>{});function ws(){return getStructEncoder([["breakGlassEnabled",getBooleanEncoder()],["emergencyContacts",getArrayEncoder(getAddressEncoder())],["approvalRequired",getBooleanEncoder()]])}function Us(){return getStructDecoder([["breakGlassEnabled",getBooleanDecoder()],["emergencyContacts",getArrayDecoder(getAddressDecoder())],["approvalRequired",getBooleanDecoder()]])}function Eye(){return combineCodec(ws(),Us())}var k0=i(()=>{});function _s(){return getStructEncoder([["emergencyContacts",getArrayEncoder(getAddressEncoder())],["emergencyThreshold",getU8Encoder()],["emergencyTimeout",getI64Encoder()],["emergencyTransactionTypes",getArrayEncoder(ge())],["freezeEnabled",getBooleanEncoder()],["frozen",getBooleanEncoder()],["frozenAt",getOptionEncoder(getI64Encoder())],["autoUnfreezeDuration",getOptionEncoder(getI64Encoder())]])}function Os(){return getStructDecoder([["emergencyContacts",getArrayDecoder(getAddressDecoder())],["emergencyThreshold",getU8Decoder()],["emergencyTimeout",getI64Decoder()],["emergencyTransactionTypes",getArrayDecoder(Ae())],["freezeEnabled",getBooleanDecoder()],["frozen",getBooleanDecoder()],["frozenAt",getOptionDecoder(getI64Decoder())],["autoUnfreezeDuration",getOptionDecoder(getI64Decoder())]])}function Iye(){return combineCodec(_s(),Os())}var F0=i(()=>{p();});function Kt(){return getEnumEncoder(zs)}function Vt(){return getEnumDecoder(zs)}function wye(){return combineCodec(Kt(),Vt())}var zs,G0=i(()=>{zs=(n=>(n[n.Hard=0]="Hard",n[n.Soft=1]="Soft",n[n.Advisory=2]="Advisory",n[n.ExceptionBased=3]="ExceptionBased",n))(zs||{});});function L0(){return getStructEncoder([["channel",getAddressEncoder()],["creator",getAddressEncoder()],["channelType",G()],["metadata",Re()],["participantCount",getU32Encoder()],["createdAt",getI64Encoder()]])}function K0(){return getStructDecoder([["channel",getAddressDecoder()],["creator",getAddressDecoder()],["channelType",B()],["metadata",he()],["participantCount",getU32Decoder()],["createdAt",getI64Decoder()]])}function Bye(){return combineCodec(L0(),K0())}var V0=i(()=>{p();});function Q0(){return getStructEncoder([["message",getAddressEncoder()],["channel",getAddressEncoder()],["sender",getAddressEncoder()],["messageType",N()],["metadata",Ht()],["contentPreview",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()],["mentions",getArrayEncoder(getAddressEncoder())],["threadId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Z0(){return getStructDecoder([["message",getAddressDecoder()],["channel",getAddressDecoder()],["sender",getAddressDecoder()],["messageType",L()],["metadata",Jt()],["contentPreview",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()],["mentions",getArrayDecoder(getAddressDecoder())],["threadId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Xye(){return combineCodec(Q0(),Z0())}var Y0=i(()=>{p();});function e8(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amountRefunded",getU64Encoder()],["cancellationReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function t8(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amountRefunded",getU64Decoder()],["cancellationReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function uTe(){return combineCodec(e8(),t8())}var n8=i(()=>{});function r8(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()],["resolutionNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["timestamp",getI64Encoder()]])}function o8(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()],["resolutionNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["timestamp",getI64Decoder()]])}function RTe(){return combineCodec(r8(),o8())}var c8=i(()=>{});function a8(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expiresAt",getI64Encoder()],["timestamp",getI64Encoder()]])}function d8(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expiresAt",getI64Decoder()],["timestamp",getI64Decoder()]])}function FTe(){return combineCodec(a8(),d8())}var u8=i(()=>{});function p8(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amountRefunded",getU64Encoder()],["expiredAt",getI64Encoder()],["refundedAt",getI64Encoder()]])}function l8(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amountRefunded",getU64Decoder()],["expiredAt",getI64Decoder()],["refundedAt",getI64Decoder()]])}function VTe(){return combineCodec(p8(),l8())}var m8=i(()=>{});function f8(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["clientRefund",getU64Encoder()],["agentPayment",getU64Encoder()],["refundPercentage",getU8Encoder()],["timestamp",getI64Encoder()]])}function x8(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["clientRefund",getU64Decoder()],["agentPayment",getU64Decoder()],["refundPercentage",getU8Decoder()],["timestamp",getI64Decoder()]])}function ZTe(){return combineCodec(f8(),x8())}var E8=i(()=>{});function Bs(){return getEnumEncoder(Gs)}function Ns(){return getEnumDecoder(Gs)}function nfe(){return combineCodec(Bs(),Ns())}var Gs,S8=i(()=>{Gs=(s=>(s[s.Active=0]="Active",s[s.Completed=1]="Completed",s[s.Disputed=2]="Disputed",s[s.Resolved=3]="Resolved",s[s.Cancelled=4]="Cancelled",s))(Gs||{});});function Ls(){return getStructEncoder([["evidenceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["evidenceData",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Ks(){return getStructDecoder([["evidenceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["evidenceData",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function sfe(){return combineCodec(Ls(),Ks())}var I8=i(()=>{});function Le(){return getStructEncoder([["conditionType",Nt()],["targetValue",getU64Encoder()],["currentValue",getU64Encoder()],["met",getBooleanEncoder()],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Ke(){return getStructDecoder([["conditionType",Lt()],["targetValue",getU64Decoder()],["currentValue",getU64Decoder()],["met",getBooleanDecoder()],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function ffe(){return combineCodec(Le(),Ke())}var k8=i(()=>{p();});function jt(){return getStructEncoder([["instructions",getArrayEncoder(Vs())],["executionDelay",getI64Encoder()],["executionConditions",getArrayEncoder(Le())],["cancellable",getBooleanEncoder()],["autoExecute",getBooleanEncoder()],["executionAuthority",getAddressEncoder()]])}function qt(){return getStructDecoder([["instructions",getArrayDecoder(Hs())],["executionDelay",getI64Decoder()],["executionConditions",getArrayDecoder(Ke())],["cancellable",getBooleanDecoder()],["autoExecute",getBooleanDecoder()],["executionAuthority",getAddressDecoder()]])}function Rfe(){return combineCodec(jt(),qt())}var z8=i(()=>{p();});function W8(){return getStructEncoder([["extension",getAddressEncoder()],["developer",getAddressEncoder()],["authority",getAddressEncoder()],["timestamp",getI64Encoder()]])}function F8(){return getStructDecoder([["extension",getAddressDecoder()],["developer",getAddressDecoder()],["authority",getAddressDecoder()],["timestamp",getI64Decoder()]])}function wfe(){return combineCodec(W8(),F8())}var G8=i(()=>{});function $t(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["version",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["author",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["repository",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["license",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["dependencies",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["extensionType",Ve()]])}function Xt(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["version",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["author",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["repository",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["license",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["dependencies",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["extensionType",He()]])}function Ffe(){return combineCodec($t(),Xt())}var B8=i(()=>{p();});function K8(){return getStructEncoder([["extension",getAddressEncoder()],["developer",getAddressEncoder()],["extensionType",Ve()]])}function V8(){return getStructDecoder([["extension",getAddressDecoder()],["developer",getAddressDecoder()],["extensionType",He()]])}function Lfe(){return combineCodec(K8(),V8())}var H8=i(()=>{p();});function js(){return getEnumEncoder(Js)}function qs(){return getEnumDecoder(Js)}function Jfe(){return combineCodec(js(),qs())}var Js,J8=i(()=>{Js=(s=>(s[s.Pending=0]="Pending",s[s.Approved=1]="Approved",s[s.Rejected=2]="Rejected",s[s.Active=3]="Active",s[s.Suspended=4]="Suspended",s))(Js||{});});function Ve(){return getEnumEncoder($s)}function He(){return getEnumDecoder($s)}function Xfe(){return combineCodec(Ve(),He())}var $s,j8=i(()=>{$s=(c=>(c[c.PricingModel=0]="PricingModel",c[c.AgentCapability=1]="AgentCapability",c[c.Integration=2]="Integration",c[c.Analytics=3]="Analytics",c[c.Security=4]="Security",c[c.Custom=5]="Custom",c))($s||{});});function Xs(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["latitudeRange",Zs()],["longitudeRange",ei()],["radius",getOptionEncoder(getU32Encoder())]])}function Qs(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["latitudeRange",Ys()],["longitudeRange",ti()],["radius",getOptionDecoder(getU32Decoder())]])}function sxe(){return combineCodec(Xs(),Qs())}var X8=i(()=>{p();});function Y8(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["proposer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function eO(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["proposer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function fxe(){return combineCodec(Y8(),eO())}var tO=i(()=>{});function ni(){return getStructEncoder([["level",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["value",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["includeDescendants",getBooleanEncoder()]])}function ri(){return getStructDecoder([["level",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["value",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["includeDescendants",getBooleanDecoder()]])}function bxe(){return combineCodec(ni(),ri())}var aO=i(()=>{});function Qt(){return getStructEncoder([["referralBonus",getF64Encoder()],["performanceBonus",getF64Encoder()],["loyaltyMultiplier",getF64Encoder()],["earlyBirdDiscount",getF64Encoder()]])}function Zt(){return getStructDecoder([["referralBonus",getF64Decoder()],["performanceBonus",getF64Decoder()],["loyaltyMultiplier",getF64Decoder()],["earlyBirdDiscount",getF64Decoder()]])}function Ixe(){return combineCodec(Qt(),Zt())}var dO=i(()=>{});function AO(){return getStructEncoder([["program",getAddressEncoder()],["agent",getAddressEncoder()],["incentiveType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()]])}function pO(){return getStructDecoder([["program",getAddressDecoder()],["agent",getAddressDecoder()],["incentiveType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()]])}function Bxe(){return combineCodec(AO(),pO())}var lO=i(()=>{});function TO(){return getStructEncoder([["program",getAddressEncoder()],["referralBonus",getF64Encoder()],["performanceBonus",getF64Encoder()]])}function fO(){return getStructDecoder([["program",getAddressDecoder()],["referralBonus",getF64Decoder()],["performanceBonus",getF64Decoder()]])}function Jxe(){return combineCodec(TO(),fO())}var xO=i(()=>{});function si(){return getStructEncoder([["responseTeam",getArrayEncoder(getAddressEncoder())],["escalationProcedures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["notificationRequirements",getArrayEncoder(vt())]])}function ii(){return getStructDecoder([["responseTeam",getArrayDecoder(getAddressDecoder())],["escalationProcedures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["notificationRequirements",getArrayDecoder(Mt())]])}function oEe(){return combineCodec(si(),ii())}var EO=i(()=>{p();});function SO(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["rateAuthority",getAddressEncoder()],["rate",getI16Encoder()],["timestamp",getI64Encoder()]])}function PO(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["rateAuthority",getAddressDecoder()],["rate",getI16Decoder()],["timestamp",getI64Decoder()]])}function AEe(){return combineCodec(SO(),PO())}var DO=i(()=>{});function bO(){return getStructEncoder([["application",getAddressEncoder()],["jobPosting",getAddressEncoder()],["agent",getAddressEncoder()],["employer",getAddressEncoder()],["timestamp",getI64Encoder()]])}function CO(){return getStructDecoder([["application",getAddressDecoder()],["jobPosting",getAddressDecoder()],["agent",getAddressDecoder()],["employer",getAddressDecoder()],["timestamp",getI64Decoder()]])}function fEe(){return combineCodec(bO(),CO())}var RO=i(()=>{});function hO(){return getStructEncoder([["application",getAddressEncoder()],["jobPosting",getAddressEncoder()],["agent",getAddressEncoder()],["proposedRate",getU64Encoder()],["timestamp",getI64Encoder()]])}function IO(){return getStructDecoder([["application",getAddressDecoder()],["jobPosting",getAddressDecoder()],["agent",getAddressDecoder()],["proposedRate",getU64Decoder()],["timestamp",getI64Decoder()]])}function REe(){return combineCodec(hO(),IO())}var vO=i(()=>{});function wO(){return getStructEncoder([["job",getAddressEncoder()],["creator",getAddressEncoder()],["timestamp",getI64Encoder()]])}function UO(){return getStructDecoder([["job",getAddressDecoder()],["creator",getAddressDecoder()],["timestamp",getI64Decoder()]])}function wEe(){return combineCodec(wO(),UO())}var _O=i(()=>{});function Zs(){return getStructEncoder([["min",getF64Encoder()],["max",getF64Encoder()]])}function Ys(){return getStructDecoder([["min",getF64Decoder()],["max",getF64Decoder()]])}function zEe(){return combineCodec(Zs(),Ys())}var WO=i(()=>{});function yi(){return getStructEncoder([["allowedCountries",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blockedCountries",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["allowedIpRanges",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blockedIpRanges",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["geofencingEnabled",getBooleanEncoder()],["allowedRegions",getArrayEncoder(Xs())]])}function Ti(){return getStructDecoder([["allowedCountries",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blockedCountries",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["allowedIpRanges",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blockedIpRanges",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["geofencingEnabled",getBooleanDecoder()],["allowedRegions",getArrayDecoder(Qs())]])}function LEe(){return combineCodec(yi(),Ti())}var FO=i(()=>{p();});function ei(){return getStructEncoder([["min",getF64Encoder()],["max",getF64Encoder()]])}function ti(){return getStructDecoder([["min",getF64Decoder()],["max",getF64Decoder()]])}function JEe(){return combineCodec(ei(),ti())}var NO=i(()=>{});function LO(){return getStructEncoder([["marketAnalytics",getAddressEncoder()],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["timestamp",getI64Encoder()]])}function KO(){return getStructDecoder([["marketAnalytics",getAddressDecoder()],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["timestamp",getI64Decoder()]])}function ZEe(){return combineCodec(LO(),KO())}var VO=i(()=>{});function jO(){return getStructEncoder([["marketAnalytics",getAddressEncoder()],["volume",getU64Encoder()],["price",getU64Encoder()],["timestamp",getI64Encoder()]])}function qO(){return getStructDecoder([["marketAnalytics",getAddressDecoder()],["volume",getU64Decoder()],["price",getU64Decoder()],["timestamp",getI64Decoder()]])}function sSe(){return combineCodec(jO(),qO())}var $O=i(()=>{});function ZO(){return getStructEncoder([["activityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agent",getAddressEncoder()],["service",getOptionEncoder(getAddressEncoder())],["value",getU64Encoder()],["timestamp",getI64Encoder()]])}function YO(){return getStructDecoder([["activityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agent",getAddressDecoder()],["service",getOptionDecoder(getAddressDecoder())],["value",getU64Decoder()],["timestamp",getI64Decoder()]])}function PSe(){return combineCodec(ZO(),YO())}var ez=i(()=>{});function fi(){return getStructEncoder([["totalListings",getU32Encoder()],["activeListings",getU32Encoder()],["totalSales",getU64Encoder()],["dailyVolume",getU64Encoder()],["averageSalePrice",getU64Encoder()],["topCategories",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["lastUpdated",getI64Encoder()]])}function xi(){return getStructDecoder([["totalListings",getU32Decoder()],["activeListings",getU32Decoder()],["totalSales",getU64Decoder()],["dailyVolume",getU64Decoder()],["averageSalePrice",getU64Decoder()],["topCategories",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["lastUpdated",getI64Decoder()]])}function _Se(){return combineCodec(fi(),xi())}var tz=i(()=>{});function sz(){return getStructEncoder([["dashboard",getAddressEncoder()],["totalListings",getU32Encoder()],["activeListings",getU32Encoder()],["dailyVolume",getU64Encoder()],["averagePrice",getU64Encoder()],["timestamp",getI64Encoder()]])}function iz(){return getStructDecoder([["dashboard",getAddressDecoder()],["totalListings",getU32Decoder()],["activeListings",getU32Decoder()],["dailyVolume",getU64Decoder()],["averagePrice",getU64Decoder()],["timestamp",getI64Decoder()]])}function LSe(){return combineCodec(sz(),iz())}var az=i(()=>{});function gz(){return getStructEncoder([["supplyTrend",getI32Encoder()],["demandTrend",getI32Encoder()],["volatility",getU32Encoder()],["timestamp",getI64Encoder()]])}function Az(){return getStructDecoder([["supplyTrend",getI32Decoder()],["demandTrend",getI32Decoder()],["volatility",getU32Decoder()],["timestamp",getI64Decoder()]])}function XSe(){return combineCodec(gz(),Az())}var pz=i(()=>{});function lz(){return getStructEncoder([["volume",getU64Encoder()],["transactionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function mz(){return getStructDecoder([["volume",getU64Decoder()],["transactionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function uPe(){return combineCodec(lz(),mz())}var yz=i(()=>{});function Ht(){return getStructEncoder([["replyTo",getOptionEncoder(getAddressEncoder())],["threadId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["attachments",getArrayEncoder(sc())],["mentions",getArrayEncoder(getAddressEncoder())],["reactions",getArrayEncoder(Ei())]])}function Jt(){return getStructDecoder([["replyTo",getOptionDecoder(getAddressDecoder())],["threadId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["attachments",getArrayDecoder(ic())],["mentions",getArrayDecoder(getAddressDecoder())],["reactions",getArrayDecoder(Si())]])}function EPe(){return combineCodec(Ht(),Jt())}var Sz=i(()=>{p();});function Ei(){return getStructEncoder([["emoji",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["users",getArrayEncoder(getAddressEncoder())]])}function Si(){return getStructDecoder([["emoji",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["users",getArrayDecoder(getAddressDecoder())]])}function _Pe(){return combineCodec(Ei(),Si())}var Pz=i(()=>{});function Dz(){return getStructEncoder([["message",getAddressEncoder()],["channel",getAddressEncoder()],["user",getAddressEncoder()],["reaction",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["addedAt",getI64Encoder()]])}function bz(){return getStructDecoder([["message",getAddressDecoder()],["channel",getAddressDecoder()],["user",getAddressDecoder()],["reaction",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["addedAt",getI64Decoder()]])}function JPe(){return combineCodec(Dz(),bz())}var Cz=i(()=>{});function Rz(){return getStructEncoder([["message",getAddressEncoder()],["channel",getAddressEncoder()],["sender",getAddressEncoder()],["messageType",N()]])}function hz(){return getStructDecoder([["message",getAddressDecoder()],["channel",getAddressDecoder()],["sender",getAddressDecoder()],["messageType",L()]])}function XPe(){return combineCodec(Rz(),hz())}var Iz=i(()=>{p();});function N(){return getEnumEncoder(cr)}function L(){return getEnumDecoder(cr)}function eDe(){return combineCodec(N(),L())}var cr,vz=i(()=>{cr=(s=>(s[s.Text=0]="Text",s[s.File=1]="File",s[s.Image=2]="Image",s[s.Audio=3]="Audio",s[s.System=4]="System",s))(cr||{});});function Pi(){return getStructEncoder([["timestamp",getI64Encoder()],["value",getU64Encoder()],["metricType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Di(){return getStructDecoder([["timestamp",getI64Decoder()],["value",getU64Decoder()],["metricType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function lDe(){return combineCodec(Pi(),Di())}var Mz=i(()=>{});function kz(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["closeAuthority",getAddressEncoder()],["timestamp",getI64Encoder()]])}function wz(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["closeAuthority",getAddressDecoder()],["timestamp",getI64Decoder()]])}function EDe(){return combineCodec(kz(),wz())}var Uz=i(()=>{});function _z(){return getStructEncoder([["data",pe()]])}function Oz(){return getStructDecoder([["data",le()]])}function bDe(){return combineCodec(_z(),Oz())}var zz=i(()=>{p();});function Gz(){return getStructEncoder([["multisigId",getU64Encoder()],["multisigType",Je()],["owner",getAddressEncoder()],["threshold",getU8Encoder()],["signerCount",getU8Encoder()],["timestamp",getI64Encoder()]])}function Bz(){return getStructDecoder([["multisigId",getU64Decoder()],["multisigType",je()],["owner",getAddressDecoder()],["threshold",getU8Decoder()],["signerCount",getU8Decoder()],["timestamp",getI64Decoder()]])}function _De(){return combineCodec(Gz(),Bz())}var Nz=i(()=>{p();});function bi(){return getStructEncoder([["signer",getAddressEncoder()],["signature",fixEncoderSize(getBytesEncoder(),64)],["signedAt",getI64Encoder()],["signatureMethod",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["verificationData",getOptionEncoder(addEncoderSizePrefix(getBytesEncoder(),getU32Encoder()))]])}function Ci(){return getStructDecoder([["signer",getAddressDecoder()],["signature",fixDecoderSize(getBytesDecoder(),64)],["signedAt",getI64Decoder()],["signatureMethod",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["verificationData",getOptionDecoder(addDecoderSizePrefix(getBytesDecoder(),getU32Decoder()))]])}function qDe(){return combineCodec(bi(),Ci())}var qz=i(()=>{});function Je(){return getEnumEncoder(Ri)}function je(){return getEnumDecoder(Ri)}function ZDe(){return combineCodec(Je(),je())}var Ri,$z=i(()=>{Ri=(c=>(c[c.Protocol=0]="Protocol",c[c.Dao=1]="Dao",c[c.Dispute=2]="Dispute",c[c.AgentConsortium=3]="AgentConsortium",c[c.AgentTreasury=4]="AgentTreasury",c[c.Custom=5]="Custom",c))(Ri||{});});function hi(){return getStructEncoder([["multisigType",Je()],["timelockSeconds",getI64Encoder()],["minSigners",getU8Encoder()],["maxSigners",getU8Encoder()],["minReputationScore",getU16Encoder()],["requiresTokenHoldings",getBooleanEncoder()],["minTokenBalance",getU64Encoder()]])}function Ii(){return getStructDecoder([["multisigType",je()],["timelockSeconds",getI64Decoder()],["minSigners",getU8Decoder()],["maxSigners",getU8Decoder()],["minReputationScore",getU16Decoder()],["requiresTokenHoldings",getBooleanDecoder()],["minTokenBalance",getU64Decoder()]])}function ube(){return combineCodec(hi(),Ii())}var Zz=i(()=>{p();});function Yz(){return getStructEncoder([["negotiation",getAddressEncoder()],["initiator",getAddressEncoder()],["counterparty",getAddressEncoder()],["initialOffer",getU64Encoder()]])}function eW(){return getStructDecoder([["negotiation",getAddressDecoder()],["initiator",getAddressDecoder()],["counterparty",getAddressDecoder()],["initialOffer",getU64Decoder()]])}function ybe(){return combineCodec(Yz(),eW())}var tW=i(()=>{});function Mi(){return getEnumEncoder(vi)}function ki(){return getEnumDecoder(vi)}function Ebe(){return combineCodec(Mi(),ki())}var vi,nW=i(()=>{vi=(c=>(c[c.InitialOffer=0]="InitialOffer",c[c.CounterOffer=1]="CounterOffer",c[c.Accepted=2]="Accepted",c[c.Rejected=3]="Rejected",c[c.Expired=4]="Expired",c[c.AutoAccepted=5]="AutoAccepted",c))(vi||{});});function iW(){return getStructEncoder([["activeAgents",getU32Encoder()],["transactionThroughput",getU64Encoder()],["averageLatency",getU64Encoder()],["errorRate",getU32Encoder()],["timestamp",getI64Encoder()]])}function aW(){return getStructDecoder([["activeAgents",getU32Decoder()],["transactionThroughput",getU64Decoder()],["averageLatency",getU64Decoder()],["errorRate",getU32Decoder()],["timestamp",getI64Decoder()]])}function Rbe(){return combineCodec(iW(),aW())}var dW=i(()=>{});function wi(){return getStructEncoder([["activeAgents",getU32Encoder()],["totalTransactions",getU64Encoder()],["transactionThroughput",getU64Encoder()],["averageLatency",getU64Encoder()],["errorRate",getU32Encoder()],["successRate",getU32Encoder()],["lastUpdated",getI64Encoder()]])}function Ui(){return getStructDecoder([["activeAgents",getU32Decoder()],["totalTransactions",getU64Decoder()],["transactionThroughput",getU64Decoder()],["averageLatency",getU64Decoder()],["errorRate",getU32Decoder()],["successRate",getU32Decoder()],["lastUpdated",getI64Decoder()]])}function wbe(){return combineCodec(wi(),Ui())}var uW=i(()=>{});function mW(){return getStructEncoder([["dashboard",getAddressEncoder()],["activeAgents",getU32Encoder()],["transactionThroughput",getU64Encoder()],["averageLatency",getU64Encoder()],["errorRate",getU32Encoder()],["timestamp",getI64Encoder()]])}function yW(){return getStructDecoder([["dashboard",getAddressDecoder()],["activeAgents",getU32Decoder()],["transactionThroughput",getU64Decoder()],["averageLatency",getU64Decoder()],["errorRate",getU32Decoder()],["timestamp",getI64Decoder()]])}function Bbe(){return combineCodec(mW(),yW())}var TW=i(()=>{});function _i(){return getStructEncoder([["firewallRequired",getBooleanEncoder()],["intrusionDetection",getBooleanEncoder()],["trafficMonitoring",getBooleanEncoder()]])}function Oi(){return getStructDecoder([["firewallRequired",getBooleanDecoder()],["intrusionDetection",getBooleanDecoder()],["trafficMonitoring",getBooleanDecoder()]])}function Vbe(){return combineCodec(_i(),Oi())}var fW=i(()=>{});function Wi(){return getEnumEncoder(zi)}function Fi(){return getEnumDecoder(zi)}function qbe(){return combineCodec(Wi(),Fi())}var zi,xW=i(()=>{zi=(c=>(c[c.OnChain=0]="OnChain",c[c.Email=1]="Email",c[c.Sms=2]="Sms",c[c.Push=3]="Push",c[c.InApp=4]="InApp",c[c.All=5]="All",c))(zi||{});});function Bi(){return getEnumEncoder(Gi)}function Ni(){return getEnumDecoder(Gi)}function Zbe(){return combineCodec(Bi(),Ni())}var Gi,EW=i(()=>{Gi=(s=>(s[s.Low=0]="Low",s[s.Medium=1]="Medium",s[s.High=2]="High",s[s.Critical=3]="Critical",s[s.Emergency=4]="Emergency",s))(Gi||{});});function vt(){return getStructEncoder([["eventType",Ji()],["targets",getArrayEncoder(Li())],["method",Wi()],["timing",Vi()]])}function Mt(){return getStructDecoder([["eventType",ji()],["targets",getArrayDecoder(Ki())],["method",Fi()],["timing",Hi()]])}function oCe(){return combineCodec(vt(),Mt())}var SW=i(()=>{p();});function Li(){return getStructEncoder([["targetType",qi()],["targetId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["priority",Bi()]])}function Ki(){return getStructDecoder([["targetType",$i()],["targetId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["priority",Ni()]])}function lCe(){return combineCodec(Li(),Ki())}var PW=i(()=>{p();});function qi(){return getEnumEncoder(Xi)}function $i(){return getEnumDecoder(Xi)}function fCe(){return combineCodec(qi(),$i())}var Xi,DW=i(()=>{Xi=(A=>(A[A.User=0]="User",A[A.Administrator=1]="Administrator",A[A.SecurityTeam=2]="SecurityTeam",A[A.ComplianceTeam=3]="ComplianceTeam",A[A.Manager=4]="Manager",A[A.AuditTeam=5]="AuditTeam",A[A.ExternalSystem=6]="ExternalSystem",A))(Xi||{});});function Vi(){return getEnumEncoder(Qi)}function Hi(){return getEnumDecoder(Qi)}function PCe(){return combineCodec(Vi(),Hi())}var Qi,bW=i(()=>{Qi=(n=>(n[n.Immediate=0]="Immediate",n[n.Delayed=1]="Delayed",n[n.Batched=2]="Batched",n[n.Scheduled=3]="Scheduled",n))(Qi||{});});function CW(){return getStructEncoder([["participant",getAddressEncoder()],["participantType",M()],["availability",getBooleanEncoder()],["reputationScore",getU8Encoder()],["timestamp",getI64Encoder()]])}function RW(){return getStructDecoder([["participant",getAddressDecoder()],["participantType",k()],["availability",getBooleanDecoder()],["reputationScore",getU8Decoder()],["timestamp",getI64Decoder()]])}function _Ce(){return combineCodec(CW(),RW())}var hW=i(()=>{p();});function M(){return getEnumEncoder(Zi)}function k(){return getEnumDecoder(Zi)}function FCe(){return combineCodec(M(),k())}var Zi,IW=i(()=>{Zi=(r=>(r[r.Human=0]="Human",r[r.Agent=1]="Agent",r))(Zi||{});});function Yi(){return getStructEncoder([["minimumLength",getU8Encoder()],["complexityRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["historyCount",getU8Encoder()],["maxAge",getI64Encoder()]])}function ea(){return getStructDecoder([["minimumLength",getU8Decoder()],["complexityRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["historyCount",getU8Decoder()],["maxAge",getI64Decoder()]])}function ZCe(){return combineCodec(Yi(),ea())}var kW=i(()=>{});function wW(){return getStructEncoder([["workOrder",getAddressEncoder()],["from",getAddressEncoder()],["to",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()]])}function UW(){return getStructDecoder([["workOrder",getAddressDecoder()],["from",getAddressDecoder()],["to",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()]])}function sRe(){return combineCodec(wW(),UW())}var _W=i(()=>{});function ta(){return getStructEncoder([["transactionId",getU64Encoder()],["transactionType",ge()],["target",getAddressEncoder()],["data",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["requiredSignatures",getU8Encoder()],["signatures",getArrayEncoder(bi())],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["priority",ca()],["executionConditions",getArrayEncoder(Le())],["status",ia()],["timeLock",getOptionEncoder(ra())]])}function na(){return getStructDecoder([["transactionId",getU64Decoder()],["transactionType",Ae()],["target",getAddressDecoder()],["data",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["requiredSignatures",getU8Decoder()],["signatures",getArrayDecoder(Ci())],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["priority",sa()],["executionConditions",getArrayDecoder(Ke())],["status",aa()],["timeLock",getOptionDecoder(oa())]])}function bRe(){return combineCodec(ta(),na())}var GW=i(()=>{p();});function ma(){return getStructEncoder([["permissionId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["resourceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["actions",getArrayEncoder(fe())],["scope",Xe()],["constraints",getArrayEncoder(Ta())],["metadata",qe()]])}function ya(){return getStructDecoder([["permissionId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["resourceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["actions",getArrayDecoder(xe())],["scope",Qe()],["constraints",getArrayDecoder(fa())],["metadata",$e()]])}function IRe(){return combineCodec(ma(),ya())}var LW=i(()=>{p();});function Ta(){return getStructEncoder([["constraintType",xa()],["conditions",getArrayEncoder(ns())],["enforcement",Kt()]])}function fa(){return getStructDecoder([["constraintType",Ea()],["conditions",getArrayDecoder(rs())],["enforcement",Vt()]])}function _Re(){return combineCodec(Ta(),fa())}var KW=i(()=>{p();});function xa(){return getEnumEncoder(Sa)}function Ea(){return getEnumDecoder(Sa)}function FRe(){return combineCodec(xa(),Ea())}var Sa,VW=i(()=>{Sa=(c=>(c[c.Temporal=0]="Temporal",c[c.Contextual=1]="Contextual",c[c.Conditional=2]="Conditional",c[c.ResourceBased=3]="ResourceBased",c[c.AttributeBased=4]="AttributeBased",c[c.RiskBased=5]="RiskBased",c))(Sa||{});});function qe(){return getStructEncoder([["businessJustification",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["riskAssessment",Yt()],["complianceMapping",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["relatedPermissions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["owner",getOptionEncoder(getAddressEncoder())],["lastReview",getOptionEncoder(getI64Encoder())],["reviewFrequency",getI64Encoder()]])}function $e(){return getStructDecoder([["businessJustification",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["riskAssessment",en()],["complianceMapping",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["relatedPermissions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["owner",getOptionDecoder(getAddressDecoder())],["lastReview",getOptionDecoder(getI64Decoder())],["reviewFrequency",getI64Decoder()]])}function VRe(){return combineCodec(qe(),$e())}var QW=i(()=>{p();});function Xe(){return getStructEncoder([["scopeType",ba()],["boundaries",Pa()],["hierarchical",getBooleanEncoder()],["inherited",getBooleanEncoder()]])}function Qe(){return getStructDecoder([["scopeType",Ca()],["boundaries",Da()],["hierarchical",getBooleanDecoder()],["inherited",getBooleanDecoder()]])}function qRe(){return combineCodec(Xe(),Qe())}var eF=i(()=>{p();});function Co(){return getStructEncoder([["author",getOptionEncoder(getAddressEncoder())],["approver",getOptionEncoder(getAddressEncoder())],["approvalDate",getOptionEncoder(getI64Encoder())],["businessJustification",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["complianceReferences",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAssessment",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reviewSchedule",Ia()]])}function Ro(){return getStructDecoder([["author",getOptionDecoder(getAddressDecoder())],["approver",getOptionDecoder(getAddressDecoder())],["approvalDate",getOptionDecoder(getI64Decoder())],["businessJustification",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["complianceReferences",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAssessment",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reviewSchedule",va()]])}function nhe(){return combineCodec(Co(),Ro())}var rF=i(()=>{p();});function ho(){return getStructEncoder([["ruleId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["conditions",getArrayEncoder(Ze())],["effect",Ma()],["priority",getU8Encoder()],["enabled",getBooleanEncoder()]])}function Io(){return getStructDecoder([["ruleId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["conditions",getArrayDecoder(Ye())],["effect",ka()],["priority",getU8Decoder()],["enabled",getBooleanDecoder()]])}function fhe(){return combineCodec(ho(),Io())}var oF=i(()=>{p();});function vo(){return getStructEncoder([["subjects",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["actions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["inheritance",wa()]])}function Mo(){return getStructDecoder([["subjects",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["actions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["inheritance",Ua()]])}function Phe(){return combineCodec(vo(),Mo())}var cF=i(()=>{p();});function ko(){return getEnumEncoder(_a)}function wo(){return getEnumDecoder(_a)}function Rhe(){return combineCodec(ko(),wo())}var _a,sF=i(()=>{_a=(c=>(c[c.Active=0]="Active",c[c.Inactive=1]="Inactive",c[c.Draft=2]="Draft",c[c.UnderReview=3]="UnderReview",c[c.Deprecated=4]="Deprecated",c[c.Suspended=5]="Suspended",c))(_a||{});});function Uo(){return getEnumEncoder(Oa)}function _o(){return getEnumDecoder(Oa)}function Mhe(){return combineCodec(Uo(),_o())}var Oa,iF=i(()=>{Oa=(c=>(c[c.Allow=0]="Allow",c[c.Deny=1]="Deny",c[c.Conditional=2]="Conditional",c[c.Delegated=3]="Delegated",c[c.Temporary=4]="Temporary",c[c.Emergency=5]="Emergency",c))(Oa||{});});function Be(){return getEnumEncoder(za)}function Ne(){return getEnumDecoder(za)}function _he(){return combineCodec(Be(),Ne())}var za,aF=i(()=>{za=(S=>(S[S.Linear=0]="Linear",S[S.Exponential=1]="Exponential",S[S.Logarithmic=2]="Logarithmic",S[S.Sigmoid=3]="Sigmoid",S[S.MarketBased=4]="MarketBased",S[S.MLOptimized=5]="MLOptimized",S[S.DemandBased=6]="DemandBased",S[S.ReputationBased=7]="ReputationBased",S[S.SurgePricing=8]="SurgePricing",S[S.MarketAverage=9]="MarketAverage",S[S.PerformanceBased=10]="PerformanceBased",S[S.Seasonal=11]="Seasonal",S))(za||{});});function kt(){return getEnumEncoder(Wa)}function wt(){return getEnumDecoder(Wa)}function Fhe(){return combineCodec(kt(),wt())}var Wa,dF=i(()=>{Wa=(g=>(g[g.Fixed=0]="Fixed",g[g.Hourly=1]="Hourly",g[g.PerTask=2]="PerTask",g[g.Subscription=3]="Subscription",g[g.Auction=4]="Auction",g[g.Dynamic=5]="Dynamic",g[g.RevenueShare=6]="RevenueShare",g[g.Tiered=7]="Tiered",g))(Wa||{});});function Fa(){return getStructEncoder([["pubkey",getAddressEncoder()],["isSigner",getBooleanEncoder()],["isWritable",getBooleanEncoder()],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Ga(){return getStructDecoder([["pubkey",getAddressDecoder()],["isSigner",getBooleanDecoder()],["isWritable",getBooleanDecoder()],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Xhe(){return combineCodec(Fa(),Ga())}var AF=i(()=>{});function mF(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["executor",getAddressEncoder()],["timestamp",getI64Encoder()]])}function yF(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["executor",getAddressDecoder()],["timestamp",getI64Decoder()]])}function oIe(){return combineCodec(mF(),yF())}var TF=i(()=>{});function Vs(){return getStructEncoder([["programId",getAddressEncoder()],["accounts",getArrayEncoder(Fa())],["data",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Hs(){return getStructDecoder([["programId",getAddressDecoder()],["accounts",getArrayDecoder(Ga())],["data",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function yIe(){return combineCodec(Vs(),Hs())}var PF=i(()=>{p();});function La(){return getStructEncoder([["ipfsHash",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["externalReferences",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAssessment",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["impactAnalysis",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["implementationTimeline",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Ka(){return getStructDecoder([["ipfsHash",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["externalReferences",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAssessment",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["impactAnalysis",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["implementationTimeline",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function EIe(){return combineCodec(La(),Ka())}var CF=i(()=>{});function an(){return getEnumEncoder(sr)}function dn(){return getEnumDecoder(sr)}function bIe(){return combineCodec(an(),dn())}var sr,RF=i(()=>{sr=(g=>(g[g.Draft=0]="Draft",g[g.Active=1]="Active",g[g.Passed=2]="Passed",g[g.Failed=3]="Failed",g[g.Executed=4]="Executed",g[g.Cancelled=5]="Cancelled",g[g.Expired=6]="Expired",g[g.Queued=7]="Queued",g))(sr||{});});function _e(){return getEnumEncoder(ir)}function Oe(){return getEnumDecoder(ir)}function IIe(){return combineCodec(_e(),Oe())}var ir,Py=i(()=>{ir=(g=>(g[g.ParameterUpdate=0]="ParameterUpdate",g[g.ProtocolUpgrade=1]="ProtocolUpgrade",g[g.TreasuryOperation=2]="TreasuryOperation",g[g.FeeUpdate=3]="FeeUpdate",g[g.SecurityUpdate=4]="SecurityUpdate",g[g.GovernanceUpdate=5]="GovernanceUpdate",g[g.EmergencyAction=6]="EmergencyAction",g[g.Custom=7]="Custom",g))(ir||{});});function Ha(){return getEnumEncoder(Va)}function Ja(){return getEnumDecoder(Va)}function wIe(){return combineCodec(Ha(),Ja())}var Va,hF=i(()=>{Va=(s=>(s[s.Pending=0]="Pending",s[s.Confirmed=1]="Confirmed",s[s.Completed=2]="Completed",s[s.Cancelled=3]="Cancelled",s[s.Paid=4]="Paid",s))(Va||{});});function qa(){return getEnumEncoder(ja)}function $a(){return getEnumDecoder(ja)}function zIe(){return combineCodec(qa(),$a())}var ja,IF=i(()=>{ja=(n=>(n[n.Absolute=0]="Absolute",n[n.Relative=1]="Relative",n[n.Weighted=2]="Weighted",n[n.Dynamic=3]="Dynamic",n))(ja||{});});function Xa(){return getStructEncoder([["minimumParticipation",getU8Encoder()],["approvalThreshold",getU8Encoder()],["superMajorityRequired",getBooleanEncoder()],["minimumVotingPower",getU64Encoder()],["quorumMethod",qa()]])}function Qa(){return getStructDecoder([["minimumParticipation",getU8Decoder()],["approvalThreshold",getU8Decoder()],["superMajorityRequired",getBooleanDecoder()],["minimumVotingPower",getU64Decoder()],["quorumMethod",$a()]])}function VIe(){return combineCodec(Xa(),Qa())}var kF=i(()=>{p();});function _F(){return getStructEncoder([["rbacConfig",getAddressEncoder()],["authority",getAddressEncoder()],["rolesCount",getU32Encoder()]])}function OF(){return getStructDecoder([["rbacConfig",getAddressDecoder()],["authority",getAddressDecoder()],["rolesCount",getU32Decoder()]])}function XIe(){return combineCodec(_F(),OF())}var zF=i(()=>{});function Ya(){return getEnumEncoder(Za)}function ed(){return getEnumDecoder(Za)}function eve(){return combineCodec(Ya(),ed())}var Za,WF=i(()=>{Za=(r=>(r[r.Unlocked=0]="Unlocked",r[r.Locked=1]="Locked",r))(Za||{});});function FF(){return getStructEncoder([["template",getAddressEncoder()],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["fee",getU64Encoder()],["timestamp",getI64Encoder()]])}function GF(){return getStructDecoder([["template",getAddressDecoder()],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["fee",getU64Decoder()],["timestamp",getI64Decoder()]])}function ave(){return combineCodec(FF(),GF())}var BF=i(()=>{});function td(){return getStructEncoder([["summary",rd()],["entries",getArrayEncoder(et())],["complianceMetrics",Qc()],["riskIndicators",getArrayEncoder(cd())],["recommendations",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function nd(){return getStructDecoder([["summary",od()],["entries",getArrayDecoder(tt())],["complianceMetrics",Zc()],["riskIndicators",getArrayDecoder(sd())],["recommendations",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function fve(){return combineCodec(td(),nd())}var NF=i(()=>{p();});function LF(){return getStructEncoder([["data",et()]])}function KF(){return getStructDecoder([["data",tt()]])}function Pve(){return combineCodec(LF(),KF())}var VF=i(()=>{p();});function yc(){return getEnumEncoder(id)}function Tc(){return getEnumDecoder(id)}function Rve(){return combineCodec(yc(),Tc())}var id,HF=i(()=>{id=(c=>(c[c.Daily=0]="Daily",c[c.Weekly=1]="Weekly",c[c.Monthly=2]="Monthly",c[c.Quarterly=3]="Quarterly",c[c.Annually=4]="Annually",c[c.OnDemand=5]="OnDemand",c))(id||{});});function dd(){return getEnumEncoder(ad)}function ud(){return getEnumDecoder(ad)}function Mve(){return combineCodec(dd(),ud())}var ad,JF=i(()=>{ad=(A=>(A[A.Draft=0]="Draft",A[A.Generated=1]="Generated",A[A.Reviewed=2]="Reviewed",A[A.Approved=3]="Approved",A[A.Submitted=4]="Submitted",A[A.Acknowledged=5]="Acknowledged",A[A.Rejected=6]="Rejected",A))(ad||{});});function rd(){return getStructEncoder([["totalTransactions",getU64Encoder()],["totalVolume",getU64Encoder()],["highRiskTransactions",getU64Encoder()],["complianceViolations",getU64Encoder()],["securityIncidents",getU64Encoder()],["averageRiskScore",getU8Encoder()]])}function od(){return getStructDecoder([["totalTransactions",getU64Decoder()],["totalVolume",getU64Decoder()],["highRiskTransactions",getU64Decoder()],["complianceViolations",getU64Decoder()],["securityIncidents",getU64Decoder()],["averageRiskScore",getU8Decoder()]])}function zve(){return combineCodec(rd(),od())}var jF=i(()=>{});function Ie(){return getEnumEncoder(gd)}function ve(){return getEnumDecoder(gd)}function Bve(){return combineCodec(Ie(),ve())}var gd,qF=i(()=>{gd=(g=>(g[g.FinancialTransactions=0]="FinancialTransactions",g[g.SuspiciousActivity=1]="SuspiciousActivity",g[g.RegulatoryCompliance=2]="RegulatoryCompliance",g[g.SecurityIncidents=3]="SecurityIncidents",g[g.AuditSummary=4]="AuditSummary",g[g.RiskAssessment=5]="RiskAssessment",g[g.GovernanceActivity=6]="GovernanceActivity",g[g.DataPrivacyCompliance=7]="DataPrivacyCompliance",g))(gd||{});});function $F(){return getStructEncoder([["agent",getAddressEncoder()],["timestamp",getI64Encoder()]])}function XF(){return getStructDecoder([["agent",getAddressDecoder()],["timestamp",getI64Decoder()]])}function qve(){return combineCodec($F(),XF())}var QF=i(()=>{});function ZF(){return getStructEncoder([["agent",getAddressEncoder()],["paymentSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["responseTimeMs",getU64Encoder()],["success",getBooleanEncoder()],["newReputationScore",getU64Encoder()],["timestamp",getI64Encoder()]])}function YF(){return getStructDecoder([["agent",getAddressDecoder()],["paymentSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["responseTimeMs",getU64Decoder()],["success",getBooleanDecoder()],["newReputationScore",getU64Decoder()],["timestamp",getI64Decoder()]])}function uMe(){return combineCodec(ZF(),YF())}var e4=i(()=>{});function r4(){return getStructEncoder([["agent",getAddressEncoder()],["client",getAddressEncoder()],["rating",getU8Encoder()],["newReputationScore",getU64Encoder()],["timestamp",getI64Encoder()]])}function o4(){return getStructDecoder([["agent",getAddressDecoder()],["client",getAddressDecoder()],["rating",getU8Decoder()],["newReputationScore",getU64Decoder()],["timestamp",getI64Decoder()]])}function EMe(){return combineCodec(r4(),o4())}var c4=i(()=>{});function s4(){return getStructEncoder([["data",nt()]])}function i4(){return getStructDecoder([["data",rt()]])}function bMe(){return combineCodec(s4(),i4())}var a4=i(()=>{p();});function Ia(){return getStructEncoder([["frequency",getI64Encoder()],["lastReview",getOptionEncoder(getI64Encoder())],["nextReview",getI64Encoder()],["reviewOwners",getArrayEncoder(getAddressEncoder())],["reviewCriteria",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function va(){return getStructDecoder([["frequency",getI64Decoder()],["lastReview",getOptionDecoder(getI64Decoder())],["nextReview",getI64Decoder()],["reviewOwners",getArrayDecoder(getAddressDecoder())],["reviewCriteria",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function FMe(){return combineCodec(Ia(),va())}var g4=i(()=>{});function ld(){return getStructEncoder([["accepted",getBooleanEncoder()],["acceptingAuthority",getOptionEncoder(getAddressEncoder())],["acceptanceDate",getOptionEncoder(getI64Encoder())],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reviewDate",getOptionEncoder(getI64Encoder())]])}function md(){return getStructDecoder([["accepted",getBooleanDecoder()],["acceptingAuthority",getOptionDecoder(getAddressDecoder())],["acceptanceDate",getOptionDecoder(getI64Decoder())],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reviewDate",getOptionDecoder(getI64Decoder())]])}function ZMe(){return combineCodec(ld(),md())}var l4=i(()=>{});function Yt(){return getStructEncoder([["riskScore",getU8Encoder()],["riskFactors",getArrayEncoder(yd())],["mitigationMeasures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAcceptance",ld()]])}function en(){return getStructDecoder([["riskScore",getU8Decoder()],["riskFactors",getArrayDecoder(Td())],["mitigationMeasures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAcceptance",md()]])}function uke(){return combineCodec(Yt(),en())}var T4=i(()=>{p();});function xd(){return getEnumEncoder(fd)}function Ed(){return getEnumDecoder(fd)}function lke(){return combineCodec(xd(),Ed())}var fd,f4=i(()=>{fd=(A=>(A[A.Operational=0]="Operational",A[A.Financial=1]="Financial",A[A.Compliance=2]="Compliance",A[A.Security=3]="Security",A[A.Reputational=4]="Reputational",A[A.Technical=5]="Technical",A[A.Legal=6]="Legal",A))(fd||{});});function yd(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["category",xd()],["impact",getU8Encoder()],["likelihood",getU8Encoder()],["riskScore",getU8Encoder()]])}function Td(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["category",Ed()],["impact",getU8Decoder()],["likelihood",getU8Decoder()],["riskScore",getU8Decoder()]])}function bke(){return combineCodec(yd(),Td())}var x4=i(()=>{p();});function cd(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["currentValue",getU64Encoder()],["thresholdValue",getU64Encoder()],["trend",Sd()],["severity",Dd()],["recommendedActions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function sd(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["currentValue",getU64Decoder()],["thresholdValue",getU64Decoder()],["trend",Pd()],["severity",bd()],["recommendedActions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Mke(){return combineCodec(cd(),sd())}var I4=i(()=>{p();});function Rd(){return getEnumEncoder(Cd)}function hd(){return getEnumDecoder(Cd)}function _ke(){return combineCodec(Rd(),hd())}var Cd,v4=i(()=>{Cd=(n=>(n[n.Low=0]="Low",n[n.Medium=1]="Medium",n[n.High=2]="High",n[n.Critical=3]="Critical",n))(Cd||{});});function un(){return getStructEncoder([["roleId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["roleType",_d()],["permissions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["constraints",Id()],["inheritsFrom",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["metadata",Md()],["status",wd()],["createdAt",getI64Encoder()],["modifiedAt",getI64Encoder()]])}function gn(){return getStructDecoder([["roleId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["roleType",Od()],["permissions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["constraints",vd()],["inheritsFrom",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["metadata",kd()],["status",Ud()],["createdAt",getI64Decoder()],["modifiedAt",getI64Decoder()]])}function Fke(){return combineCodec(un(),gn())}var _4=i(()=>{p();});function Id(){return getStructEncoder([["timeConstraints",getOptionEncoder(Bd())],["locationConstraints",getOptionEncoder(yi())],["resourceConstraints",getOptionEncoder(nt())],["sessionConstraints",getOptionEncoder(zd())],["sodConstraints",getArrayEncoder(Fd())],["maxConcurrentSessions",getOptionEncoder(getU32Encoder())],["activationRequirements",getArrayEncoder(Bo())]])}function vd(){return getStructDecoder([["timeConstraints",getOptionDecoder(Nd())],["locationConstraints",getOptionDecoder(Ti())],["resourceConstraints",getOptionDecoder(rt())],["sessionConstraints",getOptionDecoder(Wd())],["sodConstraints",getArrayDecoder(Gd())],["maxConcurrentSessions",getOptionDecoder(getU32Decoder())],["activationRequirements",getArrayDecoder(No())]])}function Vke(){return combineCodec(Id(),vd())}var W4=i(()=>{p();});function Md(){return getStructEncoder([["businessPurpose",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["riskLevel",Rd()],["dataAccessLevel",ps()],["complianceRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["roleOwner",getOptionEncoder(getAddressEncoder())],["roleCustodian",getOptionEncoder(getAddressEncoder())],["reviewFrequency",getI64Encoder()],["lastReview",getOptionEncoder(getI64Encoder())],["nextReview",getOptionEncoder(getI64Encoder())]])}function kd(){return getStructDecoder([["businessPurpose",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["riskLevel",hd()],["dataAccessLevel",ls()],["complianceRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["roleOwner",getOptionDecoder(getAddressDecoder())],["roleCustodian",getOptionDecoder(getAddressDecoder())],["reviewFrequency",getI64Decoder()],["lastReview",getOptionDecoder(getI64Decoder())],["nextReview",getOptionDecoder(getI64Decoder())]])}function Xke(){return combineCodec(Md(),kd())}var J4=i(()=>{p();});function wd(){return getEnumEncoder(Vd)}function Ud(){return getEnumDecoder(Vd)}function ewe(){return combineCodec(wd(),Ud())}var Vd,j4=i(()=>{Vd=(s=>(s[s.Active=0]="Active",s[s.Inactive=1]="Inactive",s[s.Deprecated=2]="Deprecated",s[s.UnderReview=3]="UnderReview",s[s.Suspended=4]="Suspended",s))(Vd||{});});function _d(){return getEnumEncoder(Hd)}function Od(){return getEnumDecoder(Hd)}function owe(){return combineCodec(_d(),Od())}var Hd,q4=i(()=>{Hd=(g=>(g[g.Administrative=0]="Administrative",g[g.Operational=1]="Operational",g[g.ReadOnly=2]="ReadOnly",g[g.Compliance=3]="Compliance",g[g.Emergency=4]="Emergency",g[g.Custom=5]="Custom",g[g.Service=6]="Service",g[g.Guest=7]="Guest",g))(Hd||{});});function An(){return getStructEncoder([["percentage",getU32Encoder()],["minAmount",getU64Encoder()],["maxAmount",getU64Encoder()]])}function pn(){return getStructDecoder([["percentage",getU32Decoder()],["minAmount",getU64Decoder()],["maxAmount",getU64Decoder()]])}function uwe(){return combineCodec(An(),pn())}var Q4=i(()=>{});function Z4(){return getStructEncoder([["stream",getAddressEncoder()],["agent",getAddressEncoder()],["creator",getAddressEncoder()],["percentage",getU32Encoder()]])}function Y4(){return getStructDecoder([["stream",getAddressDecoder()],["agent",getAddressDecoder()],["creator",getAddressDecoder()],["percentage",getU32Decoder()]])}function ywe(){return combineCodec(Z4(),Y4())}var e6=i(()=>{});function t6(){return getStructEncoder([["data",Ze()]])}function n6(){return getStructDecoder([["data",Ye()]])}function Ewe(){return combineCodec(t6(),n6())}var r6=i(()=>{p();});function Ma(){return getEnumEncoder(Jd)}function ka(){return getEnumDecoder(Jd)}function bwe(){return combineCodec(Ma(),ka())}var Jd,o6=i(()=>{Jd=(c=>(c[c.Allow=0]="Allow",c[c.Deny=1]="Deny",c[c.AuditOnly=2]="AuditOnly",c[c.RequireApproval=3]="RequireApproval",c[c.RequireMfa=4]="RequireMfa",c[c.RequireJustification=5]="RequireJustification",c))(Jd||{});});function Pa(){return getStructEncoder([["includedResources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["excludedResources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resourcePatterns",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["hierarchicalBoundaries",getArrayEncoder(ni())]])}function Da(){return getStructDecoder([["includedResources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["excludedResources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resourcePatterns",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["hierarchicalBoundaries",getArrayDecoder(ri())]])}function Iwe(){return combineCodec(Pa(),Da())}var c6=i(()=>{p();});function wa(){return getEnumEncoder($d)}function Ua(){return getEnumDecoder($d)}function wwe(){return combineCodec(wa(),Ua())}var $d,s6=i(()=>{$d=(n=>(n[n.None=0]="None",n[n.Hierarchical=1]="Hierarchical",n[n.Delegated=2]="Delegated",n[n.Inherited=3]="Inherited",n))($d||{});});function ba(){return getEnumEncoder(Xd)}function Ca(){return getEnumDecoder(Xd)}function zwe(){return combineCodec(ba(),Ca())}var Xd,i6=i(()=>{Xd=(c=>(c[c.Global=0]="Global",c[c.Organization=1]="Organization",c[c.Department=2]="Department",c[c.Project=3]="Project",c[c.Resource=4]="Resource",c[c.Individual=5]="Individual",c))(Xd||{});});function Ji(){return getEnumEncoder(Qd)}function ji(){return getEnumDecoder(Qd)}function Bwe(){return combineCodec(Ji(),ji())}var Qd,a6=i(()=>{Qd=(g=>(g[g.AccountLockout=0]="AccountLockout",g[g.PasswordChange=1]="PasswordChange",g[g.PrivilegeEscalation=2]="PrivilegeEscalation",g[g.SuspiciousActivity=3]="SuspiciousActivity",g[g.PolicyViolation=4]="PolicyViolation",g[g.AccessDenied=5]="AccessDenied",g[g.DataBreach=6]="DataBreach",g[g.SystemCompromise=7]="SystemCompromise",g))(Qd||{});});function Zd(){return getStructEncoder([["authentication",Rc()],["authorization",_c()],["password",Yi()],["session",eu()],["dataProtection",ms()],["networkSecurity",_i()],["incidentResponse",si()],["compliance",Yc()]])}function Yd(){return getStructDecoder([["authentication",hc()],["authorization",Oc()],["password",ea()],["session",tu()],["dataProtection",ys()],["networkSecurity",Oi()],["incidentResponse",ii()],["compliance",es()]])}function Vwe(){return combineCodec(Zd(),Yd())}var d6=i(()=>{p();});function u6(){return getStructEncoder([["auction",getAddressEncoder()],["agent",getAddressEncoder()],["creator",getAddressEncoder()],["startingPrice",getU64Encoder()],["auctionType",ce()]])}function g6(){return getStructDecoder([["auction",getAddressDecoder()],["agent",getAddressDecoder()],["creator",getAddressDecoder()],["startingPrice",getU64Decoder()],["auctionType",se()]])}function Xwe(){return combineCodec(u6(),g6())}var A6=i(()=>{p();});function m6(){return getStructEncoder([["listing",getAddressEncoder()],["creator",getAddressEncoder()],["price",getU64Encoder()],["timestamp",getI64Encoder()]])}function y6(){return getStructDecoder([["listing",getAddressDecoder()],["creator",getAddressDecoder()],["price",getU64Decoder()],["timestamp",getI64Decoder()]])}function oUe(){return combineCodec(m6(),y6())}var T6=i(()=>{});function E6(){return getStructEncoder([["service",getAddressEncoder()],["provider",getAddressEncoder()],["executionTime",getU64Encoder()],["success",getBooleanEncoder()],["qualityScore",getOptionEncoder(getU32Encoder())],["timestamp",getI64Encoder()]])}function S6(){return getStructDecoder([["service",getAddressDecoder()],["provider",getAddressDecoder()],["executionTime",getU64Decoder()],["success",getBooleanDecoder()],["qualityScore",getOptionDecoder(getU32Decoder())],["timestamp",getI64Decoder()]])}function fUe(){return combineCodec(E6(),S6())}var P6=i(()=>{});function h6(){return getStructEncoder([["service",getAddressEncoder()],["buyer",getAddressEncoder()],["quantity",getU64Encoder()],["price",getU64Encoder()],["timestamp",getI64Encoder()]])}function I6(){return getStructDecoder([["service",getAddressDecoder()],["buyer",getAddressDecoder()],["quantity",getU64Decoder()],["price",getU64Decoder()],["timestamp",getI64Decoder()]])}function bUe(){return combineCodec(h6(),I6())}var v6=i(()=>{});function zd(){return getStructEncoder([["maxSessionDuration",getI64Encoder()],["idleTimeout",getI64Encoder()],["reauthInterval",getI64Encoder()],["mfaRequired",getBooleanEncoder()],["deviceFingerprinting",getBooleanEncoder()],["sessionEncryption",getBooleanEncoder()]])}function Wd(){return getStructDecoder([["maxSessionDuration",getI64Decoder()],["idleTimeout",getI64Decoder()],["reauthInterval",getI64Decoder()],["mfaRequired",getBooleanDecoder()],["deviceFingerprinting",getBooleanDecoder()],["sessionEncryption",getBooleanDecoder()]])}function IUe(){return combineCodec(zd(),Wd())}var M6=i(()=>{});function eu(){return getStructEncoder([["maxSessionDuration",getI64Encoder()],["idleTimeout",getI64Encoder()],["concurrentSessions",getU8Encoder()]])}function tu(){return getStructDecoder([["maxSessionDuration",getI64Decoder()],["idleTimeout",getI64Decoder()],["concurrentSessions",getU8Decoder()]])}function _Ue(){return combineCodec(eu(),tu())}var U6=i(()=>{});function Fd(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["conflictingRoles",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["constraintType",nu()],["enforcementLevel",Kt()],["exceptionProcedures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Gd(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["conflictingRoles",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["constraintType",ru()],["enforcementLevel",Vt()],["exceptionProcedures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function FUe(){return combineCodec(Fd(),Gd())}var z6=i(()=>{p();});function nu(){return getEnumEncoder(ou)}function ru(){return getEnumDecoder(ou)}function LUe(){return combineCodec(nu(),ru())}var ou,W6=i(()=>{ou=(n=>(n[n.Static=0]="Static",n[n.Dynamic=1]="Dynamic",n[n.Temporal=2]="Temporal",n[n.Contextual=3]="Contextual",n))(ou||{});});function wc(){return getEnumEncoder(cu)}function Uc(){return getEnumDecoder(cu)}function JUe(){return combineCodec(wc(),Uc())}var cu,F6=i(()=>{cu=(A=>(A[A.HighRiskAction=0]="HighRiskAction",A[A.SensitiveData=1]="SensitiveData",A[A.LargeTransaction=2]="LargeTransaction",A[A.NewDevice=3]="NewDevice",A[A.UnusualLocation=4]="UnusualLocation",A[A.TimeBasedRisk=5]="TimeBasedRisk",A[A.BehaviorAnomaly=6]="BehaviorAnomaly",A))(cu||{});});function su(){return getStructEncoder([["submittedAt",getI64Encoder()],["regulatoryBody",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["submissionReference",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["acknowledged",getBooleanEncoder()],["acknowledgedAt",getOptionEncoder(getI64Encoder())],["regulatoryResponse",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function iu(){return getStructDecoder([["submittedAt",getI64Decoder()],["regulatoryBody",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["submissionReference",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["acknowledged",getBooleanDecoder()],["acknowledgedAt",getOptionDecoder(getI64Decoder())],["regulatoryResponse",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function ZUe(){return combineCodec(su(),iu())}var K6=i(()=>{});function Bd(){return getStructEncoder([["allowedHours",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["allowedDays",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["timezone",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["maxSessionDuration",getOptionEncoder(getI64Encoder())],["expiresAt",getOptionEncoder(getI64Encoder())],["reactivationPeriod",getOptionEncoder(getI64Encoder())]])}function Nd(){return getStructDecoder([["allowedHours",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["allowedDays",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["timezone",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["maxSessionDuration",getOptionDecoder(getI64Decoder())],["expiresAt",getOptionDecoder(getI64Decoder())],["reactivationPeriod",getOptionDecoder(getI64Decoder())]])}function o_e(){return combineCodec(Bd(),Nd())}var J6=i(()=>{});function ra(){return getStructEncoder([["duration",getI64Encoder()],["lockedAt",getI64Encoder()],["unlocksAt",getI64Encoder()],["earlyUnlockConditions",getArrayEncoder(Le())],["lockType",au()],["cancellable",getBooleanEncoder()]])}function oa(){return getStructDecoder([["duration",getI64Decoder()],["lockedAt",getI64Decoder()],["unlocksAt",getI64Decoder()],["earlyUnlockConditions",getArrayDecoder(Ke())],["lockType",du()],["cancellable",getBooleanDecoder()]])}function A_e(){return combineCodec(ra(),oa())}var j6=i(()=>{p();});function au(){return getEnumEncoder(uu)}function du(){return getEnumDecoder(uu)}function y_e(){return combineCodec(au(),du())}var uu,q6=i(()=>{uu=(n=>(n[n.Standard=0]="Standard",n[n.Vesting=1]="Vesting",n[n.Emergency=2]="Emergency",n[n.Governance=3]="Governance",n))(uu||{});});function gu(){return getStructEncoder([["transferFee",getBooleanEncoder()],["confidentialTransfers",getBooleanEncoder()],["interestBearing",getBooleanEncoder()]])}function Au(){return getStructDecoder([["transferFee",getBooleanDecoder()],["confidentialTransfers",getBooleanDecoder()],["interestBearing",getBooleanDecoder()]])}function E_e(){return combineCodec(gu(),Au())}var $6=i(()=>{});function X6(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["agent",getAddressEncoder()],["decimals",getU8Encoder()],["extensionsEnabled",gu()],["timestamp",getI64Encoder()]])}function Q6(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["agent",getAddressDecoder()],["decimals",getU8Decoder()],["extensionsEnabled",Au()],["timestamp",getI64Decoder()]])}function I_e(){return combineCodec(X6(),Q6())}var Z6=i(()=>{p();});function tG(){return getStructEncoder([["marketAnalytics",getAddressEncoder()],["agent",getAddressEncoder()],["timestamp",getI64Encoder()]])}function nG(){return getStructDecoder([["marketAnalytics",getAddressDecoder()],["agent",getAddressDecoder()],["timestamp",getI64Decoder()]])}function __e(){return combineCodec(tG(),nG())}var rG=i(()=>{});function lG(){return getStructEncoder([["transactionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["from",getAddressEncoder()],["to",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()],["blockHeight",getU64Encoder()]])}function mG(){return getStructDecoder([["transactionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["from",getAddressDecoder()],["to",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()],["blockHeight",getU64Decoder()]])}function B_e(){return combineCodec(lG(),mG())}var yG=i(()=>{});function ca(){return getEnumEncoder(pu)}function sa(){return getEnumDecoder(pu)}function V_e(){return combineCodec(ca(),sa())}var pu,TG=i(()=>{pu=(s=>(s[s.Low=0]="Low",s[s.Normal=1]="Normal",s[s.High=2]="High",s[s.Critical=3]="Critical",s[s.Emergency=4]="Emergency",s))(pu||{});});function ia(){return getEnumEncoder(lu)}function aa(){return getEnumDecoder(lu)}function q_e(){return combineCodec(ia(),aa())}var lu,fG=i(()=>{lu=(A=>(A[A.Pending=0]="Pending",A[A.PartiallyApproved=1]="PartiallyApproved",A[A.FullyApproved=2]="FullyApproved",A[A.Executed=3]="Executed",A[A.Cancelled=4]="Cancelled",A[A.Expired=5]="Expired",A[A.Failed=6]="Failed",A))(lu||{});});function ge(){return getEnumEncoder(mu)}function Ae(){return getEnumDecoder(mu)}function Z_e(){return combineCodec(ge(),Ae())}var mu,xG=i(()=>{mu=(P=>(P[P.Transfer=0]="Transfer",P[P.Withdrawal=1]="Withdrawal",P[P.EscrowRelease=2]="EscrowRelease",P[P.ProposalCreation=3]="ProposalCreation",P[P.VoteExecution=4]="VoteExecution",P[P.ParameterUpdate=5]="ParameterUpdate",P[P.SignerAddition=6]="SignerAddition",P[P.SignerRemoval=7]="SignerRemoval",P[P.ThresholdUpdate=8]="ThresholdUpdate",P[P.ConfigUpdate=9]="ConfigUpdate",P[P.EmergencyFreeze=10]="EmergencyFreeze",P[P.EmergencyUnfreeze=11]="EmergencyUnfreeze",P[P.SecurityPolicyUpdate=12]="SecurityPolicyUpdate",P[P.ProtocolUpgrade=13]="ProtocolUpgrade",P[P.FeatureToggle=14]="FeatureToggle",P[P.RiskParameterUpdate=15]="RiskParameterUpdate",P[P.CustomInstruction=16]="CustomInstruction",P))(mu||{});});function PG(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["transferFeeBasisPoints",getU16Encoder()],["maximumFee",getU64Encoder()],["transferFeeAuthority",getOptionEncoder(getAddressEncoder())],["withdrawWithheldAuthority",getOptionEncoder(getAddressEncoder())],["timestamp",getI64Encoder()]])}function DG(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["transferFeeBasisPoints",getU16Decoder()],["maximumFee",getU64Decoder()],["transferFeeAuthority",getOptionDecoder(getAddressDecoder())],["withdrawWithheldAuthority",getOptionDecoder(getAddressDecoder())],["timestamp",getI64Decoder()]])}function a2e(){return combineCodec(PG(),DG())}var bG=i(()=>{});function Sd(){return getEnumEncoder(fu)}function Pd(){return getEnumDecoder(fu)}function A2e(){return combineCodec(Sd(),Pd())}var fu,CG=i(()=>{fu=(n=>(n[n.Increasing=0]="Increasing",n[n.Decreasing=1]="Decreasing",n[n.Stable=2]="Stable",n[n.Unknown=3]="Unknown",n))(fu||{});});function IG(){return getStructEncoder([["channel",getAddressEncoder()],["user",getAddressEncoder()],["isTyping",getBooleanEncoder()],["timestamp",getI64Encoder()]])}function vG(){return getStructDecoder([["channel",getAddressDecoder()],["user",getAddressDecoder()],["isTyping",getBooleanDecoder()],["timestamp",getI64Decoder()]])}function E2e(){return combineCodec(IG(),vG())}var MG=i(()=>{});function Wo(){return getEnumEncoder(xu)}function Fo(){return getEnumDecoder(xu)}function b2e(){return combineCodec(Wo(),Fo())}var xu,kG=i(()=>{xu=(s=>(s[s.TimeBasedAutoUnlock=0]="TimeBasedAutoUnlock",s[s.AdminUnlock=1]="AdminUnlock",s[s.SelfServiceUnlock=2]="SelfServiceUnlock",s[s.MultiFactorUnlock=3]="MultiFactorUnlock",s[s.SupervisorUnlock=4]="SupervisorUnlock",s))(xu||{});});function _G(){return getStructEncoder([["user",getAddressEncoder()],["action",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["sessionDuration",getOptionEncoder(getU64Encoder())],["interactionCount",getU32Encoder()],["timestamp",getI64Encoder()]])}function OG(){return getStructDecoder([["user",getAddressDecoder()],["action",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["sessionDuration",getOptionDecoder(getU64Decoder())],["interactionCount",getU32Decoder()],["timestamp",getI64Decoder()]])}function B2e(){return combineCodec(_G(),OG())}var zG=i(()=>{});function GG(){return getStructEncoder([["channel",getAddressEncoder()],["user",getAddressEncoder()],["joinedAt",getI64Encoder()]])}function BG(){return getStructDecoder([["channel",getAddressDecoder()],["user",getAddressDecoder()],["joinedAt",getI64Decoder()]])}function J2e(){return combineCodec(GG(),BG())}var NG=i(()=>{});function VG(){return getStructEncoder([["channel",getAddressEncoder()],["user",getAddressEncoder()],["leftAt",getI64Encoder()]])}function HG(){return getStructDecoder([["channel",getAddressDecoder()],["user",getAddressDecoder()],["leftAt",getI64Decoder()]])}function Z2e(){return combineCodec(VG(),HG())}var JG=i(()=>{});function ss(){return getEnumEncoder(Eu)}function is(){return getEnumDecoder(Eu)}function n0e(){return combineCodec(ss(),is())}var Eu,jG=i(()=>{Eu=(g=>(g[g.String=0]="String",g[g.Number=1]="Number",g[g.Boolean=2]="Boolean",g[g.Date=3]="Date",g[g.Time=4]="Time",g[g.Duration=5]="Duration",g[g.List=6]="List",g[g.Object=7]="Object",g))(Eu||{});});function Dd(){return getEnumEncoder(Su)}function bd(){return getEnumDecoder(Su)}function s0e(){return combineCodec(Dd(),bd())}var Su,qG=i(()=>{Su=(n=>(n[n.Low=0]="Low",n[n.Medium=1]="Medium",n[n.High=2]="High",n[n.Critical=3]="Critical",n))(Su||{});});function ot(){return getStructEncoder([["minQuantity",getU32Encoder()],["maxQuantity",getU32Encoder()],["discountPercentage",getU32Encoder()]])}function ct(){return getStructDecoder([["minQuantity",getU32Decoder()],["maxQuantity",getU32Decoder()],["discountPercentage",getU32Decoder()]])}function u0e(){return combineCodec(ot(),ct())}var $G=i(()=>{});function Pu(){return getStructEncoder([["voter",getAddressEncoder()],["choice",J()],["votingPower",getU64Encoder()],["votedAt",getI64Encoder()],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["delegationInfo",getOptionEncoder(xs())]])}function Du(){return getStructDecoder([["voter",getAddressDecoder()],["choice",j()],["votingPower",getU64Decoder()],["votedAt",getI64Decoder()],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["delegationInfo",getOptionDecoder(Es())]])}function R0e(){return combineCodec(Pu(),Du())}var ZG=i(()=>{p();});function tB(){return getStructEncoder([["proposal",getAddressEncoder()],["voter",getAddressEncoder()],["voteChoice",J()],["votingPower",getU64Encoder()],["tokenPower",getU64Encoder()],["reputationPower",getU64Encoder()],["volumePower",getU64Encoder()],["stakingPower",getU64Encoder()],["lockupMultiplier",getU16Encoder()],["timestamp",getI64Encoder()]])}function nB(){return getStructDecoder([["proposal",getAddressDecoder()],["voter",getAddressDecoder()],["voteChoice",j()],["votingPower",getU64Decoder()],["tokenPower",getU64Decoder()],["reputationPower",getU64Decoder()],["volumePower",getU64Decoder()],["stakingPower",getU64Decoder()],["lockupMultiplier",getU16Decoder()],["timestamp",getI64Decoder()]])}function _0e(){return combineCodec(tB(),nB())}var rB=i(()=>{p();});function sB(){return getStructEncoder([["proposal",getAddressEncoder()],["voter",getAddressEncoder()],["voteChoice",J()],["votingPower",getU64Encoder()],["timestamp",getI64Encoder()]])}function iB(){return getStructDecoder([["proposal",getAddressDecoder()],["voter",getAddressDecoder()],["voteChoice",j()],["votingPower",getU64Decoder()],["timestamp",getI64Decoder()]])}function L0e(){return combineCodec(sB(),iB())}var aB=i(()=>{p();});function J(){return getEnumEncoder(st)}function j(){return getEnumDecoder(st)}function J0e(){return combineCodec(J(),j())}var st,DT=i(()=>{st=(o=>(o[o.For=0]="For",o[o.Against=1]="Against",o[o.Abstain=2]="Abstain",o))(st||{});});function mB(){return getStructEncoder([["delegator",getAddressEncoder()],["delegate",getAddressEncoder()],["proposalId",getU64Encoder()],["scope",we()],["votingPower",getU64Encoder()],["expiresAt",getOptionEncoder(getI64Encoder())],["timestamp",getI64Encoder()]])}function yB(){return getStructDecoder([["delegator",getAddressDecoder()],["delegate",getAddressDecoder()],["proposalId",getU64Decoder()],["scope",Ue()],["votingPower",getU64Decoder()],["expiresAt",getOptionDecoder(getI64Decoder())],["timestamp",getI64Decoder()]])}function Z0e(){return combineCodec(mB(),yB())}var TB=i(()=>{p();});function fB(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["status",an()],["votesFor",getU64Encoder()],["votesAgainst",getU64Encoder()],["votesAbstain",getU64Encoder()],["participationRate",getU8Encoder()],["timestamp",getI64Encoder()]])}function xB(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["status",dn()],["votesFor",getU64Decoder()],["votesAgainst",getU64Decoder()],["votesAbstain",getU64Decoder()],["participationRate",getU8Decoder()],["timestamp",getI64Decoder()]])}function a8e(){return combineCodec(fB(),xB())}var EB=i(()=>{p();});function Iu(){return getStructEncoder([["votesFor",getU64Encoder()],["votesAgainst",getU64Encoder()],["votesAbstain",getU64Encoder()],["totalVotingPower",getU64Encoder()],["participationRate",getU8Encoder()],["individualVotes",getArrayEncoder(Pu())],["weightedVoting",getBooleanEncoder()],["quorumReached",getBooleanEncoder()],["approvalThresholdMet",getBooleanEncoder()]])}function vu(){return getStructDecoder([["votesFor",getU64Decoder()],["votesAgainst",getU64Decoder()],["votesAbstain",getU64Decoder()],["totalVotingPower",getU64Decoder()],["participationRate",getU8Decoder()],["individualVotes",getArrayDecoder(Du())],["weightedVoting",getBooleanDecoder()],["quorumReached",getBooleanDecoder()],["approvalThresholdMet",getBooleanDecoder()]])}function y8e(){return combineCodec(Iu(),vu())}var SB=i(()=>{p();});function IB(){return getStructEncoder([["workOrder",getAddressEncoder()],["client",getAddressEncoder()],["provider",getAddressEncoder()],["rejectionReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requestedChanges",getOptionEncoder(getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())))],["timestamp",getI64Encoder()]])}function vB(){return getStructDecoder([["workOrder",getAddressDecoder()],["client",getAddressDecoder()],["provider",getAddressDecoder()],["rejectionReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requestedChanges",getOptionDecoder(getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())))],["timestamp",getI64Decoder()]])}function R8e(){return combineCodec(IB(),vB())}var MB=i(()=>{});function UB(){return getStructEncoder([["workOrder",getAddressEncoder()],["provider",getAddressEncoder()],["ipfsHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function _B(){return getStructDecoder([["workOrder",getAddressDecoder()],["provider",getAddressDecoder()],["ipfsHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function F8e(){return combineCodec(UB(),_B())}var OB=i(()=>{});function zB(){return getStructEncoder([["workOrder",getAddressEncoder()],["client",getAddressEncoder()],["provider",getAddressEncoder()],["verificationNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["timestamp",getI64Encoder()]])}function WB(){return getStructDecoder([["workOrder",getAddressDecoder()],["client",getAddressDecoder()],["provider",getAddressDecoder()],["verificationNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["timestamp",getI64Decoder()]])}function Z8e(){return combineCodec(zB(),WB())}var FB=i(()=>{});function GB(){return getStructEncoder([["workOrder",getAddressEncoder()],["client",getAddressEncoder()],["provider",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()]])}function BB(){return getStructDecoder([["workOrder",getAddressDecoder()],["client",getAddressDecoder()],["provider",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()]])}function sOe(){return combineCodec(GB(),BB())}var NB=i(()=>{});function ku(){return getEnumEncoder(Mu)}function wu(){return getEnumDecoder(Mu)}function uOe(){return combineCodec(ku(),wu())}var Mu,LB=i(()=>{Mu=(A=>(A[A.Created=0]="Created",A[A.Open=1]="Open",A[A.Submitted=2]="Submitted",A[A.InProgress=3]="InProgress",A[A.Approved=4]="Approved",A[A.Completed=5]="Completed",A[A.Cancelled=6]="Cancelled",A))(Mu||{});});function KB(){return getStructEncoder([["agent",getAddressEncoder()],["payer",getAddressEncoder()],["amount",getU64Encoder()],["tokenMint",getAddressEncoder()],["transactionSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["responseTimeMs",getU64Encoder()],["totalPayments",getU64Encoder()],["totalCalls",getU64Encoder()],["timestamp",getI64Encoder()]])}function VB(){return getStructDecoder([["agent",getAddressDecoder()],["payer",getAddressDecoder()],["amount",getU64Decoder()],["tokenMint",getAddressDecoder()],["transactionSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["responseTimeMs",getU64Decoder()],["totalPayments",getU64Decoder()],["totalCalls",getU64Decoder()],["timestamp",getI64Decoder()]])}function POe(){return combineCodec(KB(),VB())}var HB=i(()=>{});function ZB(){return getStructEncoder([["agent",getAddressEncoder()],["rater",getAddressEncoder()],["rating",getU8Encoder()],["transactionSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["feedback",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["newReputationScore",getU32Encoder()],["timestamp",getI64Encoder()]])}function YB(){return getStructDecoder([["agent",getAddressDecoder()],["rater",getAddressDecoder()],["rating",getU8Decoder()],["transactionSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["feedback",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["newReputationScore",getU32Decoder()],["timestamp",getI64Decoder()]])}function wOe(){return combineCodec(ZB(),YB())}var e3=i(()=>{});function d3(){return getStructEncoder([["message_id",getU64Encoder()],["session_id",getU64Encoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["message_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function u3(){return getStructDecoder([["message_id",getU64Decoder()],["session_id",getU64Decoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["message_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function BOe(){return combineCodec(d3(),u3())}var g3=i(()=>{});function E3(){return getStructEncoder([["session_id",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["session_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expires_at",getI64Encoder()]])}function S3(){return getStructDecoder([["session_id",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["session_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expires_at",getI64Decoder()]])}function qOe(){return combineCodec(E3(),S3())}var P3=i(()=>{});function v3(){return getStructEncoder([["status_id",getU64Encoder()],["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["last_updated",getI64Encoder()]])}function M3(){return getStructDecoder([["status_id",getU64Decoder()],["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["last_updated",getI64Decoder()]])}function aze(){return combineCodec(v3(),M3())}var k3=i(()=>{});function w3(){return getStructEncoder([["agent_pubkey",getAddressEncoder()],["service_endpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["is_active",getBooleanEncoder()],["last_updated",getI64Encoder()],["metadata_uri",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function U3(){return getStructDecoder([["agent_pubkey",getAddressDecoder()],["service_endpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["is_active",getBooleanDecoder()],["last_updated",getI64Decoder()],["metadata_uri",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Pze(){return combineCodec(w3(),U3())}var _3=i(()=>{});function W3(){return getStructEncoder([["auction_type",ce()],["starting_price",getU64Encoder()],["reserve_price",getU64Encoder()],["is_reserve_hidden",getBooleanEncoder()],["current_bid",getU64Encoder()],["current_bidder",getOptionEncoder(getAddressEncoder())],["auction_end_time",getI64Encoder()],["minimum_bid_increment",getU64Encoder()],["total_bids",getU32Encoder()],["dutch_config",getOptionEncoder(Fe())]])}function F3(){return getStructDecoder([["auction_type",se()],["starting_price",getU64Decoder()],["reserve_price",getU64Decoder()],["is_reserve_hidden",getBooleanDecoder()],["current_bid",getU64Decoder()],["current_bidder",getOptionDecoder(getAddressDecoder())],["auction_end_time",getI64Decoder()],["minimum_bid_increment",getU64Decoder()],["total_bids",getU32Decoder()],["dutch_config",getOptionDecoder(Ge())]])}function _ze(){return combineCodec(W3(),F3())}var G3=i(()=>{p();});function B3(){return getStructEncoder([["customizations",getArrayEncoder(Ee())],["royalty_percentage",getU32Encoder()]])}function N3(){return getStructDecoder([["customizations",getArrayDecoder(Se())],["royalty_percentage",getU32Decoder()]])}function Lze(){return combineCodec(B3(),N3())}var L3=i(()=>{p();});function $3(){return getStructEncoder([["deal_id",getU64Encoder()],["deal_type",ie()],["total_volume",getU32Encoder()],["total_value",getU64Encoder()],["discount_percentage",getF64Encoder()],["volume_tiers",getArrayEncoder(ot())],["sla_terms",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["contract_duration",getI64Encoder()],["end_date",getI64Encoder()]])}function X3(){return getStructDecoder([["deal_id",getU64Decoder()],["deal_type",ae()],["total_volume",getU32Decoder()],["total_value",getU64Decoder()],["discount_percentage",getF64Decoder()],["volume_tiers",getArrayDecoder(ct())],["sla_terms",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["contract_duration",getI64Decoder()],["end_date",getI64Decoder()]])}function eWe(){return combineCodec($3(),X3())}var Q3=i(()=>{p();});function Z3(){return getStructEncoder([["channel_id",getU64Encoder()],["participants",getArrayEncoder(getAddressEncoder())],["channel_type",G()],["is_private",getBooleanEncoder()]])}function Y3(){return getStructDecoder([["channel_id",getU64Decoder()],["participants",getArrayDecoder(getAddressDecoder())],["channel_type",B()],["is_private",getBooleanDecoder()]])}function AWe(){return combineCodec(Z3(),Y3())}var e5=i(()=>{p();});function t5(){return getStructEncoder([["message_id",getU64Encoder()],["sender_type",M()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["message_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["attachments",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function n5(){return getStructDecoder([["message_id",getU64Decoder()],["sender_type",k()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["message_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["attachments",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function EWe(){return combineCodec(t5(),n5())}var r5=i(()=>{p();});function A5(){return getStructEncoder([["session_id",getU64Encoder()],["initiator",getAddressEncoder()],["initiator_type",M()],["responder",getAddressEncoder()],["responder_type",M()],["session_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expires_at",getI64Encoder()]])}function p5(){return getStructDecoder([["session_id",getU64Decoder()],["initiator",getAddressDecoder()],["initiator_type",k()],["responder",getAddressDecoder()],["responder_type",k()],["session_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expires_at",getI64Decoder()]])}function IWe(){return combineCodec(A5(),p5())}var l5=i(()=>{p();});function m5(){return getStructEncoder([["auto_approve_new_accounts",getBooleanEncoder()],["auditor_elgamal_pubkey",getOptionEncoder(fixEncoderSize(getArrayEncoder(getU8Encoder()),32))]])}function y5(){return getStructDecoder([["auto_approve_new_accounts",getBooleanDecoder()],["auditor_elgamal_pubkey",getOptionDecoder(fixDecoderSize(getArrayDecoder(getU8Decoder()),32))]])}function LWe(){return combineCodec(m5(),y5())}var T5=i(()=>{});function E5(){return getStructEncoder([["decimals",getU8Encoder()],["freeze_authority",getOptionEncoder(getAddressEncoder())],["enable_transfer_fee",getBooleanEncoder()],["enable_confidential_transfers",getBooleanEncoder()],["enable_interest_bearing",getBooleanEncoder()],["transfer_fee_basis_points",getOptionEncoder(getU16Encoder())],["maximum_fee",getOptionEncoder(getU64Encoder())],["transfer_fee_authority",getOptionEncoder(getAddressEncoder())],["withdraw_withheld_authority",getOptionEncoder(getAddressEncoder())],["auto_approve_new_accounts",getOptionEncoder(getBooleanEncoder())],["auditor_elgamal_pubkey",getOptionEncoder(fixEncoderSize(getArrayEncoder(getU8Encoder()),32))],["interest_rate",getOptionEncoder(getI16Encoder())],["rate_authority",getOptionEncoder(getAddressEncoder())],["close_authority",getOptionEncoder(getAddressEncoder())],["default_account_state",getOptionEncoder(re())]])}function S5(){return getStructDecoder([["decimals",getU8Decoder()],["freeze_authority",getOptionDecoder(getAddressDecoder())],["enable_transfer_fee",getBooleanDecoder()],["enable_confidential_transfers",getBooleanDecoder()],["enable_interest_bearing",getBooleanDecoder()],["transfer_fee_basis_points",getOptionDecoder(getU16Decoder())],["maximum_fee",getOptionDecoder(getU64Decoder())],["transfer_fee_authority",getOptionDecoder(getAddressDecoder())],["withdraw_withheld_authority",getOptionDecoder(getAddressDecoder())],["auto_approve_new_accounts",getOptionDecoder(getBooleanDecoder())],["auditor_elgamal_pubkey",getOptionDecoder(fixDecoderSize(getArrayDecoder(getU8Decoder()),32))],["interest_rate",getOptionDecoder(getI16Decoder())],["rate_authority",getOptionDecoder(getAddressDecoder())],["close_authority",getOptionDecoder(getAddressDecoder())],["default_account_state",getOptionDecoder(oe())]])}function nFe(){return combineCodec(E5(),S5())}var P5=i(()=>{p();});function D5(){return getStructEncoder([["current_demand",getU64Encoder()],["peak_demand",getU64Encoder()],["average_demand",getU64Encoder()],["demand_trend",getI32Encoder()],["demand_volatility",getU32Encoder()],["last_updated",getI64Encoder()]])}function b5(){return getStructDecoder([["current_demand",getU64Decoder()],["peak_demand",getU64Decoder()],["average_demand",getU64Decoder()],["demand_trend",getI32Decoder()],["demand_volatility",getU32Decoder()],["last_updated",getI64Decoder()]])}function AFe(){return combineCodec(D5(),b5())}var C5=i(()=>{});function R5(){return getStructEncoder([["rate",getI16Encoder()]])}function h5(){return getStructDecoder([["rate",getI16Decoder()]])}function fFe(){return combineCodec(R5(),h5())}var I5=i(()=>{});function O5(){return getStructEncoder([["cover_letter",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposed_price",getU64Encoder()],["estimated_duration",getU32Encoder()],["proposed_rate",getU64Encoder()],["estimated_delivery",getI64Encoder()],["portfolio_items",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function z5(){return getStructDecoder([["cover_letter",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposed_price",getU64Decoder()],["estimated_duration",getU32Decoder()],["proposed_rate",getU64Decoder()],["estimated_delivery",getI64Decoder()],["portfolio_items",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function RFe(){return combineCodec(O5(),z5())}var W5=i(()=>{});function B5(){return getStructEncoder([["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budget",getU64Encoder()],["deadline",getI64Encoder()],["skills_needed",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budget_min",getU64Encoder()],["budget_max",getU64Encoder()],["payment_token",getAddressEncoder()],["job_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["experience_level",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function N5(){return getStructDecoder([["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budget",getU64Decoder()],["deadline",getI64Decoder()],["skills_needed",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budget_min",getU64Decoder()],["budget_max",getU64Decoder()],["payment_token",getAddressDecoder()],["job_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["experience_level",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function _Fe(){return combineCodec(B5(),N5())}var L5=i(()=>{});function K5(){return getStructEncoder([["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["message_type",N()],["is_encrypted",getBooleanEncoder()]])}function V5(){return getStructDecoder([["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["message_type",L()],["is_encrypted",getBooleanDecoder()]])}function JFe(){return combineCodec(K5(),V5())}var H5=i(()=>{p();});function J5(){return getStructEncoder([["participant",getAddressEncoder()],["participant_type",M()],["services_offered",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["reputation_score",getU8Encoder()]])}function j5(){return getStructDecoder([["participant",getAddressDecoder()],["participant_type",k()],["services_offered",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["reputation_score",getU8Decoder()]])}function u4e(){return combineCodec(J5(),j5())}var q5=i(()=>{p();});function Y5(){return getStructEncoder([["genome_hash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["base_capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["replication_fee",getU64Encoder()],["max_replications",getU32Encoder()]])}function e9(){return getStructDecoder([["genome_hash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["base_capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["replication_fee",getU64Decoder()],["max_replications",getU32Decoder()]])}function f4e(){return combineCodec(Y5(),e9())}var t9=i(()=>{});function o9(){return getStructEncoder([["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["price",getU64Encoder()],["token_mint",getAddressEncoder()],["service_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["payment_token",getAddressEncoder()],["estimated_delivery",getI64Encoder()],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function c9(){return getStructDecoder([["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["price",getU64Decoder()],["token_mint",getAddressDecoder()],["service_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["payment_token",getAddressDecoder()],["estimated_delivery",getI64Decoder()],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function I4e(){return combineCodec(o9(),c9())}var s9=i(()=>{});function g9(){return getStructEncoder([["listing_id",getU64Encoder()],["quantity",getU32Encoder()],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["custom_instructions",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deadline",getI64Encoder()]])}function A9(){return getStructDecoder([["listing_id",getU64Decoder()],["quantity",getU32Decoder()],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["custom_instructions",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deadline",getI64Decoder()]])}function F4e(){return combineCodec(g9(),A9())}var p9=i(()=>{});function f9(){return getStructEncoder([["transfer_fee_basis_points",getU16Encoder()],["maximum_fee",getU64Encoder()],["transfer_fee_authority",getOptionEncoder(getAddressEncoder())],["withdraw_withheld_authority",getOptionEncoder(getAddressEncoder())]])}function x9(){return getStructDecoder([["transfer_fee_basis_points",getU16Decoder()],["maximum_fee",getU64Decoder()],["transfer_fee_authority",getOptionDecoder(getAddressDecoder())],["withdraw_withheld_authority",getOptionDecoder(getAddressDecoder())]])}function J4e(){return combineCodec(f9(),x9())}var E9=i(()=>{});function h9(){return getStructEncoder([["deliverables",getArrayEncoder(ze())],["ipfs_hash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata_uri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function I9(){return getStructDecoder([["deliverables",getArrayDecoder(We())],["ipfs_hash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata_uri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Z4e(){return combineCodec(h9(),I9())}var v9=i(()=>{p();});function _9(){return getStructEncoder([["order_id",getU64Encoder()],["provider",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["payment_amount",getU64Encoder()],["payment_token",getAddressEncoder()],["deadline",getI64Encoder()]])}function O9(){return getStructDecoder([["order_id",getU64Decoder()],["provider",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["payment_amount",getU64Decoder()],["payment_token",getAddressDecoder()],["deadline",getI64Decoder()]])}function s6e(){return combineCodec(_9(),O9())}var z9=i(()=>{});function G9(){return getStructEncoder([["enabled",getBooleanEncoder()],["payment_address",getAddressEncoder()],["accepted_tokens",getArrayEncoder(getAddressEncoder())],["price_per_call",getU64Encoder()],["service_endpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function B9(){return getStructDecoder([["enabled",getBooleanDecoder()],["payment_address",getAddressDecoder()],["accepted_tokens",getArrayDecoder(getAddressDecoder())],["price_per_call",getU64Decoder()],["service_endpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function P6e(){return combineCodec(G9(),B9())}var N9=i(()=>{});function V9(){return getStructEncoder([["amount",getU64Encoder()],["token_mint",getAddressEncoder()],["transaction_signature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["response_time_ms",getU64Encoder()]])}function H9(){return getStructDecoder([["amount",getU64Decoder()],["token_mint",getAddressDecoder()],["transaction_signature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["response_time_ms",getU64Decoder()]])}function _6e(){return combineCodec(V9(),H9())}var J9=i(()=>{});function Y9(){return getStructEncoder([["rating",getU8Encoder()],["transaction_signature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["feedback",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function eN(){return getStructDecoder([["rating",getU8Decoder()],["transaction_signature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["feedback",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function L6e(){return combineCodec(Y9(),eN())}var tN=i(()=>{});function fe(){return getStructEncoder([["id",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["resource_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["actions",getArrayEncoder(En())],["scope",Xe()],["constraints",getArrayEncoder(Pn())],["metadata",qe()]])}function xe(){return getStructDecoder([["id",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["resource_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["actions",getArrayDecoder(Sn())],["scope",Qe()],["constraints",getArrayDecoder(Dn())],["metadata",$e()]])}function J6e(){return combineCodec(fe(),xe())}var oN=i(()=>{p();});function pe(){return getStructEncoder([["max_signers",getU8Encoder()],["default_timeout",getI64Encoder()],["allow_emergency_override",getBooleanEncoder()],["emergency_threshold",getOptionEncoder(getU8Encoder())],["auto_execute",getBooleanEncoder()],["signer_change_threshold",getU8Encoder()],["allowed_transaction_types",getArrayEncoder(ge())],["daily_limits",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),getU64Encoder()]))]])}function le(){return getStructDecoder([["max_signers",getU8Decoder()],["default_timeout",getI64Decoder()],["allow_emergency_override",getBooleanDecoder()],["emergency_threshold",getOptionDecoder(getU8Decoder())],["auto_execute",getBooleanDecoder()],["signer_change_threshold",getU8Decoder()],["allowed_transaction_types",getArrayDecoder(Ae())],["daily_limits",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),getU64Decoder()]))]])}function uGe(){return combineCodec(pe(),le())}var dN=i(()=>{p();});function lN(){return getStructEncoder([["max_signers",getU8Encoder()],["default_timeout",getI64Encoder()],["allow_emergency_override",getBooleanEncoder()],["emergency_threshold",getOptionEncoder(getU8Encoder())],["auto_execute",getBooleanEncoder()],["signer_change_threshold",getU8Encoder()],["allowed_transaction_types",getArrayEncoder(ge())],["daily_limits",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),getU64Encoder()]))]])}function mN(){return getStructDecoder([["max_signers",getU8Decoder()],["default_timeout",getI64Decoder()],["allow_emergency_override",getBooleanDecoder()],["emergency_threshold",getOptionDecoder(getU8Decoder())],["auto_execute",getBooleanDecoder()],["signer_change_threshold",getU8Decoder()],["allowed_transaction_types",getArrayDecoder(Ae())],["daily_limits",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),getU64Decoder()]))]])}function IGe(){return combineCodec(lN(),mN())}var yN=i(()=>{p();});function Me(){return getStructEncoder([["compliance_score",getU8Encoder()],["last_review",getI64Encoder()],["next_review",getI64Encoder()],["active_violations",getArrayEncoder(Yu())],["regulatory_status",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),Qu()]))],["risk_assessment",Yt()],["compliance_officers",getArrayEncoder(getAddressEncoder())]])}function ke(){return getStructDecoder([["compliance_score",getU8Decoder()],["last_review",getI64Decoder()],["next_review",getI64Decoder()],["active_violations",getArrayDecoder(eg())],["regulatory_status",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),Zu()]))],["risk_assessment",en()],["compliance_officers",getArrayDecoder(getAddressDecoder())]])}function VGe(){return combineCodec(Me(),ke())}var xN=i(()=>{p();});function de(){return getStructEncoder([["algorithm",Be()],["base_price",getU64Encoder()],["min_price",getU64Encoder()],["max_price",getU64Encoder()],["price_range",getTupleEncoder([getU64Encoder(),getU64Encoder()])],["adjustment_frequency",getI64Encoder()],["update_frequency",getI64Encoder()],["volatility_threshold",getU32Encoder()],["demand_elasticity",getU32Encoder()],["supply_elasticity",getU32Encoder()],["demand_multiplier",getU32Encoder()],["reputation_multiplier",getU32Encoder()],["surge_multiplier",getU32Encoder()],["last_update",getI64Encoder()],["enabled",getBooleanEncoder()]])}function ue(){return getStructDecoder([["algorithm",Ne()],["base_price",getU64Decoder()],["min_price",getU64Decoder()],["max_price",getU64Decoder()],["price_range",getTupleDecoder([getU64Decoder(),getU64Decoder()])],["adjustment_frequency",getI64Decoder()],["update_frequency",getI64Decoder()],["volatility_threshold",getU32Decoder()],["demand_elasticity",getU32Decoder()],["supply_elasticity",getU32Decoder()],["demand_multiplier",getU32Decoder()],["reputation_multiplier",getU32Decoder()],["surge_multiplier",getU32Decoder()],["last_update",getI64Decoder()],["enabled",getBooleanDecoder()]])}function ZGe(){return combineCodec(de(),ue())}var EN=i(()=>{p();});function et(){return getStructEncoder([["timestamp",getI64Encoder()],["event_id",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["entry_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getOptionEncoder(getU64Encoder())],["parties",getArrayEncoder(getAddressEncoder())],["risk_score",getU8Encoder()],["compliance_flags",Gt()],["metadata",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]))]])}function tt(){return getStructDecoder([["timestamp",getI64Decoder()],["event_id",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["entry_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getOptionDecoder(getU64Decoder())],["parties",getArrayDecoder(getAddressDecoder())],["risk_score",getU8Decoder()],["compliance_flags",Bt()],["metadata",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]))]])}function lBe(){return combineCodec(et(),tt())}var DN=i(()=>{p();});function nt(){return getStructEncoder([["allowed_resource_types",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blocked_resource_types",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["access_limits",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),getU64Encoder()]))],["quotas",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),ig()]))],["compartments",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function rt(){return getStructDecoder([["allowed_resource_types",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blocked_resource_types",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["access_limits",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),getU64Decoder()]))],["quotas",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),ag()]))],["compartments",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function EBe(){return combineCodec(nt(),rt())}var RN=i(()=>{p();});function vN(){return getStructEncoder([["id",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["resource_type",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["actions",getArrayEncoder(En())],["scope",Xe()],["constraints",getArrayEncoder(Pn())],["metadata",qe()]])}function MN(){return getStructDecoder([["id",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["resource_type",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["actions",getArrayDecoder(Sn())],["scope",Qe()],["constraints",getArrayDecoder(Dn())],["metadata",$e()]])}function bBe(){return combineCodec(vN(),MN())}var kN=i(()=>{p();});function Pe(){return getStructEncoder([["transaction_signature",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["amount",getOptionEncoder(getU64Encoder())],["token",getOptionEncoder(getAddressEncoder())],["metadata",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]))],["risk_score",getOptionEncoder(getU32Encoder())],["location",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["client_info",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function De(){return getStructDecoder([["transaction_signature",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["amount",getOptionDecoder(getU64Decoder())],["token",getOptionDecoder(getAddressDecoder())],["metadata",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]))],["risk_score",getOptionDecoder(getU32Decoder())],["location",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["client_info",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function zBe(){return combineCodec(Pe(),De())}var wN=i(()=>{});function be(){return getStructEncoder([["minimum_quality",getU8Encoder()],["assessment_method",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["multiple_samples",getBooleanEncoder()],["quality_thresholds",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),getU8Encoder()]))]])}function Ce(){return getStructDecoder([["minimum_quality",getU8Decoder()],["assessment_method",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["multiple_samples",getBooleanDecoder()],["quality_thresholds",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),getU8Decoder()]))]])}function JBe(){return combineCodec(be(),Ce())}var NN=i(()=>{});function En(){return getEnumEncoder(mg)}function Sn(){return getEnumDecoder(mg)}function XBe(){return combineCodec(En(),Sn())}var mg,LN=i(()=>{mg=(P=>(P[P.Create=0]="Create",P[P.Read=1]="Read",P[P.Update=2]="Update",P[P.Delete=3]="Delete",P[P.Execute=4]="Execute",P[P.Approve=5]="Approve",P[P.Reject=6]="Reject",P[P.Transfer=7]="Transfer",P[P.Lock=8]="Lock",P[P.Unlock=9]="Unlock",P[P.Freeze=10]="Freeze",P[P.Unfreeze=11]="Unfreeze",P[P.Audit=12]="Audit",P[P.Monitor=13]="Monitor",P[P.Configure=14]="Configure",P[P.Deploy=15]="Deploy",P[P.Custom=16]="Custom",P))(mg||{});});function Pn(){return getStructEncoder([])}function Dn(){return getStructDecoder([])}function e3e(){return combineCodec(Pn(),Dn())}var KN=i(()=>{});function Qu(){return getStructEncoder([])}function Zu(){return getStructDecoder([])}function o3e(){return combineCodec(Qu(),Zu())}var VN=i(()=>{});function Yu(){return getStructEncoder([])}function eg(){return getStructDecoder([])}function a3e(){return combineCodec(Yu(),eg())}var HN=i(()=>{});function Ze(){return getStructEncoder([["condition_type",Nt()],["subject_attributes",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]))],["resource_attributes",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]))],["action_attributes",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]))],["environment_attributes",getArrayEncoder(getTupleEncoder([addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]))]])}function Ye(){return getStructDecoder([["condition_type",Lt()],["subject_attributes",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]))],["resource_attributes",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]))],["action_attributes",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]))],["environment_attributes",getArrayDecoder(getTupleDecoder([addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()),addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]))]])}function A3e(){return combineCodec(Ze(),Ye())}var JN=i(()=>{p();});function ig(){return getStructEncoder([["max_usage",getU64Encoder()],["time_period",getI64Encoder()],["reset_behavior",Eg()],["warning_threshold",getU8Encoder()]])}function ag(){return getStructDecoder([["max_usage",getU64Decoder()],["time_period",getI64Decoder()],["reset_behavior",Sg()],["warning_threshold",getU8Decoder()]])}function P3e(){return combineCodec(ig(),ag())}var jN=i(()=>{p();});function Eg(){return getEnumEncoder(Pg)}function Sg(){return getEnumDecoder(Pg)}function R3e(){return combineCodec(Eg(),Sg())}var Pg,qN=i(()=>{Pg=(n=>(n[n.Rolling=0]="Rolling",n[n.Fixed=1]="Fixed",n[n.Manual=2]="Manual",n[n.OnDemand=3]="OnDemand",n))(Pg||{});});var p=i(()=>{BM();HM();qM();QM();ek();rk();ok();ik();uk();gk();yk();xk();Pk();Ck();wk();Wk();Lk();Hk();Xk();rw();aw();dw();uw();mw();Ew();Dw();Rw();hw();Iw();kw();ww();Uw();Fw();Nw();Vw();$w();Zw();Yw();eU();tU();oU();iU();AU();mU();yU();TU();fU();SU();bU();CU();MU();OU();zU();GU();LU();KU();VU();QU();e_();c_();s_();i_();A_();G1();T_();P_();h_();I_();v_();M_();O_();F_();j_();q_();t2();a2();d2();u2();m2();y2();T2();f2();D2();b2();h2();I2();v2();z2();K2();q2();Q2();n0();r0();o0();c0();u0();p0();y0();S0();P0();C0();I0();k0();F0();G0();V0();Y0();n8();c8();u8();m8();E8();S8();I8();k8();z8();G8();B8();H8();J8();j8();X8();tO();aO();dO();lO();xO();EO();DO();RO();vO();_O();WO();FO();NO();VO();$O();ez();tz();az();pz();yz();Sz();Pz();Cz();Iz();vz();Mz();Uz();zz();Nz();qz();$z();Zz();tW();nW();dW();uW();TW();fW();xW();EW();SW();PW();DW();bW();hW();IW();kW();_W();GW();LW();KW();VW();QW();eF();rF();oF();cF();sF();iF();aF();dF();AF();TF();PF();CF();RF();Py();hF();IF();kF();zF();WF();BF();NF();VF();HF();JF();jF();qF();QF();e4();c4();a4();g4();l4();T4();f4();x4();I4();v4();_4();W4();J4();j4();q4();Q4();e6();r6();o6();c6();s6();i6();a6();d6();A6();T6();P6();v6();M6();U6();z6();W6();F6();K6();J6();j6();q6();$6();Z6();rG();yG();TG();fG();xG();bG();CG();MG();kG();zG();NG();JG();jG();qG();$G();ZG();rB();aB();DT();TB();EB();SB();MB();OB();FB();NB();LB();HB();e3();g3();P3();k3();_3();G3();L3();Q3();e5();r5();l5();T5();P5();C5();I5();W5();L5();H5();q5();t9();s9();p9();E9();v9();z9();N9();J9();tN();oN();dN();yN();xN();EN();DN();RN();kN();wN();NN();LN();KN();VN();HN();JN();jN();qN();});function F3e(){return fixEncoderSize(getBytesEncoder(),8).encode(Sf)}function YN(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentType",getU8Encoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["pricingModel",kt()],["reputationScore",getU32Encoder()],["totalJobsCompleted",getU32Encoder()],["totalEarnings",getU64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["originalPrice",getU64Encoder()],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isReplicable",getBooleanEncoder()],["replicationFee",getU64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isVerified",getBooleanEncoder()],["verificationTimestamp",getI64Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["frameworkOrigin",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedTokens",getArrayEncoder(getAddressEncoder())],["cnftMint",getOptionEncoder(getAddressEncoder())],["merkleTree",getOptionEncoder(getAddressEncoder())],["supportsA2a",getBooleanEncoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["parentAgent",getOptionEncoder(getAddressEncoder())],["generation",getU32Encoder()],["x402Enabled",getBooleanEncoder()],["x402PaymentAddress",getAddressEncoder()],["x402AcceptedTokens",getArrayEncoder(getAddressEncoder())],["x402PricePerCall",getU64Encoder()],["x402ServiceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["x402TotalPayments",getU64Encoder()],["x402TotalCalls",getU64Encoder()],["lastPaymentTimestamp",getI64Encoder()],["apiSpecUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["apiVersion",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:Sf}))}function Pf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentType",getU8Decoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["pricingModel",wt()],["reputationScore",getU32Decoder()],["totalJobsCompleted",getU32Decoder()],["totalEarnings",getU64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["originalPrice",getU64Decoder()],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isReplicable",getBooleanDecoder()],["replicationFee",getU64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isVerified",getBooleanDecoder()],["verificationTimestamp",getI64Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["frameworkOrigin",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedTokens",getArrayDecoder(getAddressDecoder())],["cnftMint",getOptionDecoder(getAddressDecoder())],["merkleTree",getOptionDecoder(getAddressDecoder())],["supportsA2a",getBooleanDecoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["parentAgent",getOptionDecoder(getAddressDecoder())],["generation",getU32Decoder()],["x402Enabled",getBooleanDecoder()],["x402PaymentAddress",getAddressDecoder()],["x402AcceptedTokens",getArrayDecoder(getAddressDecoder())],["x402PricePerCall",getU64Decoder()],["x402ServiceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["x402TotalPayments",getU64Decoder()],["x402TotalCalls",getU64Decoder()],["lastPaymentTimestamp",getI64Decoder()],["apiSpecUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["apiVersion",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["bump",getU8Decoder()]])}function G3e(){return combineCodec(YN(),Pf())}function Df(e){return decodeAccount(e,Pf())}async function B3e(e,t,r){let o=await eL(e,t,r);return assertAccountExists(o),o}async function eL(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Df(o)}async function N3e(e,t,r){let o=await tL(e,t,r);return assertAccountsExist(o),o}async function tL(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Df(n))}var Sf,nL=i(()=>{p();Sf=new Uint8Array([47,166,112,147,155,197,86,7]);});function d5e(){return fixEncoderSize(getBytesEncoder(),8).encode(bf)}function cL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["referralsCount",getU32Encoder()],["referralEarnings",getU64Encoder()],["performanceScore",getF64Encoder()],["performanceEarnings",getU64Encoder()],["loyaltyPoints",getU64Encoder()],["totalEarnings",getU64Encoder()],["lastActivity",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:bf}))}function Cf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["referralsCount",getU32Decoder()],["referralEarnings",getU64Decoder()],["performanceScore",getF64Decoder()],["performanceEarnings",getU64Decoder()],["loyaltyPoints",getU64Decoder()],["totalEarnings",getU64Decoder()],["lastActivity",getI64Decoder()],["bump",getU8Decoder()]])}function u5e(){return combineCodec(cL(),Cf())}function Rf(e){return decodeAccount(e,Cf())}async function g5e(e,t,r){let o=await sL(e,t,r);return assertAccountExists(o),o}async function sL(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Rf(o)}async function A5e(e,t,r){let o=await iL(e,t,r);return assertAccountsExist(o),o}async function iL(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Rf(n))}function p5e(){return 93}var bf,aL=i(()=>{bf=new Uint8Array([167,87,249,0,146,197,209,158]);});function v5e(){return fixEncoderSize(getBytesEncoder(),8).encode(hf)}function pL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["treeCreator",getAddressEncoder()],["treeDelegate",getAddressEncoder()],["numMinted",getU64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:hf}))}function If(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["treeCreator",getAddressDecoder()],["treeDelegate",getAddressDecoder()],["numMinted",getU64Decoder()],["bump",getU8Decoder()]])}function M5e(){return combineCodec(pL(),If())}function vf(e){return decodeAccount(e,If())}async function k5e(e,t,r){let o=await lL(e,t,r);return assertAccountExists(o),o}async function lL(e,t,r){let o=await fetchEncodedAccount(e,t,r);return vf(o)}async function w5e(e,t,r){let o=await mL(e,t,r);return assertAccountsExist(o),o}async function mL(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>vf(n))}function U5e(){return 81}var hf,yL=i(()=>{hf=new Uint8Array([145,145,156,0,197,232,130,245]);});function $5e(){return fixEncoderSize(getBytesEncoder(),8).encode(Mf)}function DL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["verifier",getAddressEncoder()],["verificationData",$o()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Mf}))}function kf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["verifier",getAddressDecoder()],["verificationData",Xo()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function X5e(){return combineCodec(DL(),kf())}function wf(e){return decodeAccount(e,kf())}async function Q5e(e,t,r){let o=await bL(e,t,r);return assertAccountExists(o),o}async function bL(e,t,r){let o=await fetchEncodedAccount(e,t,r);return wf(o)}async function Z5e(e,t,r){let o=await CL(e,t,r);return assertAccountsExist(o),o}async function CL(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>wf(n))}var Mf,RL=i(()=>{p();Mf=new Uint8Array([128,155,95,241,66,207,166,59]);});function E9e(){return fixEncoderSize(getBytesEncoder(),8).encode(Of)}function UL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dashboardId",getU64Encoder()],["owner",getAddressEncoder()],["authority",getAddressEncoder()],["programId",getAddressEncoder()],["metrics",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["networkMetrics",wi()],["marketplaceMetrics",fi()],["economicMetrics",Ms()],["metricSamples",getArrayEncoder(Pi())],["agentPerformance",getArrayEncoder(jo())],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Of}))}function zf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dashboardId",getU64Decoder()],["owner",getAddressDecoder()],["authority",getAddressDecoder()],["programId",getAddressDecoder()],["metrics",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["networkMetrics",Ui()],["marketplaceMetrics",xi()],["economicMetrics",ks()],["metricSamples",getArrayDecoder(Di())],["agentPerformance",getArrayDecoder(qo())],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function S9e(){return combineCodec(UL(),zf())}function Wf(e){return decodeAccount(e,zf())}async function P9e(e,t,r){let o=await _L(e,t,r);return assertAccountExists(o),o}async function _L(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Wf(o)}async function D9e(e,t,r){let o=await OL(e,t,r);return assertAccountsExist(o),o}async function OL(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Wf(n))}var Of,zL=i(()=>{p();Of=new Uint8Array([50,162,197,10,93,40,12,147]);});function G9e(){return fixEncoderSize(getBytesEncoder(),8).encode(Ff)}function KL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["authorizedArbitrators",getArrayEncoder(getAddressEncoder())],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Ff}))}function Gf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["authorizedArbitrators",getArrayDecoder(getAddressDecoder())],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function B9e(){return combineCodec(KL(),Gf())}function Bf(e){return decodeAccount(e,Gf())}async function N9e(e,t,r){let o=await VL(e,t,r);return assertAccountExists(o),o}async function VL(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Bf(o)}async function L9e(e,t,r){let o=await HL(e,t,r);return assertAccountsExist(o),o}async function HL(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Bf(n))}var Ff,JL=i(()=>{Ff=new Uint8Array([252,241,152,150,74,0,119,175]);});function sNe(){return fixEncoderSize(getBytesEncoder(),8).encode(Nf)}function YL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["auction",getAddressEncoder()],["agent",getAddressEncoder()],["creator",getAddressEncoder()],["auctionType",ce()],["startingPrice",getU64Encoder()],["reservePrice",getU64Encoder()],["isReserveHidden",getBooleanEncoder()],["reserveMet",getBooleanEncoder()],["currentPrice",getU64Encoder()],["currentWinner",getOptionEncoder(getAddressEncoder())],["winner",getOptionEncoder(getAddressEncoder())],["auctionEndTime",getI64Encoder()],["minimumBidIncrement",getU64Encoder()],["totalBids",getU32Encoder()],["status",gc()],["bids",getArrayEncoder(ac())],["createdAt",getI64Encoder()],["endedAt",getOptionEncoder(getI64Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["dutchConfig",getOptionEncoder(Fe())],["extensionCount",getU8Encoder()],["originalEndTime",getI64Encoder()],["reservePriceLocked",getBooleanEncoder()],["reserveShortfallNotified",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Nf}))}function Lf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["auction",getAddressDecoder()],["agent",getAddressDecoder()],["creator",getAddressDecoder()],["auctionType",se()],["startingPrice",getU64Decoder()],["reservePrice",getU64Decoder()],["isReserveHidden",getBooleanDecoder()],["reserveMet",getBooleanDecoder()],["currentPrice",getU64Decoder()],["currentWinner",getOptionDecoder(getAddressDecoder())],["winner",getOptionDecoder(getAddressDecoder())],["auctionEndTime",getI64Decoder()],["minimumBidIncrement",getU64Decoder()],["totalBids",getU32Decoder()],["status",Ac()],["bids",getArrayDecoder(dc())],["createdAt",getI64Decoder()],["endedAt",getOptionDecoder(getI64Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["dutchConfig",getOptionDecoder(Ge())],["extensionCount",getU8Decoder()],["originalEndTime",getI64Decoder()],["reservePriceLocked",getBooleanDecoder()],["reserveShortfallNotified",getBooleanDecoder()],["bump",getU8Decoder()]])}function iNe(){return combineCodec(YL(),Lf())}function Kf(e){return decodeAccount(e,Lf())}async function aNe(e,t,r){let o=await eK(e,t,r);return assertAccountExists(o),o}async function eK(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Kf(o)}async function dNe(e,t,r){let o=await tK(e,t,r);return assertAccountsExist(o),o}async function tK(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Kf(n))}var Nf,nK=i(()=>{p();Nf=new Uint8Array([163,174,175,5,237,55,21,230]);});function CNe(){return fixEncoderSize(getBytesEncoder(),8).encode(Jf)}function iK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["trailId",getU64Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU8Encoder()],["entries",getArrayEncoder(fc())],["config",Wt()],["complianceStatus",Me()],["hashChain",getArrayEncoder(fixEncoderSize(getBytesEncoder(),32))],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),e=>({...e,discriminator:Jf}))}function jf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["trailId",getU64Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU8Decoder()],["entries",getArrayDecoder(xc())],["config",Ft()],["complianceStatus",ke()],["hashChain",getArrayDecoder(fixDecoderSize(getBytesDecoder(),32))],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function RNe(){return combineCodec(iK(),jf())}function qf(e){return decodeAccount(e,jf())}async function hNe(e,t,r){let o=await aK(e,t,r);return assertAccountExists(o),o}async function aK(e,t,r){let o=await fetchEncodedAccount(e,t,r);return qf(o)}async function INe(e,t,r){let o=await dK(e,t,r);return assertAccountsExist(o),o}async function dK(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>qf(n))}var Jf,uK=i(()=>{p();Jf=new Uint8Array([171,223,253,181,134,88,66,26]);});function ZNe(){return fixEncoderSize(getBytesEncoder(),8).encode(Qf)}function TK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dealId",getU64Encoder()],["agent",getAddressEncoder()],["customer",getAddressEncoder()],["dealType",ie()],["totalVolume",getU32Encoder()],["totalValue",getU64Encoder()],["discountPercentage",getF64Encoder()],["volumeTiers",getArrayEncoder(ot())],["slaTerms",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["contractDuration",getI64Encoder()],["startDate",getI64Encoder()],["endDate",getI64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["executedVolume",getU32Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Qf}))}function Zf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dealId",getU64Decoder()],["agent",getAddressDecoder()],["customer",getAddressDecoder()],["dealType",ae()],["totalVolume",getU32Decoder()],["totalValue",getU64Decoder()],["discountPercentage",getF64Decoder()],["volumeTiers",getArrayDecoder(ct())],["slaTerms",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["contractDuration",getI64Decoder()],["startDate",getI64Decoder()],["endDate",getI64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["executedVolume",getU32Decoder()],["bump",getU8Decoder()]])}function YNe(){return combineCodec(TK(),Zf())}function Yf(e){return decodeAccount(e,Zf())}async function eLe(e,t,r){let o=await fK(e,t,r);return assertAccountExists(o),o}async function fK(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Yf(o)}async function tLe(e,t,r){let o=await xK(e,t,r);return assertAccountsExist(o),o}async function xK(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Yf(n))}var Qf,EK=i(()=>{p();Qf=new Uint8Array([80,240,220,203,97,75,125,183]);});function xLe(){return fixEncoderSize(getBytesEncoder(),8).encode(ex)}function vK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["creator",getAddressEncoder()],["participants",getArrayEncoder(getAddressEncoder())],["channelType",G()],["isPrivate",getBooleanEncoder()],["messageCount",getU64Encoder()],["createdAt",getI64Encoder()],["lastActivity",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:ex}))}function tx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["creator",getAddressDecoder()],["participants",getArrayDecoder(getAddressDecoder())],["channelType",B()],["isPrivate",getBooleanDecoder()],["messageCount",getU64Decoder()],["createdAt",getI64Decoder()],["lastActivity",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function ELe(){return combineCodec(vK(),tx())}function nx(e){return decodeAccount(e,tx())}async function SLe(e,t,r){let o=await MK(e,t,r);return assertAccountExists(o),o}async function MK(e,t,r){let o=await fetchEncodedAccount(e,t,r);return nx(o)}async function PLe(e,t,r){let o=await kK(e,t,r);return assertAccountsExist(o),o}async function kK(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>nx(n))}var ex,wK=i(()=>{p();ex=new Uint8Array([49,159,99,106,220,87,219,88]);});function LLe(){return fixEncoderSize(getBytesEncoder(),8).encode(dx)}function WK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",getU64Encoder()],["session",getAddressEncoder()],["sender",getAddressEncoder()],["senderType",M()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["attachments",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["sentAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:dx}))}function ux(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",getU64Decoder()],["session",getAddressDecoder()],["sender",getAddressDecoder()],["senderType",k()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["attachments",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["sentAt",getI64Decoder()],["bump",getU8Decoder()]])}function KLe(){return combineCodec(WK(),ux())}function gx(e){return decodeAccount(e,ux())}async function VLe(e,t,r){let o=await FK(e,t,r);return assertAccountExists(o),o}async function FK(e,t,r){let o=await fetchEncodedAccount(e,t,r);return gx(o)}async function HLe(e,t,r){let o=await GK(e,t,r);return assertAccountsExist(o),o}async function GK(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>gx(n))}var dx,BK=i(()=>{p();dx=new Uint8Array([50,139,11,102,56,64,75,207]);});function dKe(){return fixEncoderSize(getBytesEncoder(),8).encode(Ax)}function YK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["initiatorType",M()],["responder",getAddressEncoder()],["responderType",M()],["sessionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Ax}))}function px(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["initiatorType",k()],["responder",getAddressDecoder()],["responderType",k()],["sessionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["bump",getU8Decoder()]])}function uKe(){return combineCodec(YK(),px())}function lx(e){return decodeAccount(e,px())}async function gKe(e,t,r){let o=await e7(e,t,r);return assertAccountExists(o),o}async function e7(e,t,r){let o=await fetchEncodedAccount(e,t,r);return lx(o)}async function AKe(e,t,r){let o=await t7(e,t,r);return assertAccountsExist(o),o}async function t7(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>lx(n))}var Ax,n7=i(()=>{p();Ax=new Uint8Array([38,251,125,203,123,218,201,125]);});function RKe(){return fixEncoderSize(getBytesEncoder(),8).encode(xx)}function r7(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reportId",getU64Encoder()],["reportType",Ie()],["generatedAt",getI64Encoder()],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["reportData",td()],["signature",fixEncoderSize(getBytesEncoder(),64)],["status",dd()],["submissionDetails",getOptionEncoder(su())],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),e=>({...e,discriminator:xx}))}function Ex(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reportId",getU64Decoder()],["reportType",ve()],["generatedAt",getI64Decoder()],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["reportData",nd()],["signature",fixDecoderSize(getBytesDecoder(),64)],["status",ud()],["submissionDetails",getOptionDecoder(iu())],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function hKe(){return combineCodec(r7(),Ex())}function Sx(e){return decodeAccount(e,Ex())}async function IKe(e,t,r){let o=await o7(e,t,r);return assertAccountExists(o),o}async function o7(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Sx(o)}async function vKe(e,t,r){let o=await c7(e,t,r);return assertAccountsExist(o),o}async function c7(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Sx(n))}var xx,s7=i(()=>{p();xx=new Uint8Array([75,146,78,26,130,240,228,35]);});function $Ke(){return fixEncoderSize(getBytesEncoder(),8).encode(bx)}function T7(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["transaction",getAddressEncoder()],["complainant",getAddressEncoder()],["respondent",getAddressEncoder()],["moderator",getOptionEncoder(getAddressEncoder())],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["status",Cs()],["evidence",getArrayEncoder(Ps())],["resolution",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["aiScore",getF32Encoder()],["humanReview",getBooleanEncoder()],["createdAt",getI64Encoder()],["resolvedAt",getOptionEncoder(getI64Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:bx}))}function Cx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["transaction",getAddressDecoder()],["complainant",getAddressDecoder()],["respondent",getAddressDecoder()],["moderator",getOptionDecoder(getAddressDecoder())],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["status",Rs()],["evidence",getArrayDecoder(Ds())],["resolution",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["aiScore",getF32Decoder()],["humanReview",getBooleanDecoder()],["createdAt",getI64Decoder()],["resolvedAt",getOptionDecoder(getI64Decoder())],["bump",getU8Decoder()]])}function XKe(){return combineCodec(T7(),Cx())}function Rx(e){return decodeAccount(e,Cx())}async function QKe(e,t,r){let o=await f7(e,t,r);return assertAccountExists(o),o}async function f7(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Rx(o)}async function ZKe(e,t,r){let o=await x7(e,t,r);return assertAccountsExist(o),o}async function x7(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Rx(n))}var bx,E7=i(()=>{p();bx=new Uint8Array([164,200,54,239,94,76,51,130]);});function f7e(){return fixEncoderSize(getBytesEncoder(),8).encode(hx)}function C7(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["engineId",getU64Encoder()],["agent",getAddressEncoder()],["algorithm",Be()],["config",de()],["currentPrice",getU64Encoder()],["lastUpdated",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:hx}))}function Ix(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["engineId",getU64Decoder()],["agent",getAddressDecoder()],["algorithm",Ne()],["config",ue()],["currentPrice",getU64Decoder()],["lastUpdated",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function x7e(){return combineCodec(C7(),Ix())}function vx(e){return decodeAccount(e,Ix())}async function E7e(e,t,r){let o=await R7(e,t,r);return assertAccountExists(o),o}async function R7(e,t,r){let o=await fetchEncodedAccount(e,t,r);return vx(o)}async function S7e(e,t,r){let o=await h7(e,t,r);return assertAccountsExist(o),o}async function h7(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>vx(n))}var hx,I7=i(()=>{p();hx=new Uint8Array([213,106,173,92,14,72,162,175]);});function G7e(){return fixEncoderSize(getBytesEncoder(),8).encode(Fx)}function U7(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["client",getAddressEncoder()],["agent",getAddressEncoder()],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["status",Bs()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["disputeReason",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resolutionNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["paymentToken",getAddressEncoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["isConfidential",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Fx}))}function Gx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["client",getAddressDecoder()],["agent",getAddressDecoder()],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["status",Ns()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["disputeReason",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resolutionNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["paymentToken",getAddressDecoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["isConfidential",getBooleanDecoder()],["bump",getU8Decoder()]])}function B7e(){return combineCodec(U7(),Gx())}function Bx(e){return decodeAccount(e,Gx())}async function N7e(e,t,r){let o=await _7(e,t,r);return assertAccountExists(o),o}async function _7(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Bx(o)}async function L7e(e,t,r){let o=await O7(e,t,r);return assertAccountsExist(o),o}async function O7(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Bx(n))}var Fx,z7=i(()=>{p();Fx=new Uint8Array([31,213,123,187,186,22,218,155]);});function uVe(){return fixEncoderSize(getBytesEncoder(),8).encode(Nx)}function H7(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["extension",getAddressEncoder()],["developer",getAddressEncoder()],["extensionType",Ve()],["status",js()],["metadata",$t()],["codeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["installCount",getU32Encoder()],["rating",getF64Encoder()],["revenueShare",getF64Encoder()],["totalEarnings",getU64Encoder()],["createdAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Nx}))}function Lx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["extension",getAddressDecoder()],["developer",getAddressDecoder()],["extensionType",He()],["status",qs()],["metadata",Xt()],["codeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["installCount",getU32Decoder()],["rating",getF64Decoder()],["revenueShare",getF64Decoder()],["totalEarnings",getU64Decoder()],["createdAt",getI64Decoder()],["bump",getU8Decoder()]])}function gVe(){return combineCodec(H7(),Lx())}function Kx(e){return decodeAccount(e,Lx())}async function AVe(e,t,r){let o=await J7(e,t,r);return assertAccountExists(o),o}async function J7(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Kx(o)}async function pVe(e,t,r){let o=await j7(e,t,r);return assertAccountsExist(o),o}async function j7(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Kx(n))}var Nx,q7=i(()=>{p();Nx=new Uint8Array([141,183,126,42,23,237,11,5]);});function vVe(){return fixEncoderSize(getBytesEncoder(),8).encode(Jx)}function rV(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["proposer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposalType",_e()],["createdAt",getI64Encoder()],["votingStartsAt",getI64Encoder()],["votingEndsAt",getI64Encoder()],["executionTimestamp",getOptionEncoder(getI64Encoder())],["status",an()],["votingResults",Iu()],["executionParams",jt()],["quorumRequirements",Xa()],["metadata",La()],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),e=>({...e,discriminator:Jx}))}function jx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["proposer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposalType",Oe()],["createdAt",getI64Decoder()],["votingStartsAt",getI64Decoder()],["votingEndsAt",getI64Decoder()],["executionTimestamp",getOptionDecoder(getI64Decoder())],["status",dn()],["votingResults",vu()],["executionParams",qt()],["quorumRequirements",Qa()],["metadata",Ka()],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function MVe(){return combineCodec(rV(),jx())}function qx(e){return decodeAccount(e,jx())}async function kVe(e,t,r){let o=await oV(e,t,r);return assertAccountExists(o),o}async function oV(e,t,r){let o=await fetchEncodedAccount(e,t,r);return qx(o)}async function wVe(e,t,r){let o=await cV(e,t,r);return assertAccountsExist(o),o}async function cV(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>qx(n))}var Jx,sV=i(()=>{p();Jx=new Uint8Array([53,107,240,190,43,73,65,143]);});function ZVe(){return fixEncoderSize(getBytesEncoder(),8).encode($x)}function gV(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["config",Qt()],["totalRewardsDistributed",getU64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:$x}))}function Xx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["config",Zt()],["totalRewardsDistributed",getU64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function YVe(){return combineCodec(gV(),Xx())}function Qx(e){return decodeAccount(e,Xx())}async function eHe(e,t,r){let o=await AV(e,t,r);return assertAccountExists(o),o}async function AV(e,t,r){let o=await fetchEncodedAccount(e,t,r);return Qx(o)}async function tHe(e,t,r){let o=await pV(e,t,r);return assertAccountsExist(o),o}async function pV(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>Qx(n))}function nHe(){return 98}var $x,lV=i(()=>{p();$x=new Uint8Array([148,35,75,198,179,216,77,84]);});function EHe(){return fixEncoderSize(getBytesEncoder(),8).encode(eE)}function CV(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["jobPosting",getAddressEncoder()],["agent",getAddressEncoder()],["agentOwner",getAddressEncoder()],["coverLetter",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposedRate",getU64Encoder()],["estimatedDelivery",getI64Encoder()],["portfolioItems",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["status",nc()],["appliedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:eE}))}function tE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["jobPosting",getAddressDecoder()],["agent",getAddressDecoder()],["agentOwner",getAddressDecoder()],["coverLetter",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposedRate",getU64Decoder()],["estimatedDelivery",getI64Decoder()],["portfolioItems",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["status",rc()],["appliedAt",getI64Decoder()],["bump",getU8Decoder()]])}function SHe(){return combineCodec(CV(),tE())}function nE(e){return decodeAccount(e,tE())}async function PHe(e,t,r){let o=await RV(e,t,r);return assertAccountExists(o),o}async function RV(e,t,r){let o=await fetchEncodedAccount(e,t,r);return nE(o)}async function DHe(e,t,r){let o=await hV(e,t,r);return assertAccountsExist(o),o}async function hV(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>nE(n))}var eE,IV=i(()=>{p();eE=new Uint8Array([114,250,212,242,162,108,58,20]);});function GHe(){return fixEncoderSize(getBytesEncoder(),8).encode(cE)}function kV(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["jobPosting",getAddressEncoder()],["application",getAddressEncoder()],["employer",getAddressEncoder()],["agent",getAddressEncoder()],["agreedRate",getU64Encoder()],["deadline",getI64Encoder()],["paymentToken",getAddressEncoder()],["status",us()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:cE}))}function sE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["jobPosting",getAddressDecoder()],["application",getAddressDecoder()],["employer",getAddressDecoder()],["agent",getAddressDecoder()],["agreedRate",getU64Decoder()],["deadline",getI64Decoder()],["paymentToken",getAddressDecoder()],["status",gs()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function BHe(){return combineCodec(kV(),sE())}function iE(e){return decodeAccount(e,sE())}async function NHe(e,t,r){let o=await wV(e,t,r);return assertAccountExists(o),o}async function wV(e,t,r){let o=await fetchEncodedAccount(e,t,r);return iE(o)}async function LHe(e,t,r){let o=await UV(e,t,r);return assertAccountsExist(o),o}async function UV(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>iE(n))}function KHe(){return 202}var cE,_V=i(()=>{p();cE=new Uint8Array([147,204,137,108,97,90,113,28]);});function cJe(){return fixEncoderSize(getBytesEncoder(),8).encode(AE)}function NV(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["employer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budget",getU64Encoder()],["deadline",getI64Encoder()],["skillsNeeded",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budgetMin",getU64Encoder()],["budgetMax",getU64Encoder()],["paymentToken",getAddressEncoder()],["jobType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["experienceLevel",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["applicationsCount",getU32Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:AE}))}function pE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["employer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budget",getU64Decoder()],["deadline",getI64Decoder()],["skillsNeeded",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budgetMin",getU64Decoder()],["budgetMax",getU64Decoder()],["paymentToken",getAddressDecoder()],["jobType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["experienceLevel",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["applicationsCount",getU32Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function sJe(){return combineCodec(NV(),pE())}function lE(e){return decodeAccount(e,pE())}async function iJe(e,t,r){let o=await LV(e,t,r);return assertAccountExists(o),o}async function LV(e,t,r){let o=await fetchEncodedAccount(e,t,r);return lE(o)}async function aJe(e,t,r){let o=await KV(e,t,r);return assertAccountsExist(o),o}async function KV(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>lE(n))}var AE,VV=i(()=>{AE=new Uint8Array([204,119,64,204,100,12,26,127]);});function RJe(){return fixEncoderSize(getBytesEncoder(),8).encode(mE)}function YV(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["totalVolume",getU64Encoder()],["totalTransactions",getU64Encoder()],["averagePrice",getU64Encoder()],["activeAgents",getU32Encoder()],["priceVolatility",getU32Encoder()],["demandTrend",getI32Encoder()],["supplyTrend",getI32Encoder()],["marketCap",getU64Encoder()],["topAgents",getArrayEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:mE}))}function yE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["totalVolume",getU64Decoder()],["totalTransactions",getU64Decoder()],["averagePrice",getU64Decoder()],["activeAgents",getU32Decoder()],["priceVolatility",getU32Decoder()],["demandTrend",getI32Decoder()],["supplyTrend",getI32Decoder()],["marketCap",getU64Decoder()],["topAgents",getArrayDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function hJe(){return combineCodec(YV(),yE())}function TE(e){return decodeAccount(e,yE())}async function IJe(e,t,r){let o=await eH(e,t,r);return assertAccountExists(o),o}async function eH(e,t,r){let o=await fetchEncodedAccount(e,t,r);return TE(o)}async function vJe(e,t,r){let o=await tH(e,t,r);return assertAccountsExist(o),o}async function tH(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>TE(n))}var mE,nH=i(()=>{mE=new Uint8Array([198,187,239,13,141,42,92,67]);});function YJe(){return fixEncoderSize(getBytesEncoder(),8).encode(fE)}function iH(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["channel",getAddressEncoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",N()],["timestamp",getI64Encoder()],["isEncrypted",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:fE}))}function xE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["channel",getAddressDecoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",L()],["timestamp",getI64Decoder()],["isEncrypted",getBooleanDecoder()],["bump",getU8Decoder()]])}function eje(){return combineCodec(iH(),xE())}function EE(e){return decodeAccount(e,xE())}async function tje(e,t,r){let o=await aH(e,t,r);return assertAccountExists(o),o}async function aH(e,t,r){let o=await fetchEncodedAccount(e,t,r);return EE(o)}async function nje(e,t,r){let o=await dH(e,t,r);return assertAccountsExist(o),o}async function dH(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>EE(n))}var fE,uH=i(()=>{p();fE=new Uint8Array([110,151,23,110,198,6,125,181]);});function lje(){return fixEncoderSize(getBytesEncoder(),8).encode(DE)}function SH(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["multisigId",getU64Encoder()],["multisigType",Je()],["threshold",getU8Encoder()],["signers",getArrayEncoder(getAddressEncoder())],["owner",getAddressEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["nonce",getU64Encoder()],["pendingTransactions",getArrayEncoder(ta())],["config",pe()],["emergencyConfig",_s()],["typeConfig",hi()],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),e=>({...e,discriminator:DE}))}function bE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["multisigId",getU64Decoder()],["multisigType",je()],["threshold",getU8Decoder()],["signers",getArrayDecoder(getAddressDecoder())],["owner",getAddressDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["nonce",getU64Decoder()],["pendingTransactions",getArrayDecoder(na())],["config",le()],["emergencyConfig",Os()],["typeConfig",Ii()],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function mje(){return combineCodec(SH(),bE())}function CE(e){return decodeAccount(e,bE())}async function yje(e,t,r){let o=await PH(e,t,r);return assertAccountExists(o),o}async function PH(e,t,r){let o=await fetchEncodedAccount(e,t,r);return CE(o)}async function Tje(e,t,r){let o=await DH(e,t,r);return assertAccountsExist(o),o}async function DH(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>CE(n))}var DE,bH=i(()=>{p();DE=new Uint8Array([224,116,121,186,68,161,79,236]);});function Wje(){return fixEncoderSize(getBytesEncoder(),8).encode(IE)}function kH(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initiator",getAddressEncoder()],["counterparty",getAddressEncoder()],["initialOffer",getU64Encoder()],["currentOffer",getU64Encoder()],["status",Mi()],["negotiationDeadline",getI64Encoder()],["terms",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["counterOffers",getArrayEncoder(getU64Encoder())],["autoAcceptThreshold",getU64Encoder()],["createdAt",getI64Encoder()],["lastActivity",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:IE}))}function vE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initiator",getAddressDecoder()],["counterparty",getAddressDecoder()],["initialOffer",getU64Decoder()],["currentOffer",getU64Decoder()],["status",ki()],["negotiationDeadline",getI64Decoder()],["terms",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["counterOffers",getArrayDecoder(getU64Decoder())],["autoAcceptThreshold",getU64Decoder()],["createdAt",getI64Decoder()],["lastActivity",getI64Decoder()],["bump",getU8Decoder()]])}function Fje(){return combineCodec(kH(),vE())}function ME(e){return decodeAccount(e,vE())}async function Gje(e,t,r){let o=await wH(e,t,r);return assertAccountExists(o),o}async function wH(e,t,r){let o=await fetchEncodedAccount(e,t,r);return ME(o)}async function Bje(e,t,r){let o=await UH(e,t,r);return assertAccountsExist(o),o}async function UH(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>ME(n))}var IE,_H=i(()=>{p();IE=new Uint8Array([236,199,221,210,158,112,204,255]);});function Aqe(){return fixEncoderSize(getBytesEncoder(),8).encode(kE)}function GH(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["participant",getAddressEncoder()],["participantType",M()],["servicesOffered",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["reputationScore",getU8Encoder()],["lastUpdated",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:kE}))}function wE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["participant",getAddressDecoder()],["participantType",k()],["servicesOffered",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["reputationScore",getU8Decoder()],["lastUpdated",getI64Decoder()],["bump",getU8Decoder()]])}function pqe(){return combineCodec(GH(),wE())}function UE(e){return decodeAccount(e,wE())}async function lqe(e,t,r){let o=await BH(e,t,r);return assertAccountExists(o),o}async function BH(e,t,r){let o=await fetchEncodedAccount(e,t,r);return UE(o)}async function mqe(e,t,r){let o=await NH(e,t,r);return assertAccountsExist(o),o}async function NH(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>UE(n))}var kE,LH=i(()=>{p();kE=new Uint8Array([212,51,98,138,30,220,245,51]);});function Oqe(){return fixEncoderSize(getBytesEncoder(),8).encode(_E)}function jH(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["workOrder",getAddressEncoder()],["payer",getAddressEncoder()],["recipient",getAddressEncoder()],["amount",getU64Encoder()],["tokenMint",getAddressEncoder()],["isConfidential",getBooleanEncoder()],["paidAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["transferFeeApplied",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:_E}))}function OE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["workOrder",getAddressDecoder()],["payer",getAddressDecoder()],["recipient",getAddressDecoder()],["amount",getU64Decoder()],["tokenMint",getAddressDecoder()],["isConfidential",getBooleanDecoder()],["paidAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["transferFeeApplied",getBooleanDecoder()],["bump",getU8Decoder()]])}function zqe(){return combineCodec(jH(),OE())}function zE(e){return decodeAccount(e,OE())}async function Wqe(e,t,r){let o=await qH(e,t,r);return assertAccountExists(o),o}async function qH(e,t,r){let o=await fetchEncodedAccount(e,t,r);return zE(o)}async function Fqe(e,t,r){let o=await $H(e,t,r);return assertAccountsExist(o),o}async function $H(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>zE(n))}var _E,XH=i(()=>{_E=new Uint8Array([227,231,51,26,244,88,4,148]);});function Zqe(){return fixEncoderSize(getBytesEncoder(),8).encode(NE)}function tJ(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU8Encoder()],["roles",getArrayEncoder(un())],["permissions",getArrayEncoder(ma())],["accessPolicies",getArrayEncoder(Do())],["securityPolicies",Zd()],["auditConfig",So()],["emergencyAccess",ws()],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),e=>({...e,discriminator:NE}))}function LE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU8Decoder()],["roles",getArrayDecoder(gn())],["permissions",getArrayDecoder(ya())],["accessPolicies",getArrayDecoder(bo())],["securityPolicies",Yd()],["auditConfig",Po()],["emergencyAccess",Us()],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function Yqe(){return combineCodec(tJ(),LE())}function KE(e){return decodeAccount(e,LE())}async function e$e(e,t,r){let o=await nJ(e,t,r);return assertAccountExists(o),o}async function nJ(e,t,r){let o=await fetchEncodedAccount(e,t,r);return KE(o)}async function t$e(e,t,r){let o=await rJ(e,t,r);return assertAccountsExist(o),o}async function rJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>KE(n))}var NE,oJ=i(()=>{p();NE=new Uint8Array([177,94,184,202,221,112,110,38]);});function S$e(){return fixEncoderSize(getBytesEncoder(),8).encode(VE)}function iJ(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["state",Ya()],["nonce",getU64Encoder()],["lastInteraction",getI64Encoder()],["authority",getAddressEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:VE}))}function HE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["state",ed()],["nonce",getU64Decoder()],["lastInteraction",getI64Decoder()],["authority",getAddressDecoder()],["bump",getU8Decoder()]])}function P$e(){return combineCodec(iJ(),HE())}function JE(e){return decodeAccount(e,HE())}async function D$e(e,t,r){let o=await aJ(e,t,r);return assertAccountExists(o),o}async function aJ(e,t,r){let o=await fetchEncodedAccount(e,t,r);return JE(o)}async function b$e(e,t,r){let o=await dJ(e,t,r);return assertAccountsExist(o),o}async function dJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>JE(n))}function C$e(){return 58}var VE,uJ=i(()=>{p();VE=new Uint8Array([207,227,141,11,194,21,193,32]);});function K$e(){return fixEncoderSize(getBytesEncoder(),8).encode(jE)}function mJ(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["recordId",getU64Encoder()],["originalAgent",getAddressEncoder()],["replicatedAgent",getAddressEncoder()],["replicator",getAddressEncoder()],["feePaid",getU64Encoder()],["replicatedAt",getI64Encoder()],["cnftMint",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:jE}))}function qE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["recordId",getU64Decoder()],["originalAgent",getAddressDecoder()],["replicatedAgent",getAddressDecoder()],["replicator",getAddressDecoder()],["feePaid",getU64Decoder()],["replicatedAt",getI64Decoder()],["cnftMint",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function V$e(){return combineCodec(mJ(),qE())}function $E(e){return decodeAccount(e,qE())}async function H$e(e,t,r){let o=await yJ(e,t,r);return assertAccountExists(o),o}async function yJ(e,t,r){let o=await fetchEncodedAccount(e,t,r);return $E(o)}async function J$e(e,t,r){let o=await TJ(e,t,r);return assertAccountsExist(o),o}async function TJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>$E(n))}var jE,fJ=i(()=>{jE=new Uint8Array([243,98,232,67,71,49,173,6]);});function lXe(){return fixEncoderSize(getBytesEncoder(),8).encode(eS)}function DJ(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sourceAgent",getAddressEncoder()],["creator",getAddressEncoder()],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["baseCapabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["replicationFee",getU64Encoder()],["maxReplications",getU32Encoder()],["currentReplications",getU32Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["cnftAssetId",getOptionEncoder(getAddressEncoder())],["merkleTree",getOptionEncoder(getAddressEncoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:eS}))}function tS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sourceAgent",getAddressDecoder()],["creator",getAddressDecoder()],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["baseCapabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["replicationFee",getU64Decoder()],["maxReplications",getU32Decoder()],["currentReplications",getU32Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["cnftAssetId",getOptionDecoder(getAddressDecoder())],["merkleTree",getOptionDecoder(getAddressDecoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["bump",getU8Decoder()]])}function mXe(){return combineCodec(DJ(),tS())}function nS(e){return decodeAccount(e,tS())}async function yXe(e,t,r){let o=await bJ(e,t,r);return assertAccountExists(o),o}async function bJ(e,t,r){let o=await fetchEncodedAccount(e,t,r);return nS(o)}async function TXe(e,t,r){let o=await CJ(e,t,r);return assertAccountsExist(o),o}async function CJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>nS(n))}var eS,RJ=i(()=>{eS=new Uint8Array([219,78,120,167,202,67,57,204]);});function WXe(){return fixEncoderSize(getBytesEncoder(),8).encode(cS)}function UJ(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["seller",getAddressEncoder()],["price",getU64Encoder()],["royaltyPercentage",getU32Encoder()],["isListed",getBooleanEncoder()],["createdAt",getI64Encoder()],["soldAt",getOptionEncoder(getI64Encoder())],["buyer",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:cS}))}function sS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["seller",getAddressDecoder()],["price",getU64Decoder()],["royaltyPercentage",getU32Decoder()],["isListed",getBooleanDecoder()],["createdAt",getI64Decoder()],["soldAt",getOptionDecoder(getI64Decoder())],["buyer",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function FXe(){return combineCodec(UJ(),sS())}function iS(e){return decodeAccount(e,sS())}async function GXe(e,t,r){let o=await _J(e,t,r);return assertAccountExists(o),o}async function _J(e,t,r){let o=await fetchEncodedAccount(e,t,r);return iS(o)}async function BXe(e,t,r){let o=await OJ(e,t,r);return assertAccountsExist(o),o}async function OJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>iS(n))}var cS,zJ=i(()=>{cS=new Uint8Array([33,30,12,55,106,90,225,166]);});function oQe(){return fixEncoderSize(getBytesEncoder(),8).encode(aS)}function KJ(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["originalCreator",getAddressEncoder()],["config",An()],["totalPaid",getU64Encoder()],["lastPayment",getI64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:aS}))}function dS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["originalCreator",getAddressDecoder()],["config",pn()],["totalPaid",getU64Decoder()],["lastPayment",getI64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["bump",getU8Decoder()]])}function cQe(){return combineCodec(KJ(),dS())}function uS(e){return decodeAccount(e,dS())}async function sQe(e,t,r){let o=await VJ(e,t,r);return assertAccountExists(o),o}async function VJ(e,t,r){let o=await fetchEncodedAccount(e,t,r);return uS(o)}async function iQe(e,t,r){let o=await HJ(e,t,r);return assertAccountsExist(o),o}async function HJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>uS(n))}function aQe(){return 118}var aS,JJ=i(()=>{p();aS=new Uint8Array([73,53,156,242,157,5,183,44]);});function wQe(){return fixEncoderSize(getBytesEncoder(),8).encode(pS)}function $J(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["price",getU64Encoder()],["tokenMint",getAddressEncoder()],["serviceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["paymentToken",getAddressEncoder()],["estimatedDelivery",getI64Encoder()],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["isActive",getBooleanEncoder()],["totalOrders",getU32Encoder()],["rating",getF64Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:pS}))}function lS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["price",getU64Decoder()],["tokenMint",getAddressDecoder()],["serviceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["paymentToken",getAddressDecoder()],["estimatedDelivery",getI64Decoder()],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["isActive",getBooleanDecoder()],["totalOrders",getU32Decoder()],["rating",getF64Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function UQe(){return combineCodec($J(),lS())}function mS(e){return decodeAccount(e,lS())}async function _Qe(e,t,r){let o=await XJ(e,t,r);return assertAccountExists(o),o}async function XJ(e,t,r){let o=await fetchEncodedAccount(e,t,r);return mS(o)}async function OQe(e,t,r){let o=await QJ(e,t,r);return assertAccountsExist(o),o}async function QJ(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>mS(n))}var pS,ZJ=i(()=>{pS=new Uint8Array([117,173,54,52,146,147,124,211]);});function YQe(){return fixEncoderSize(getBytesEncoder(),8).encode(ES)}function ij(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["customer",getAddressEncoder()],["agent",getAddressEncoder()],["listing",getAddressEncoder()],["listingId",getU64Encoder()],["quantity",getU32Encoder()],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["customInstructions",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deadline",getI64Encoder()],["paymentAmount",getU64Encoder()],["paymentToken",getAddressEncoder()],["status",Ha()],["purchasedAt",getI64Encoder()],["updatedAt",getI64Encoder()],["transferHookApplied",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:ES}))}function SS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["customer",getAddressDecoder()],["agent",getAddressDecoder()],["listing",getAddressDecoder()],["listingId",getU64Decoder()],["quantity",getU32Decoder()],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["customInstructions",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deadline",getI64Decoder()],["paymentAmount",getU64Decoder()],["paymentToken",getAddressDecoder()],["status",Ja()],["purchasedAt",getI64Decoder()],["updatedAt",getI64Decoder()],["transferHookApplied",getBooleanDecoder()],["bump",getU8Decoder()]])}function eZe(){return combineCodec(ij(),SS())}function PS(e){return decodeAccount(e,SS())}async function tZe(e,t,r){let o=await aj(e,t,r);return assertAccountExists(o),o}async function aj(e,t,r){let o=await fetchEncodedAccount(e,t,r);return PS(o)}async function nZe(e,t,r){let o=await dj(e,t,r);return assertAccountsExist(o),o}async function dj(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>PS(n))}var ES,uj=i(()=>{p();ES=new Uint8Array([84,229,182,61,144,151,103,149]);});function yZe(){return fixEncoderSize(getBytesEncoder(),8).encode(CS)}function Tj(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["tokenMint",getAddressEncoder()],["stakedAmount",getU64Encoder()],["stakedAt",getI64Encoder()],["lockupEndsAt",getI64Encoder()],["lockupTier",getU8Encoder()],["rewardsClaimed",getU64Encoder()],["lastClaimAt",getI64Encoder()],["pendingRewards",getU64Encoder()],["autoCompound",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:CS}))}function RS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["tokenMint",getAddressDecoder()],["stakedAmount",getU64Decoder()],["stakedAt",getI64Decoder()],["lockupEndsAt",getI64Decoder()],["lockupTier",getU8Decoder()],["rewardsClaimed",getU64Decoder()],["lastClaimAt",getI64Decoder()],["pendingRewards",getU64Decoder()],["autoCompound",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function TZe(){return combineCodec(Tj(),RS())}function hS(e){return decodeAccount(e,RS())}async function fZe(e,t,r){let o=await fj(e,t,r);return assertAccountExists(o),o}async function fj(e,t,r){let o=await fetchEncodedAccount(e,t,r);return hS(o)}async function xZe(e,t,r){let o=await xj(e,t,r);return assertAccountsExist(o),o}async function xj(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>hS(n))}function EZe(){return 139}var CS,Ej=i(()=>{CS=new Uint8Array([52,178,251,157,180,186,98,234]);});function zZe(){return fixEncoderSize(getBytesEncoder(),8).encode(MS)}function vj(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["ghostTokenMint",getAddressEncoder()],["rewardsTreasury",getAddressEncoder()],["baseApy",getU16Encoder()],["tierBonusApy",getArrayEncoder(getU16Encoder(),{size:6})],["minStakeAmount",getU64Encoder()],["maxStakeAmount",getU64Encoder()],["totalStaked",getU64Encoder()],["totalRewardsDistributed",getU64Encoder()],["isEnabled",getBooleanEncoder()],["isPaused",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:MS}))}function kS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["ghostTokenMint",getAddressDecoder()],["rewardsTreasury",getAddressDecoder()],["baseApy",getU16Decoder()],["tierBonusApy",getArrayDecoder(getU16Decoder(),{size:6})],["minStakeAmount",getU64Decoder()],["maxStakeAmount",getU64Decoder()],["totalStaked",getU64Decoder()],["totalRewardsDistributed",getU64Decoder()],["isEnabled",getBooleanDecoder()],["isPaused",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function WZe(){return combineCodec(vj(),kS())}function wS(e){return decodeAccount(e,kS())}async function FZe(e,t,r){let o=await Mj(e,t,r);return assertAccountExists(o),o}async function Mj(e,t,r){let o=await fetchEncodedAccount(e,t,r);return wS(o)}async function GZe(e,t,r){let o=await kj(e,t,r);return assertAccountsExist(o),o}async function kj(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>wS(n))}function BZe(){return 169}var MS,wj=i(()=>{MS=new Uint8Array([45,134,252,82,37,57,84,25]);});function sYe(){return fixEncoderSize(getBytesEncoder(),8).encode(US)}function Oj(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["user",getAddressEncoder()],["agentCount",getU16Encoder()],["listingCount",getU16Encoder()],["workOrderCount",getU16Encoder()],["channelCount",getU16Encoder()],["totalVolumeTraded",getU64Encoder()],["lastActivity",getI64Encoder()],["createdAt",getI64Encoder()],["isRateLimited",getBooleanEncoder()],["rateLimitExpiry",getI64Encoder()],["lastExtensionRegistration",getI64Encoder()],["lastDisputeFiling",getI64Encoder()],["lastEvidenceSubmission",getI64Encoder()],["lastBatchExecution",getI64Encoder()],["lastDashboardUpdate",getI64Encoder()],["lastBulkDealCreation",getI64Encoder()],["lastDashboardCreation",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:US}))}function _S(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["user",getAddressDecoder()],["agentCount",getU16Decoder()],["listingCount",getU16Decoder()],["workOrderCount",getU16Decoder()],["channelCount",getU16Decoder()],["totalVolumeTraded",getU64Decoder()],["lastActivity",getI64Decoder()],["createdAt",getI64Decoder()],["isRateLimited",getBooleanDecoder()],["rateLimitExpiry",getI64Decoder()],["lastExtensionRegistration",getI64Decoder()],["lastDisputeFiling",getI64Decoder()],["lastEvidenceSubmission",getI64Decoder()],["lastBatchExecution",getI64Decoder()],["lastDashboardUpdate",getI64Decoder()],["lastBulkDealCreation",getI64Decoder()],["lastDashboardCreation",getI64Decoder()],["bump",getU8Decoder()]])}function iYe(){return combineCodec(Oj(),_S())}function OS(e){return decodeAccount(e,_S())}async function aYe(e,t,r){let o=await zj(e,t,r);return assertAccountExists(o),o}async function zj(e,t,r){let o=await fetchEncodedAccount(e,t,r);return OS(o)}async function dYe(e,t,r){let o=await Wj(e,t,r);return assertAccountsExist(o),o}async function Wj(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>OS(n))}function uYe(){return 138}var US,Fj=i(()=>{US=new Uint8Array([37,84,98,14,130,63,210,138]);});function IYe(){return fixEncoderSize(getBytesEncoder(),8).encode(zS)}function $j(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["workOrder",getAddressEncoder()],["provider",getAddressEncoder()],["deliverables",getArrayEncoder(ze())],["ipfsHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["submittedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:zS}))}function WS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["workOrder",getAddressDecoder()],["provider",getAddressDecoder()],["deliverables",getArrayDecoder(We())],["ipfsHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["submittedAt",getI64Decoder()],["bump",getU8Decoder()]])}function vYe(){return combineCodec($j(),WS())}function FS(e){return decodeAccount(e,WS())}async function MYe(e,t,r){let o=await Xj(e,t,r);return assertAccountExists(o),o}async function Xj(e,t,r){let o=await fetchEncodedAccount(e,t,r);return FS(o)}async function kYe(e,t,r){let o=await Qj(e,t,r);return assertAccountsExist(o),o}async function Qj(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>FS(n))}var zS,Zj=i(()=>{p();zS=new Uint8Array([135,198,137,54,172,172,212,84]);});function QYe(){return fixEncoderSize(getBytesEncoder(),8).encode(jS)}function tq(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["client",getAddressEncoder()],["provider",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["paymentAmount",getU64Encoder()],["paymentToken",getAddressEncoder()],["status",ku()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["deadline",getI64Encoder()],["deliveredAt",getOptionEncoder(getI64Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:jS}))}function qS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["client",getAddressDecoder()],["provider",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["paymentAmount",getU64Decoder()],["paymentToken",getAddressDecoder()],["status",wu()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["deadline",getI64Decoder()],["deliveredAt",getOptionDecoder(getI64Decoder())],["bump",getU8Decoder()]])}function ZYe(){return combineCodec(tq(),qS())}function $S(e){return decodeAccount(e,qS())}async function YYe(e,t,r){let o=await nq(e,t,r);return assertAccountExists(o),o}async function nq(e,t,r){let o=await fetchEncodedAccount(e,t,r);return $S(o)}async function eet(e,t,r){let o=await rq(e,t,r);return assertAccountsExist(o),o}async function rq(e,t,r){return (await fetchEncodedAccounts(e,t,r)).map(n=>$S(n))}var jS,oq=i(()=>{p();jS=new Uint8Array([67,109,86,157,94,117,205,9]);});var cq=i(()=>{iM();DM();OM();nL();aL();yL();RL();zL();JL();nK();uK();EK();wK();BK();n7();s7();E7();I7();z7();q7();sV();lV();IV();_V();VV();nH();uH();bH();_H();LH();XH();oJ();uJ();fJ();RJ();zJ();JJ();ZJ();uj();Ej();wj();Fj();Zj();oq();});function tet(e){let t="data"in e?e.data:e;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([174,118,140,42,3,207,16,145])),0))return 0;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([35,65,251,143,132,134,104,33])),0))return 1;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,113,10,35,24,155,227,28])),0))return 2;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([47,166,112,147,155,197,86,7])),0))return 3;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([167,87,249,0,146,197,209,158])),0))return 4;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,145,156,0,197,232,130,245])),0))return 5;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([128,155,95,241,66,207,166,59])),0))return 6;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([50,162,197,10,93,40,12,147])),0))return 7;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,241,152,150,74,0,119,175])),0))return 8;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([163,174,175,5,237,55,21,230])),0))return 9;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([171,223,253,181,134,88,66,26])),0))return 10;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([80,240,220,203,97,75,125,183])),0))return 11;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([49,159,99,106,220,87,219,88])),0))return 12;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([50,139,11,102,56,64,75,207])),0))return 13;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([38,251,125,203,123,218,201,125])),0))return 14;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([75,146,78,26,130,240,228,35])),0))return 15;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([164,200,54,239,94,76,51,130])),0))return 16;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([213,106,173,92,14,72,162,175])),0))return 17;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([31,213,123,187,186,22,218,155])),0))return 18;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([141,183,126,42,23,237,11,5])),0))return 19;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([53,107,240,190,43,73,65,143])),0))return 20;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([148,35,75,198,179,216,77,84])),0))return 21;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([114,250,212,242,162,108,58,20])),0))return 22;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([147,204,137,108,97,90,113,28])),0))return 23;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([204,119,64,204,100,12,26,127])),0))return 24;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([198,187,239,13,141,42,92,67])),0))return 25;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([110,151,23,110,198,6,125,181])),0))return 26;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([224,116,121,186,68,161,79,236])),0))return 27;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([236,199,221,210,158,112,204,255])),0))return 28;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([212,51,98,138,30,220,245,51])),0))return 29;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([227,231,51,26,244,88,4,148])),0))return 30;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([177,94,184,202,221,112,110,38])),0))return 31;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([207,227,141,11,194,21,193,32])),0))return 32;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([243,98,232,67,71,49,173,6])),0))return 33;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([219,78,120,167,202,67,57,204])),0))return 34;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([33,30,12,55,106,90,225,166])),0))return 35;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([73,53,156,242,157,5,183,44])),0))return 36;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([117,173,54,52,146,147,124,211])),0))return 37;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([84,229,182,61,144,151,103,149])),0))return 38;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([52,178,251,157,180,186,98,234])),0))return 39;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([45,134,252,82,37,57,84,25])),0))return 40;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([37,84,98,14,130,63,210,138])),0))return 41;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([135,198,137,54,172,172,212,84])),0))return 42;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([67,109,86,157,94,117,205,9])),0))return 43;throw new Error("The provided account could not be identified as a ghostspeakMarketplace account.")}function net(e){let t="data"in e?e.data:e;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([206,39,235,232,29,98,124,4])),0))return 0;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([146,64,145,33,190,17,82,70])),0))return 1;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([30,229,117,69,175,246,7,143])),0))return 2;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([25,78,239,255,21,9,170,98])),0))return 3;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([212,219,242,67,179,18,238,104])),0))return 4;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([100,100,216,86,42,163,37,64])),0))return 5;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([34,42,234,113,80,201,15,95])),0))return 6;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([250,43,164,121,205,210,124,127])),0))return 7;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([87,78,249,236,50,103,49,173])),0))return 8;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([191,161,93,207,225,58,71,16])),0))return 9;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,139,87,21,195,152,29,217])),0))return 10;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([82,29,134,149,255,74,248,210])),0))return 11;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([9,96,62,59,180,205,102,11])),0))return 12;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([0,252,167,244,145,90,227,29])),0))return 13;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([202,138,100,241,89,154,3,53])),0))return 14;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([227,183,153,251,4,55,13,56])),0))return 15;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([224,241,221,158,57,55,110,180])),0))return 16;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([156,203,54,179,38,72,33,21])),0))return 17;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([20,212,15,189,69,180,69,151])),0))return 18;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([0,241,193,221,170,112,167,176])),0))return 19;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([229,141,170,69,111,94,6,72])),0))return 20;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([158,211,102,36,244,24,103,163])),0))return 21;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([229,129,8,225,242,160,132,248])),0))return 22;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([22,57,77,239,115,215,61,131])),0))return 23;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([160,237,52,23,118,243,100,75])),0))return 24;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([133,143,169,255,188,189,104,216])),0))return 25;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([37,105,253,99,87,46,223,20])),0))return 26;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([106,100,248,57,33,84,188,21])),0))return 27;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([251,20,25,4,140,172,5,167])),0))return 28;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([28,188,236,214,244,184,198,219])),0))return 29;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,215,165,116,36,108,68,80])),0))return 30;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([135,194,171,90,18,253,103,115])),0))return 31;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([115,222,207,231,169,56,125,153])),0))return 32;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([71,93,23,166,103,210,218,105])),0))return 33;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([72,76,122,193,232,239,106,81])),0))return 34;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([148,146,240,10,226,215,167,174])),0))return 35;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([58,37,131,238,116,165,200,193])),0))return 36;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([139,213,158,201,140,251,236,89])),0))return 37;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([236,178,59,67,226,82,27,209])),0))return 38;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([91,37,216,26,93,146,13,182])),0))return 39;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([245,124,219,13,173,255,155,235])),0))return 40;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([4,45,127,74,240,104,83,178])),0))return 41;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([143,17,248,200,217,85,10,175])),0))return 42;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([205,171,239,225,82,126,96,166])),0))return 43;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([12,116,204,68,87,205,40,205])),0))return 44;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([198,174,139,70,87,79,181,139])),0))return 45;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([172,97,184,220,51,131,45,160])),0))return 46;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([236,222,159,76,52,79,235,109])),0))return 47;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([186,60,116,133,108,128,111,28])),0))return 48;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([99,201,28,182,134,0,55,181])),0))return 49;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([11,43,205,79,196,188,236,222])),0))return 50;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([210,63,221,114,212,97,195,156])),0))return 51;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([220,209,175,193,57,132,241,168])),0))return 52;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([213,97,79,234,22,228,14,32])),0))return 53;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([156,109,115,85,12,60,245,99])),0))return 54;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,182,236,249,212,17,175,161])),0))return 55;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([154,47,116,20,167,57,114,41])),0))return 56;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([175,89,119,112,150,203,202,198])),0))return 57;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([137,84,234,206,17,58,54,215])),0))return 58;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([59,39,17,210,123,130,101,67])),0))return 59;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([117,167,56,158,201,160,209,109])),0))return 60;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([215,68,129,228,237,165,0,240])),0))return 61;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([78,164,6,115,206,48,168,105])),0))return 62;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([170,46,176,41,191,255,104,205])),0))return 63;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([124,39,115,89,217,26,38,29])),0))return 64;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([104,0,75,134,95,80,68,186])),0))return 65;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([3,233,3,123,241,61,231,238])),0))return 66;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([74,8,96,55,146,85,200,152])),0))return 67;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([164,219,91,38,45,31,33,47])),0))return 68;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([38,170,233,87,52,65,23,128])),0))return 69;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([209,244,155,47,62,54,119,34])),0))return 70;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([99,206,125,26,181,158,189,238])),0))return 71;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([91,2,45,239,179,132,197,213])),0))return 72;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([189,81,30,198,139,186,115,23])),0))return 73;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([197,43,201,158,119,134,66,7])),0))return 74;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([247,255,28,60,50,13,181,137])),0))return 75;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([40,9,115,148,140,7,157,160])),0))return 76;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([135,157,66,195,2,113,175,30])),0))return 77;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([15,6,94,55,65,80,123,248])),0))return 78;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([158,205,4,17,6,106,172,148])),0))return 79;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([123,7,32,171,41,109,58,250])),0))return 80;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,210,89,130,31,43,39,50])),0))return 81;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([93,74,168,125,46,153,9,255])),0))return 82;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([231,6,202,6,96,103,12,230])),0))return 83;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([84,12,203,77,36,199,15,83])),0))return 84;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,76,105,46,157,79,116,241])),0))return 85;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([157,174,222,205,233,240,244,136])),0))return 86;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([57,40,34,178,189,10,65,26])),0))return 87;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([136,126,91,162,40,131,13,127])),0))return 88;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([177,174,100,125,106,213,241,22])),0))return 89;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([168,150,145,75,38,203,43,9])),0))return 90;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([151,198,209,252,41,69,106,93])),0))return 91;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([207,232,84,144,125,143,137,30])),0))return 92;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([144,82,0,72,160,132,35,121])),0))return 93;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([58,119,215,143,203,223,32,86])),0))return 94;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([10,122,84,103,225,186,125,183])),0))return 95;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([85,2,178,9,119,139,102,164])),0))return 96;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([80,227,92,245,231,37,99,180])),0))return 97;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([87,146,181,198,252,68,243,102])),0))return 98;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([184,35,106,114,27,86,233,32])),0))return 99;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([97,2,209,24,27,236,50,174])),0))return 100;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([149,67,63,108,132,122,95,128])),0))return 101;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([22,97,198,34,14,133,83,168])),0))return 102;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([156,13,81,78,11,3,54,178])),0))return 103;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([209,212,168,98,6,160,241,123])),0))return 104;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([167,83,107,237,1,210,249,1])),0))return 105;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([206,212,108,12,105,61,100,66])),0))return 106;if(containsBytes(t,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([51,21,40,11,225,15,184,230])),0))return 107;throw new Error("The provided instruction could not be identified as a ghostspeakMarketplace instruction.")}var a,sq,iq,aq=i(()=>{a="GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9",sq=(E=>(E[E.A2AMessage=0]="A2AMessage",E[E.A2ASession=1]="A2ASession",E[E.A2AStatus=2]="A2AStatus",E[E.Agent=3]="Agent",E[E.AgentIncentives=4]="AgentIncentives",E[E.AgentTreeConfig=5]="AgentTreeConfig",E[E.AgentVerification=6]="AgentVerification",E[E.AnalyticsDashboard=7]="AnalyticsDashboard",E[E.ArbitratorRegistry=8]="ArbitratorRegistry",E[E.AuctionMarketplace=9]="AuctionMarketplace",E[E.AuditTrail=10]="AuditTrail",E[E.BulkDeal=11]="BulkDeal",E[E.Channel=12]="Channel",E[E.CommunicationMessage=13]="CommunicationMessage",E[E.CommunicationSession=14]="CommunicationSession",E[E.ComplianceReport=15]="ComplianceReport",E[E.DisputeCase=16]="DisputeCase",E[E.DynamicPricingEngine=17]="DynamicPricingEngine",E[E.Escrow=18]="Escrow",E[E.Extension=19]="Extension",E[E.GovernanceProposal=20]="GovernanceProposal",E[E.IncentiveProgram=21]="IncentiveProgram",E[E.JobApplication=22]="JobApplication",E[E.JobContract=23]="JobContract",E[E.JobPosting=24]="JobPosting",E[E.MarketAnalytics=25]="MarketAnalytics",E[E.Message=26]="Message",E[E.Multisig=27]="Multisig",E[E.NegotiationChatbot=28]="NegotiationChatbot",E[E.ParticipantStatus=29]="ParticipantStatus",E[E.Payment=30]="Payment",E[E.RbacConfig=31]="RbacConfig",E[E.ReentrancyGuard=32]="ReentrancyGuard",E[E.ReplicationRecord=33]="ReplicationRecord",E[E.ReplicationTemplate=34]="ReplicationTemplate",E[E.ResaleMarket=35]="ResaleMarket",E[E.RoyaltyStream=36]="RoyaltyStream",E[E.ServiceListing=37]="ServiceListing",E[E.ServicePurchase=38]="ServicePurchase",E[E.StakingAccount=39]="StakingAccount",E[E.StakingConfig=40]="StakingConfig",E[E.UserRegistry=41]="UserRegistry",E[E.WorkDelivery=42]="WorkDelivery",E[E.WorkOrder=43]="WorkOrder",E))(sq||{});iq=(u=>(u[u.ExportAction=0]="ExportAction",u[u.ExportAuditContext=1]="ExportAuditContext",u[u.ExportBiometricQuality=2]="ExportBiometricQuality",u[u.ExportComplianceStatus=3]="ExportComplianceStatus",u[u.ExportDynamicPricingConfig=4]="ExportDynamicPricingConfig",u[u.ExportMultisigConfig=5]="ExportMultisigConfig",u[u.ExportReportEntry=6]="ExportReportEntry",u[u.ExportResourceConstraints=7]="ExportResourceConstraints",u[u.ExportRuleCondition=8]="ExportRuleCondition",u[u.AcceptJobApplication=9]="AcceptJobApplication",u[u.ActivateAgent=10]="ActivateAgent",u[u.AddMessageReaction=11]="AddMessageReaction",u[u.AddTopAgent=12]="AddTopAgent",u[u.ApplyToJob=13]="ApplyToJob",u[u.ApproveExtension=14]="ApproveExtension",u[u.AssignArbitrator=15]="AssignArbitrator",u[u.BatchReplicateAgents=16]="BatchReplicateAgents",u[u.CancelEscrow=17]="CancelEscrow",u[u.CastVote=18]="CastVote",u[u.CastVoteEnhanced=19]="CastVoteEnhanced",u[u.ClaimStakingRewards=20]="ClaimStakingRewards",u[u.CompleteEscrow=21]="CompleteEscrow",u[u.ConfigureX402=22]="ConfigureX402",u[u.CreateA2aSession=23]="CreateA2aSession",u[u.CreateAnalyticsDashboard=24]="CreateAnalyticsDashboard",u[u.CreateBulkDeal=25]="CreateBulkDeal",u[u.CreateChannel=26]="CreateChannel",u[u.CreateCommunicationSession=27]="CreateCommunicationSession",u[u.CreateDynamicPricingEngine=28]="CreateDynamicPricingEngine",u[u.CreateEnhancedChannel=29]="CreateEnhancedChannel",u[u.CreateEscrow=30]="CreateEscrow",u[u.CreateEscrowWithSol=31]="CreateEscrowWithSol",u[u.CreateIncentiveProgram=32]="CreateIncentiveProgram",u[u.CreateJobPosting=33]="CreateJobPosting",u[u.CreateMarketAnalytics=34]="CreateMarketAnalytics",u[u.CreateMultisig=35]="CreateMultisig",u[u.CreateReplicationTemplate=36]="CreateReplicationTemplate",u[u.CreateRoyaltyStream=37]="CreateRoyaltyStream",u[u.CreateServiceAuction=38]="CreateServiceAuction",u[u.CreateServiceListing=39]="CreateServiceListing",u[u.CreateStakingAccount=40]="CreateStakingAccount",u[u.CreateToken2022Mint=41]="CreateToken2022Mint",u[u.CreateWorkOrder=42]="CreateWorkOrder",u[u.DeactivateAgent=43]="DeactivateAgent",u[u.DelegateVote=44]="DelegateVote",u[u.DisputeEscrow=45]="DisputeEscrow",u[u.DistributeIncentives=46]="DistributeIncentives",u[u.ExecuteBulkDealBatch=47]="ExecuteBulkDealBatch",u[u.ExecuteProposal=48]="ExecuteProposal",u[u.ExtendAuctionForReserve=49]="ExtendAuctionForReserve",u[u.ExtendLockup=50]="ExtendLockup",u[u.FileDispute=51]="FileDispute",u[u.FinalizeAuction=52]="FinalizeAuction",u[u.GenerateComplianceReport=53]="GenerateComplianceReport",u[u.InitReentrancyGuard=54]="InitReentrancyGuard",u[u.InitializeAuditTrail=55]="InitializeAuditTrail",u[u.InitializeConfidentialTransferMint=56]="InitializeConfidentialTransferMint",u[u.InitializeDefaultAccountState=57]="InitializeDefaultAccountState",u[u.InitializeGovernanceProposal=58]="InitializeGovernanceProposal",u[u.InitializeInterestBearingConfig=59]="InitializeInterestBearingConfig",u[u.InitializeMintCloseAuthority=60]="InitializeMintCloseAuthority",u[u.InitializeRbacConfig=61]="InitializeRbacConfig",u[u.InitializeStakingConfig=62]="InitializeStakingConfig",u[u.InitiateNegotiation=63]="InitiateNegotiation",u[u.JoinChannel=64]="JoinChannel",u[u.LeaveChannel=65]="LeaveChannel",u[u.ListAgentForResale=66]="ListAgentForResale",u[u.MakeCounterOffer=67]="MakeCounterOffer",u[u.ManageAgentStatus=68]="ManageAgentStatus",u[u.PlaceAuctionBid=69]="PlaceAuctionBid",u[u.PlaceDutchAuctionBid=70]="PlaceDutchAuctionBid",u[u.ProcessEscrowPayment=71]="ProcessEscrowPayment",u[u.ProcessPartialRefund=72]="ProcessPartialRefund",u[u.ProcessPayment=73]="ProcessPayment",u[u.PurchaseService=74]="PurchaseService",u[u.RecordX402Payment=75]="RecordX402Payment",u[u.RefundExpiredEscrow=76]="RefundExpiredEscrow",u[u.RegisterAgent=77]="RegisterAgent",u[u.RegisterAgentCompressed=78]="RegisterAgentCompressed",u[u.RegisterExtension=79]="RegisterExtension",u[u.RejectWorkDelivery=80]="RejectWorkDelivery",u[u.ReplicateAgent=81]="ReplicateAgent",u[u.ResetReentrancyGuard=82]="ResetReentrancyGuard",u[u.ResolveDispute=83]="ResolveDispute",u[u.SendA2aMessage=84]="SendA2aMessage",u[u.SendCommunicationMessage=85]="SendCommunicationMessage",u[u.SendEnhancedMessage=86]="SendEnhancedMessage",u[u.SendMessage=87]="SendMessage",u[u.StakeTokens=88]="StakeTokens",u[u.SubmitDisputeEvidence=89]="SubmitDisputeEvidence",u[u.SubmitEvidenceBatch=90]="SubmitEvidenceBatch",u[u.SubmitWorkDelivery=91]="SubmitWorkDelivery",u[u.SubmitX402Rating=92]="SubmitX402Rating",u[u.TallyVotes=93]="TallyVotes",u[u.UnstakeTokens=94]="UnstakeTokens",u[u.UpdateA2aStatus=95]="UpdateA2aStatus",u[u.UpdateAgent=96]="UpdateAgent",u[u.UpdateAgentReputation=97]="UpdateAgentReputation",u[u.UpdateAgentService=98]="UpdateAgentService",u[u.UpdateAnalyticsDashboard=99]="UpdateAnalyticsDashboard",u[u.UpdateAuctionReservePrice=100]="UpdateAuctionReservePrice",u[u.UpdateChannelSettings=101]="UpdateChannelSettings",u[u.UpdateDynamicPricing=102]="UpdateDynamicPricing",u[u.UpdateMarketAnalytics=103]="UpdateMarketAnalytics",u[u.UpdateParticipantStatus=104]="UpdateParticipantStatus",u[u.UpdateTransferFeeConfig=105]="UpdateTransferFeeConfig",u[u.VerifyAgent=106]="VerifyAgent",u[u.VerifyWorkDelivery=107]="VerifyWorkDelivery",u))(iq||{});});var f=i(()=>{aq();});function oet(e){return process.env.NODE_ENV!=="production"?lq[e]:"Error message not available in production bundles."}function cet(e,t,r){return isProgramError(e,t,a,r)}var dq,uq,gq,Aq,pq,lq,mq=i(()=>{f();dq=6e3,uq=6001,gq=6002,Aq=6003,pq=6004;process.env.NODE_ENV!=="production"&&(lq={[uq]:"Default (null) public key cannot be used as admin",[dq]:"System program cannot be used as admin",[Aq]:"Test address cannot be used on mainnet",[gq]:"Unauthorized admin - key does not match protocol admin",[pq]:"Admin validation failed - key failed security checks or is not properly configured"});});var yq=i(()=>{mq();});function R(e){if(e==null)throw new Error("Expected a value but received null or undefined.");return e}function T(e){if(!e)throw new Error("Expected a Address.");return typeof e=="object"&&"address"in e?e.address:Array.isArray(e)?e[0]:e}function d(e,t){return r=>{if(!r.value)return Object.freeze({address:e,role:AccountRole.READONLY});let o=r.isWritable?AccountRole.WRITABLE:AccountRole.READONLY;return Object.freeze({address:T(r.value),role:Tq(r.value)?upgradeRoleToSigner(o):o,...Tq(r.value)?{signer:r.value}:{}})}}function Tq(e){return !!e&&typeof e=="object"&&"address"in e&&isTransactionSigner(e)}var x=i(()=>{});function yet(){return fixEncoderSize(getBytesEncoder(),8).encode(ZS)}function mA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:ZS}))}function YS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Tet(){return combineCodec(mA(),YS())}async function eP(e,t){let r=t?.programAddress??a,n={jobContract:{value:e.jobContract??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},jobApplication:{value:e.jobApplication??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};n.jobContract.value||(n.jobContract.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,99,111,110,116,114,97,99,116])),getAddressEncoder().encode(T(n.jobPosting.value)),getAddressEncoder().encode(T(n.jobApplication.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.jobContract),s(n.jobPosting),s(n.jobApplication),s(n.employer),s(n.systemProgram)],data:mA().encode({}),programAddress:r})}function fet(e,t){let r=t?.programAddress??a,n={jobContract:{value:e.jobContract??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},jobApplication:{value:e.jobApplication??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.jobContract),s(n.jobPosting),s(n.jobApplication),s(n.employer),s(n.systemProgram)],data:mA().encode({}),programAddress:r})}function xet(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{jobContract:r(),jobPosting:r(),jobApplication:r(),employer:r(),systemProgram:r()},data:YS().decode(e.data)}}var ZS,Eq=i(()=>{f();x();ZS=new Uint8Array([191,161,93,207,225,58,71,16]);});function _et(){return fixEncoderSize(getBytesEncoder(),8).encode(nP)}function yA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:nP}))}function rP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Oet(){return combineCodec(yA(),rP())}async function zet(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agentAccount.value||(n.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.signer.value)),getUtf8Encoder().encode(R(s.agentId))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:yA().encode(s),programAddress:r})}function oP(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:yA().encode(s),programAddress:r})}function Wet(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:rP().decode(e.data)}}var nP,Dq=i(()=>{f();x();nP=new Uint8Array([252,139,87,21,195,152,29,217]);});function Qet(){return fixEncoderSize(getBytesEncoder(),8).encode(sP)}function TA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reaction",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:sP}))}function iP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reaction",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Zet(){return combineCodec(TA(),iP())}async function Yet(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},message:{value:e.message??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:false}},s={...e};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.message),c(n.reentrancyGuard),c(n.user)],data:TA().encode(s),programAddress:r})}function aP(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},message:{value:e.message??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.message),c(n.reentrancyGuard),c(n.user)],data:TA().encode(s),programAddress:r})}function ett(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{channel:r(),message:r(),reentrancyGuard:r(),user:r()},data:iP().decode(e.data)}}var sP,Cq=i(()=>{f();x();sP=new Uint8Array([82,29,134,149,255,74,248,210]);});function dtt(){return fixEncoderSize(getBytesEncoder(),8).encode(dP)}function uP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()]]),e=>({...e,discriminator:dP}))}function gP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()]])}function utt(){return combineCodec(uP(),gP())}function gtt(e,t){let r=t?.programAddress??a,n={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.marketAnalytics),c(n.authority),c(n.clock)],data:uP().encode(s),programAddress:r})}function Att(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{marketAnalytics:r(),authority:r(),clock:r()},data:gP().decode(e.data)}}var dP,Iq=i(()=>{f();x();dP=new Uint8Array([9,96,62,59,180,205,102,11]);});function btt(){return fixEncoderSize(getBytesEncoder(),8).encode(mP)}function fA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["coverLetter",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposedPrice",getU64Encoder()],["estimatedDuration",getU32Encoder()],["proposedRate",getU64Encoder()],["estimatedDelivery",getI64Encoder()],["portfolioItems",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:mP}))}function yP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["coverLetter",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposedPrice",getU64Decoder()],["estimatedDuration",getU32Decoder()],["proposedRate",getU64Decoder()],["estimatedDelivery",getI64Decoder()],["portfolioItems",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Ctt(){return combineCodec(fA(),yP())}async function TP(e,t){let r=t?.programAddress??a,n={jobApplication:{value:e.jobApplication??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},agentOwner:{value:e.agentOwner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.jobApplication.value||(n.jobApplication.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,97,112,112,108,105,99,97,116,105,111,110])),getAddressEncoder().encode(T(n.jobPosting.value)),getAddressEncoder().encode(T(n.agent.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.jobApplication),c(n.jobPosting),c(n.agent),c(n.agentOwner),c(n.systemProgram)],data:fA().encode(s),programAddress:r})}function Rtt(e,t){let r=t?.programAddress??a,n={jobApplication:{value:e.jobApplication??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},agentOwner:{value:e.agentOwner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.jobApplication),c(n.jobPosting),c(n.agent),c(n.agentOwner),c(n.systemProgram)],data:fA().encode(s),programAddress:r})}function htt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{jobApplication:r(),jobPosting:r(),agent:r(),agentOwner:r(),systemProgram:r()},data:yP().decode(e.data)}}var mP,Wq=i(()=>{f();x();mP=new Uint8Array([0,252,167,244,145,90,227,29]);});function _tt(){return fixEncoderSize(getBytesEncoder(),8).encode(fP)}function xP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:fP}))}function EP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Ott(){return combineCodec(xP(),EP())}function SP(e,t){let r=t?.programAddress??a,n={extension:{value:e.extension??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.extension),s(n.authority),s(n.clock)],data:xP().encode({}),programAddress:r})}function ztt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{extension:r(),authority:r(),clock:r()},data:EP().decode(e.data)}}var fP,Bq=i(()=>{f();x();fP=new Uint8Array([202,138,100,241,89,154,3,53]);});function Jtt(){return fixEncoderSize(getBytesEncoder(),8).encode(DP)}function xA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["arbitrator",getAddressEncoder()]]),e=>({...e,discriminator:DP}))}function bP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["arbitrator",getAddressDecoder()]])}function jtt(){return combineCodec(xA(),bP())}async function qtt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.arbitratorRegistry.value||(n.arbitratorRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,114,98,105,116,114,97,116,111,114,95,114,101,103,105,115,116,114,121]))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.arbitratorRegistry),c(n.authority),c(n.clock)],data:xA().encode(s),programAddress:r})}function $tt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.arbitratorRegistry),c(n.authority),c(n.clock)],data:xA().encode(s),programAddress:r})}function Xtt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dispute:r(),arbitratorRegistry:r(),authority:r(),clock:r()},data:bP().decode(e.data)}}var DP,Lq=i(()=>{f();x();DP=new Uint8Array([227,183,153,251,4,55,13,56]);});function int(){return fixEncoderSize(getBytesEncoder(),8).encode(CP)}function RP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["customizations",getArrayEncoder(Ee())],["royaltyPercentage",getU32Encoder()]]),e=>({...e,discriminator:CP}))}function hP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["customizations",getArrayDecoder(Se())],["royaltyPercentage",getU32Decoder()]])}function ant(){return combineCodec(RP(),hP())}function dnt(e,t){let r=t?.programAddress??a,n={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.replicationTemplate),c(n.buyer),c(n.systemProgram),c(n.tokenProgram)],data:RP().encode(s),programAddress:r})}function unt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{replicationTemplate:r(),buyer:r(),systemProgram:r(),tokenProgram:r()},data:hP().decode(e.data)}}var CP,Hq=i(()=>{f();x();p();CP=new Uint8Array([224,241,221,158,57,55,110,180]);});function bnt(){return fixEncoderSize(getBytesEncoder(),8).encode(vP)}function EA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["cancellationReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:vP}))}function MP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["cancellationReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Cnt(){return combineCodec(EA(),MP())}async function Rnt(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.escrowTokenAccount),c(n.clientRefundAccount),c(n.paymentToken),c(n.authority),c(n.tokenProgram)],data:EA().encode(s),programAddress:r})}function kP(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.escrowTokenAccount),c(n.clientRefundAccount),c(n.paymentToken),c(n.authority),c(n.tokenProgram)],data:EA().encode(s),programAddress:r})}function hnt(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),clientRefundAccount:r(),paymentToken:r(),authority:r(),tokenProgram:r()},data:MP().decode(e.data)}}var vP,jq=i(()=>{f();x();vP=new Uint8Array([156,203,54,179,38,72,33,21]);});function Lnt(){return fixEncoderSize(getBytesEncoder(),8).encode(wP)}function UP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["voteChoice",J()],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:wP}))}function _P(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["voteChoice",j()],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Knt(){return combineCodec(UP(),_P())}function Zr(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},voter:{value:e.voter??null,isWritable:true},voterTokenAccount:{value:e.voterTokenAccount??null,isWritable:false},delegateTokenAccount:{value:e.delegateTokenAccount??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.voter),c(n.voterTokenAccount),c(n.delegateTokenAccount)],data:UP().encode(s),programAddress:r})}function Vnt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let n=e.accounts[t];return t+=1,n},o=()=>{let n=r();return n.address===a?void 0:n};return {programAddress:e.programAddress,accounts:{proposal:r(),voter:r(),voterTokenAccount:r(),delegateTokenAccount:o()},data:_P().decode(e.data)}}var wP,Xq=i(()=>{f();x();p();wP=new Uint8Array([20,212,15,189,69,180,69,151]);});function irt(){return fixEncoderSize(getBytesEncoder(),8).encode(zP)}function SA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["voteChoice",J()],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:zP}))}function WP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["voteChoice",j()],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function art(){return combineCodec(SA(),WP())}async function drt(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},voter:{value:e.voter??null,isWritable:true},voterTokenAccount:{value:e.voterTokenAccount??null,isWritable:false},stakingAccount:{value:e.stakingAccount??null,isWritable:false}},s={...e};n.stakingAccount.value||(n.stakingAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(T(n.voter.value))]}));let c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.voter),c(n.voterTokenAccount),c(n.stakingAccount)],data:SA().encode(s),programAddress:r})}function urt(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},voter:{value:e.voter??null,isWritable:true},voterTokenAccount:{value:e.voterTokenAccount??null,isWritable:false},stakingAccount:{value:e.stakingAccount??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.voter),c(n.voterTokenAccount),c(n.stakingAccount)],data:SA().encode(s),programAddress:r})}function grt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{proposal:r(),voter:r(),voterTokenAccount:r(),stakingAccount:r()},data:WP().decode(e.data)}}var zP,Zq=i(()=>{f();x();p();zP=new Uint8Array([0,241,193,221,170,112,167,176]);});function xrt(){return fixEncoderSize(getBytesEncoder(),8).encode(GP)}function PA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:GP}))}function BP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Ert(){return combineCodec(PA(),BP())}async function Srt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:false},ghostMint:{value:e.ghostMint??null,isWritable:false},userTokenAccount:{value:e.userTokenAccount??null,isWritable:true},rewardsTreasury:{value:e.rewardsTreasury??null,isWritable:true},treasuryAuthority:{value:e.treasuryAuthority??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};n.stakingAccount.value||(n.stakingAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(T(n.owner.value))]})),n.stakingConfig.value||(n.stakingConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),n.treasuryAuthority.value||(n.treasuryAuthority.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,119,97,114,100,115,95,116,114,101,97,115,117,114,121,95,97,117,116,104,111,114,105,116,121]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let s=d(r);return Object.freeze({accounts:[s(n.stakingAccount),s(n.stakingConfig),s(n.ghostMint),s(n.userTokenAccount),s(n.rewardsTreasury),s(n.treasuryAuthority),s(n.owner),s(n.tokenProgram)],data:PA().encode({}),programAddress:r})}function Prt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:false},ghostMint:{value:e.ghostMint??null,isWritable:false},userTokenAccount:{value:e.userTokenAccount??null,isWritable:true},rewardsTreasury:{value:e.rewardsTreasury??null,isWritable:true},treasuryAuthority:{value:e.treasuryAuthority??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let s=d(r);return Object.freeze({accounts:[s(n.stakingAccount),s(n.stakingConfig),s(n.ghostMint),s(n.userTokenAccount),s(n.rewardsTreasury),s(n.treasuryAuthority),s(n.owner),s(n.tokenProgram)],data:PA().encode({}),programAddress:r})}function Drt(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stakingAccount:r(),stakingConfig:r(),ghostMint:r(),userTokenAccount:r(),rewardsTreasury:r(),treasuryAuthority:r(),owner:r(),tokenProgram:r()},data:BP().decode(e.data)}}var GP,e$=i(()=>{f();x();GP=new Uint8Array([229,141,170,69,111,94,6,72]);});function Grt(){return fixEncoderSize(getBytesEncoder(),8).encode(LP)}function DA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["resolutionNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:LP}))}function KP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["resolutionNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Brt(){return combineCodec(DA(),KP())}async function Nrt(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},agent:{value:e.agent??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},agentTokenAccount:{value:e.agentTokenAccount??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.agent),c(n.escrowTokenAccount),c(n.agentTokenAccount),c(n.authority),c(n.tokenProgram)],data:DA().encode(s),programAddress:r})}function VP(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},agent:{value:e.agent??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},agentTokenAccount:{value:e.agentTokenAccount??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.agent),c(n.escrowTokenAccount),c(n.agentTokenAccount),c(n.authority),c(n.tokenProgram)],data:DA().encode(s),programAddress:r})}function Lrt(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),agent:r(),escrowTokenAccount:r(),agentTokenAccount:r(),authority:r(),tokenProgram:r()},data:KP().decode(e.data)}}var LP,n$=i(()=>{f();x();LP=new Uint8Array([158,211,102,36,244,24,103,163]);});function not(){return fixEncoderSize(getBytesEncoder(),8).encode(qP)}function bA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["enabled",getBooleanEncoder()],["paymentAddress",getAddressEncoder()],["acceptedTokens",getArrayEncoder(getAddressEncoder())],["pricePerCall",getU64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:qP}))}function $P(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["enabled",getBooleanDecoder()],["paymentAddress",getAddressDecoder()],["acceptedTokens",getArrayDecoder(getAddressDecoder())],["pricePerCall",getU64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function rot(){return combineCodec(bA(),$P())}async function oot(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.owner.value)),getUtf8Encoder().encode(R(s.agentId))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.owner),c(n.clock)],data:bA().encode(s),programAddress:r})}function cot(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.owner),c(n.clock)],data:bA().encode(s),programAddress:r})}function sot(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agent:r(),owner:r(),clock:r()},data:$P().decode(e.data)}}var qP,u$=i(()=>{f();x();qP=new Uint8Array([229,129,8,225,242,160,132,248]);});function fot(){return fixEncoderSize(getBytesEncoder(),8).encode(ZP)}function CA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["sessionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expiresAt",getI64Encoder()]]),e=>({...e,discriminator:ZP}))}function YP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["sessionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expiresAt",getI64Decoder()]])}function xot(){return combineCodec(CA(),YP())}async function Eot(e,t){let r=t?.programAddress??a,n={session:{value:e.session??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.session.value||(n.session.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,101,115,115,105,111,110])),getAddressEncoder().encode(T(n.creator.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.session),c(n.creator),c(n.systemProgram)],data:CA().encode(s),programAddress:r})}function Sot(e,t){let r=t?.programAddress??a,n={session:{value:e.session??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.session),c(n.creator),c(n.systemProgram)],data:CA().encode(s),programAddress:r})}function Pot(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{session:r(),creator:r(),systemProgram:r()},data:YP().decode(e.data)}}var ZP,x$=i(()=>{f();x();ZP=new Uint8Array([22,57,77,239,115,215,61,131]);});function zot(){return fixEncoderSize(getBytesEncoder(),8).encode(eD)}function hA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dashboardId",getU64Encoder()],["metrics",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:eD}))}function tD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dashboardId",getU64Decoder()],["metrics",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Wot(){return combineCodec(hA(),tD())}async function Fot(e,t){let r=t?.programAddress??a,n={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.dashboard.value||(n.dashboard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,110,97,108,121,116,105,99,115])),getAddressEncoder().encode(T(n.owner.value)),getU64Encoder().encode(R(s.dashboardId))]})),n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.owner.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dashboard),c(n.userRegistry),c(n.owner),c(n.systemProgram),c(n.clock)],data:hA().encode(s),programAddress:r})}function Got(e,t){let r=t?.programAddress??a,n={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dashboard),c(n.userRegistry),c(n.owner),c(n.systemProgram),c(n.clock)],data:hA().encode(s),programAddress:r})}function Bot(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dashboard:r(),userRegistry:r(),owner:r(),systemProgram:r(),clock:r()},data:tD().decode(e.data)}}var eD,b$=i(()=>{f();x();eD=new Uint8Array([160,237,52,23,118,243,100,75]);});function rct(){return fixEncoderSize(getBytesEncoder(),8).encode(rD)}function IA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dealId",getU64Encoder()],["dealType",ie()],["totalVolume",getU32Encoder()],["totalValue",getU64Encoder()],["discountPercentage",getF64Encoder()],["volumeTiers",getArrayEncoder(ot())],["slaTerms",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["contractDuration",getI64Encoder()],["endDate",getI64Encoder()]]),e=>({...e,discriminator:rD}))}function oD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dealId",getU64Decoder()],["dealType",ae()],["totalVolume",getU32Decoder()],["totalValue",getU64Decoder()],["discountPercentage",getF64Decoder()],["volumeTiers",getArrayDecoder(ct())],["slaTerms",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["contractDuration",getI64Decoder()],["endDate",getI64Decoder()]])}function oct(){return combineCodec(IA(),oD())}async function cct(e,t){let r=t?.programAddress??a,n={deal:{value:e.deal??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},customer:{value:e.customer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.customer.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.deal),c(n.agent),c(n.userRegistry),c(n.customer),c(n.systemProgram),c(n.clock)],data:IA().encode(s),programAddress:r})}function sct(e,t){let r=t?.programAddress??a,n={deal:{value:e.deal??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},customer:{value:e.customer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.deal),c(n.agent),c(n.userRegistry),c(n.customer),c(n.systemProgram),c(n.clock)],data:IA().encode(s),programAddress:r})}function ict(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{deal:r(),agent:r(),userRegistry:r(),customer:r(),systemProgram:r(),clock:r()},data:oD().decode(e.data)}}var rD,w$=i(()=>{f();x();p();rD=new Uint8Array([133,143,169,255,188,189,104,216]);});function Pct(){return fixEncoderSize(getBytesEncoder(),8).encode(cD)}function sD(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["channelId",getU64Encoder()],["participants",getArrayEncoder(getAddressEncoder())],["channelType",G()],["isPrivate",getBooleanEncoder()]]),e=>({...e,discriminator:cD}))}function iD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["channelId",getU64Decoder()],["participants",getArrayDecoder(getAddressDecoder())],["channelType",B()],["isPrivate",getBooleanDecoder()]])}function Dct(){return combineCodec(sD(),iD())}function bct(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.creator),c(n.systemProgram)],data:sD().encode(s),programAddress:r})}function Cct(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{channel:r(),creator:r(),systemProgram:r()},data:iD().decode(e.data)}}var cD,O$=i(()=>{f();x();p();cD=new Uint8Array([37,105,253,99,87,46,223,20]);});function Wct(){return fixEncoderSize(getBytesEncoder(),8).encode(uD)}function vA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["initiatorType",M()],["responder",getAddressEncoder()],["responderType",M()],["sessionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expiresAt",getI64Encoder()]]),e=>({...e,discriminator:uD}))}function gD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["initiatorType",k()],["responder",getAddressDecoder()],["responderType",k()],["sessionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expiresAt",getI64Decoder()]])}function Fct(){return combineCodec(vA(),gD())}async function Gct(e,t){let r=t?.programAddress??a,n={session:{value:e.session??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.session.value||(n.session.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([99,111,109,109,95,115,101,115,115,105,111,110])),getAddressEncoder().encode(T(n.creator.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.session),c(n.creator),c(n.systemProgram)],data:vA().encode(s),programAddress:r})}function Bct(e,t){let r=t?.programAddress??a,n={session:{value:e.session??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.session),c(n.creator),c(n.systemProgram)],data:vA().encode(s),programAddress:r})}function Nct(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{session:r(),creator:r(),systemProgram:r()},data:gD().decode(e.data)}}var uD,V$=i(()=>{f();x();p();uD=new Uint8Array([106,100,248,57,33,84,188,21]);});function Xct(){return fixEncoderSize(getBytesEncoder(),8).encode(pD)}function MA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["config",de()]]),e=>({...e,discriminator:pD}))}function lD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["config",ue()]])}function Qct(){return combineCodec(MA(),lD())}async function Zct(e,t){let r=t?.programAddress??a,n={engine:{value:e.engine??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.engine.value||(n.engine.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([100,121,110,97,109,105,99,95,112,114,105,99,105,110,103])),getAddressEncoder().encode(T(n.agent.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.engine),c(n.agent),c(n.owner),c(n.systemProgram)],data:MA().encode(s),programAddress:r})}function Yct(e,t){let r=t?.programAddress??a,n={engine:{value:e.engine??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.engine),c(n.agent),c(n.owner),c(n.systemProgram)],data:MA().encode(s),programAddress:r})}function est(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{engine:r(),agent:r(),owner:r(),systemProgram:r()},data:lD().decode(e.data)}}var pD,J$=i(()=>{f();x();p();pD=new Uint8Array([251,20,25,4,140,172,5,167]);});function yst(){return fixEncoderSize(getBytesEncoder(),8).encode(mD)}function wA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["channelId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["participants",getArrayEncoder(getAddressEncoder())],["channelType",G()],["metadata",Re()]]),e=>({...e,discriminator:mD}))}function yD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["channelId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["participants",getArrayDecoder(getAddressDecoder())],["channelType",B()],["metadata",he()]])}function Tst(){return combineCodec(wA(),yD())}async function TD(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},creatorAgent:{value:e.creatorAgent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.channel.value||(n.channel.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([99,104,97,110,110,101,108])),getUtf8Encoder().encode(R(s.channelId))]})),n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.reentrancyGuard),c(n.creator),c(n.creatorAgent),c(n.systemProgram)],data:wA().encode(s),programAddress:r})}function fst(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},creatorAgent:{value:e.creatorAgent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.reentrancyGuard),c(n.creator),c(n.creatorAgent),c(n.systemProgram)],data:wA().encode(s),programAddress:r})}function xst(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),creator:r(),creatorAgent:r(),systemProgram:r()},data:yD().decode(e.data)}}var mD,X$=i(()=>{f();x();p();mD=new Uint8Array([28,188,236,214,244,184,198,219]);});function Bst(){return fixEncoderSize(getBytesEncoder(),8).encode(fD)}function OA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["expiresAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["isConfidential",getBooleanEncoder()]]),e=>({...e,discriminator:fD}))}function xD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["expiresAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["isConfidential",getBooleanDecoder()]])}function Nst(){return combineCodec(OA(),xD())}async function ED(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},client:{value:e.client??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},clientTokenAccount:{value:e.clientTokenAccount??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.escrow.value||(n.escrow.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getUtf8Encoder().encode(R(s.taskId))]})),n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.clientTokenAccount.value||(n.clientTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(n.client.value)),getAddressEncoder().encode(T(n.tokenProgram.value)),getAddressEncoder().encode(T(n.paymentToken.value))]})),n.escrowTokenAccount.value||(n.escrowTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(n.escrow.value)),getAddressEncoder().encode(T(n.tokenProgram.value)),getAddressEncoder().encode(T(n.paymentToken.value))]})),n.associatedTokenProgram.value||(n.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.client),c(n.agent),c(n.clientTokenAccount),c(n.escrowTokenAccount),c(n.paymentToken),c(n.tokenProgram),c(n.associatedTokenProgram),c(n.systemProgram)],data:OA().encode(s),programAddress:r})}function Lst(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},client:{value:e.client??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},clientTokenAccount:{value:e.clientTokenAccount??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.associatedTokenProgram.value||(n.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.client),c(n.agent),c(n.clientTokenAccount),c(n.escrowTokenAccount),c(n.paymentToken),c(n.tokenProgram),c(n.associatedTokenProgram),c(n.systemProgram)],data:OA().encode(s),programAddress:r})}function Kst(e){if(e.accounts.length<10)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),client:r(),agent:r(),clientTokenAccount:r(),escrowTokenAccount:r(),paymentToken:r(),tokenProgram:r(),associatedTokenProgram:r(),systemProgram:r()},data:xD().decode(e.data)}}var fD,Y$=i(()=>{f();x();fD=new Uint8Array([253,215,165,116,36,108,68,80]);});function uit(){return fixEncoderSize(getBytesEncoder(),8).encode(SD)}function WA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["expiresAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["isConfidential",getBooleanEncoder()]]),e=>({...e,discriminator:SD}))}function PD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["expiresAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["isConfidential",getBooleanDecoder()]])}function git(){return combineCodec(WA(),PD())}async function DD(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},client:{value:e.client??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},clientWsolAccount:{value:e.clientWsolAccount??null,isWritable:true},escrowWsolAccount:{value:e.escrowWsolAccount??null,isWritable:true},nativeMint:{value:e.nativeMint??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.escrow.value||(n.escrow.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getUtf8Encoder().encode(R(s.taskId))]})),n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.nativeMint.value||(n.nativeMint.value="So11111111111111111111111111111111111111112"),n.clientWsolAccount.value||(n.clientWsolAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(n.client.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(n.nativeMint.value))]})),n.escrowWsolAccount.value||(n.escrowWsolAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(n.escrow.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(n.nativeMint.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.associatedTokenProgram.value||(n.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.client),c(n.agent),c(n.clientWsolAccount),c(n.escrowWsolAccount),c(n.nativeMint),c(n.tokenProgram),c(n.associatedTokenProgram),c(n.systemProgram)],data:WA().encode(s),programAddress:r})}function Ait(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},client:{value:e.client??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},clientWsolAccount:{value:e.clientWsolAccount??null,isWritable:true},escrowWsolAccount:{value:e.escrowWsolAccount??null,isWritable:true},nativeMint:{value:e.nativeMint??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.nativeMint.value||(n.nativeMint.value="So11111111111111111111111111111111111111112"),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.associatedTokenProgram.value||(n.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.client),c(n.agent),c(n.clientWsolAccount),c(n.escrowWsolAccount),c(n.nativeMint),c(n.tokenProgram),c(n.associatedTokenProgram),c(n.systemProgram)],data:WA().encode(s),programAddress:r})}function pit(e){if(e.accounts.length<10)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),client:r(),agent:r(),clientWsolAccount:r(),escrowWsolAccount:r(),nativeMint:r(),tokenProgram:r(),associatedTokenProgram:r(),systemProgram:r()},data:PD().decode(e.data)}}var SD,nX=i(()=>{f();x();SD=new Uint8Array([135,194,171,90,18,253,103,115]);});function Pit(){return fixEncoderSize(getBytesEncoder(),8).encode(CD)}function FA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["config",Qt()]]),e=>({...e,discriminator:CD}))}function RD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["config",Zt()]])}function Dit(){return combineCodec(FA(),RD())}async function bit(e,t){let r=t?.programAddress??a,n={program:{value:e.program??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.program.value||(n.program.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([105,110,99,101,110,116,105,118,101,95,112,114,111,103,114,97,109])),getAddressEncoder().encode(T(n.creator.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.program),c(n.creator),c(n.systemProgram)],data:FA().encode(s),programAddress:r})}function Cit(e,t){let r=t?.programAddress??a,n={program:{value:e.program??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.program),c(n.creator),c(n.systemProgram)],data:FA().encode(s),programAddress:r})}function Rit(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{program:r(),creator:r(),systemProgram:r()},data:RD().decode(e.data)}}var CD,oX=i(()=>{f();x();p();CD=new Uint8Array([115,222,207,231,169,56,125,153]);});function Wit(){return fixEncoderSize(getBytesEncoder(),8).encode(MD)}function GA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budget",getU64Encoder()],["deadline",getI64Encoder()],["skillsNeeded",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budgetMin",getU64Encoder()],["budgetMax",getU64Encoder()],["paymentToken",getAddressEncoder()],["jobType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["experienceLevel",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:MD}))}function kD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budget",getU64Decoder()],["deadline",getI64Decoder()],["skillsNeeded",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budgetMin",getU64Decoder()],["budgetMax",getU64Decoder()],["paymentToken",getAddressDecoder()],["jobType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["experienceLevel",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Fit(){return combineCodec(GA(),kD())}async function wD(e,t){let r=t?.programAddress??a,n={jobPosting:{value:e.jobPosting??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.jobPosting.value||(n.jobPosting.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,112,111,115,116,105,110,103])),getAddressEncoder().encode(T(n.employer.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.jobPosting),c(n.employer),c(n.systemProgram)],data:GA().encode(s),programAddress:r})}function Git(e,t){let r=t?.programAddress??a,n={jobPosting:{value:e.jobPosting??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.jobPosting),c(n.employer),c(n.systemProgram)],data:GA().encode(s),programAddress:r})}function Bit(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{jobPosting:r(),employer:r(),systemProgram:r()},data:kD().decode(e.data)}}var MD,dX=i(()=>{f();x();MD=new Uint8Array([71,93,23,166,103,210,218,105]);});function qit(){return fixEncoderSize(getBytesEncoder(),8).encode(_D)}function NA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()]]),e=>({...e,discriminator:_D}))}function OD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()]])}function $it(){return combineCodec(NA(),OD())}async function Xit(e,t){let r=t?.programAddress??a,n={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.marketAnalytics.value||(n.marketAnalytics.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([109,97,114,107,101,116,95,97,110,97,108,121,116,105,99,115])),getI64Encoder().encode(R(s.periodStart)),getI64Encoder().encode(R(s.periodEnd))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.marketAnalytics),c(n.authority),c(n.systemProgram),c(n.clock)],data:NA().encode(s),programAddress:r})}function Qit(e,t){let r=t?.programAddress??a,n={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.marketAnalytics),c(n.authority),c(n.systemProgram),c(n.clock)],data:NA().encode(s),programAddress:r})}function Zit(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{marketAnalytics:r(),authority:r(),systemProgram:r(),clock:r()},data:OD().decode(e.data)}}var _D,AX=i(()=>{f();x();_D=new Uint8Array([72,76,122,193,232,239,106,81]);});function Aat(){return fixEncoderSize(getBytesEncoder(),8).encode(WD)}function LA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["multisigId",getU64Encoder()],["threshold",getU8Encoder()],["signers",getArrayEncoder(getAddressEncoder())],["config",pe()]]),e=>({...e,discriminator:WD}))}function FD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["multisigId",getU64Decoder()],["threshold",getU8Decoder()],["signers",getArrayDecoder(getAddressDecoder())],["config",le()]])}function pat(){return combineCodec(LA(),FD())}async function lat(e,t){let r=t?.programAddress??a,n={multisig:{value:e.multisig??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.multisig.value||(n.multisig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,115,105,103])),getAddressEncoder().encode(T(n.owner.value)),getU64Encoder().encode(R(s.multisigId))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.multisig),c(n.owner),c(n.systemProgram)],data:LA().encode(s),programAddress:r})}function GD(e,t){let r=t?.programAddress??a,n={multisig:{value:e.multisig??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.multisig),c(n.owner),c(n.systemProgram)],data:LA().encode(s),programAddress:r})}function mat(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{multisig:r(),owner:r(),systemProgram:r()},data:FD().decode(e.data)}}var WD,yX=i(()=>{f();x();p();WD=new Uint8Array([148,146,240,10,226,215,167,174]);});function Iat(){return fixEncoderSize(getBytesEncoder(),8).encode(KD)}function KA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["baseCapabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["replicationFee",getU64Encoder()],["maxReplications",getU32Encoder()]]),e=>({...e,discriminator:KD}))}function VD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["baseCapabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["replicationFee",getU64Decoder()],["maxReplications",getU32Decoder()]])}function vat(){return combineCodec(KA(),VD())}async function Mat(e,t){let r=t?.programAddress??a,n={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},sourceAgent:{value:e.sourceAgent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.replicationTemplate.value||(n.replicationTemplate.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,108,105,99,97,116,105,111,110,95,116,101,109,112,108,97,116,101])),getAddressEncoder().encode(T(n.sourceAgent.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.replicationTemplate),c(n.sourceAgent),c(n.creator),c(n.clock),c(n.systemProgram)],data:KA().encode(s),programAddress:r})}function kat(e,t){let r=t?.programAddress??a,n={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},sourceAgent:{value:e.sourceAgent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.replicationTemplate),c(n.sourceAgent),c(n.creator),c(n.clock),c(n.systemProgram)],data:KA().encode(s),programAddress:r})}function wat(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{replicationTemplate:r(),sourceAgent:r(),creator:r(),clock:r(),systemProgram:r()},data:VD().decode(e.data)}}var KD,PX=i(()=>{f();x();KD=new Uint8Array([58,37,131,238,116,165,200,193]);});function Nat(){return fixEncoderSize(getBytesEncoder(),8).encode(JD)}function VA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["config",An()]]),e=>({...e,discriminator:JD}))}function jD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["config",pn()]])}function Lat(){return combineCodec(VA(),jD())}async function Kat(e,t){let r=t?.programAddress??a,n={stream:{value:e.stream??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.stream.value||(n.stream.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,111,121,97,108,116,121,95,115,116,114,101,97,109])),getAddressEncoder().encode(T(n.agent.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.stream),c(n.agent),c(n.creator),c(n.systemProgram)],data:VA().encode(s),programAddress:r})}function Vat(e,t){let r=t?.programAddress??a,n={stream:{value:e.stream??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.stream),c(n.agent),c(n.creator),c(n.systemProgram)],data:VA().encode(s),programAddress:r})}function Hat(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stream:r(),agent:r(),creator:r(),systemProgram:r()},data:jD().decode(e.data)}}var JD,bX=i(()=>{f();x();p();JD=new Uint8Array([139,213,158,201,140,251,236,89]);});function sdt(){return fixEncoderSize(getBytesEncoder(),8).encode(XD)}function jA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["auctionType",ce()],["startingPrice",getU64Encoder()],["reservePrice",getU64Encoder()],["isReserveHidden",getBooleanEncoder()],["currentBid",getU64Encoder()],["currentBidder",getOptionEncoder(getAddressEncoder())],["auctionEndTime",getI64Encoder()],["minimumBidIncrement",getU64Encoder()],["totalBids",getU32Encoder()],["dutchConfig",getOptionEncoder(Fe())]]),e=>({...e,discriminator:XD}))}function QD(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["auctionType",se()],["startingPrice",getU64Decoder()],["reservePrice",getU64Decoder()],["isReserveHidden",getBooleanDecoder()],["currentBid",getU64Decoder()],["currentBidder",getOptionDecoder(getAddressDecoder())],["auctionEndTime",getI64Decoder()],["minimumBidIncrement",getU64Decoder()],["totalBids",getU32Decoder()],["dutchConfig",getOptionDecoder(Ge())]])}function idt(){return combineCodec(jA(),QD())}async function ZD(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.auction.value||(n.auction.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,117,99,116,105,111,110])),getAddressEncoder().encode(T(n.agent.value)),getAddressEncoder().encode(T(n.creator.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.auction),c(n.agent),c(n.userRegistry),c(n.creator),c(n.systemProgram),c(n.clock)],data:jA().encode(s),programAddress:r})}function adt(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.auction),c(n.agent),c(n.userRegistry),c(n.creator),c(n.systemProgram),c(n.clock)],data:jA().encode(s),programAddress:r})}function ddt(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auction:r(),agent:r(),userRegistry:r(),creator:r(),systemProgram:r(),clock:r()},data:QD().decode(e.data)}}var XD,IX=i(()=>{f();x();p();XD=new Uint8Array([236,178,59,67,226,82,27,209]);});function Pdt(){return fixEncoderSize(getBytesEncoder(),8).encode(YD)}function XA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["price",getU64Encoder()],["tokenMint",getAddressEncoder()],["serviceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["paymentToken",getAddressEncoder()],["estimatedDelivery",getI64Encoder()],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["listingId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:YD}))}function eb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["price",getU64Decoder()],["tokenMint",getAddressDecoder()],["serviceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["paymentToken",getAddressDecoder()],["estimatedDelivery",getI64Decoder()],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["listingId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Ddt(){return combineCodec(XA(),eb())}async function tb(e,t){let r=t?.programAddress??a,n={serviceListing:{value:e.serviceListing??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.serviceListing.value||(n.serviceListing.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,101,114,118,105,99,101,95,108,105,115,116,105,110,103])),getAddressEncoder().encode(T(n.creator.value)),getUtf8Encoder().encode(R(s.listingId))]})),n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.creator.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.serviceListing),c(n.agent),c(n.userRegistry),c(n.creator),c(n.systemProgram),c(n.clock)],data:XA().encode(s),programAddress:r})}function bdt(e,t){let r=t?.programAddress??a,n={serviceListing:{value:e.serviceListing??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.serviceListing),c(n.agent),c(n.userRegistry),c(n.creator),c(n.systemProgram),c(n.clock)],data:XA().encode(s),programAddress:r})}function Cdt(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{serviceListing:r(),agent:r(),userRegistry:r(),creator:r(),systemProgram:r(),clock:r()},data:eb().decode(e.data)}}var YD,wX=i(()=>{f();x();YD=new Uint8Array([91,37,216,26,93,146,13,182]);});function Udt(){return fixEncoderSize(getBytesEncoder(),8).encode(nb)}function ZA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:nb}))}function rb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function _dt(){return combineCodec(ZA(),rb())}async function Odt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};n.stakingAccount.value||(n.stakingAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(T(n.owner.value))]})),n.stakingConfig.value||(n.stakingConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.stakingAccount),s(n.stakingConfig),s(n.owner),s(n.systemProgram)],data:ZA().encode({}),programAddress:r})}function zdt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.stakingAccount),s(n.stakingConfig),s(n.owner),s(n.systemProgram)],data:ZA().encode({}),programAddress:r})}function Wdt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stakingAccount:r(),stakingConfig:r(),owner:r(),systemProgram:r()},data:rb().decode(e.data)}}var nb,OX=i(()=>{f();x();nb=new Uint8Array([245,124,219,13,173,255,155,235]);});function Qdt(){return fixEncoderSize(getBytesEncoder(),8).encode(cb)}function np(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["decimals",getU8Encoder()],["freezeAuthority",getOptionEncoder(getAddressEncoder())],["enableTransferFee",getBooleanEncoder()],["enableConfidentialTransfers",getBooleanEncoder()],["enableInterestBearing",getBooleanEncoder()],["transferFeeBasisPoints",getOptionEncoder(getU16Encoder())],["maximumFee",getOptionEncoder(getU64Encoder())],["transferFeeAuthority",getOptionEncoder(getAddressEncoder())],["withdrawWithheldAuthority",getOptionEncoder(getAddressEncoder())],["autoApproveNewAccounts",getOptionEncoder(getBooleanEncoder())],["auditorElgamalPubkey",getOptionEncoder(fixEncoderSize(getBytesEncoder(),32))],["interestRate",getOptionEncoder(getI16Encoder())],["rateAuthority",getOptionEncoder(getAddressEncoder())],["closeAuthority",getOptionEncoder(getAddressEncoder())],["defaultAccountState",getOptionEncoder(re())]]),e=>({...e,discriminator:cb}))}function sb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["decimals",getU8Decoder()],["freezeAuthority",getOptionDecoder(getAddressDecoder())],["enableTransferFee",getBooleanDecoder()],["enableConfidentialTransfers",getBooleanDecoder()],["enableInterestBearing",getBooleanDecoder()],["transferFeeBasisPoints",getOptionDecoder(getU16Decoder())],["maximumFee",getOptionDecoder(getU64Decoder())],["transferFeeAuthority",getOptionDecoder(getAddressDecoder())],["withdrawWithheldAuthority",getOptionDecoder(getAddressDecoder())],["autoApproveNewAccounts",getOptionDecoder(getBooleanDecoder())],["auditorElgamalPubkey",getOptionDecoder(fixDecoderSize(getBytesDecoder(),32))],["interestRate",getOptionDecoder(getI16Decoder())],["rateAuthority",getOptionDecoder(getAddressDecoder())],["closeAuthority",getOptionDecoder(getAddressDecoder())],["defaultAccountState",getOptionDecoder(oe())]])}function Zdt(){return combineCodec(np(),sb())}async function ib(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},mint:{value:e.mint??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},rent:{value:e.rent??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.authority.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.rent.value||(n.rent.value="SysvarRent111111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.agent),c(n.mint),c(n.tokenProgram),c(n.systemProgram),c(n.rent)],data:np().encode(s),programAddress:r})}function Ydt(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},mint:{value:e.mint??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},rent:{value:e.rent??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.rent.value||(n.rent.value="SysvarRent111111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.agent),c(n.mint),c(n.tokenProgram),c(n.systemProgram),c(n.rent)],data:np().encode(s),programAddress:r})}function eut(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{authority:r(),agent:r(),mint:r(),tokenProgram:r(),systemProgram:r(),rent:r()},data:sb().decode(e.data)}}var cb,FX=i(()=>{f();x();p();cb=new Uint8Array([4,45,127,74,240,104,83,178]);});function gut(){return fixEncoderSize(getBytesEncoder(),8).encode(lb)}function mb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["orderId",getU64Encoder()],["provider",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["paymentAmount",getU64Encoder()],["paymentToken",getAddressEncoder()],["deadline",getI64Encoder()]]),e=>({...e,discriminator:lb}))}function yb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["orderId",getU64Decoder()],["provider",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["paymentAmount",getU64Decoder()],["paymentToken",getAddressDecoder()],["deadline",getI64Decoder()]])}function Aut(){return combineCodec(mb(),yb())}function put(e,t){let r=t?.programAddress??a,n={workOrder:{value:e.workOrder??null,isWritable:true},client:{value:e.client??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.workOrder),c(n.client),c(n.clock),c(n.systemProgram)],data:mb().encode(s),programAddress:r})}function lut(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{workOrder:r(),client:r(),clock:r(),systemProgram:r()},data:yb().decode(e.data)}}var lb,HX=i(()=>{f();x();lb=new Uint8Array([143,17,248,200,217,85,10,175]);});function Iut(){return fixEncoderSize(getBytesEncoder(),8).encode(fb)}function rp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:fb}))}function xb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function vut(){return combineCodec(rp(),xb())}async function Mut(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agentAccount.value||(n.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.signer.value)),getUtf8Encoder().encode(R(s.agentId))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:rp().encode(s),programAddress:r})}function Eb(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:rp().encode(s),programAddress:r})}function kut(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:xb().decode(e.data)}}var fb,qX=i(()=>{f();x();fb=new Uint8Array([205,171,239,225,82,126,96,166]);});function Vut(){return fixEncoderSize(getBytesEncoder(),8).encode(Pb)}function op(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["scope",we()],["expiresAt",getOptionEncoder(getI64Encoder())]]),e=>({...e,discriminator:Pb}))}function Db(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["scope",Ue()],["expiresAt",getOptionDecoder(getI64Decoder())]])}function Hut(){return combineCodec(op(),Db())}async function Jut(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},delegator:{value:e.delegator??null,isWritable:true},delegate:{value:e.delegate??null,isWritable:false},delegatorTokenAccount:{value:e.delegatorTokenAccount??null,isWritable:false}},s={...e};n.proposal.value||(n.proposal.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([103,111,118,101,114,110,97,110,99,101,95,112,114,111,112,111,115,97,108])),getU64Encoder().encode(R(s.proposalId))]}));let c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.delegator),c(n.delegate),c(n.delegatorTokenAccount)],data:op().encode(s),programAddress:r})}function bb(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},delegator:{value:e.delegator??null,isWritable:true},delegate:{value:e.delegate??null,isWritable:false},delegatorTokenAccount:{value:e.delegatorTokenAccount??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.delegator),c(n.delegate),c(n.delegatorTokenAccount)],data:op().encode(s),programAddress:r})}function jut(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let n=e.accounts[t];return t+=1,n},o=()=>{let n=r();return n.address===a?void 0:n};return {programAddress:e.programAddress,accounts:{proposal:o(),delegator:r(),delegate:r(),delegatorTokenAccount:r()},data:Db().decode(e.data)}}var Pb,QX=i(()=>{f();x();p();Pb=new Uint8Array([12,116,204,68,87,205,40,205]);});function igt(){return fixEncoderSize(getBytesEncoder(),8).encode(Rb)}function cp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["disputeReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:Rb}))}function hb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["disputeReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function agt(){return combineCodec(cp(),hb())}async function dgt(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.authority)],data:cp().encode(s),programAddress:r})}function Ib(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.authority)],data:cp().encode(s),programAddress:r})}function ugt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),authority:r()},data:hb().decode(e.data)}}var Rb,YX=i(()=>{f();x();Rb=new Uint8Array([198,174,139,70,87,79,181,139]);});function hgt(){return fixEncoderSize(getBytesEncoder(),8).encode(vb)}function Mb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["incentiveType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()]]),e=>({...e,discriminator:vb}))}function kb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["incentiveType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()]])}function Igt(){return combineCodec(Mb(),kb())}function vgt(e,t){let r=t?.programAddress??a,n={program:{value:e.program??null,isWritable:true},incentives:{value:e.incentives??null,isWritable:true},distributor:{value:e.distributor??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.program),c(n.incentives),c(n.distributor)],data:Mb().encode(s),programAddress:r})}function Mgt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{program:r(),incentives:r(),distributor:r()},data:kb().decode(e.data)}}var vb,nQ=i(()=>{f();x();vb=new Uint8Array([172,97,184,220,51,131,45,160]);});function Ngt(){return fixEncoderSize(getBytesEncoder(),8).encode(Ub)}function sp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["batchSize",getU32Encoder()]]),e=>({...e,discriminator:Ub}))}function _b(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["batchSize",getU32Decoder()]])}function Lgt(){return combineCodec(sp(),_b())}async function Kgt(e,t){let r=t?.programAddress??a,n={deal:{value:e.deal??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.authority.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.deal),c(n.userRegistry),c(n.authority),c(n.clock)],data:sp().encode(s),programAddress:r})}function Vgt(e,t){let r=t?.programAddress??a,n={deal:{value:e.deal??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.deal),c(n.userRegistry),c(n.authority),c(n.clock)],data:sp().encode(s),programAddress:r})}function Hgt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{deal:r(),userRegistry:r(),authority:r(),clock:r()},data:_b().decode(e.data)}}var Ub,oQ=i(()=>{f();x();Ub=new Uint8Array([236,222,159,76,52,79,235,109]);});function Zgt(){return fixEncoderSize(getBytesEncoder(),8).encode(Ob)}function zb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:Ob}))}function Wb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Ygt(){return combineCodec(zb(),Wb())}function io(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},executor:{value:e.executor??null,isWritable:true},targetProgram:{value:e.targetProgram??null,isWritable:false}},s=d(r);return Object.freeze({accounts:[s(n.proposal),s(n.executor),s(n.targetProgram)],data:zb().encode({}),programAddress:r})}function eAt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{proposal:r(),executor:r(),targetProgram:r()},data:Wb().decode(e.data)}}var Ob,iQ=i(()=>{f();x();Ob=new Uint8Array([186,60,116,133,108,128,111,28]);});function iAt(){return fixEncoderSize(getBytesEncoder(),8).encode(Fb)}function Gb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",fe()]]),e=>({...e,discriminator:Fb}))}function Bb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",xe()]])}function aAt(){return combineCodec(Gb(),Bb())}function dAt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:Gb().encode(s),programAddress:r})}function uAt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:Bb().decode(e.data)}}var Fb,uQ=i(()=>{f();x();p();Fb=new Uint8Array([206,39,235,232,29,98,124,4]);});function TAt(){return fixEncoderSize(getBytesEncoder(),8).encode(Nb)}function Lb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Pe()]]),e=>({...e,discriminator:Nb}))}function Kb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",De()]])}function fAt(){return combineCodec(Lb(),Kb())}function xAt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:Lb().encode(s),programAddress:r})}function EAt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:Kb().decode(e.data)}}var Nb,pQ=i(()=>{f();x();p();Nb=new Uint8Array([146,64,145,33,190,17,82,70]);});function hAt(){return fixEncoderSize(getBytesEncoder(),8).encode(Vb)}function Hb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",be()]]),e=>({...e,discriminator:Vb}))}function Jb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",Ce()]])}function IAt(){return combineCodec(Hb(),Jb())}function vAt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:Hb().encode(s),programAddress:r})}function MAt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:Jb().decode(e.data)}}var Vb,yQ=i(()=>{f();x();p();Vb=new Uint8Array([30,229,117,69,175,246,7,143]);});function WAt(){return fixEncoderSize(getBytesEncoder(),8).encode(jb)}function qb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Me()]]),e=>({...e,discriminator:jb}))}function $b(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",ke()]])}function FAt(){return combineCodec(qb(),$b())}function GAt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:qb().encode(s),programAddress:r})}function BAt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:$b().decode(e.data)}}var jb,xQ=i(()=>{f();x();p();jb=new Uint8Array([25,78,239,255,21,9,170,98]);});function jAt(){return fixEncoderSize(getBytesEncoder(),8).encode(Xb)}function Qb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",de()]]),e=>({...e,discriminator:Xb}))}function Zb(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",ue()]])}function qAt(){return combineCodec(Qb(),Zb())}function $At(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:Qb().encode(s),programAddress:r})}function XAt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:Zb().decode(e.data)}}var Xb,PQ=i(()=>{f();x();p();Xb=new Uint8Array([212,219,242,67,179,18,238,104]);});function rpt(){return fixEncoderSize(getBytesEncoder(),8).encode(Yb)}function eC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",pe()]]),e=>({...e,discriminator:Yb}))}function tC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",le()]])}function opt(){return combineCodec(eC(),tC())}function cpt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:eC().encode(s),programAddress:r})}function spt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:tC().decode(e.data)}}var Yb,CQ=i(()=>{f();x();p();Yb=new Uint8Array([100,100,216,86,42,163,37,64]);});function ppt(){return fixEncoderSize(getBytesEncoder(),8).encode(nC)}function rC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",et()]]),e=>({...e,discriminator:nC}))}function oC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",tt()]])}function lpt(){return combineCodec(rC(),oC())}function mpt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:rC().encode(s),programAddress:r})}function ypt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:oC().decode(e.data)}}var nC,IQ=i(()=>{f();x();p();nC=new Uint8Array([34,42,234,113,80,201,15,95]);});function Dpt(){return fixEncoderSize(getBytesEncoder(),8).encode(cC)}function sC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",nt()]]),e=>({...e,discriminator:cC}))}function iC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",rt()]])}function bpt(){return combineCodec(sC(),iC())}function Cpt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:sC().encode(s),programAddress:r})}function Rpt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:iC().decode(e.data)}}var cC,kQ=i(()=>{f();x();p();cC=new Uint8Array([250,43,164,121,205,210,124,127]);});function Upt(){return fixEncoderSize(getBytesEncoder(),8).encode(aC)}function dC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Ze()]]),e=>({...e,discriminator:aC}))}function uC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",Ye()]])}function _pt(){return combineCodec(dC(),uC())}function Opt(e,t){let r=t?.programAddress??a,n={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.systemProgram)],data:dC().encode(s),programAddress:r})}function zpt(e){if(e.accounts.length<1)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:uC().decode(e.data)}}var aC,_Q=i(()=>{f();x();p();aC=new Uint8Array([87,78,249,236,50,103,49,173]);});function Kpt(){return fixEncoderSize(getBytesEncoder(),8).encode(gC)}function AC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:gC}))}function pC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Vpt(){return combineCodec(AC(),pC())}function Hpt(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.auction),s(n.authority),s(n.clock)],data:AC().encode({}),programAddress:r})}function Jpt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auction:r(),authority:r(),clock:r()},data:pC().decode(e.data)}}var gC,WQ=i(()=>{f();x();gC=new Uint8Array([99,201,28,182,134,0,55,181]);});function nlt(){return fixEncoderSize(getBytesEncoder(),8).encode(lC)}function ap(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newTier",getU8Encoder()]]),e=>({...e,discriminator:lC}))}function mC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newTier",getU8Decoder()]])}function rlt(){return combineCodec(ap(),mC())}async function olt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:false},owner:{value:e.owner??null,isWritable:true}},s={...e};n.stakingAccount.value||(n.stakingAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(T(n.owner.value))]})),n.stakingConfig.value||(n.stakingConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]}));let c=d(r);return Object.freeze({accounts:[c(n.stakingAccount),c(n.stakingConfig),c(n.owner)],data:ap().encode(s),programAddress:r})}function clt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:false},owner:{value:e.owner??null,isWritable:true}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.stakingAccount),c(n.stakingConfig),c(n.owner)],data:ap().encode(s),programAddress:r})}function slt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stakingAccount:r(),stakingConfig:r(),owner:r()},data:mC().decode(e.data)}}var lC,BQ=i(()=>{f();x();lC=new Uint8Array([11,43,205,79,196,188,236,222]);});function flt(){return fixEncoderSize(getBytesEncoder(),8).encode(TC)}function up(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:TC}))}function fC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function xlt(){return combineCodec(up(),fC())}async function Elt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},transaction:{value:e.transaction??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},complainant:{value:e.complainant??null,isWritable:true},respondent:{value:e.respondent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.dispute.value||(n.dispute.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([100,105,115,112,117,116,101])),getAddressEncoder().encode(T(n.transaction.value)),getAddressEncoder().encode(T(n.complainant.value)),getUtf8Encoder().encode(R(s.reason))]})),n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.complainant.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.transaction),c(n.userRegistry),c(n.complainant),c(n.respondent),c(n.systemProgram),c(n.clock)],data:up().encode(s),programAddress:r})}function Slt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},transaction:{value:e.transaction??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},complainant:{value:e.complainant??null,isWritable:true},respondent:{value:e.respondent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.transaction),c(n.userRegistry),c(n.complainant),c(n.respondent),c(n.systemProgram),c(n.clock)],data:up().encode(s),programAddress:r})}function Plt(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dispute:r(),transaction:r(),userRegistry:r(),complainant:r(),respondent:r(),systemProgram:r(),clock:r()},data:fC().decode(e.data)}}var TC,VQ=i(()=>{f();x();TC=new Uint8Array([210,63,221,114,212,97,195,156]);});function vlt(){return fixEncoderSize(getBytesEncoder(),8).encode(xC)}function EC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:xC}))}function SC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Mlt(){return combineCodec(EC(),SC())}function PC(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.auction),s(n.authority),s(n.clock)],data:EC().encode({}),programAddress:r})}function klt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auction:r(),authority:r(),clock:r()},data:SC().decode(e.data)}}var xC,jQ=i(()=>{f();x();xC=new Uint8Array([220,209,175,193,57,132,241,168]);});function Blt(){return fixEncoderSize(getBytesEncoder(),8).encode(bC)}function gp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reportId",getU64Encoder()],["reportType",Ie()],["dateRangeStart",getI64Encoder()],["dateRangeEnd",getI64Encoder()]]),e=>({...e,discriminator:bC}))}function CC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reportId",getU64Decoder()],["reportType",ve()],["dateRangeStart",getI64Decoder()],["dateRangeEnd",getI64Decoder()]])}function Nlt(){return combineCodec(gp(),CC())}async function Llt(e,t){let r=t?.programAddress??a,n={report:{value:e.report??null,isWritable:true},auditTrail:{value:e.auditTrail??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.report.value||(n.report.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([99,111,109,112,108,105,97,110,99,101,95,114,101,112,111,114,116])),getU64Encoder().encode(R(s.reportId))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.report),c(n.auditTrail),c(n.authority),c(n.systemProgram)],data:gp().encode(s),programAddress:r})}function Klt(e,t){let r=t?.programAddress??a,n={report:{value:e.report??null,isWritable:true},auditTrail:{value:e.auditTrail??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.report),c(n.auditTrail),c(n.authority),c(n.systemProgram)],data:gp().encode(s),programAddress:r})}function Vlt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{report:r(),auditTrail:r(),authority:r(),systemProgram:r()},data:CC().decode(e.data)}}var bC,ZQ=i(()=>{f();x();p();bC=new Uint8Array([213,97,79,234,22,228,14,32]);});function c1t(){return fixEncoderSize(getBytesEncoder(),8).encode(hC)}function Ap(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["entityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["config",Wt()]]),e=>({...e,discriminator:hC}))}function IC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["entityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["config",Ft()]])}function s1t(){return combineCodec(Ap(),IC())}async function i1t(e,t){let r=t?.programAddress??a,n={auditTrail:{value:e.auditTrail??null,isWritable:true},entity:{value:e.entity??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.auditTrail.value||(n.auditTrail.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,117,100,105,116,95,116,114,97,105,108])),getAddressEncoder().encode(T(n.entity.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.auditTrail),c(n.entity),c(n.authority),c(n.systemProgram)],data:Ap().encode(s),programAddress:r})}function a1t(e,t){let r=t?.programAddress??a,n={auditTrail:{value:e.auditTrail??null,isWritable:true},entity:{value:e.entity??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.auditTrail),c(n.entity),c(n.authority),c(n.systemProgram)],data:Ap().encode(s),programAddress:r})}function d1t(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auditTrail:r(),entity:r(),authority:r(),systemProgram:r()},data:IC().decode(e.data)}}var hC,eZ=i(()=>{f();x();p();hC=new Uint8Array([145,182,236,249,212,17,175,161]);});function E1t(){return fixEncoderSize(getBytesEncoder(),8).encode(MC)}function lp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["autoApproveNewAccounts",getBooleanEncoder()],["auditorElgamalPubkey",getOptionEncoder(fixEncoderSize(getBytesEncoder(),32))]]),e=>({...e,discriminator:MC}))}function kC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["autoApproveNewAccounts",getBooleanDecoder()],["auditorElgamalPubkey",getOptionDecoder(fixDecoderSize(getBytesDecoder(),32))]])}function S1t(){return combineCodec(lp(),kC())}async function wC(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.authority.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.tokenProgram)],data:lp().encode(s),programAddress:r})}function P1t(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.tokenProgram)],data:lp().encode(s),programAddress:r})}function D1t(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),tokenProgram:r()},data:kC().decode(e.data)}}var MC,rZ=i(()=>{f();x();MC=new Uint8Array([154,47,116,20,167,57,114,41]);});function w1t(){return fixEncoderSize(getBytesEncoder(),8).encode(_C)}function mp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["state",re()]]),e=>({...e,discriminator:_C}))}function OC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["state",oe()]])}function U1t(){return combineCodec(mp(),OC())}async function zC(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.authority.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.tokenProgram)],data:mp().encode(s),programAddress:r})}function _1t(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.tokenProgram)],data:mp().encode(s),programAddress:r})}function O1t(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),tokenProgram:r()},data:OC().decode(e.data)}}var _C,cZ=i(()=>{f();x();p();_C=new Uint8Array([175,89,119,112,150,203,202,198]);});function V1t(){return fixEncoderSize(getBytesEncoder(),8).encode(FC)}function yp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposalType",_e()],["executionParams",jt()]]),e=>({...e,discriminator:FC}))}function GC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposalType",Oe()],["executionParams",qt()]])}function H1t(){return combineCodec(yp(),GC())}async function ao(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},proposer:{value:e.proposer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.proposal.value||(n.proposal.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([103,111,118,101,114,110,97,110,99,101,95,112,114,111,112,111,115,97,108])),getU64Encoder().encode(R(s.proposalId))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.proposer),c(n.systemProgram)],data:yp().encode(s),programAddress:r})}function J1t(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},proposer:{value:e.proposer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.proposal),c(n.proposer),c(n.systemProgram)],data:yp().encode(s),programAddress:r})}function j1t(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{proposal:r(),proposer:r(),systemProgram:r()},data:GC().decode(e.data)}}var FC,lZ=i(()=>{f();x();p();FC=new Uint8Array([137,84,234,206,17,58,54,215]);});function omt(){return fixEncoderSize(getBytesEncoder(),8).encode(NC)}function Tp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["rate",getI16Encoder()]]),e=>({...e,discriminator:NC}))}function LC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["rate",getI16Decoder()]])}function cmt(){return combineCodec(Tp(),LC())}async function KC(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},rateAuthority:{value:e.rateAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.authority.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.rateAuthority),c(n.tokenProgram)],data:Tp().encode(s),programAddress:r})}function smt(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},rateAuthority:{value:e.rateAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.rateAuthority),c(n.tokenProgram)],data:Tp().encode(s),programAddress:r})}function imt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),rateAuthority:r(),tokenProgram:r()},data:LC().decode(e.data)}}var NC,yZ=i(()=>{f();x();NC=new Uint8Array([59,39,17,210,123,130,101,67]);});function ymt(){return fixEncoderSize(getBytesEncoder(),8).encode(HC)}function fp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:HC}))}function JC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Tmt(){return combineCodec(fp(),JC())}async function jC(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},closeAuthority:{value:e.closeAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.authority.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let s=d(r);return Object.freeze({accounts:[s(n.authority),s(n.mint),s(n.agent),s(n.closeAuthority),s(n.tokenProgram)],data:fp().encode({}),programAddress:r})}function fmt(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},closeAuthority:{value:e.closeAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let s=d(r);return Object.freeze({accounts:[s(n.authority),s(n.mint),s(n.agent),s(n.closeAuthority),s(n.tokenProgram)],data:fp().encode({}),programAddress:r})}function xmt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),closeAuthority:r(),tokenProgram:r()},data:JC().decode(e.data)}}var HC,fZ=i(()=>{f();x();HC=new Uint8Array([117,167,56,158,201,160,209,109]);});function Mmt(){return fixEncoderSize(getBytesEncoder(),8).encode($C)}function xp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initialRoles",getArrayEncoder(un())]]),e=>({...e,discriminator:$C}))}function XC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initialRoles",getArrayDecoder(gn())]])}function kmt(){return combineCodec(xp(),XC())}async function wmt(e,t){let r=t?.programAddress??a,n={rbacConfig:{value:e.rbacConfig??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.rbacConfig.value||(n.rbacConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,98,97,99,95,99,111,110,102,105,103])),getAddressEncoder().encode(T(n.authority.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.rbacConfig),c(n.authority),c(n.systemProgram)],data:xp().encode(s),programAddress:r})}function Umt(e,t){let r=t?.programAddress??a,n={rbacConfig:{value:e.rbacConfig??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.rbacConfig),c(n.authority),c(n.systemProgram)],data:xp().encode(s),programAddress:r})}function _mt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{rbacConfig:r(),authority:r(),systemProgram:r()},data:XC().decode(e.data)}}var $C,EZ=i(()=>{f();x();p();$C=new Uint8Array([215,68,129,228,237,165,0,240]);});function Vmt(){return fixEncoderSize(getBytesEncoder(),8).encode(ZC)}function Ep(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["baseApy",getU16Encoder()],["minStakeAmount",getU64Encoder()],["maxStakeAmount",getU64Encoder()]]),e=>({...e,discriminator:ZC}))}function YC(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["baseApy",getU16Decoder()],["minStakeAmount",getU64Decoder()],["maxStakeAmount",getU64Decoder()]])}function Hmt(){return combineCodec(Ep(),YC())}async function Jmt(e,t){let r=t?.programAddress??a,n={stakingConfig:{value:e.stakingConfig??null,isWritable:true},ghostTokenMint:{value:e.ghostTokenMint??null,isWritable:false},rewardsTreasury:{value:e.rewardsTreasury??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.stakingConfig.value||(n.stakingConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.stakingConfig),c(n.ghostTokenMint),c(n.rewardsTreasury),c(n.authority),c(n.systemProgram)],data:Ep().encode(s),programAddress:r})}function jmt(e,t){let r=t?.programAddress??a,n={stakingConfig:{value:e.stakingConfig??null,isWritable:true},ghostTokenMint:{value:e.ghostTokenMint??null,isWritable:false},rewardsTreasury:{value:e.rewardsTreasury??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.stakingConfig),c(n.ghostTokenMint),c(n.rewardsTreasury),c(n.authority),c(n.systemProgram)],data:Ep().encode(s),programAddress:r})}function qmt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stakingConfig:r(),ghostTokenMint:r(),rewardsTreasury:r(),authority:r(),systemProgram:r()},data:YC().decode(e.data)}}var ZC,bZ=i(()=>{f();x();ZC=new Uint8Array([78,164,6,115,206,48,168,105]);});function oyt(){return fixEncoderSize(getBytesEncoder(),8).encode(tR)}function Sp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initialOffer",getU64Encoder()],["autoAcceptThreshold",getU64Encoder()],["negotiationDeadline",getI64Encoder()]]),e=>({...e,discriminator:tR}))}function nR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initialOffer",getU64Decoder()],["autoAcceptThreshold",getU64Decoder()],["negotiationDeadline",getI64Decoder()]])}function cyt(){return combineCodec(Sp(),nR())}async function syt(e,t){let r=t?.programAddress??a,n={negotiation:{value:e.negotiation??null,isWritable:true},initiator:{value:e.initiator??null,isWritable:true},counterparty:{value:e.counterparty??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.negotiation.value||(n.negotiation.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([110,101,103,111,116,105,97,116,105,111,110])),getAddressEncoder().encode(T(n.initiator.value)),getAddressEncoder().encode(T(n.counterparty.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.negotiation),c(n.initiator),c(n.counterparty),c(n.systemProgram)],data:Sp().encode(s),programAddress:r})}function iyt(e,t){let r=t?.programAddress??a,n={negotiation:{value:e.negotiation??null,isWritable:true},initiator:{value:e.initiator??null,isWritable:true},counterparty:{value:e.counterparty??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.negotiation),c(n.initiator),c(n.counterparty),c(n.systemProgram)],data:Sp().encode(s),programAddress:r})}function ayt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{negotiation:r(),initiator:r(),counterparty:r(),systemProgram:r()},data:nR().decode(e.data)}}var tR,vZ=i(()=>{f();x();tR=new Uint8Array([170,46,176,41,191,255,104,205]);});function yyt(){return fixEncoderSize(getBytesEncoder(),8).encode(oR)}function Pp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:oR}))}function cR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Tyt(){return combineCodec(Pp(),cR())}async function fyt(e,t){let r=t?.programAddress??a,n={reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.reentrancyGuard),s(n.authority),s(n.systemProgram)],data:Pp().encode({}),programAddress:r})}function xyt(e,t){let r=t?.programAddress??a,n={reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.reentrancyGuard),s(n.authority),s(n.systemProgram)],data:Pp().encode({}),programAddress:r})}function Eyt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{reentrancyGuard:r(),authority:r(),systemProgram:r()},data:cR().decode(e.data)}}var oR,kZ=i(()=>{f();x();oR=new Uint8Array([156,109,115,85,12,60,245,99]);});function Iyt(){return fixEncoderSize(getBytesEncoder(),8).encode(iR)}function Dp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:iR}))}function aR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function vyt(){return combineCodec(Dp(),aR())}async function Myt(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true},userAgent:{value:e.userAgent??null,isWritable:false}};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let s=d(r);return Object.freeze({accounts:[s(n.channel),s(n.reentrancyGuard),s(n.user),s(n.userAgent)],data:Dp().encode({}),programAddress:r})}function dR(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true},userAgent:{value:e.userAgent??null,isWritable:false}},s=d(r);return Object.freeze({accounts:[s(n.channel),s(n.reentrancyGuard),s(n.user),s(n.userAgent)],data:Dp().encode({}),programAddress:r})}function kyt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),user:r(),userAgent:r()},data:aR().decode(e.data)}}var iR,UZ=i(()=>{f();x();iR=new Uint8Array([124,39,115,89,217,26,38,29]);});function Gyt(){return fixEncoderSize(getBytesEncoder(),8).encode(gR)}function bp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:gR}))}function AR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Byt(){return combineCodec(bp(),AR())}async function Nyt(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true}};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let s=d(r);return Object.freeze({accounts:[s(n.channel),s(n.reentrancyGuard),s(n.user)],data:bp().encode({}),programAddress:r})}function pR(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true}},s=d(r);return Object.freeze({accounts:[s(n.channel),s(n.reentrancyGuard),s(n.user)],data:bp().encode({}),programAddress:r})}function Lyt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),user:r()},data:AR().decode(e.data)}}var gR,OZ=i(()=>{f();x();gR=new Uint8Array([104,0,75,134,95,80,68,186]);});function Zyt(){return fixEncoderSize(getBytesEncoder(),8).encode(mR)}function Cp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["listingPrice",getU64Encoder()]]),e=>({...e,discriminator:mR}))}function yR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["listingPrice",getU64Decoder()]])}function Yyt(){return combineCodec(Cp(),yR())}async function eTt(e,t){let r=t?.programAddress??a,n={resale:{value:e.resale??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},seller:{value:e.seller??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.resale.value||(n.resale.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,115,97,108,101])),getAddressEncoder().encode(T(n.agent.value)),getAddressEncoder().encode(T(n.seller.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.resale),c(n.agent),c(n.seller),c(n.systemProgram)],data:Cp().encode(s),programAddress:r})}function tTt(e,t){let r=t?.programAddress??a,n={resale:{value:e.resale??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},seller:{value:e.seller??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.resale),c(n.agent),c(n.seller),c(n.systemProgram)],data:Cp().encode(s),programAddress:r})}function nTt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{resale:r(),agent:r(),seller:r(),systemProgram:r()},data:yR().decode(e.data)}}var mR,FZ=i(()=>{f();x();mR=new Uint8Array([3,233,3,123,241,61,231,238]);});function TTt(){return fixEncoderSize(getBytesEncoder(),8).encode(TR)}function fR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["counterOffer",getU64Encoder()],["message",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:TR}))}function xR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["counterOffer",getU64Decoder()],["message",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function fTt(){return combineCodec(fR(),xR())}function xTt(e,t){let r=t?.programAddress??a,n={negotiation:{value:e.negotiation??null,isWritable:true},sender:{value:e.sender??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.negotiation),c(n.sender)],data:fR().encode(s),programAddress:r})}function ETt(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{negotiation:r(),sender:r()},data:xR().decode(e.data)}}var TR,NZ=i(()=>{f();x();TR=new Uint8Array([74,8,96,55,146,85,200,152]);});function kTt(){return fixEncoderSize(getBytesEncoder(),8).encode(SR)}function Rp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newStatus",getBooleanEncoder()]]),e=>({...e,discriminator:SR}))}function PR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newStatus",getBooleanDecoder()]])}function wTt(){return combineCodec(Rp(),PR())}async function UTt(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.owner.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.owner),c(n.clock)],data:Rp().encode(s),programAddress:r})}function _Tt(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.owner),c(n.clock)],data:Rp().encode(s),programAddress:r})}function OTt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agent:r(),owner:r(),clock:r()},data:PR().decode(e.data)}}var SR,KZ=i(()=>{f();x();SR=new Uint8Array([164,219,91,38,45,31,33,47]);});function VTt(){return fixEncoderSize(getBytesEncoder(),8).encode(DR)}function bR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["bidAmount",getU64Encoder()]]),e=>({...e,discriminator:DR}))}function CR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["bidAmount",getU64Decoder()]])}function HTt(){return combineCodec(bR(),CR())}function RR(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:false},bidder:{value:e.bidder??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.auction),c(n.userRegistry),c(n.bidder),c(n.systemProgram),c(n.clock)],data:bR().encode(s),programAddress:r})}function JTt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auction:r(),userRegistry:r(),bidder:r(),systemProgram:r(),clock:r()},data:CR().decode(e.data)}}var DR,JZ=i(()=>{f();x();DR=new Uint8Array([38,170,233,87,52,65,23,128]);});function YTt(){return fixEncoderSize(getBytesEncoder(),8).encode(hR)}function IR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:hR}))}function vR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function eft(){return combineCodec(IR(),vR())}function tft(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:false},bidder:{value:e.bidder??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let s=d(r);return Object.freeze({accounts:[s(n.auction),s(n.userRegistry),s(n.bidder),s(n.systemProgram),s(n.clock)],data:IR().encode({}),programAddress:r})}function nft(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auction:r(),userRegistry:r(),bidder:r(),systemProgram:r(),clock:r()},data:vR().decode(e.data)}}var hR,$Z=i(()=>{f();x();hR=new Uint8Array([209,244,155,47,62,54,119,34]);});function uft(){return fixEncoderSize(getBytesEncoder(),8).encode(MR)}function Ip(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["workOrder",getAddressEncoder()]]),e=>({...e,discriminator:MR}))}function kR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["workOrder",getAddressDecoder()]])}function gft(){return combineCodec(Ip(),kR())}async function Aft(e,t){let r=t?.programAddress??a,n={payment:{value:e.payment??null,isWritable:true},escrow:{value:e.escrow??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},recipientTokenAccount:{value:e.recipientTokenAccount??null,isWritable:true},recipient:{value:e.recipient??null,isWritable:false},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.payment.value||(n.payment.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([112,97,121,109,101,110,116])),getAddressEncoder().encode(T(n.escrow.value))]})),n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.escrowTokenAccount.value||(n.escrowTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(n.escrow.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(n.paymentToken.value))]})),n.recipientTokenAccount.value||(n.recipientTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(n.recipient.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(n.paymentToken.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.payment),c(n.escrow),c(n.agent),c(n.reentrancyGuard),c(n.escrowTokenAccount),c(n.recipientTokenAccount),c(n.recipient),c(n.paymentToken),c(n.authority),c(n.tokenProgram),c(n.systemProgram)],data:Ip().encode(s),programAddress:r})}function pft(e,t){let r=t?.programAddress??a,n={payment:{value:e.payment??null,isWritable:true},escrow:{value:e.escrow??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},recipientTokenAccount:{value:e.recipientTokenAccount??null,isWritable:true},recipient:{value:e.recipient??null,isWritable:false},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.payment),c(n.escrow),c(n.agent),c(n.reentrancyGuard),c(n.escrowTokenAccount),c(n.recipientTokenAccount),c(n.recipient),c(n.paymentToken),c(n.authority),c(n.tokenProgram),c(n.systemProgram)],data:Ip().encode(s),programAddress:r})}function lft(e){if(e.accounts.length<11)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{payment:r(),escrow:r(),agent:r(),reentrancyGuard:r(),escrowTokenAccount:r(),recipientTokenAccount:r(),recipient:r(),paymentToken:r(),authority:r(),tokenProgram:r(),systemProgram:r()},data:kR().decode(e.data)}}var MR,QZ=i(()=>{f();x();MR=new Uint8Array([99,206,125,26,181,158,189,238]);});function bft(){return fixEncoderSize(getBytesEncoder(),8).encode(UR)}function vp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["clientRefundPercentage",getU8Encoder()]]),e=>({...e,discriminator:UR}))}function _R(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["clientRefundPercentage",getU8Decoder()]])}function Cft(){return combineCodec(vp(),_R())}async function Rft(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},agentPaymentAccount:{value:e.agentPaymentAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.escrowTokenAccount),c(n.clientRefundAccount),c(n.agentPaymentAccount),c(n.paymentToken),c(n.authority),c(n.tokenProgram)],data:vp().encode(s),programAddress:r})}function OR(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},agentPaymentAccount:{value:e.agentPaymentAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.escrow),c(n.reentrancyGuard),c(n.escrowTokenAccount),c(n.clientRefundAccount),c(n.agentPaymentAccount),c(n.paymentToken),c(n.authority),c(n.tokenProgram)],data:vp().encode(s),programAddress:r})}function hft(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),clientRefundAccount:r(),agentPaymentAccount:r(),paymentToken:r(),authority:r(),tokenProgram:r()},data:_R().decode(e.data)}}var UR,YZ=i(()=>{f();x();UR=new Uint8Array([91,2,45,239,179,132,197,213]);});function Bft(){return fixEncoderSize(getBytesEncoder(),8).encode(WR)}function Mp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["amount",getU64Encoder()],["useConfidentialTransfer",getBooleanEncoder()]]),e=>({...e,discriminator:WR}))}function FR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["amount",getU64Decoder()],["useConfidentialTransfer",getBooleanDecoder()]])}function Nft(){return combineCodec(Mp(),FR())}async function Lft(e,t){let r=t?.programAddress??a,n={payment:{value:e.payment??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},providerAgent:{value:e.providerAgent??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},payerTokenAccount:{value:e.payerTokenAccount??null,isWritable:true},providerTokenAccount:{value:e.providerTokenAccount??null,isWritable:true},tokenMint:{value:e.tokenMint??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.payment.value||(n.payment.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([112,97,121,109,101,110,116])),getAddressEncoder().encode(T(n.workOrder.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.payment),c(n.workOrder),c(n.providerAgent),c(n.payer),c(n.payerTokenAccount),c(n.providerTokenAccount),c(n.tokenMint),c(n.tokenProgram),c(n.systemProgram)],data:Mp().encode(s),programAddress:r})}function Kft(e,t){let r=t?.programAddress??a,n={payment:{value:e.payment??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},providerAgent:{value:e.providerAgent??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},payerTokenAccount:{value:e.payerTokenAccount??null,isWritable:true},providerTokenAccount:{value:e.providerTokenAccount??null,isWritable:true},tokenMint:{value:e.tokenMint??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.payment),c(n.workOrder),c(n.providerAgent),c(n.payer),c(n.payerTokenAccount),c(n.providerTokenAccount),c(n.tokenMint),c(n.tokenProgram),c(n.systemProgram)],data:Mp().encode(s),programAddress:r})}function Vft(e){if(e.accounts.length<9)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{payment:r(),workOrder:r(),providerAgent:r(),payer:r(),payerTokenAccount:r(),providerTokenAccount:r(),tokenMint:r(),tokenProgram:r(),systemProgram:r()},data:FR().decode(e.data)}}var WR,tY=i(()=>{f();x();WR=new Uint8Array([189,81,30,198,139,186,115,23]);});function oxt(){return fixEncoderSize(getBytesEncoder(),8).encode(LR)}function kp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["listingId",getU64Encoder()],["quantity",getU32Encoder()],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["customInstructions",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deadline",getI64Encoder()]]),e=>({...e,discriminator:LR}))}function KR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["listingId",getU64Decoder()],["quantity",getU32Decoder()],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["customInstructions",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deadline",getI64Decoder()]])}function cxt(){return combineCodec(kp(),KR())}async function sxt(e,t){let r=t?.programAddress??a,n={servicePurchase:{value:e.servicePurchase??null,isWritable:true},serviceListing:{value:e.serviceListing??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.servicePurchase.value||(n.servicePurchase.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,101,114,118,105,99,101,95,112,117,114,99,104,97,115,101])),getAddressEncoder().encode(T(n.buyer.value)),getAddressEncoder().encode(T(n.serviceListing.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.servicePurchase),c(n.serviceListing),c(n.buyer),c(n.systemProgram)],data:kp().encode(s),programAddress:r})}function VR(e,t){let r=t?.programAddress??a,n={servicePurchase:{value:e.servicePurchase??null,isWritable:true},serviceListing:{value:e.serviceListing??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.servicePurchase),c(n.serviceListing),c(n.buyer),c(n.systemProgram)],data:kp().encode(s),programAddress:r})}function ixt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{servicePurchase:r(),serviceListing:r(),buyer:r(),systemProgram:r()},data:KR().decode(e.data)}}var LR,aY=i(()=>{f();x();LR=new Uint8Array([197,43,201,158,119,134,66,7]);});function yxt(){return fixEncoderSize(getBytesEncoder(),8).encode(HR)}function JR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["tokenMint",getAddressEncoder()],["transactionSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["responseTimeMs",getU64Encoder()]]),e=>({...e,discriminator:HR}))}function jR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["tokenMint",getAddressDecoder()],["transactionSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["responseTimeMs",getU64Decoder()]])}function Txt(){return combineCodec(JR(),jR())}function fxt(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},payer:{value:e.payer??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.payer),c(n.clock)],data:JR().encode(s),programAddress:r})}function xxt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agent:r(),payer:r(),clock:r()},data:jR().decode(e.data)}}var HR,xY=i(()=>{f();x();HR=new Uint8Array([247,255,28,60,50,13,181,137]);});function hxt(){return fixEncoderSize(getBytesEncoder(),8).encode($R)}function wp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:$R}))}function XR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Ixt(){return combineCodec(wp(),XR())}async function vxt(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},caller:{value:e.caller??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let s=d(r);return Object.freeze({accounts:[s(n.escrow),s(n.reentrancyGuard),s(n.escrowTokenAccount),s(n.clientRefundAccount),s(n.paymentToken),s(n.caller),s(n.tokenProgram)],data:wp().encode({}),programAddress:r})}function Mxt(e,t){let r=t?.programAddress??a,n={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},caller:{value:e.caller??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let s=d(r);return Object.freeze({accounts:[s(n.escrow),s(n.reentrancyGuard),s(n.escrowTokenAccount),s(n.clientRefundAccount),s(n.paymentToken),s(n.caller),s(n.tokenProgram)],data:wp().encode({}),programAddress:r})}function kxt(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),clientRefundAccount:r(),paymentToken:r(),caller:r(),tokenProgram:r()},data:XR().decode(e.data)}}var $R,SY=i(()=>{f();x();$R=new Uint8Array([40,9,115,148,140,7,157,160]);});function Lxt(){return fixEncoderSize(getBytesEncoder(),8).encode(ZR)}function Fp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:ZR}))}function YR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Kxt(){return combineCodec(Fp(),YR())}async function eh(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agentAccount.value||(n.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.signer.value)),getUtf8Encoder().encode(R(s.agentId))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.systemProgram),c(n.clock)],data:Fp().encode(s),programAddress:r})}function Vxt(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.systemProgram),c(n.clock)],data:Fp().encode(s),programAddress:r})}function Hxt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),systemProgram:r(),clock:r()},data:YR().decode(e.data)}}var ZR,DY=i(()=>{f();x();ZR=new Uint8Array([135,157,66,195,2,113,175,30]);});function eEt(){return fixEncoderSize(getBytesEncoder(),8).encode(th)}function Jp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:th}))}function nh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function tEt(){return combineCodec(Jp(),nh())}async function rh(e,t){let r=t?.programAddress??a,n={treeAuthority:{value:e.treeAuthority??null,isWritable:true},merkleTree:{value:e.merkleTree??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},compressionProgram:{value:e.compressionProgram??null,isWritable:false},logWrapper:{value:e.logWrapper??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.treeAuthority.value||(n.treeAuthority.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,116,114,101,101,95,99,111,110,102,105,103])),getAddressEncoder().encode(T(n.signer.value))]})),n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.signer.value))]})),n.compressionProgram.value||(n.compressionProgram.value="cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"),n.logWrapper.value||(n.logWrapper.value="noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.treeAuthority),c(n.merkleTree),c(n.userRegistry),c(n.signer),c(n.compressionProgram),c(n.logWrapper),c(n.systemProgram),c(n.clock)],data:Jp().encode(s),programAddress:r})}function nEt(e,t){let r=t?.programAddress??a,n={treeAuthority:{value:e.treeAuthority??null,isWritable:true},merkleTree:{value:e.merkleTree??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},compressionProgram:{value:e.compressionProgram??null,isWritable:false},logWrapper:{value:e.logWrapper??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.compressionProgram.value||(n.compressionProgram.value="cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"),n.logWrapper.value||(n.logWrapper.value="noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.treeAuthority),c(n.merkleTree),c(n.userRegistry),c(n.signer),c(n.compressionProgram),c(n.logWrapper),c(n.systemProgram),c(n.clock)],data:Jp().encode(s),programAddress:r})}function rEt(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{treeAuthority:r(),merkleTree:r(),userRegistry:r(),signer:r(),compressionProgram:r(),logWrapper:r(),systemProgram:r(),clock:r()},data:nh().decode(e.data)}}var th,hY=i(()=>{f();x();th=new Uint8Array([15,6,94,55,65,80,123,248]);});function EEt(){return fixEncoderSize(getBytesEncoder(),8).encode(ch)}function jp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["metadata",$t()],["codeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["revenueShare",getF64Encoder()]]),e=>({...e,discriminator:ch}))}function sh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["metadata",Xt()],["codeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["revenueShare",getF64Decoder()]])}function SEt(){return combineCodec(jp(),sh())}async function PEt(e,t){let r=t?.programAddress??a,n={extension:{value:e.extension??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},developer:{value:e.developer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.developer.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.extension),c(n.userRegistry),c(n.developer),c(n.systemProgram),c(n.clock)],data:jp().encode(s),programAddress:r})}function DEt(e,t){let r=t?.programAddress??a,n={extension:{value:e.extension??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},developer:{value:e.developer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.extension),c(n.userRegistry),c(n.developer),c(n.systemProgram),c(n.clock)],data:jp().encode(s),programAddress:r})}function bEt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{extension:r(),userRegistry:r(),developer:r(),systemProgram:r(),clock:r()},data:sh().decode(e.data)}}var ch,vY=i(()=>{f();x();p();ch=new Uint8Array([158,205,4,17,6,106,172,148]);});function OEt(){return fixEncoderSize(getBytesEncoder(),8).encode(ih)}function ah(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["rejectionReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requestedChanges",getOptionEncoder(getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())))]]),e=>({...e,discriminator:ih}))}function dh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["rejectionReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requestedChanges",getOptionDecoder(getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())))]])}function zEt(){return combineCodec(ah(),dh())}function WEt(e,t){let r=t?.programAddress??a,n={workOrder:{value:e.workOrder??null,isWritable:true},workDelivery:{value:e.workDelivery??null,isWritable:false},client:{value:e.client??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.workOrder),c(n.workDelivery),c(n.client),c(n.clock)],data:ah().encode(s),programAddress:r})}function FEt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{workOrder:r(),workDelivery:r(),client:r(),clock:r()},data:dh().decode(e.data)}}var ih,FY=i(()=>{f();x();ih=new Uint8Array([123,7,32,171,41,109,58,250]);});function jEt(){return fixEncoderSize(getBytesEncoder(),8).encode(gh)}function $p(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["customization",Ee()],["royaltyPercentage",getU32Encoder()]]),e=>({...e,discriminator:gh}))}function Ah(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["customization",Se()],["royaltyPercentage",getU32Decoder()]])}function qEt(){return combineCodec($p(),Ah())}async function $Et(e,t){let r=t?.programAddress??a,n={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},newAgent:{value:e.newAgent??null,isWritable:true},replicationRecord:{value:e.replicationRecord??null,isWritable:true},royaltyStream:{value:e.royaltyStream??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.newAgent.value||(n.newAgent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.buyer.value))]})),n.replicationRecord.value||(n.replicationRecord.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,108,105,99,97,116,105,111,110,95,114,101,99,111,114,100])),getAddressEncoder().encode(T(n.replicationTemplate.value)),getAddressEncoder().encode(T(n.buyer.value))]})),n.royaltyStream.value||(n.royaltyStream.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,111,121,97,108,116,121,95,115,116,114,101,97,109])),getAddressEncoder().encode(T(n.newAgent.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.replicationTemplate),c(n.newAgent),c(n.replicationRecord),c(n.royaltyStream),c(n.buyer),c(n.systemProgram)],data:$p().encode(s),programAddress:r})}function XEt(e,t){let r=t?.programAddress??a,n={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},newAgent:{value:e.newAgent??null,isWritable:true},replicationRecord:{value:e.replicationRecord??null,isWritable:true},royaltyStream:{value:e.royaltyStream??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.replicationTemplate),c(n.newAgent),c(n.replicationRecord),c(n.royaltyStream),c(n.buyer),c(n.systemProgram)],data:$p().encode(s),programAddress:r})}function QEt(e){if(e.accounts.length<6)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{replicationTemplate:r(),newAgent:r(),replicationRecord:r(),royaltyStream:r(),buyer:r(),systemProgram:r()},data:Ah().decode(e.data)}}var gh,BY=i(()=>{f();x();p();gh=new Uint8Array([252,210,89,130,31,43,39,50]);});function cSt(){return fixEncoderSize(getBytesEncoder(),8).encode(lh)}function Xp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:lh}))}function mh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function sSt(){return combineCodec(Xp(),mh())}async function iSt(e,t){let r=t?.programAddress??a,n={reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:true}};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let s=d(r);return Object.freeze({accounts:[s(n.reentrancyGuard),s(n.authority)],data:Xp().encode({}),programAddress:r})}function aSt(e,t){let r=t?.programAddress??a,n={reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:true}},s=d(r);return Object.freeze({accounts:[s(n.reentrancyGuard),s(n.authority)],data:Xp().encode({}),programAddress:r})}function dSt(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{reentrancyGuard:r(),authority:r()},data:mh().decode(e.data)}}var lh,LY=i(()=>{f();x();lh=new Uint8Array([93,74,168,125,46,153,9,255]);});function CSt(){return fixEncoderSize(getBytesEncoder(),8).encode(Th)}function Qp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["resolution",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["awardToComplainant",getBooleanEncoder()]]),e=>({...e,discriminator:Th}))}function fh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["resolution",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["awardToComplainant",getBooleanDecoder()]])}function RSt(){return combineCodec(Qp(),fh())}async function hSt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},arbitrator:{value:e.arbitrator??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.arbitratorRegistry.value||(n.arbitratorRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,114,98,105,116,114,97,116,111,114,95,114,101,103,105,115,116,114,121]))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.arbitratorRegistry),c(n.arbitrator),c(n.clock)],data:Qp().encode(s),programAddress:r})}function ISt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},arbitrator:{value:e.arbitrator??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.arbitratorRegistry),c(n.arbitrator),c(n.clock)],data:Qp().encode(s),programAddress:r})}function vSt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dispute:r(),arbitratorRegistry:r(),arbitrator:r(),clock:r()},data:fh().decode(e.data)}}var Th,VY=i(()=>{f();x();Th=new Uint8Array([231,6,202,6,96,103,12,230]);});function BSt(){return fixEncoderSize(getBytesEncoder(),8).encode(xh)}function Eh(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",getU64Encoder()],["sessionId",getU64Encoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]]),e=>({...e,discriminator:xh}))}function Sh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",getU64Decoder()],["sessionId",getU64Decoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function NSt(){return combineCodec(Eh(),Sh())}function LSt(e,t){let r=t?.programAddress??a,n={message:{value:e.message??null,isWritable:true},session:{value:e.session??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,sender:e.senderArg};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.message),c(n.session),c(n.sender),c(n.systemProgram)],data:Eh().encode(s),programAddress:r})}function KSt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{message:r(),session:r(),sender:r(),systemProgram:r()},data:Sh().decode(e.data)}}var xh,tee=i(()=>{f();x();xh=new Uint8Array([84,12,203,77,36,199,15,83]);});function ePt(){return fixEncoderSize(getBytesEncoder(),8).encode(Ih)}function vh(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",getU64Encoder()],["senderType",M()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["attachments",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:Ih}))}function Mh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",getU64Decoder()],["senderType",k()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["attachments",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function tPt(){return combineCodec(vh(),Mh())}function nPt(e,t){let r=t?.programAddress??a,n={message:{value:e.message??null,isWritable:true},session:{value:e.session??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.message),c(n.session),c(n.sender),c(n.systemProgram)],data:vh().encode(s),programAddress:r})}function rPt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{message:r(),session:r(),sender:r(),systemProgram:r()},data:Mh().decode(e.data)}}var Ih,oee=i(()=>{f();x();p();Ih=new Uint8Array([253,76,105,46,157,79,116,241]);});function pPt(){return fixEncoderSize(getBytesEncoder(),8).encode(wh)}function Yp(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",N()],["metadata",Ht()],["isEncrypted",getBooleanEncoder()]]),e=>({...e,discriminator:wh}))}function Uh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",L()],["metadata",Jt()],["isEncrypted",getBooleanDecoder()]])}function lPt(){return combineCodec(Yp(),Uh())}async function _h(e,t){let r=t?.programAddress??a,n={message:{value:e.message??null,isWritable:true},channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.message.value||(n.message.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([109,101,115,115,97,103,101])),getAddressEncoder().encode(T(n.channel.value)),getUtf8Encoder().encode(R(s.messageId))]})),n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.message),c(n.channel),c(n.reentrancyGuard),c(n.sender),c(n.systemProgram)],data:Yp().encode(s),programAddress:r})}function mPt(e,t){let r=t?.programAddress??a,n={message:{value:e.message??null,isWritable:true},channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.message),c(n.channel),c(n.reentrancyGuard),c(n.sender),c(n.systemProgram)],data:Yp().encode(s),programAddress:r})}function yPt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{message:r(),channel:r(),reentrancyGuard:r(),sender:r(),systemProgram:r()},data:Uh().decode(e.data)}}var wh,Aee=i(()=>{f();x();p();wh=new Uint8Array([157,174,222,205,233,240,244,136]);});function kPt(){return fixEncoderSize(getBytesEncoder(),8).encode(Oh)}function zh(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",N()],["isEncrypted",getBooleanEncoder()]]),e=>({...e,discriminator:Oh}))}function Wh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",L()],["isEncrypted",getBooleanDecoder()]])}function wPt(){return combineCodec(zh(),Wh())}function UPt(e,t){let r=t?.programAddress??a,n={message:{value:e.message??null,isWritable:true},channel:{value:e.channel??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.message),c(n.channel),c(n.sender),c(n.systemProgram)],data:zh().encode(s),programAddress:r})}function _Pt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{message:r(),channel:r(),sender:r(),systemProgram:r()},data:Wh().decode(e.data)}}var Oh,mee=i(()=>{f();x();p();Oh=new Uint8Array([57,40,34,178,189,10,65,26]);});function JPt(){return fixEncoderSize(getBytesEncoder(),8).encode(Fh)}function tl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["amount",getU64Encoder()],["lockupTier",getU8Encoder()]]),e=>({...e,discriminator:Fh}))}function Gh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["amount",getU64Decoder()],["lockupTier",getU8Decoder()]])}function jPt(){return combineCodec(tl(),Gh())}async function qPt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:true},ghostMint:{value:e.ghostMint??null,isWritable:false},userTokenAccount:{value:e.userTokenAccount??null,isWritable:true},stakingVault:{value:e.stakingVault??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.stakingAccount.value||(n.stakingAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(T(n.owner.value))]})),n.stakingConfig.value||(n.stakingConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.stakingAccount),c(n.stakingConfig),c(n.ghostMint),c(n.userTokenAccount),c(n.stakingVault),c(n.owner),c(n.tokenProgram)],data:tl().encode(s),programAddress:r})}function $Pt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:true},ghostMint:{value:e.ghostMint??null,isWritable:false},userTokenAccount:{value:e.userTokenAccount??null,isWritable:true},stakingVault:{value:e.stakingVault??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.stakingAccount),c(n.stakingConfig),c(n.ghostMint),c(n.userTokenAccount),c(n.stakingVault),c(n.owner),c(n.tokenProgram)],data:tl().encode(s),programAddress:r})}function XPt(e){if(e.accounts.length<7)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stakingAccount:r(),stakingConfig:r(),ghostMint:r(),userTokenAccount:r(),stakingVault:r(),owner:r(),tokenProgram:r()},data:Gh().decode(e.data)}}var Fh,fee=i(()=>{f();x();Fh=new Uint8Array([136,126,91,162,40,131,13,127]);});function cDt(){return fixEncoderSize(getBytesEncoder(),8).encode(Nh)}function nl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["evidenceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["evidenceData",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:Nh}))}function Lh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["evidenceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["evidenceData",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function sDt(){return combineCodec(nl(),Lh())}async function iDt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.submitter.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.userRegistry),c(n.submitter),c(n.clock)],data:nl().encode(s),programAddress:r})}function aDt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.userRegistry),c(n.submitter),c(n.clock)],data:nl().encode(s),programAddress:r})}function dDt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dispute:r(),userRegistry:r(),submitter:r(),clock:r()},data:Lh().decode(e.data)}}var Nh,Ree=i(()=>{f();x();Nh=new Uint8Array([177,174,100,125,106,213,241,22]);});function EDt(){return fixEncoderSize(getBytesEncoder(),8).encode(Vh)}function rl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["evidenceBatch",getArrayEncoder(Ls())]]),e=>({...e,discriminator:Vh}))}function Hh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["evidenceBatch",getArrayDecoder(Ks())]])}function SDt(){return combineCodec(rl(),Hh())}async function PDt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.submitter.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.userRegistry),c(n.submitter),c(n.clock)],data:rl().encode(s),programAddress:r})}function DDt(e,t){let r=t?.programAddress??a,n={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dispute),c(n.userRegistry),c(n.submitter),c(n.clock)],data:rl().encode(s),programAddress:r})}function bDt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dispute:r(),userRegistry:r(),submitter:r(),clock:r()},data:Hh().decode(e.data)}}var Vh,Iee=i(()=>{f();x();p();Vh=new Uint8Array([168,150,145,75,38,203,43,9]);});function ODt(){return fixEncoderSize(getBytesEncoder(),8).encode(jh)}function ol(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["deliverables",getArrayEncoder(ze())],["ipfsHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:jh}))}function qh(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["deliverables",getArrayDecoder(We())],["ipfsHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function zDt(){return combineCodec(ol(),qh())}async function WDt(e,t){let r=t?.programAddress??a,n={workDelivery:{value:e.workDelivery??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},provider:{value:e.provider??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.workDelivery.value||(n.workDelivery.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([119,111,114,107,95,100,101,108,105,118,101,114,121])),getAddressEncoder().encode(T(n.workOrder.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.workDelivery),c(n.workOrder),c(n.provider),c(n.clock),c(n.systemProgram)],data:ol().encode(s),programAddress:r})}function FDt(e,t){let r=t?.programAddress??a,n={workDelivery:{value:e.workDelivery??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},provider:{value:e.provider??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111"),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.workDelivery),c(n.workOrder),c(n.provider),c(n.clock),c(n.systemProgram)],data:ol().encode(s),programAddress:r})}function GDt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{workDelivery:r(),workOrder:r(),provider:r(),clock:r(),systemProgram:r()},data:qh().decode(e.data)}}var jh,zee=i(()=>{f();x();p();jh=new Uint8Array([151,198,209,252,41,69,106,93]);});function XDt(){return fixEncoderSize(getBytesEncoder(),8).encode(tI)}function nI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["rating",getU8Encoder()],["transactionSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["feedback",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:tI}))}function rI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["rating",getU8Decoder()],["transactionSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["feedback",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function QDt(){return combineCodec(nI(),rI())}function ZDt(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},rater:{value:e.rater??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.rater),c(n.clock)],data:nI().encode(s),programAddress:r})}function YDt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agent:r(),rater:r(),clock:r()},data:rI().decode(e.data)}}var tI,Gee=i(()=>{f();x();tI=new Uint8Array([207,232,84,144,125,143,137,30]);});function sbt(){return fixEncoderSize(getBytesEncoder(),8).encode(oI)}function cI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:oI}))}function sI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function ibt(){return combineCodec(cI(),sI())}function iI(e,t){let r=t?.programAddress??a,n={proposal:{value:e.proposal??null,isWritable:true},authority:{value:e.authority??null,isWritable:true}},s=d(r);return Object.freeze({accounts:[s(n.proposal),s(n.authority)],data:cI().encode({}),programAddress:r})}function abt(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{proposal:r(),authority:r()},data:sI().decode(e.data)}}var oI,Lee=i(()=>{f();x();oI=new Uint8Array([144,82,0,72,160,132,35,121]);});function fbt(){return fixEncoderSize(getBytesEncoder(),8).encode(dI)}function cl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["amount",getU64Encoder()]]),e=>({...e,discriminator:dI}))}function uI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["amount",getU64Decoder()]])}function xbt(){return combineCodec(cl(),uI())}async function Ebt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:true},ghostMint:{value:e.ghostMint??null,isWritable:false},userTokenAccount:{value:e.userTokenAccount??null,isWritable:true},stakingVault:{value:e.stakingVault??null,isWritable:true},vaultAuthority:{value:e.vaultAuthority??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.stakingAccount.value||(n.stakingAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(T(n.owner.value))]})),n.stakingConfig.value||(n.stakingConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),n.vaultAuthority.value||(n.vaultAuthority.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,118,97,117,108,116,95,97,117,116,104,111,114,105,116,121]))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.stakingAccount),c(n.stakingConfig),c(n.ghostMint),c(n.userTokenAccount),c(n.stakingVault),c(n.vaultAuthority),c(n.owner),c(n.tokenProgram)],data:cl().encode(s),programAddress:r})}function Sbt(e,t){let r=t?.programAddress??a,n={stakingAccount:{value:e.stakingAccount??null,isWritable:true},stakingConfig:{value:e.stakingConfig??null,isWritable:true},ghostMint:{value:e.ghostMint??null,isWritable:false},userTokenAccount:{value:e.userTokenAccount??null,isWritable:true},stakingVault:{value:e.stakingVault??null,isWritable:true},vaultAuthority:{value:e.vaultAuthority??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=d(r);return Object.freeze({accounts:[c(n.stakingAccount),c(n.stakingConfig),c(n.ghostMint),c(n.userTokenAccount),c(n.stakingVault),c(n.vaultAuthority),c(n.owner),c(n.tokenProgram)],data:cl().encode(s),programAddress:r})}function Pbt(e){if(e.accounts.length<8)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{stakingAccount:r(),stakingConfig:r(),ghostMint:r(),userTokenAccount:r(),stakingVault:r(),vaultAuthority:r(),owner:r(),tokenProgram:r()},data:uI().decode(e.data)}}var dI,Vee=i(()=>{f();x();dI=new Uint8Array([58,119,215,143,203,223,32,86]);});function Gbt(){return fixEncoderSize(getBytesEncoder(),8).encode(AI)}function sl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["statusId",getU64Encoder()],["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["lastUpdated",getI64Encoder()]]),e=>({...e,discriminator:AI}))}function pI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["statusId",getU64Decoder()],["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["lastUpdated",getI64Decoder()]])}function Bbt(){return combineCodec(sl(),pI())}async function Nbt(e,t){let r=t?.programAddress??a,n={status:{value:e.status??null,isWritable:true},session:{value:e.session??null,isWritable:false},updater:{value:e.updater??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,status:e.statusArg};n.status.value||(n.status.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,116,97,116,117,115])),getAddressEncoder().encode(T(n.session.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.status),c(n.session),c(n.updater),c(n.systemProgram)],data:sl().encode(s),programAddress:r})}function Lbt(e,t){let r=t?.programAddress??a,n={status:{value:e.status??null,isWritable:true},session:{value:e.session??null,isWritable:false},updater:{value:e.updater??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,status:e.statusArg};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.status),c(n.session),c(n.updater),c(n.systemProgram)],data:sl().encode(s),programAddress:r})}function Kbt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{status:r(),session:r(),updater:r(),systemProgram:r()},data:pI().decode(e.data)}}var AI,Yee=i(()=>{f();x();AI=new Uint8Array([10,122,84,103,225,186,125,183]);});function eCt(){return fixEncoderSize(getBytesEncoder(),8).encode(mI)}function Al(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["name",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["description",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:mI}))}function yI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["name",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["description",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function tCt(){return combineCodec(Al(),yI())}async function nCt(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agentAccount.value||(n.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.signer.value)),getUtf8Encoder().encode(R(s.agentId))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:Al().encode(s),programAddress:r})}function TI(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:Al().encode(s),programAddress:r})}function rCt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:yI().decode(e.data)}}var mI,rte=i(()=>{f();x();mI=new Uint8Array([85,2,178,9,119,139,102,164]);});function xCt(){return fixEncoderSize(getBytesEncoder(),8).encode(xI)}function pl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["reputationScore",getU64Encoder()]]),e=>({...e,discriminator:xI}))}function EI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["reputationScore",getU64Decoder()]])}function ECt(){return combineCodec(pl(),EI())}async function SCt(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agentAccount.value||(n.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.signer.value)),getUtf8Encoder().encode(R(s.agentId))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:pl().encode(s),programAddress:r})}function PCt(e,t){let r=t?.programAddress??a,n={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentAccount),c(n.signer),c(n.clock)],data:pl().encode(s),programAddress:r})}function DCt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:EI().decode(e.data)}}var xI,ste=i(()=>{f();x();xI=new Uint8Array([80,227,92,245,231,37,99,180]);});function BCt(){return fixEncoderSize(getBytesEncoder(),8).encode(II)}function ll(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["lastUpdated",getI64Encoder()],["metadataUri",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:II}))}function vI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["lastUpdated",getI64Decoder()],["metadataUri",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function NCt(){return combineCodec(ll(),vI())}async function LCt(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.owner.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.owner),c(n.systemProgram)],data:ll().encode(s),programAddress:r})}function MI(e,t){let r=t?.programAddress??a,n={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agent),c(n.owner),c(n.systemProgram)],data:ll().encode(s),programAddress:r})}function KCt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agent:r(),owner:r(),systemProgram:r()},data:vI().decode(e.data)}}var II,dte=i(()=>{f();x();II=new Uint8Array([87,146,181,198,252,68,243,102]);});function oRt(){return fixEncoderSize(getBytesEncoder(),8).encode(wI)}function ml(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newMetrics",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:wI}))}function UI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newMetrics",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function cRt(){return combineCodec(ml(),UI())}async function sRt(e,t){let r=t?.programAddress??a,n={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.userRegistry.value||(n.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(n.owner.value))]})),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dashboard),c(n.userRegistry),c(n.owner),c(n.clock)],data:ml().encode(s),programAddress:r})}function iRt(e,t){let r=t?.programAddress??a,n={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.dashboard),c(n.userRegistry),c(n.owner),c(n.clock)],data:ml().encode(s),programAddress:r})}function aRt(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{dashboard:r(),userRegistry:r(),owner:r(),clock:r()},data:UI().decode(e.data)}}var wI,gte=i(()=>{f();x();wI=new Uint8Array([184,35,106,114,27,86,233,32]);});function xRt(){return fixEncoderSize(getBytesEncoder(),8).encode(_I)}function OI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newReservePrice",getU64Encoder()],["revealHidden",getBooleanEncoder()]]),e=>({...e,discriminator:_I}))}function zI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newReservePrice",getU64Decoder()],["revealHidden",getBooleanDecoder()]])}function ERt(){return combineCodec(OI(),zI())}function SRt(e,t){let r=t?.programAddress??a,n={auction:{value:e.auction??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.auction),c(n.authority),c(n.clock)],data:OI().encode(s),programAddress:r})}function PRt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{auction:r(),authority:r(),clock:r()},data:zI().decode(e.data)}}var _I,lte=i(()=>{f();x();_I=new Uint8Array([97,2,209,24,27,236,50,174]);});function MRt(){return fixEncoderSize(getBytesEncoder(),8).encode(FI)}function yl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newMetadata",Re()]]),e=>({...e,discriminator:FI}))}function GI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newMetadata",he()]])}function kRt(){return combineCodec(yl(),GI())}async function wRt(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e};n.reentrancyGuard.value||(n.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.reentrancyGuard),c(n.authority)],data:yl().encode(s),programAddress:r})}function BI(e,t){let r=t?.programAddress??a,n={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.channel),c(n.reentrancyGuard),c(n.authority)],data:yl().encode(s),programAddress:r})}function URt(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),authority:r()},data:GI().decode(e.data)}}var FI,yte=i(()=>{f();x();p();FI=new Uint8Array([149,67,63,108,132,122,95,128]);});function JRt(){return fixEncoderSize(getBytesEncoder(),8).encode(KI)}function VI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["currentDemand",getU64Encoder()],["peakDemand",getU64Encoder()],["averageDemand",getU64Encoder()],["demandTrend",getI32Encoder()],["demandVolatility",getU32Encoder()],["lastUpdated",getI64Encoder()]]),e=>({...e,discriminator:KI}))}function HI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["currentDemand",getU64Decoder()],["peakDemand",getU64Decoder()],["averageDemand",getU64Decoder()],["demandTrend",getI32Decoder()],["demandVolatility",getU32Decoder()],["lastUpdated",getI64Decoder()]])}function jRt(){return combineCodec(VI(),HI())}function qRt(e,t){let r=t?.programAddress??a,n={engine:{value:e.engine??null,isWritable:true},updater:{value:e.updater??null,isWritable:false}},s={...e},c=d(r);return Object.freeze({accounts:[c(n.engine),c(n.updater)],data:VI().encode(s),programAddress:r})}function $Rt(e){if(e.accounts.length<2)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{engine:r(),updater:r()},data:HI().decode(e.data)}}var KI,xte=i(()=>{f();x();KI=new Uint8Array([22,97,198,34,14,133,83,168]);});function nht(){return fixEncoderSize(getBytesEncoder(),8).encode(JI)}function jI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["volume",getU64Encoder()],["price",getU64Encoder()]]),e=>({...e,discriminator:JI}))}function qI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["volume",getU64Decoder()],["price",getU64Decoder()]])}function rht(){return combineCodec(jI(),qI())}function oht(e,t){let r=t?.programAddress??a,n={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.marketAnalytics),c(n.authority),c(n.clock)],data:jI().encode(s),programAddress:r})}function cht(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{marketAnalytics:r(),authority:r(),clock:r()},data:qI().decode(e.data)}}var JI,bte=i(()=>{f();x();JI=new Uint8Array([156,13,81,78,11,3,54,178]);});function Rht(){return fixEncoderSize(getBytesEncoder(),8).encode(XI)}function Tl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["participant",getAddressEncoder()],["participantType",M()],["servicesOffered",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["reputationScore",getU8Encoder()]]),e=>({...e,discriminator:XI}))}function QI(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["participant",getAddressDecoder()],["participantType",k()],["servicesOffered",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["reputationScore",getU8Decoder()]])}function hht(){return combineCodec(Tl(),QI())}async function Iht(e,t){let r=t?.programAddress??a,n={status:{value:e.status??null,isWritable:true},participant:{value:e.participant??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,participant:e.participantArg};n.status.value||(n.status.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([112,97,114,116,105,99,105,112,97,110,116,95,115,116,97,116,117,115])),getAddressEncoder().encode(T(n.participant.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.status),c(n.participant),c(n.systemProgram)],data:Tl().encode(s),programAddress:r})}function vht(e,t){let r=t?.programAddress??a,n={status:{value:e.status??null,isWritable:true},participant:{value:e.participant??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,participant:e.participantArg};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.status),c(n.participant),c(n.systemProgram)],data:Tl().encode(s),programAddress:r})}function Mht(e){if(e.accounts.length<3)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{status:r(),participant:r(),systemProgram:r()},data:QI().decode(e.data)}}var XI,hte=i(()=>{f();x();p();XI=new Uint8Array([209,212,168,98,6,160,241,123]);});function Lht(){return fixEncoderSize(getBytesEncoder(),8).encode(ev)}function fl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["transferFeeBasisPoints",getU16Encoder()],["maximumFee",getU64Encoder()],["transferFeeAuthority",getOptionEncoder(getAddressEncoder())],["withdrawWithheldAuthority",getOptionEncoder(getAddressEncoder())]]),e=>({...e,discriminator:ev}))}function tv(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["transferFeeBasisPoints",getU16Decoder()],["maximumFee",getU64Decoder()],["transferFeeAuthority",getOptionDecoder(getAddressDecoder())],["withdrawWithheldAuthority",getOptionDecoder(getAddressDecoder())]])}function Kht(){return combineCodec(fl(),tv())}async function Vht(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.agent.value||(n.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(n.authority.value))]})),n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.tokenProgram)],data:fl().encode(s),programAddress:r})}function Hht(e,t){let r=t?.programAddress??a,n={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};n.tokenProgram.value||(n.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let c=d(r);return Object.freeze({accounts:[c(n.authority),c(n.mint),c(n.agent),c(n.tokenProgram)],data:fl().encode(s),programAddress:r})}function Jht(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),tokenProgram:r()},data:tv().decode(e.data)}}var ev,wte=i(()=>{f();x();ev=new Uint8Array([167,83,107,237,1,210,249,1]);});function pIt(){return fixEncoderSize(getBytesEncoder(),8).encode(ov)}function xl(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedCapabilities",getArrayEncoder(getU64Encoder())],["verifiedAt",getI64Encoder()]]),e=>({...e,discriminator:ov}))}function cv(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedCapabilities",getArrayDecoder(getU64Decoder())],["verifiedAt",getI64Decoder()]])}function lIt(){return combineCodec(xl(),cv())}async function sv(e,t){let r=t?.programAddress??a,n={agentVerification:{value:e.agentVerification??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},verifier:{value:e.verifier??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.agentVerification.value||(n.agentVerification.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,118,101,114,105,102,105,99,97,116,105,111,110])),getAddressEncoder().encode(T(n.agent.value)),getAddressEncoder().encode(T(n.verifier.value))]})),n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentVerification),c(n.agent),c(n.verifier),c(n.systemProgram),c(n.clock)],data:xl().encode(s),programAddress:r})}function mIt(e,t){let r=t?.programAddress??a,n={agentVerification:{value:e.agentVerification??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},verifier:{value:e.verifier??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};n.systemProgram.value||(n.systemProgram.value="11111111111111111111111111111111"),n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.agentVerification),c(n.agent),c(n.verifier),c(n.systemProgram),c(n.clock)],data:xl().encode(s),programAddress:r})}function yIt(e){if(e.accounts.length<5)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{agentVerification:r(),agent:r(),verifier:r(),systemProgram:r(),clock:r()},data:cv().decode(e.data)}}var ov,_te=i(()=>{f();x();ov=new Uint8Array([206,212,108,12,105,61,100,66]);});function kIt(){return fixEncoderSize(getBytesEncoder(),8).encode(iv)}function av(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["verificationNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:iv}))}function dv(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["verificationNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function wIt(){return combineCodec(av(),dv())}function UIt(e,t){let r=t?.programAddress??a,n={workOrder:{value:e.workOrder??null,isWritable:true},workDelivery:{value:e.workDelivery??null,isWritable:false},client:{value:e.client??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};n.clock.value||(n.clock.value="SysvarC1ock11111111111111111111111111111111");let c=d(r);return Object.freeze({accounts:[c(n.workOrder),c(n.workDelivery),c(n.client),c(n.clock)],data:av().encode(s),programAddress:r})}function _It(e){if(e.accounts.length<4)throw new Error("Not enough accounts");let t=0,r=()=>{let o=e.accounts[t];return t+=1,o};return {programAddress:e.programAddress,accounts:{workOrder:r(),workDelivery:r(),client:r(),clock:r()},data:dv().decode(e.data)}}var iv,Wte=i(()=>{f();x();iv=new Uint8Array([51,21,40,11,225,15,184,230]);});var Fte=i(()=>{Eq();Dq();Cq();Iq();Wq();Bq();Lq();Hq();jq();Xq();Zq();e$();n$();u$();x$();b$();w$();O$();V$();J$();X$();Y$();nX();oX();dX();AX();yX();PX();bX();IX();wX();OX();FX();HX();qX();QX();YX();nQ();oQ();iQ();uQ();pQ();yQ();xQ();PQ();CQ();IQ();kQ();_Q();WQ();BQ();VQ();jQ();ZQ();eZ();rZ();cZ();lZ();yZ();fZ();EZ();bZ();vZ();kZ();UZ();OZ();FZ();NZ();KZ();JZ();$Z();QZ();YZ();tY();aY();xY();SY();DY();hY();vY();FY();BY();LY();VY();tee();oee();Aee();mee();fee();Ree();Iee();zee();Gee();Lee();Vee();Yee();rte();ste();dte();gte();lte();yte();xte();bte();hte();wte();_te();Wte();});var El={};jv(El,{A2_A_MESSAGE_DISCRIMINATOR:()=>Ll,A2_A_SESSION_DISCRIMINATOR:()=>Hl,A2_A_STATUS_DISCRIMINATOR:()=>ql,ACCEPT_JOB_APPLICATION_DISCRIMINATOR:()=>ZS,ACTIVATE_AGENT_DISCRIMINATOR:()=>nP,ADD_MESSAGE_REACTION_DISCRIMINATOR:()=>sP,ADD_TOP_AGENT_DISCRIMINATOR:()=>dP,AGENT_DISCRIMINATOR:()=>Sf,AGENT_INCENTIVES_DISCRIMINATOR:()=>bf,AGENT_TREE_CONFIG_DISCRIMINATOR:()=>hf,AGENT_VERIFICATION_DISCRIMINATOR:()=>Mf,ANALYTICS_DASHBOARD_DISCRIMINATOR:()=>Of,APPLY_TO_JOB_DISCRIMINATOR:()=>mP,APPROVE_EXTENSION_DISCRIMINATOR:()=>fP,ARBITRATOR_REGISTRY_DISCRIMINATOR:()=>Ff,ASSIGN_ARBITRATOR_DISCRIMINATOR:()=>DP,AUCTION_MARKETPLACE_DISCRIMINATOR:()=>Nf,AUDIT_TRAIL_DISCRIMINATOR:()=>Jf,AccountState:()=>Go,ActionType:()=>mg,ActivationRequirementType:()=>Vo,ApplicationStatus:()=>tc,AuctionStatus:()=>uc,AuctionType:()=>Qn,AuditAction:()=>pc,AuthenticationLevel:()=>Ec,AuthenticationMethod:()=>Dc,BATCH_REPLICATE_AGENTS_DISCRIMINATOR:()=>CP,BULK_DEAL_DISCRIMINATOR:()=>Qf,BackupFrequency:()=>zc,BiometricStorageMethod:()=>Nc,BiometricType:()=>Lc,CANCEL_ESCROW_DISCRIMINATOR:()=>vP,CAST_VOTE_DISCRIMINATOR:()=>wP,CAST_VOTE_ENHANCED_DISCRIMINATOR:()=>zP,CHANNEL_DISCRIMINATOR:()=>ex,CLAIM_STAKING_REWARDS_DISCRIMINATOR:()=>GP,COMMUNICATION_MESSAGE_DISCRIMINATOR:()=>dx,COMMUNICATION_SESSION_DISCRIMINATOR:()=>Ax,COMPLETE_ESCROW_DISCRIMINATOR:()=>LP,COMPLIANCE_REPORT_DISCRIMINATOR:()=>xx,CONFIGURE_X402_DISCRIMINATOR:()=>qP,CREATE_A2A_SESSION_DISCRIMINATOR:()=>ZP,CREATE_ANALYTICS_DASHBOARD_DISCRIMINATOR:()=>eD,CREATE_BULK_DEAL_DISCRIMINATOR:()=>rD,CREATE_CHANNEL_DISCRIMINATOR:()=>cD,CREATE_COMMUNICATION_SESSION_DISCRIMINATOR:()=>uD,CREATE_DYNAMIC_PRICING_ENGINE_DISCRIMINATOR:()=>pD,CREATE_ENHANCED_CHANNEL_DISCRIMINATOR:()=>mD,CREATE_ESCROW_DISCRIMINATOR:()=>fD,CREATE_ESCROW_WITH_SOL_DISCRIMINATOR:()=>SD,CREATE_INCENTIVE_PROGRAM_DISCRIMINATOR:()=>CD,CREATE_JOB_POSTING_DISCRIMINATOR:()=>MD,CREATE_MARKET_ANALYTICS_DISCRIMINATOR:()=>_D,CREATE_MULTISIG_DISCRIMINATOR:()=>WD,CREATE_REPLICATION_TEMPLATE_DISCRIMINATOR:()=>KD,CREATE_ROYALTY_STREAM_DISCRIMINATOR:()=>JD,CREATE_SERVICE_AUCTION_DISCRIMINATOR:()=>XD,CREATE_SERVICE_LISTING_DISCRIMINATOR:()=>YD,CREATE_STAKING_ACCOUNT_DISCRIMINATOR:()=>nb,CREATE_TOKEN2022_MINT_DISCRIMINATOR:()=>cb,CREATE_WORK_ORDER_DISCRIMINATOR:()=>lb,ChannelType:()=>Zn,ConditionType:()=>ts,ConstraintOperator:()=>as,ContractStatus:()=>ds,DEACTIVATE_AGENT_DISCRIMINATOR:()=>fb,DELEGATE_VOTE_DISCRIMINATOR:()=>Pb,DISPUTE_CASE_DISCRIMINATOR:()=>bx,DISPUTE_ESCROW_DISCRIMINATOR:()=>Rb,DISTRIBUTE_INCENTIVES_DISCRIMINATOR:()=>vb,DYNAMIC_PRICING_ENGINE_DISCRIMINATOR:()=>hx,DataAccessLevel:()=>As,DealType:()=>Ts,DegradationHandling:()=>fs,Deliverable:()=>Ss,DisputeStatus:()=>bs,DutchAuctionDecayType:()=>vs,ESCROW_DISCRIMINATOR:()=>Fx,EXECUTE_BULK_DEAL_BATCH_DISCRIMINATOR:()=>Ub,EXECUTE_PROPOSAL_DISCRIMINATOR:()=>Ob,EXPORT_ACTION_DISCRIMINATOR:()=>Fb,EXPORT_AUDIT_CONTEXT_DISCRIMINATOR:()=>Nb,EXPORT_BIOMETRIC_QUALITY_DISCRIMINATOR:()=>Vb,EXPORT_COMPLIANCE_STATUS_DISCRIMINATOR:()=>jb,EXPORT_DYNAMIC_PRICING_CONFIG_DISCRIMINATOR:()=>Xb,EXPORT_MULTISIG_CONFIG_DISCRIMINATOR:()=>Yb,EXPORT_REPORT_ENTRY_DISCRIMINATOR:()=>nC,EXPORT_RESOURCE_CONSTRAINTS_DISCRIMINATOR:()=>cC,EXPORT_RULE_CONDITION_DISCRIMINATOR:()=>aC,EXTEND_AUCTION_FOR_RESERVE_DISCRIMINATOR:()=>gC,EXTEND_LOCKUP_DISCRIMINATOR:()=>lC,EXTENSION_DISCRIMINATOR:()=>Nx,EnforcementLevel:()=>zs,EscrowStatus:()=>Gs,ExtensionStatus:()=>Js,ExtensionType:()=>$s,FILE_DISPUTE_DISCRIMINATOR:()=>TC,FINALIZE_AUCTION_DISCRIMINATOR:()=>xC,GENERATE_COMPLIANCE_REPORT_DISCRIMINATOR:()=>bC,GHOSTSPEAK_MARKETPLACE_ERROR__DEFAULT_KEY_AS_ADMIN:()=>uq,GHOSTSPEAK_MARKETPLACE_ERROR__SYSTEM_PROGRAM_AS_ADMIN:()=>dq,GHOSTSPEAK_MARKETPLACE_ERROR__TEST_ADDRESS_ON_MAINNET:()=>Aq,GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ADMIN:()=>gq,GHOSTSPEAK_MARKETPLACE_ERROR__VALIDATION_FAILED:()=>pq,GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS:()=>a,GOVERNANCE_PROPOSAL_DISCRIMINATOR:()=>Jx,GhostspeakMarketplaceAccount:()=>sq,GhostspeakMarketplaceInstruction:()=>iq,INCENTIVE_PROGRAM_DISCRIMINATOR:()=>$x,INITIALIZE_AUDIT_TRAIL_DISCRIMINATOR:()=>hC,INITIALIZE_CONFIDENTIAL_TRANSFER_MINT_DISCRIMINATOR:()=>MC,INITIALIZE_DEFAULT_ACCOUNT_STATE_DISCRIMINATOR:()=>_C,INITIALIZE_GOVERNANCE_PROPOSAL_DISCRIMINATOR:()=>FC,INITIALIZE_INTEREST_BEARING_CONFIG_DISCRIMINATOR:()=>NC,INITIALIZE_MINT_CLOSE_AUTHORITY_DISCRIMINATOR:()=>HC,INITIALIZE_RBAC_CONFIG_DISCRIMINATOR:()=>$C,INITIALIZE_STAKING_CONFIG_DISCRIMINATOR:()=>ZC,INITIATE_NEGOTIATION_DISCRIMINATOR:()=>tR,INIT_REENTRANCY_GUARD_DISCRIMINATOR:()=>oR,JOB_APPLICATION_DISCRIMINATOR:()=>eE,JOB_CONTRACT_DISCRIMINATOR:()=>cE,JOB_POSTING_DISCRIMINATOR:()=>AE,JOIN_CHANNEL_DISCRIMINATOR:()=>iR,LEAVE_CHANNEL_DISCRIMINATOR:()=>gR,LIST_AGENT_FOR_RESALE_DISCRIMINATOR:()=>mR,MAKE_COUNTER_OFFER_DISCRIMINATOR:()=>TR,MANAGE_AGENT_STATUS_DISCRIMINATOR:()=>SR,MARKET_ANALYTICS_DISCRIMINATOR:()=>mE,MESSAGE_DISCRIMINATOR:()=>fE,MULTISIG_DISCRIMINATOR:()=>DE,MessageType:()=>cr,MultisigType:()=>Ri,NEGOTIATION_CHATBOT_DISCRIMINATOR:()=>IE,NegotiationStatus:()=>vi,NotificationMethod:()=>zi,NotificationPriority:()=>Gi,NotificationTargetType:()=>Xi,NotificationTiming:()=>Qi,PARTICIPANT_STATUS_DISCRIMINATOR:()=>kE,PAYMENT_DISCRIMINATOR:()=>_E,PLACE_AUCTION_BID_DISCRIMINATOR:()=>DR,PLACE_DUTCH_AUCTION_BID_DISCRIMINATOR:()=>hR,PROCESS_ESCROW_PAYMENT_DISCRIMINATOR:()=>MR,PROCESS_PARTIAL_REFUND_DISCRIMINATOR:()=>UR,PROCESS_PAYMENT_DISCRIMINATOR:()=>WR,PURCHASE_SERVICE_DISCRIMINATOR:()=>LR,ParticipantType:()=>Zi,PermissionConstraintType:()=>Sa,PolicyStatus:()=>_a,PolicyType:()=>Oa,PricingAlgorithm:()=>za,PricingModel:()=>Wa,ProposalStatus:()=>sr,ProposalType:()=>ir,PurchaseStatus:()=>Va,QuorumMethod:()=>ja,QuotaResetBehavior:()=>Pg,RBAC_CONFIG_DISCRIMINATOR:()=>NE,RECORD_X402_PAYMENT_DISCRIMINATOR:()=>HR,REENTRANCY_GUARD_DISCRIMINATOR:()=>VE,REFUND_EXPIRED_ESCROW_DISCRIMINATOR:()=>$R,REGISTER_AGENT_COMPRESSED_DISCRIMINATOR:()=>th,REGISTER_AGENT_DISCRIMINATOR:()=>ZR,REGISTER_EXTENSION_DISCRIMINATOR:()=>ch,REJECT_WORK_DELIVERY_DISCRIMINATOR:()=>ih,REPLICATE_AGENT_DISCRIMINATOR:()=>gh,REPLICATION_RECORD_DISCRIMINATOR:()=>jE,REPLICATION_TEMPLATE_DISCRIMINATOR:()=>eS,RESALE_MARKET_DISCRIMINATOR:()=>cS,RESET_REENTRANCY_GUARD_DISCRIMINATOR:()=>lh,RESOLVE_DISPUTE_DISCRIMINATOR:()=>Th,ROYALTY_STREAM_DISCRIMINATOR:()=>aS,ReentrancyState:()=>Za,ReportStatus:()=>ad,ReportType:()=>gd,ReportingFrequency:()=>id,RiskCategory:()=>fd,RiskLevel:()=>Cd,RoleStatus:()=>Vd,RoleType:()=>Hd,RuleEffect:()=>Jd,SEND_A2A_MESSAGE_DISCRIMINATOR:()=>xh,SEND_COMMUNICATION_MESSAGE_DISCRIMINATOR:()=>Ih,SEND_ENHANCED_MESSAGE_DISCRIMINATOR:()=>wh,SEND_MESSAGE_DISCRIMINATOR:()=>Oh,SERVICE_LISTING_DISCRIMINATOR:()=>pS,SERVICE_PURCHASE_DISCRIMINATOR:()=>ES,STAKE_TOKENS_DISCRIMINATOR:()=>Fh,STAKING_ACCOUNT_DISCRIMINATOR:()=>CS,STAKING_CONFIG_DISCRIMINATOR:()=>MS,SUBMIT_DISPUTE_EVIDENCE_DISCRIMINATOR:()=>Nh,SUBMIT_EVIDENCE_BATCH_DISCRIMINATOR:()=>Vh,SUBMIT_WORK_DELIVERY_DISCRIMINATOR:()=>jh,SUBMIT_X402_RATING_DISCRIMINATOR:()=>tI,ScopeInheritance:()=>$d,ScopeType:()=>Xd,SecurityEventType:()=>Qd,SodConstraintType:()=>ou,StepUpTrigger:()=>cu,TALLY_VOTES_DISCRIMINATOR:()=>oI,TimeLockType:()=>uu,TransactionPriority:()=>pu,TransactionStatus:()=>lu,TransactionType:()=>mu,TrendDirection:()=>fu,UNSTAKE_TOKENS_DISCRIMINATOR:()=>dI,UPDATE_A2A_STATUS_DISCRIMINATOR:()=>AI,UPDATE_AGENT_DISCRIMINATOR:()=>mI,UPDATE_AGENT_REPUTATION_DISCRIMINATOR:()=>xI,UPDATE_AGENT_SERVICE_DISCRIMINATOR:()=>II,UPDATE_ANALYTICS_DASHBOARD_DISCRIMINATOR:()=>wI,UPDATE_AUCTION_RESERVE_PRICE_DISCRIMINATOR:()=>_I,UPDATE_CHANNEL_SETTINGS_DISCRIMINATOR:()=>FI,UPDATE_DYNAMIC_PRICING_DISCRIMINATOR:()=>KI,UPDATE_MARKET_ANALYTICS_DISCRIMINATOR:()=>JI,UPDATE_PARTICIPANT_STATUS_DISCRIMINATOR:()=>XI,UPDATE_TRANSFER_FEE_CONFIG_DISCRIMINATOR:()=>ev,USER_REGISTRY_DISCRIMINATOR:()=>US,UnlockMethod:()=>xu,VERIFY_AGENT_DISCRIMINATOR:()=>ov,VERIFY_WORK_DELIVERY_DISCRIMINATOR:()=>iv,ValueType:()=>Eu,ViolationSeverity:()=>Su,VoteChoice:()=>st,WORK_DELIVERY_DISCRIMINATOR:()=>zS,WORK_ORDER_DISCRIMINATOR:()=>jS,WorkOrderStatus:()=>Mu,decodeA2AMessage:()=>Vl,decodeA2ASession:()=>jl,decodeA2AStatus:()=>Xl,decodeAgent:()=>Df,decodeAgentIncentives:()=>Rf,decodeAgentTreeConfig:()=>vf,decodeAgentVerification:()=>wf,decodeAnalyticsDashboard:()=>Wf,decodeArbitratorRegistry:()=>Bf,decodeAuctionMarketplace:()=>Kf,decodeAuditTrail:()=>qf,decodeBulkDeal:()=>Yf,decodeChannel:()=>nx,decodeCommunicationMessage:()=>gx,decodeCommunicationSession:()=>lx,decodeComplianceReport:()=>Sx,decodeDisputeCase:()=>Rx,decodeDynamicPricingEngine:()=>vx,decodeEscrow:()=>Bx,decodeExtension:()=>Kx,decodeGovernanceProposal:()=>qx,decodeIncentiveProgram:()=>Qx,decodeJobApplication:()=>nE,decodeJobContract:()=>iE,decodeJobPosting:()=>lE,decodeMarketAnalytics:()=>TE,decodeMessage:()=>EE,decodeMultisig:()=>CE,decodeNegotiationChatbot:()=>ME,decodeParticipantStatus:()=>UE,decodePayment:()=>zE,decodeRbacConfig:()=>KE,decodeReentrancyGuard:()=>JE,decodeReplicationRecord:()=>$E,decodeReplicationTemplate:()=>nS,decodeResaleMarket:()=>iS,decodeRoyaltyStream:()=>uS,decodeServiceListing:()=>mS,decodeServicePurchase:()=>PS,decodeStakingAccount:()=>hS,decodeStakingConfig:()=>wS,decodeUserRegistry:()=>OS,decodeWorkDelivery:()=>FS,decodeWorkOrder:()=>$S,delegationScope:()=>c1e,fetchA2AMessage:()=>pne,fetchA2ASession:()=>_ne,fetchA2AStatus:()=>cre,fetchAgent:()=>B3e,fetchAgentIncentives:()=>g5e,fetchAgentTreeConfig:()=>k5e,fetchAgentVerification:()=>Q5e,fetchAllA2AMessage:()=>lne,fetchAllA2ASession:()=>One,fetchAllA2AStatus:()=>sre,fetchAllAgent:()=>N3e,fetchAllAgentIncentives:()=>A5e,fetchAllAgentTreeConfig:()=>w5e,fetchAllAgentVerification:()=>Z5e,fetchAllAnalyticsDashboard:()=>D9e,fetchAllArbitratorRegistry:()=>L9e,fetchAllAuctionMarketplace:()=>dNe,fetchAllAuditTrail:()=>INe,fetchAllBulkDeal:()=>tLe,fetchAllChannel:()=>PLe,fetchAllCommunicationMessage:()=>HLe,fetchAllCommunicationSession:()=>AKe,fetchAllComplianceReport:()=>vKe,fetchAllDisputeCase:()=>ZKe,fetchAllDynamicPricingEngine:()=>S7e,fetchAllEscrow:()=>L7e,fetchAllExtension:()=>pVe,fetchAllGovernanceProposal:()=>wVe,fetchAllIncentiveProgram:()=>tHe,fetchAllJobApplication:()=>DHe,fetchAllJobContract:()=>LHe,fetchAllJobPosting:()=>aJe,fetchAllMarketAnalytics:()=>vJe,fetchAllMaybeA2AMessage:()=>sM,fetchAllMaybeA2ASession:()=>PM,fetchAllMaybeA2AStatus:()=>_M,fetchAllMaybeAgent:()=>tL,fetchAllMaybeAgentIncentives:()=>iL,fetchAllMaybeAgentTreeConfig:()=>mL,fetchAllMaybeAgentVerification:()=>CL,fetchAllMaybeAnalyticsDashboard:()=>OL,fetchAllMaybeArbitratorRegistry:()=>HL,fetchAllMaybeAuctionMarketplace:()=>tK,fetchAllMaybeAuditTrail:()=>dK,fetchAllMaybeBulkDeal:()=>xK,fetchAllMaybeChannel:()=>kK,fetchAllMaybeCommunicationMessage:()=>GK,fetchAllMaybeCommunicationSession:()=>t7,fetchAllMaybeComplianceReport:()=>c7,fetchAllMaybeDisputeCase:()=>x7,fetchAllMaybeDynamicPricingEngine:()=>h7,fetchAllMaybeEscrow:()=>O7,fetchAllMaybeExtension:()=>j7,fetchAllMaybeGovernanceProposal:()=>cV,fetchAllMaybeIncentiveProgram:()=>pV,fetchAllMaybeJobApplication:()=>hV,fetchAllMaybeJobContract:()=>UV,fetchAllMaybeJobPosting:()=>KV,fetchAllMaybeMarketAnalytics:()=>tH,fetchAllMaybeMessage:()=>dH,fetchAllMaybeMultisig:()=>DH,fetchAllMaybeNegotiationChatbot:()=>UH,fetchAllMaybeParticipantStatus:()=>NH,fetchAllMaybePayment:()=>$H,fetchAllMaybeRbacConfig:()=>rJ,fetchAllMaybeReentrancyGuard:()=>dJ,fetchAllMaybeReplicationRecord:()=>TJ,fetchAllMaybeReplicationTemplate:()=>CJ,fetchAllMaybeResaleMarket:()=>OJ,fetchAllMaybeRoyaltyStream:()=>HJ,fetchAllMaybeServiceListing:()=>QJ,fetchAllMaybeServicePurchase:()=>dj,fetchAllMaybeStakingAccount:()=>xj,fetchAllMaybeStakingConfig:()=>kj,fetchAllMaybeUserRegistry:()=>Wj,fetchAllMaybeWorkDelivery:()=>Qj,fetchAllMaybeWorkOrder:()=>rq,fetchAllMessage:()=>nje,fetchAllMultisig:()=>Tje,fetchAllNegotiationChatbot:()=>Bje,fetchAllParticipantStatus:()=>mqe,fetchAllPayment:()=>Fqe,fetchAllRbacConfig:()=>t$e,fetchAllReentrancyGuard:()=>b$e,fetchAllReplicationRecord:()=>J$e,fetchAllReplicationTemplate:()=>TXe,fetchAllResaleMarket:()=>BXe,fetchAllRoyaltyStream:()=>iQe,fetchAllServiceListing:()=>OQe,fetchAllServicePurchase:()=>nZe,fetchAllStakingAccount:()=>xZe,fetchAllStakingConfig:()=>GZe,fetchAllUserRegistry:()=>dYe,fetchAllWorkDelivery:()=>kYe,fetchAllWorkOrder:()=>eet,fetchAnalyticsDashboard:()=>P9e,fetchArbitratorRegistry:()=>N9e,fetchAuctionMarketplace:()=>aNe,fetchAuditTrail:()=>hNe,fetchBulkDeal:()=>eLe,fetchChannel:()=>SLe,fetchCommunicationMessage:()=>VLe,fetchCommunicationSession:()=>gKe,fetchComplianceReport:()=>IKe,fetchDisputeCase:()=>QKe,fetchDynamicPricingEngine:()=>E7e,fetchEscrow:()=>N7e,fetchExtension:()=>AVe,fetchGovernanceProposal:()=>kVe,fetchIncentiveProgram:()=>eHe,fetchJobApplication:()=>PHe,fetchJobContract:()=>NHe,fetchJobPosting:()=>iJe,fetchMarketAnalytics:()=>IJe,fetchMaybeA2AMessage:()=>cM,fetchMaybeA2ASession:()=>SM,fetchMaybeA2AStatus:()=>UM,fetchMaybeAgent:()=>eL,fetchMaybeAgentIncentives:()=>sL,fetchMaybeAgentTreeConfig:()=>lL,fetchMaybeAgentVerification:()=>bL,fetchMaybeAnalyticsDashboard:()=>_L,fetchMaybeArbitratorRegistry:()=>VL,fetchMaybeAuctionMarketplace:()=>eK,fetchMaybeAuditTrail:()=>aK,fetchMaybeBulkDeal:()=>fK,fetchMaybeChannel:()=>MK,fetchMaybeCommunicationMessage:()=>FK,fetchMaybeCommunicationSession:()=>e7,fetchMaybeComplianceReport:()=>o7,fetchMaybeDisputeCase:()=>f7,fetchMaybeDynamicPricingEngine:()=>R7,fetchMaybeEscrow:()=>_7,fetchMaybeExtension:()=>J7,fetchMaybeGovernanceProposal:()=>oV,fetchMaybeIncentiveProgram:()=>AV,fetchMaybeJobApplication:()=>RV,fetchMaybeJobContract:()=>wV,fetchMaybeJobPosting:()=>LV,fetchMaybeMarketAnalytics:()=>eH,fetchMaybeMessage:()=>aH,fetchMaybeMultisig:()=>PH,fetchMaybeNegotiationChatbot:()=>wH,fetchMaybeParticipantStatus:()=>BH,fetchMaybePayment:()=>qH,fetchMaybeRbacConfig:()=>nJ,fetchMaybeReentrancyGuard:()=>aJ,fetchMaybeReplicationRecord:()=>yJ,fetchMaybeReplicationTemplate:()=>bJ,fetchMaybeResaleMarket:()=>_J,fetchMaybeRoyaltyStream:()=>VJ,fetchMaybeServiceListing:()=>XJ,fetchMaybeServicePurchase:()=>aj,fetchMaybeStakingAccount:()=>fj,fetchMaybeStakingConfig:()=>Mj,fetchMaybeUserRegistry:()=>zj,fetchMaybeWorkDelivery:()=>Xj,fetchMaybeWorkOrder:()=>nq,fetchMessage:()=>tje,fetchMultisig:()=>yje,fetchNegotiationChatbot:()=>Gje,fetchParticipantStatus:()=>lqe,fetchPayment:()=>Wqe,fetchRbacConfig:()=>e$e,fetchReentrancyGuard:()=>D$e,fetchReplicationRecord:()=>H$e,fetchReplicationTemplate:()=>yXe,fetchResaleMarket:()=>GXe,fetchRoyaltyStream:()=>sQe,fetchServiceListing:()=>_Qe,fetchServicePurchase:()=>tZe,fetchStakingAccount:()=>fZe,fetchStakingConfig:()=>FZe,fetchUserRegistry:()=>aYe,fetchWorkDelivery:()=>MYe,fetchWorkOrder:()=>YYe,getA2AMessageCodec:()=>Ane,getA2AMessageDataCodec:()=>BOe,getA2AMessageDataDecoder:()=>u3,getA2AMessageDataEncoder:()=>d3,getA2AMessageDecoder:()=>Kl,getA2AMessageDiscriminatorBytes:()=>gne,getA2AMessageEncoder:()=>oM,getA2AMessageSentEventCodec:()=>lre,getA2AMessageSentEventDecoder:()=>GM,getA2AMessageSentEventEncoder:()=>FM,getA2ASessionCodec:()=>Une,getA2ASessionCreatedEventCodec:()=>Pre,getA2ASessionCreatedEventDecoder:()=>VM,getA2ASessionCreatedEventEncoder:()=>KM,getA2ASessionDataCodec:()=>qOe,getA2ASessionDataDecoder:()=>S3,getA2ASessionDataEncoder:()=>E3,getA2ASessionDecoder:()=>Jl,getA2ASessionDiscriminatorBytes:()=>wne,getA2ASessionEncoder:()=>EM,getA2AStatusCodec:()=>ore,getA2AStatusDataCodec:()=>aze,getA2AStatusDataDecoder:()=>M3,getA2AStatusDataEncoder:()=>v3,getA2AStatusDecoder:()=>$l,getA2AStatusDiscriminatorBytes:()=>rre,getA2AStatusEncoder:()=>wM,getA2AStatusUpdatedEventCodec:()=>Fre,getA2AStatusUpdatedEventDecoder:()=>jM,getA2AStatusUpdatedEventEncoder:()=>JM,getAcceptJobApplicationDiscriminatorBytes:()=>yet,getAcceptJobApplicationInstruction:()=>fet,getAcceptJobApplicationInstructionAsync:()=>eP,getAcceptJobApplicationInstructionDataCodec:()=>Tet,getAcceptJobApplicationInstructionDataDecoder:()=>YS,getAcceptJobApplicationInstructionDataEncoder:()=>mA,getAccessAuditConfigCodec:()=>Vre,getAccessAuditConfigDecoder:()=>Po,getAccessAuditConfigEncoder:()=>So,getAccessPolicyCodec:()=>eoe,getAccessPolicyDecoder:()=>bo,getAccessPolicyEncoder:()=>Do,getAccountLockoutPoliciesCodec:()=>uoe,getAccountLockoutPoliciesDecoder:()=>zo,getAccountLockoutPoliciesEncoder:()=>Oo,getAccountStateCodec:()=>loe,getAccountStateDecoder:()=>oe,getAccountStateEncoder:()=>re,getActionCodec:()=>J6e,getActionConstraintCodec:()=>e3e,getActionConstraintDecoder:()=>Dn,getActionConstraintEncoder:()=>Pn,getActionDecoder:()=>xe,getActionEncoder:()=>fe,getActionExportCodec:()=>foe,getActionExportDecoder:()=>sk,getActionExportEncoder:()=>ck,getActionTypeCodec:()=>XBe,getActionTypeDecoder:()=>Sn,getActionTypeEncoder:()=>En,getActivateAgentDiscriminatorBytes:()=>_et,getActivateAgentInstruction:()=>oP,getActivateAgentInstructionAsync:()=>zet,getActivateAgentInstructionDataCodec:()=>Oet,getActivateAgentInstructionDataDecoder:()=>rP,getActivateAgentInstructionDataEncoder:()=>yA,getActivationRequirementCodec:()=>_oe,getActivationRequirementDecoder:()=>No,getActivationRequirementEncoder:()=>Bo,getActivationRequirementTypeCodec:()=>Foe,getActivationRequirementTypeDecoder:()=>Ko,getActivationRequirementTypeEncoder:()=>Lo,getAddMessageReactionDiscriminatorBytes:()=>Qet,getAddMessageReactionInstruction:()=>aP,getAddMessageReactionInstructionAsync:()=>Yet,getAddMessageReactionInstructionDataCodec:()=>Zet,getAddMessageReactionInstructionDataDecoder:()=>iP,getAddMessageReactionInstructionDataEncoder:()=>TA,getAddTopAgentDiscriminatorBytes:()=>dtt,getAddTopAgentInstruction:()=>gtt,getAddTopAgentInstructionDataCodec:()=>utt,getAddTopAgentInstructionDataDecoder:()=>gP,getAddTopAgentInstructionDataEncoder:()=>uP,getAgentAnalyticsEventCodec:()=>Xoe,getAgentAnalyticsEventDecoder:()=>mk,getAgentAnalyticsEventEncoder:()=>lk,getAgentCodec:()=>G3e,getAgentCustomizationCodec:()=>sce,getAgentCustomizationDecoder:()=>Se,getAgentCustomizationEncoder:()=>Ee,getAgentDecoder:()=>Pf,getAgentDiscriminatorBytes:()=>F3e,getAgentEncoder:()=>YN,getAgentIncentivesCodec:()=>u5e,getAgentIncentivesDecoder:()=>Cf,getAgentIncentivesDiscriminatorBytes:()=>d5e,getAgentIncentivesEncoder:()=>cL,getAgentIncentivesSize:()=>p5e,getAgentListedForResaleEventCodec:()=>Ace,getAgentListedForResaleEventDecoder:()=>Sk,getAgentListedForResaleEventEncoder:()=>Ek,getAgentPerformanceEntryCodec:()=>Ece,getAgentPerformanceEntryDecoder:()=>qo,getAgentPerformanceEntryEncoder:()=>jo,getAgentPerformanceUpdatedAnalyticsEventCodec:()=>Rce,getAgentPerformanceUpdatedAnalyticsEventDecoder:()=>kk,getAgentPerformanceUpdatedAnalyticsEventEncoder:()=>Mk,getAgentPerformanceUpdatedEventCodec:()=>zce,getAgentPerformanceUpdatedEventDecoder:()=>zk,getAgentPerformanceUpdatedEventEncoder:()=>Ok,getAgentRegisteredEventCodec:()=>qce,getAgentRegisteredEventDecoder:()=>Nk,getAgentRegisteredEventEncoder:()=>Bk,getAgentReplicatedEventCodec:()=>nse,getAgentReplicatedEventDecoder:()=>Vk,getAgentReplicatedEventEncoder:()=>Kk,getAgentServiceDataCodec:()=>Pze,getAgentServiceDataDecoder:()=>U3,getAgentServiceDataEncoder:()=>w3,getAgentServiceUpdatedEventCodec:()=>yse,getAgentServiceUpdatedEventDecoder:()=>$k,getAgentServiceUpdatedEventEncoder:()=>qk,getAgentStatusChangedEventCodec:()=>Pse,getAgentStatusChangedEventDecoder:()=>nw,getAgentStatusChangedEventEncoder:()=>tw,getAgentTreeConfigCodec:()=>M5e,getAgentTreeConfigDecoder:()=>If,getAgentTreeConfigDiscriminatorBytes:()=>v5e,getAgentTreeConfigEncoder:()=>pL,getAgentTreeConfigSize:()=>U5e,getAgentUpdatedEventCodec:()=>Ise,getAgentUpdatedEventDecoder:()=>iw,getAgentUpdatedEventEncoder:()=>sw,getAgentVerificationCodec:()=>X5e,getAgentVerificationDataCodec:()=>Jse,getAgentVerificationDataDecoder:()=>Xo,getAgentVerificationDataEncoder:()=>$o,getAgentVerificationDecoder:()=>kf,getAgentVerificationDiscriminatorBytes:()=>$5e,getAgentVerificationEncoder:()=>DL,getAgingPolicyCodec:()=>sie,getAgingPolicyDecoder:()=>Zo,getAgingPolicyEncoder:()=>Qo,getAnalyticsDashboardCodec:()=>S9e,getAnalyticsDashboardCreatedEventCodec:()=>lie,getAnalyticsDashboardCreatedEventDecoder:()=>lw,getAnalyticsDashboardCreatedEventEncoder:()=>pw,getAnalyticsDashboardDecoder:()=>zf,getAnalyticsDashboardDiscriminatorBytes:()=>E9e,getAnalyticsDashboardEncoder:()=>UL,getAnalyticsDashboardUpdatedEventCodec:()=>Eie,getAnalyticsDashboardUpdatedEventDecoder:()=>xw,getAnalyticsDashboardUpdatedEventEncoder:()=>fw,getAnalyticsDataPrunedEventCodec:()=>Mie,getAnalyticsDataPrunedEventDecoder:()=>Pw,getAnalyticsDataPrunedEventEncoder:()=>Sw,getAnalyticsMetricUpdatedEventCodec:()=>Vie,getAnalyticsMetricUpdatedEventDecoder:()=>Cw,getAnalyticsMetricUpdatedEventEncoder:()=>bw,getApplicationStatusCodec:()=>qie,getApplicationStatusDecoder:()=>rc,getApplicationStatusEncoder:()=>nc,getApplyToJobDiscriminatorBytes:()=>btt,getApplyToJobInstruction:()=>Rtt,getApplyToJobInstructionAsync:()=>TP,getApplyToJobInstructionDataCodec:()=>Ctt,getApplyToJobInstructionDataDecoder:()=>yP,getApplyToJobInstructionDataEncoder:()=>fA,getApprovalLevelCodec:()=>sae,getApprovalLevelDecoder:()=>cc,getApprovalLevelEncoder:()=>oc,getApproveExtensionDiscriminatorBytes:()=>_tt,getApproveExtensionInstruction:()=>SP,getApproveExtensionInstructionDataCodec:()=>Ott,getApproveExtensionInstructionDataDecoder:()=>EP,getApproveExtensionInstructionDataEncoder:()=>xP,getArbitratorAssignedEventCodec:()=>Aae,getArbitratorAssignedEventDecoder:()=>Mw,getArbitratorAssignedEventEncoder:()=>vw,getArbitratorRegistryCodec:()=>B9e,getArbitratorRegistryDecoder:()=>Gf,getArbitratorRegistryDiscriminatorBytes:()=>G9e,getArbitratorRegistryEncoder:()=>KL,getAssignArbitratorDiscriminatorBytes:()=>Jtt,getAssignArbitratorInstruction:()=>$tt,getAssignArbitratorInstructionAsync:()=>qtt,getAssignArbitratorInstructionDataCodec:()=>jtt,getAssignArbitratorInstructionDataDecoder:()=>bP,getAssignArbitratorInstructionDataEncoder:()=>xA,getAttachmentInfoCodec:()=>fae,getAttachmentInfoDecoder:()=>ic,getAttachmentInfoEncoder:()=>sc,getAuctionBidCodec:()=>Mae,getAuctionBidDecoder:()=>dc,getAuctionBidEncoder:()=>ac,getAuctionBidPlacedEventCodec:()=>Fae,getAuctionBidPlacedEventDecoder:()=>Ww,getAuctionBidPlacedEventEncoder:()=>zw,getAuctionDataCodec:()=>_ze,getAuctionDataDecoder:()=>F3,getAuctionDataEncoder:()=>W3,getAuctionExtendedForReserveEventCodec:()=>Zae,getAuctionExtendedForReserveEventDecoder:()=>Bw,getAuctionExtendedForReserveEventEncoder:()=>Gw,getAuctionFailedEventCodec:()=>ude,getAuctionFailedEventDecoder:()=>Kw,getAuctionFailedEventEncoder:()=>Lw,getAuctionFinalizedEventCodec:()=>yde,getAuctionFinalizedEventDecoder:()=>qw,getAuctionFinalizedEventEncoder:()=>jw,getAuctionMarketplaceCodec:()=>iNe,getAuctionMarketplaceDecoder:()=>Lf,getAuctionMarketplaceDiscriminatorBytes:()=>sNe,getAuctionMarketplaceEncoder:()=>YL,getAuctionReservePriceUpdatedEventCodec:()=>bde,getAuctionReservePriceUpdatedEventDecoder:()=>Qw,getAuctionReservePriceUpdatedEventEncoder:()=>Xw,getAuctionStatusCodec:()=>Ide,getAuctionStatusDecoder:()=>Ac,getAuctionStatusEncoder:()=>gc,getAuctionTypeCodec:()=>wde,getAuctionTypeDecoder:()=>se,getAuctionTypeEncoder:()=>ce,getAuditActionCodec:()=>zde,getAuditActionDecoder:()=>zt,getAuditActionEncoder:()=>Ot,getAuditConfigCodec:()=>Jde,getAuditConfigDecoder:()=>Ft,getAuditConfigEncoder:()=>Wt,getAuditContextCodec:()=>zBe,getAuditContextDecoder:()=>De,getAuditContextEncoder:()=>Pe,getAuditContextExportCodec:()=>Xde,getAuditContextExportDecoder:()=>sU,getAuditContextExportEncoder:()=>cU,getAuditEntryCodec:()=>oue,getAuditEntryDecoder:()=>xc,getAuditEntryEncoder:()=>fc,getAuditTrailCodec:()=>RNe,getAuditTrailDecoder:()=>jf,getAuditTrailDiscriminatorBytes:()=>CNe,getAuditTrailEncoder:()=>iK,getAuditTrailInitializedEventCodec:()=>fue,getAuditTrailInitializedEventDecoder:()=>lU,getAuditTrailInitializedEventEncoder:()=>pU,getAuthenticationLevelCodec:()=>Pue,getAuthenticationLevelDecoder:()=>Pc,getAuthenticationLevelEncoder:()=>Sc,getAuthenticationMethodCodec:()=>Rue,getAuthenticationMethodDecoder:()=>Cc,getAuthenticationMethodEncoder:()=>bc,getAuthenticationPoliciesCodec:()=>zue,getAuthenticationPoliciesDecoder:()=>hc,getAuthenticationPoliciesEncoder:()=>Rc,getAuthenticationStrengthCodec:()=>Lue,getAuthenticationStrengthDecoder:()=>vc,getAuthenticationStrengthEncoder:()=>Ic,getAuthorizationPoliciesCodec:()=>Jue,getAuthorizationPoliciesDecoder:()=>Oc,getAuthorizationPoliciesEncoder:()=>_c,getBackupFrequencyCodec:()=>Xue,getBackupFrequencyDecoder:()=>mc,getBackupFrequencyEncoder:()=>lc,getBatchReplicateAgentsDiscriminatorBytes:()=>int,getBatchReplicateAgentsInstruction:()=>dnt,getBatchReplicateAgentsInstructionDataCodec:()=>ant,getBatchReplicateAgentsInstructionDataDecoder:()=>hP,getBatchReplicateAgentsInstructionDataEncoder:()=>RP,getBatchReplicationRequestCodec:()=>Lze,getBatchReplicationRequestDecoder:()=>N3,getBatchReplicationRequestEncoder:()=>B3,getBidCommittedEventCodec:()=>sge,getBidCommittedEventDecoder:()=>vU,getBidCommittedEventEncoder:()=>IU,getBidRevealedEventCodec:()=>lge,getBidRevealedEventDecoder:()=>_U,getBidRevealedEventEncoder:()=>UU,getBiometricPoliciesCodec:()=>Pge,getBiometricPoliciesDecoder:()=>kc,getBiometricPoliciesEncoder:()=>Mc,getBiometricProtectionCodec:()=>Ige,getBiometricProtectionDecoder:()=>Fc,getBiometricProtectionEncoder:()=>Wc,getBiometricQualityCodec:()=>JBe,getBiometricQualityDecoder:()=>Ce,getBiometricQualityEncoder:()=>be,getBiometricQualityExportCodec:()=>wge,getBiometricQualityExportDecoder:()=>NU,getBiometricQualityExportEncoder:()=>BU,getBiometricStorageMethodCodec:()=>zge,getBiometricStorageMethodDecoder:()=>Bc,getBiometricStorageMethodEncoder:()=>Gc,getBiometricTypeCodec:()=>Bge,getBiometricTypeDecoder:()=>_t,getBiometricTypeEncoder:()=>Ut,getBulkDealBatchExecutedEventCodec:()=>Jge,getBulkDealBatchExecutedEventDecoder:()=>XU,getBulkDealBatchExecutedEventEncoder:()=>$U,getBulkDealCodec:()=>YNe,getBulkDealCreatedEventCodec:()=>Zge,getBulkDealCreatedEventDecoder:()=>YU,getBulkDealCreatedEventEncoder:()=>ZU,getBulkDealDataCodec:()=>eWe,getBulkDealDataDecoder:()=>X3,getBulkDealDataEncoder:()=>$3,getBulkDealDecoder:()=>Zf,getBulkDealDiscriminatorBytes:()=>ZNe,getBulkDealEncoder:()=>TK,getCancelEscrowDiscriminatorBytes:()=>bnt,getCancelEscrowInstruction:()=>kP,getCancelEscrowInstructionAsync:()=>Rnt,getCancelEscrowInstructionDataCodec:()=>Cnt,getCancelEscrowInstructionDataDecoder:()=>MP,getCancelEscrowInstructionDataEncoder:()=>EA,getCastVoteDiscriminatorBytes:()=>Lnt,getCastVoteEnhancedDiscriminatorBytes:()=>irt,getCastVoteEnhancedInstruction:()=>urt,getCastVoteEnhancedInstructionAsync:()=>drt,getCastVoteEnhancedInstructionDataCodec:()=>art,getCastVoteEnhancedInstructionDataDecoder:()=>WP,getCastVoteEnhancedInstructionDataEncoder:()=>SA,getCastVoteInstruction:()=>Zr,getCastVoteInstructionDataCodec:()=>Knt,getCastVoteInstructionDataDecoder:()=>_P,getCastVoteInstructionDataEncoder:()=>UP,getChannelCodec:()=>ELe,getChannelCreatedEventCodec:()=>nAe,getChannelCreatedEventDecoder:()=>o_,getChannelCreatedEventEncoder:()=>r_,getChannelCreationDataCodec:()=>AWe,getChannelCreationDataDecoder:()=>Y3,getChannelCreationDataEncoder:()=>Z3,getChannelDecoder:()=>tx,getChannelDiscriminatorBytes:()=>xLe,getChannelEncoder:()=>vK,getChannelMetadataCodec:()=>aAe,getChannelMetadataDecoder:()=>he,getChannelMetadataEncoder:()=>Re,getChannelSettingsCodec:()=>AAe,getChannelSettingsDecoder:()=>Xc,getChannelSettingsEncoder:()=>$c,getChannelSettingsUpdatedEventCodec:()=>fAe,getChannelSettingsUpdatedEventDecoder:()=>g_,getChannelSettingsUpdatedEventEncoder:()=>u_,getChannelTypeCodec:()=>PAe,getChannelTypeDecoder:()=>B,getChannelTypeEncoder:()=>G,getClaimStakingRewardsDiscriminatorBytes:()=>xrt,getClaimStakingRewardsInstruction:()=>Prt,getClaimStakingRewardsInstructionAsync:()=>Srt,getClaimStakingRewardsInstructionDataCodec:()=>Ert,getClaimStakingRewardsInstructionDataDecoder:()=>BP,getClaimStakingRewardsInstructionDataEncoder:()=>PA,getCollectorAgentPerformanceEventCodec:()=>wAe,getCollectorAgentPerformanceEventDecoder:()=>y_,getCollectorAgentPerformanceEventEncoder:()=>m_,getCommunicationMessageCodec:()=>KLe,getCommunicationMessageDataCodec:()=>EWe,getCommunicationMessageDataDecoder:()=>n5,getCommunicationMessageDataEncoder:()=>t5,getCommunicationMessageDecoder:()=>ux,getCommunicationMessageDiscriminatorBytes:()=>LLe,getCommunicationMessageEncoder:()=>WK,getCommunicationMessageSentEventCodec:()=>BAe,getCommunicationMessageSentEventDecoder:()=>S_,getCommunicationMessageSentEventEncoder:()=>E_,getCommunicationSessionCodec:()=>uKe,getCommunicationSessionCreatedEventCodec:()=>qAe,getCommunicationSessionCreatedEventDecoder:()=>R_,getCommunicationSessionCreatedEventEncoder:()=>C_,getCommunicationSessionDataCodec:()=>IWe,getCommunicationSessionDataDecoder:()=>p5,getCommunicationSessionDataEncoder:()=>A5,getCommunicationSessionDecoder:()=>px,getCommunicationSessionDiscriminatorBytes:()=>dKe,getCommunicationSessionEncoder:()=>YK,getCompleteEscrowDiscriminatorBytes:()=>Grt,getCompleteEscrowInstruction:()=>VP,getCompleteEscrowInstructionAsync:()=>Nrt,getCompleteEscrowInstructionDataCodec:()=>Brt,getCompleteEscrowInstructionDataDecoder:()=>KP,getCompleteEscrowInstructionDataEncoder:()=>DA,getComplianceFlagsCodec:()=>spe,getComplianceFlagsDecoder:()=>Bt,getComplianceFlagsEncoder:()=>Gt,getComplianceMetricsCodec:()=>Ape,getComplianceMetricsDecoder:()=>Zc,getComplianceMetricsEncoder:()=>Qc,getCompliancePoliciesCodec:()=>ype,getCompliancePoliciesDecoder:()=>es,getCompliancePoliciesEncoder:()=>Yc,getComplianceReportCodec:()=>hKe,getComplianceReportDecoder:()=>Ex,getComplianceReportDiscriminatorBytes:()=>RKe,getComplianceReportEncoder:()=>r7,getComplianceReportGeneratedEventCodec:()=>Ppe,getComplianceReportGeneratedEventDecoder:()=>__,getComplianceReportGeneratedEventEncoder:()=>U_,getComplianceStatusCodec:()=>VGe,getComplianceStatusDecoder:()=>ke,getComplianceStatusEncoder:()=>Me,getComplianceStatusExportCodec:()=>Rpe,getComplianceStatusExportDecoder:()=>W_,getComplianceStatusExportEncoder:()=>z_,getComplianceViolationCodec:()=>a3e,getComplianceViolationDecoder:()=>eg,getComplianceViolationEncoder:()=>Yu,getCompressedAgentCreatedEventCodec:()=>Fpe,getCompressedAgentCreatedEventDecoder:()=>J_,getCompressedAgentCreatedEventEncoder:()=>H_,getConditionTypeCodec:()=>Lpe,getConditionTypeDecoder:()=>Lt,getConditionTypeEncoder:()=>Nt,getConfidentialTransferInitializedEventCodec:()=>qpe,getConfidentialTransferInitializedEventDecoder:()=>e2,getConfidentialTransferInitializedEventEncoder:()=>Y_,getConfidentialTransferMintParamsCodec:()=>LWe,getConfidentialTransferMintParamsDecoder:()=>y5,getConfidentialTransferMintParamsEncoder:()=>m5,getConfigureX402DiscriminatorBytes:()=>not,getConfigureX402Instruction:()=>cot,getConfigureX402InstructionAsync:()=>oot,getConfigureX402InstructionDataCodec:()=>rot,getConfigureX402InstructionDataDecoder:()=>$P,getConfigureX402InstructionDataEncoder:()=>bA,getConstraintConditionCodec:()=>Zpe,getConstraintConditionDecoder:()=>rs,getConstraintConditionEncoder:()=>ns,getConstraintOperatorCodec:()=>nle,getConstraintOperatorDecoder:()=>cs,getConstraintOperatorEncoder:()=>os,getContractStatusCodec:()=>sle,getContractStatusDecoder:()=>gs,getContractStatusEncoder:()=>us,getCounterOfferMadeEventCodec:()=>Ele,getCounterOfferMadeEventDecoder:()=>l2,getCounterOfferMadeEventEncoder:()=>p2,getCreateA2aSessionDiscriminatorBytes:()=>fot,getCreateA2aSessionInstruction:()=>Sot,getCreateA2aSessionInstructionAsync:()=>Eot,getCreateA2aSessionInstructionDataCodec:()=>xot,getCreateA2aSessionInstructionDataDecoder:()=>YP,getCreateA2aSessionInstructionDataEncoder:()=>CA,getCreateAnalyticsDashboardDiscriminatorBytes:()=>zot,getCreateAnalyticsDashboardInstruction:()=>Got,getCreateAnalyticsDashboardInstructionAsync:()=>Fot,getCreateAnalyticsDashboardInstructionDataCodec:()=>Wot,getCreateAnalyticsDashboardInstructionDataDecoder:()=>tD,getCreateAnalyticsDashboardInstructionDataEncoder:()=>hA,getCreateBulkDealDiscriminatorBytes:()=>rct,getCreateBulkDealInstruction:()=>sct,getCreateBulkDealInstructionAsync:()=>cct,getCreateBulkDealInstructionDataCodec:()=>oct,getCreateBulkDealInstructionDataDecoder:()=>oD,getCreateBulkDealInstructionDataEncoder:()=>IA,getCreateChannelDiscriminatorBytes:()=>Pct,getCreateChannelInstruction:()=>bct,getCreateChannelInstructionDataCodec:()=>Dct,getCreateChannelInstructionDataDecoder:()=>iD,getCreateChannelInstructionDataEncoder:()=>sD,getCreateCommunicationSessionDiscriminatorBytes:()=>Wct,getCreateCommunicationSessionInstruction:()=>Bct,getCreateCommunicationSessionInstructionAsync:()=>Gct,getCreateCommunicationSessionInstructionDataCodec:()=>Fct,getCreateCommunicationSessionInstructionDataDecoder:()=>gD,getCreateCommunicationSessionInstructionDataEncoder:()=>vA,getCreateDynamicPricingEngineDiscriminatorBytes:()=>Xct,getCreateDynamicPricingEngineInstruction:()=>Yct,getCreateDynamicPricingEngineInstructionAsync:()=>Zct,getCreateDynamicPricingEngineInstructionDataCodec:()=>Qct,getCreateDynamicPricingEngineInstructionDataDecoder:()=>lD,getCreateDynamicPricingEngineInstructionDataEncoder:()=>MA,getCreateEnhancedChannelDiscriminatorBytes:()=>yst,getCreateEnhancedChannelInstruction:()=>fst,getCreateEnhancedChannelInstructionAsync:()=>TD,getCreateEnhancedChannelInstructionDataCodec:()=>Tst,getCreateEnhancedChannelInstructionDataDecoder:()=>yD,getCreateEnhancedChannelInstructionDataEncoder:()=>wA,getCreateEscrowDiscriminatorBytes:()=>Bst,getCreateEscrowInstruction:()=>Lst,getCreateEscrowInstructionAsync:()=>ED,getCreateEscrowInstructionDataCodec:()=>Nst,getCreateEscrowInstructionDataDecoder:()=>xD,getCreateEscrowInstructionDataEncoder:()=>OA,getCreateEscrowWithSolDiscriminatorBytes:()=>uit,getCreateEscrowWithSolInstruction:()=>Ait,getCreateEscrowWithSolInstructionAsync:()=>DD,getCreateEscrowWithSolInstructionDataCodec:()=>git,getCreateEscrowWithSolInstructionDataDecoder:()=>PD,getCreateEscrowWithSolInstructionDataEncoder:()=>WA,getCreateIncentiveProgramDiscriminatorBytes:()=>Pit,getCreateIncentiveProgramInstruction:()=>Cit,getCreateIncentiveProgramInstructionAsync:()=>bit,getCreateIncentiveProgramInstructionDataCodec:()=>Dit,getCreateIncentiveProgramInstructionDataDecoder:()=>RD,getCreateIncentiveProgramInstructionDataEncoder:()=>FA,getCreateJobPostingDiscriminatorBytes:()=>Wit,getCreateJobPostingInstruction:()=>Git,getCreateJobPostingInstructionAsync:()=>wD,getCreateJobPostingInstructionDataCodec:()=>Fit,getCreateJobPostingInstructionDataDecoder:()=>kD,getCreateJobPostingInstructionDataEncoder:()=>GA,getCreateMarketAnalyticsDiscriminatorBytes:()=>qit,getCreateMarketAnalyticsInstruction:()=>Qit,getCreateMarketAnalyticsInstructionAsync:()=>Xit,getCreateMarketAnalyticsInstructionDataCodec:()=>$it,getCreateMarketAnalyticsInstructionDataDecoder:()=>OD,getCreateMarketAnalyticsInstructionDataEncoder:()=>NA,getCreateMultisigDiscriminatorBytes:()=>Aat,getCreateMultisigInstruction:()=>GD,getCreateMultisigInstructionAsync:()=>lat,getCreateMultisigInstructionDataCodec:()=>pat,getCreateMultisigInstructionDataDecoder:()=>FD,getCreateMultisigInstructionDataEncoder:()=>LA,getCreateReplicationTemplateDiscriminatorBytes:()=>Iat,getCreateReplicationTemplateInstruction:()=>kat,getCreateReplicationTemplateInstructionAsync:()=>Mat,getCreateReplicationTemplateInstructionDataCodec:()=>vat,getCreateReplicationTemplateInstructionDataDecoder:()=>VD,getCreateReplicationTemplateInstructionDataEncoder:()=>KA,getCreateRoyaltyStreamDiscriminatorBytes:()=>Nat,getCreateRoyaltyStreamInstruction:()=>Vat,getCreateRoyaltyStreamInstructionAsync:()=>Kat,getCreateRoyaltyStreamInstructionDataCodec:()=>Lat,getCreateRoyaltyStreamInstructionDataDecoder:()=>jD,getCreateRoyaltyStreamInstructionDataEncoder:()=>VA,getCreateServiceAuctionDiscriminatorBytes:()=>sdt,getCreateServiceAuctionInstruction:()=>adt,getCreateServiceAuctionInstructionAsync:()=>ZD,getCreateServiceAuctionInstructionDataCodec:()=>idt,getCreateServiceAuctionInstructionDataDecoder:()=>QD,getCreateServiceAuctionInstructionDataEncoder:()=>jA,getCreateServiceListingDiscriminatorBytes:()=>Pdt,getCreateServiceListingInstruction:()=>bdt,getCreateServiceListingInstructionAsync:()=>tb,getCreateServiceListingInstructionDataCodec:()=>Ddt,getCreateServiceListingInstructionDataDecoder:()=>eb,getCreateServiceListingInstructionDataEncoder:()=>XA,getCreateStakingAccountDiscriminatorBytes:()=>Udt,getCreateStakingAccountInstruction:()=>zdt,getCreateStakingAccountInstructionAsync:()=>Odt,getCreateStakingAccountInstructionDataCodec:()=>_dt,getCreateStakingAccountInstructionDataDecoder:()=>rb,getCreateStakingAccountInstructionDataEncoder:()=>ZA,getCreateToken2022MintDiscriminatorBytes:()=>Qdt,getCreateToken2022MintInstruction:()=>Ydt,getCreateToken2022MintInstructionAsync:()=>ib,getCreateToken2022MintInstructionDataCodec:()=>Zdt,getCreateToken2022MintInstructionDataDecoder:()=>sb,getCreateToken2022MintInstructionDataEncoder:()=>np,getCreateToken2022MintParamsCodec:()=>nFe,getCreateToken2022MintParamsDecoder:()=>S5,getCreateToken2022MintParamsEncoder:()=>E5,getCreateWorkOrderDiscriminatorBytes:()=>gut,getCreateWorkOrderInstruction:()=>put,getCreateWorkOrderInstructionDataCodec:()=>Aut,getCreateWorkOrderInstructionDataDecoder:()=>yb,getCreateWorkOrderInstructionDataEncoder:()=>mb,getDataAccessLevelCodec:()=>ble,getDataAccessLevelDecoder:()=>ls,getDataAccessLevelEncoder:()=>ps,getDataProtectionPoliciesCodec:()=>Ile,getDataProtectionPoliciesDecoder:()=>ys,getDataProtectionPoliciesEncoder:()=>ms,getDeactivateAgentDiscriminatorBytes:()=>Iut,getDeactivateAgentInstruction:()=>Eb,getDeactivateAgentInstructionAsync:()=>Mut,getDeactivateAgentInstructionDataCodec:()=>vut,getDeactivateAgentInstructionDataDecoder:()=>xb,getDeactivateAgentInstructionDataEncoder:()=>rp,getDealTypeCodec:()=>wle,getDealTypeDecoder:()=>ae,getDealTypeEncoder:()=>ie,getDefaultAccountStateInitializedEventCodec:()=>Fle,getDefaultAccountStateInitializedEventDecoder:()=>P2,getDefaultAccountStateInitializedEventEncoder:()=>S2,getDegradationHandlingCodec:()=>Lle,getDegradationHandlingDecoder:()=>ec,getDegradationHandlingEncoder:()=>Yo,getDelegateVoteDiscriminatorBytes:()=>Vut,getDelegateVoteInstruction:()=>bb,getDelegateVoteInstructionAsync:()=>Jut,getDelegateVoteInstructionDataCodec:()=>Hut,getDelegateVoteInstructionDataDecoder:()=>Db,getDelegateVoteInstructionDataEncoder:()=>op,getDelegationInfoCodec:()=>Xle,getDelegationInfoDecoder:()=>Es,getDelegationInfoEncoder:()=>xs,getDelegationScopeCodec:()=>o1e,getDelegationScopeDecoder:()=>Ue,getDelegationScopeEncoder:()=>we,getDeliverableCodec:()=>u1e,getDeliverableDecoder:()=>We,getDeliverableEncoder:()=>ze,getDemandMetricsCodec:()=>AFe,getDemandMetricsDecoder:()=>b5,getDemandMetricsEncoder:()=>D5,getDisputeCaseCodec:()=>XKe,getDisputeCaseDecoder:()=>Cx,getDisputeCaseDiscriminatorBytes:()=>$Ke,getDisputeCaseEncoder:()=>T7,getDisputeEscrowDiscriminatorBytes:()=>igt,getDisputeEscrowInstruction:()=>Ib,getDisputeEscrowInstructionAsync:()=>dgt,getDisputeEscrowInstructionDataCodec:()=>agt,getDisputeEscrowInstructionDataDecoder:()=>hb,getDisputeEscrowInstructionDataEncoder:()=>cp,getDisputeEvidenceBatchSubmittedEventCodec:()=>b1e,getDisputeEvidenceBatchSubmittedEventDecoder:()=>L2,getDisputeEvidenceBatchSubmittedEventEncoder:()=>N2,getDisputeEvidenceCodec:()=>E1e,getDisputeEvidenceDecoder:()=>Ds,getDisputeEvidenceEncoder:()=>Ps,getDisputeEvidenceSubmittedEventCodec:()=>M1e,getDisputeEvidenceSubmittedEventDecoder:()=>j2,getDisputeEvidenceSubmittedEventEncoder:()=>J2,getDisputeFiledEventCodec:()=>B1e,getDisputeFiledEventDecoder:()=>X2,getDisputeFiledEventEncoder:()=>$2,getDisputeResolvedEventCodec:()=>eme,getDisputeResolvedEventDecoder:()=>t0,getDisputeResolvedEventEncoder:()=>e0,getDisputeStatusCodec:()=>ome,getDisputeStatusDecoder:()=>Rs,getDisputeStatusEncoder:()=>Cs,getDistributeIncentivesDiscriminatorBytes:()=>hgt,getDistributeIncentivesInstruction:()=>vgt,getDistributeIncentivesInstructionDataCodec:()=>Igt,getDistributeIncentivesInstructionDataDecoder:()=>kb,getDistributeIncentivesInstructionDataEncoder:()=>Mb,getDutchAuctionConfigCodec:()=>lme,getDutchAuctionConfigDecoder:()=>Ge,getDutchAuctionConfigEncoder:()=>Fe,getDutchAuctionDecayTypeCodec:()=>fme,getDutchAuctionDecayTypeDecoder:()=>Is,getDutchAuctionDecayTypeEncoder:()=>hs,getDutchAuctionWonEventCodec:()=>bme,getDutchAuctionWonEventDecoder:()=>d0,getDutchAuctionWonEventEncoder:()=>a0,getDynamicPricingConfigCodec:()=>ZGe,getDynamicPricingConfigDecoder:()=>ue,getDynamicPricingConfigEncoder:()=>de,getDynamicPricingConfigExportCodec:()=>Ime,getDynamicPricingConfigExportDecoder:()=>A0,getDynamicPricingConfigExportEncoder:()=>g0,getDynamicPricingEngineCodec:()=>x7e,getDynamicPricingEngineCreatedEventCodec:()=>_me,getDynamicPricingEngineCreatedEventDecoder:()=>m0,getDynamicPricingEngineCreatedEventEncoder:()=>l0,getDynamicPricingEngineDecoder:()=>Ix,getDynamicPricingEngineDiscriminatorBytes:()=>f7e,getDynamicPricingEngineEncoder:()=>C7,getDynamicPricingUpdatedEventCodec:()=>Bme,getDynamicPricingUpdatedEventDecoder:()=>E0,getDynamicPricingUpdatedEventEncoder:()=>x0,getEconomicMetricsCodec:()=>qme,getEconomicMetricsCollectedEventCodec:()=>oye,getEconomicMetricsCollectedEventDecoder:()=>b0,getEconomicMetricsCollectedEventEncoder:()=>D0,getEconomicMetricsDecoder:()=>ks,getEconomicMetricsEncoder:()=>Ms,getEconomicMetricsEventCodec:()=>Aye,getEconomicMetricsEventDecoder:()=>h0,getEconomicMetricsEventEncoder:()=>R0,getEmergencyAccessConfigCodec:()=>Eye,getEmergencyAccessConfigDecoder:()=>Us,getEmergencyAccessConfigEncoder:()=>ws,getEmergencyConfigCodec:()=>Iye,getEmergencyConfigDecoder:()=>Os,getEmergencyConfigEncoder:()=>_s,getEnforcementLevelCodec:()=>wye,getEnforcementLevelDecoder:()=>Vt,getEnforcementLevelEncoder:()=>Kt,getEnhancedChannelCreatedEventCodec:()=>Bye,getEnhancedChannelCreatedEventDecoder:()=>K0,getEnhancedChannelCreatedEventEncoder:()=>L0,getEnhancedMessageSentEventCodec:()=>Xye,getEnhancedMessageSentEventDecoder:()=>Z0,getEnhancedMessageSentEventEncoder:()=>Q0,getEscrowCancelledEventCodec:()=>uTe,getEscrowCancelledEventDecoder:()=>t8,getEscrowCancelledEventEncoder:()=>e8,getEscrowCodec:()=>B7e,getEscrowCompletedEventCodec:()=>RTe,getEscrowCompletedEventDecoder:()=>o8,getEscrowCompletedEventEncoder:()=>r8,getEscrowCreatedEventCodec:()=>FTe,getEscrowCreatedEventDecoder:()=>d8,getEscrowCreatedEventEncoder:()=>a8,getEscrowDecoder:()=>Gx,getEscrowDiscriminatorBytes:()=>G7e,getEscrowEncoder:()=>U7,getEscrowExpiredEventCodec:()=>VTe,getEscrowExpiredEventDecoder:()=>l8,getEscrowExpiredEventEncoder:()=>p8,getEscrowPartialRefundEventCodec:()=>ZTe,getEscrowPartialRefundEventDecoder:()=>x8,getEscrowPartialRefundEventEncoder:()=>f8,getEscrowStatusCodec:()=>nfe,getEscrowStatusDecoder:()=>Ns,getEscrowStatusEncoder:()=>Bs,getEvidenceBatchItemCodec:()=>sfe,getEvidenceBatchItemDecoder:()=>Ks,getEvidenceBatchItemEncoder:()=>Ls,getExecuteBulkDealBatchDiscriminatorBytes:()=>Ngt,getExecuteBulkDealBatchInstruction:()=>Vgt,getExecuteBulkDealBatchInstructionAsync:()=>Kgt,getExecuteBulkDealBatchInstructionDataCodec:()=>Lgt,getExecuteBulkDealBatchInstructionDataDecoder:()=>_b,getExecuteBulkDealBatchInstructionDataEncoder:()=>sp,getExecuteProposalDiscriminatorBytes:()=>Zgt,getExecuteProposalInstruction:()=>io,getExecuteProposalInstructionDataCodec:()=>Ygt,getExecuteProposalInstructionDataDecoder:()=>Wb,getExecuteProposalInstructionDataEncoder:()=>zb,getExecutionConditionCodec:()=>ffe,getExecutionConditionDecoder:()=>Ke,getExecutionConditionEncoder:()=>Le,getExecutionParamsCodec:()=>Rfe,getExecutionParamsDecoder:()=>qt,getExecutionParamsEncoder:()=>jt,getExportActionDiscriminatorBytes:()=>iAt,getExportActionInstruction:()=>dAt,getExportActionInstructionDataCodec:()=>aAt,getExportActionInstructionDataDecoder:()=>Bb,getExportActionInstructionDataEncoder:()=>Gb,getExportAuditContextDiscriminatorBytes:()=>TAt,getExportAuditContextInstruction:()=>xAt,getExportAuditContextInstructionDataCodec:()=>fAt,getExportAuditContextInstructionDataDecoder:()=>Kb,getExportAuditContextInstructionDataEncoder:()=>Lb,getExportBiometricQualityDiscriminatorBytes:()=>hAt,getExportBiometricQualityInstruction:()=>vAt,getExportBiometricQualityInstructionDataCodec:()=>IAt,getExportBiometricQualityInstructionDataDecoder:()=>Jb,getExportBiometricQualityInstructionDataEncoder:()=>Hb,getExportComplianceStatusDiscriminatorBytes:()=>WAt,getExportComplianceStatusInstruction:()=>GAt,getExportComplianceStatusInstructionDataCodec:()=>FAt,getExportComplianceStatusInstructionDataDecoder:()=>$b,getExportComplianceStatusInstructionDataEncoder:()=>qb,getExportDynamicPricingConfigDiscriminatorBytes:()=>jAt,getExportDynamicPricingConfigInstruction:()=>$At,getExportDynamicPricingConfigInstructionDataCodec:()=>qAt,getExportDynamicPricingConfigInstructionDataDecoder:()=>Zb,getExportDynamicPricingConfigInstructionDataEncoder:()=>Qb,getExportMultisigConfigDiscriminatorBytes:()=>rpt,getExportMultisigConfigInstruction:()=>cpt,getExportMultisigConfigInstructionDataCodec:()=>opt,getExportMultisigConfigInstructionDataDecoder:()=>tC,getExportMultisigConfigInstructionDataEncoder:()=>eC,getExportReportEntryDiscriminatorBytes:()=>ppt,getExportReportEntryInstruction:()=>mpt,getExportReportEntryInstructionDataCodec:()=>lpt,getExportReportEntryInstructionDataDecoder:()=>oC,getExportReportEntryInstructionDataEncoder:()=>rC,getExportResourceConstraintsDiscriminatorBytes:()=>Dpt,getExportResourceConstraintsInstruction:()=>Cpt,getExportResourceConstraintsInstructionDataCodec:()=>bpt,getExportResourceConstraintsInstructionDataDecoder:()=>iC,getExportResourceConstraintsInstructionDataEncoder:()=>sC,getExportRuleConditionDiscriminatorBytes:()=>Upt,getExportRuleConditionInstruction:()=>Opt,getExportRuleConditionInstructionDataCodec:()=>_pt,getExportRuleConditionInstructionDataDecoder:()=>uC,getExportRuleConditionInstructionDataEncoder:()=>dC,getExtendAuctionForReserveDiscriminatorBytes:()=>Kpt,getExtendAuctionForReserveInstruction:()=>Hpt,getExtendAuctionForReserveInstructionDataCodec:()=>Vpt,getExtendAuctionForReserveInstructionDataDecoder:()=>pC,getExtendAuctionForReserveInstructionDataEncoder:()=>AC,getExtendLockupDiscriminatorBytes:()=>nlt,getExtendLockupInstruction:()=>clt,getExtendLockupInstructionAsync:()=>olt,getExtendLockupInstructionDataCodec:()=>rlt,getExtendLockupInstructionDataDecoder:()=>mC,getExtendLockupInstructionDataEncoder:()=>ap,getExtensionApprovedEventCodec:()=>wfe,getExtensionApprovedEventDecoder:()=>F8,getExtensionApprovedEventEncoder:()=>W8,getExtensionCodec:()=>gVe,getExtensionDecoder:()=>Lx,getExtensionDiscriminatorBytes:()=>uVe,getExtensionEncoder:()=>H7,getExtensionMetadataCodec:()=>Ffe,getExtensionMetadataDecoder:()=>Xt,getExtensionMetadataEncoder:()=>$t,getExtensionRegisteredEventCodec:()=>Lfe,getExtensionRegisteredEventDecoder:()=>V8,getExtensionRegisteredEventEncoder:()=>K8,getExtensionStatusCodec:()=>Jfe,getExtensionStatusDecoder:()=>qs,getExtensionStatusEncoder:()=>js,getExtensionTypeCodec:()=>Xfe,getExtensionTypeDecoder:()=>He,getExtensionTypeEncoder:()=>Ve,getFileDisputeDiscriminatorBytes:()=>flt,getFileDisputeInstruction:()=>Slt,getFileDisputeInstructionAsync:()=>Elt,getFileDisputeInstructionDataCodec:()=>xlt,getFileDisputeInstructionDataDecoder:()=>fC,getFileDisputeInstructionDataEncoder:()=>up,getFinalizeAuctionDiscriminatorBytes:()=>vlt,getFinalizeAuctionInstruction:()=>PC,getFinalizeAuctionInstructionDataCodec:()=>Mlt,getFinalizeAuctionInstructionDataDecoder:()=>SC,getFinalizeAuctionInstructionDataEncoder:()=>EC,getGenerateComplianceReportDiscriminatorBytes:()=>Blt,getGenerateComplianceReportInstruction:()=>Klt,getGenerateComplianceReportInstructionAsync:()=>Llt,getGenerateComplianceReportInstructionDataCodec:()=>Nlt,getGenerateComplianceReportInstructionDataDecoder:()=>CC,getGenerateComplianceReportInstructionDataEncoder:()=>gp,getGeographicRegionCodec:()=>sxe,getGeographicRegionDecoder:()=>Qs,getGeographicRegionEncoder:()=>Xs,getGhostActionCodec:()=>bBe,getGhostActionDecoder:()=>MN,getGhostActionEncoder:()=>vN,getGhostMultisigConfigCodec:()=>IGe,getGhostMultisigConfigDecoder:()=>mN,getGhostMultisigConfigEncoder:()=>lN,getGhostspeakMarketplaceErrorMessage:()=>oet,getGovernanceProposalCodec:()=>MVe,getGovernanceProposalCreatedEventCodec:()=>fxe,getGovernanceProposalCreatedEventDecoder:()=>eO,getGovernanceProposalCreatedEventEncoder:()=>Y8,getGovernanceProposalDecoder:()=>jx,getGovernanceProposalDiscriminatorBytes:()=>vVe,getGovernanceProposalEncoder:()=>rV,getHierarchicalBoundaryCodec:()=>bxe,getHierarchicalBoundaryDecoder:()=>ri,getHierarchicalBoundaryEncoder:()=>ni,getIncentiveConfigCodec:()=>Ixe,getIncentiveConfigDecoder:()=>Zt,getIncentiveConfigEncoder:()=>Qt,getIncentiveDistributedEventCodec:()=>Bxe,getIncentiveDistributedEventDecoder:()=>pO,getIncentiveDistributedEventEncoder:()=>AO,getIncentiveProgramCodec:()=>YVe,getIncentiveProgramCreatedEventCodec:()=>Jxe,getIncentiveProgramCreatedEventDecoder:()=>fO,getIncentiveProgramCreatedEventEncoder:()=>TO,getIncentiveProgramDecoder:()=>Xx,getIncentiveProgramDiscriminatorBytes:()=>ZVe,getIncentiveProgramEncoder:()=>gV,getIncentiveProgramSize:()=>nHe,getIncidentResponsePoliciesCodec:()=>oEe,getIncidentResponsePoliciesDecoder:()=>ii,getIncidentResponsePoliciesEncoder:()=>si,getInitReentrancyGuardDiscriminatorBytes:()=>yyt,getInitReentrancyGuardInstruction:()=>xyt,getInitReentrancyGuardInstructionAsync:()=>fyt,getInitReentrancyGuardInstructionDataCodec:()=>Tyt,getInitReentrancyGuardInstructionDataDecoder:()=>cR,getInitReentrancyGuardInstructionDataEncoder:()=>Pp,getInitializeAuditTrailDiscriminatorBytes:()=>c1t,getInitializeAuditTrailInstruction:()=>a1t,getInitializeAuditTrailInstructionAsync:()=>i1t,getInitializeAuditTrailInstructionDataCodec:()=>s1t,getInitializeAuditTrailInstructionDataDecoder:()=>IC,getInitializeAuditTrailInstructionDataEncoder:()=>Ap,getInitializeConfidentialTransferMintDiscriminatorBytes:()=>E1t,getInitializeConfidentialTransferMintInstruction:()=>P1t,getInitializeConfidentialTransferMintInstructionAsync:()=>wC,getInitializeConfidentialTransferMintInstructionDataCodec:()=>S1t,getInitializeConfidentialTransferMintInstructionDataDecoder:()=>kC,getInitializeConfidentialTransferMintInstructionDataEncoder:()=>lp,getInitializeDefaultAccountStateDiscriminatorBytes:()=>w1t,getInitializeDefaultAccountStateInstruction:()=>_1t,getInitializeDefaultAccountStateInstructionAsync:()=>zC,getInitializeDefaultAccountStateInstructionDataCodec:()=>U1t,getInitializeDefaultAccountStateInstructionDataDecoder:()=>OC,getInitializeDefaultAccountStateInstructionDataEncoder:()=>mp,getInitializeGovernanceProposalDiscriminatorBytes:()=>V1t,getInitializeGovernanceProposalInstruction:()=>J1t,getInitializeGovernanceProposalInstructionAsync:()=>ao,getInitializeGovernanceProposalInstructionDataCodec:()=>H1t,getInitializeGovernanceProposalInstructionDataDecoder:()=>GC,getInitializeGovernanceProposalInstructionDataEncoder:()=>yp,getInitializeInterestBearingConfigDiscriminatorBytes:()=>omt,getInitializeInterestBearingConfigInstruction:()=>smt,getInitializeInterestBearingConfigInstructionAsync:()=>KC,getInitializeInterestBearingConfigInstructionDataCodec:()=>cmt,getInitializeInterestBearingConfigInstructionDataDecoder:()=>LC,getInitializeInterestBearingConfigInstructionDataEncoder:()=>Tp,getInitializeMintCloseAuthorityDiscriminatorBytes:()=>ymt,getInitializeMintCloseAuthorityInstruction:()=>fmt,getInitializeMintCloseAuthorityInstructionAsync:()=>jC,getInitializeMintCloseAuthorityInstructionDataCodec:()=>Tmt,getInitializeMintCloseAuthorityInstructionDataDecoder:()=>JC,getInitializeMintCloseAuthorityInstructionDataEncoder:()=>fp,getInitializeRbacConfigDiscriminatorBytes:()=>Mmt,getInitializeRbacConfigInstruction:()=>Umt,getInitializeRbacConfigInstructionAsync:()=>wmt,getInitializeRbacConfigInstructionDataCodec:()=>kmt,getInitializeRbacConfigInstructionDataDecoder:()=>XC,getInitializeRbacConfigInstructionDataEncoder:()=>xp,getInitializeStakingConfigDiscriminatorBytes:()=>Vmt,getInitializeStakingConfigInstruction:()=>jmt,getInitializeStakingConfigInstructionAsync:()=>Jmt,getInitializeStakingConfigInstructionDataCodec:()=>Hmt,getInitializeStakingConfigInstructionDataDecoder:()=>YC,getInitializeStakingConfigInstructionDataEncoder:()=>Ep,getInitiateNegotiationDiscriminatorBytes:()=>oyt,getInitiateNegotiationInstruction:()=>iyt,getInitiateNegotiationInstructionAsync:()=>syt,getInitiateNegotiationInstructionDataCodec:()=>cyt,getInitiateNegotiationInstructionDataDecoder:()=>nR,getInitiateNegotiationInstructionDataEncoder:()=>Sp,getInterestBearingConfigParamsCodec:()=>fFe,getInterestBearingConfigParamsDecoder:()=>h5,getInterestBearingConfigParamsEncoder:()=>R5,getInterestBearingInitializedEventCodec:()=>AEe,getInterestBearingInitializedEventDecoder:()=>PO,getInterestBearingInitializedEventEncoder:()=>SO,getJobApplicationAcceptedEventCodec:()=>fEe,getJobApplicationAcceptedEventDecoder:()=>CO,getJobApplicationAcceptedEventEncoder:()=>bO,getJobApplicationCodec:()=>SHe,getJobApplicationDataCodec:()=>RFe,getJobApplicationDataDecoder:()=>z5,getJobApplicationDataEncoder:()=>O5,getJobApplicationDecoder:()=>tE,getJobApplicationDiscriminatorBytes:()=>EHe,getJobApplicationEncoder:()=>CV,getJobApplicationSubmittedEventCodec:()=>REe,getJobApplicationSubmittedEventDecoder:()=>IO,getJobApplicationSubmittedEventEncoder:()=>hO,getJobContractCodec:()=>BHe,getJobContractDecoder:()=>sE,getJobContractDiscriminatorBytes:()=>GHe,getJobContractEncoder:()=>kV,getJobContractSize:()=>KHe,getJobPostingCodec:()=>sJe,getJobPostingCreatedEventCodec:()=>wEe,getJobPostingCreatedEventDecoder:()=>UO,getJobPostingCreatedEventEncoder:()=>wO,getJobPostingDataCodec:()=>_Fe,getJobPostingDataDecoder:()=>N5,getJobPostingDataEncoder:()=>B5,getJobPostingDecoder:()=>pE,getJobPostingDiscriminatorBytes:()=>cJe,getJobPostingEncoder:()=>NV,getJoinChannelDiscriminatorBytes:()=>Iyt,getJoinChannelInstruction:()=>dR,getJoinChannelInstructionAsync:()=>Myt,getJoinChannelInstructionDataCodec:()=>vyt,getJoinChannelInstructionDataDecoder:()=>aR,getJoinChannelInstructionDataEncoder:()=>Dp,getLatitudeRangeCodec:()=>zEe,getLatitudeRangeDecoder:()=>Ys,getLatitudeRangeEncoder:()=>Zs,getLeaveChannelDiscriminatorBytes:()=>Gyt,getLeaveChannelInstruction:()=>pR,getLeaveChannelInstructionAsync:()=>Nyt,getLeaveChannelInstructionDataCodec:()=>Byt,getLeaveChannelInstructionDataDecoder:()=>AR,getLeaveChannelInstructionDataEncoder:()=>bp,getListAgentForResaleDiscriminatorBytes:()=>Zyt,getListAgentForResaleInstruction:()=>tTt,getListAgentForResaleInstructionAsync:()=>eTt,getListAgentForResaleInstructionDataCodec:()=>Yyt,getListAgentForResaleInstructionDataDecoder:()=>yR,getListAgentForResaleInstructionDataEncoder:()=>Cp,getLocationConstraintsCodec:()=>LEe,getLocationConstraintsDecoder:()=>Ti,getLocationConstraintsEncoder:()=>yi,getLongitudeRangeCodec:()=>JEe,getLongitudeRangeDecoder:()=>ti,getLongitudeRangeEncoder:()=>ei,getMakeCounterOfferDiscriminatorBytes:()=>TTt,getMakeCounterOfferInstruction:()=>xTt,getMakeCounterOfferInstructionDataCodec:()=>fTt,getMakeCounterOfferInstructionDataDecoder:()=>xR,getMakeCounterOfferInstructionDataEncoder:()=>fR,getManageAgentStatusDiscriminatorBytes:()=>kTt,getManageAgentStatusInstruction:()=>_Tt,getManageAgentStatusInstructionAsync:()=>UTt,getManageAgentStatusInstructionDataCodec:()=>wTt,getManageAgentStatusInstructionDataDecoder:()=>PR,getManageAgentStatusInstructionDataEncoder:()=>Rp,getMarketAnalyticsCodec:()=>hJe,getMarketAnalyticsCreatedEventCodec:()=>ZEe,getMarketAnalyticsCreatedEventDecoder:()=>KO,getMarketAnalyticsCreatedEventEncoder:()=>LO,getMarketAnalyticsDecoder:()=>yE,getMarketAnalyticsDiscriminatorBytes:()=>RJe,getMarketAnalyticsEncoder:()=>YV,getMarketAnalyticsUpdatedEventCodec:()=>sSe,getMarketAnalyticsUpdatedEventDecoder:()=>qO,getMarketAnalyticsUpdatedEventEncoder:()=>jO,getMarketTrendUpdatedEventCodec:()=>XSe,getMarketTrendUpdatedEventDecoder:()=>Az,getMarketTrendUpdatedEventEncoder:()=>gz,getMarketVolumeUpdatedEventCodec:()=>uPe,getMarketVolumeUpdatedEventDecoder:()=>mz,getMarketVolumeUpdatedEventEncoder:()=>lz,getMarketplaceActivityEventCodec:()=>PSe,getMarketplaceActivityEventDecoder:()=>YO,getMarketplaceActivityEventEncoder:()=>ZO,getMarketplaceMetricsCodec:()=>_Se,getMarketplaceMetricsCollectedEventCodec:()=>LSe,getMarketplaceMetricsCollectedEventDecoder:()=>iz,getMarketplaceMetricsCollectedEventEncoder:()=>sz,getMarketplaceMetricsDecoder:()=>xi,getMarketplaceMetricsEncoder:()=>fi,getMessageCodec:()=>eje,getMessageDataCodec:()=>JFe,getMessageDataDecoder:()=>V5,getMessageDataEncoder:()=>K5,getMessageDecoder:()=>xE,getMessageDiscriminatorBytes:()=>YJe,getMessageEncoder:()=>iH,getMessageMetadataCodec:()=>EPe,getMessageMetadataDecoder:()=>Jt,getMessageMetadataEncoder:()=>Ht,getMessageReactionCodec:()=>_Pe,getMessageReactionDecoder:()=>Si,getMessageReactionEncoder:()=>Ei,getMessageReactionEventCodec:()=>JPe,getMessageReactionEventDecoder:()=>bz,getMessageReactionEventEncoder:()=>Dz,getMessageSentEventCodec:()=>XPe,getMessageSentEventDecoder:()=>hz,getMessageSentEventEncoder:()=>Rz,getMessageTypeCodec:()=>eDe,getMessageTypeDecoder:()=>L,getMessageTypeEncoder:()=>N,getMetricSampleCodec:()=>lDe,getMetricSampleDecoder:()=>Di,getMetricSampleEncoder:()=>Pi,getMintCloseAuthorityInitializedEventCodec:()=>EDe,getMintCloseAuthorityInitializedEventDecoder:()=>wz,getMintCloseAuthorityInitializedEventEncoder:()=>kz,getMultisigCodec:()=>mje,getMultisigConfigCodec:()=>uGe,getMultisigConfigDecoder:()=>le,getMultisigConfigEncoder:()=>pe,getMultisigConfigExportCodec:()=>bDe,getMultisigConfigExportDecoder:()=>Oz,getMultisigConfigExportEncoder:()=>_z,getMultisigCreatedEventCodec:()=>_De,getMultisigCreatedEventDecoder:()=>Bz,getMultisigCreatedEventEncoder:()=>Gz,getMultisigDecoder:()=>bE,getMultisigDiscriminatorBytes:()=>lje,getMultisigEncoder:()=>SH,getMultisigSignatureCodec:()=>qDe,getMultisigSignatureDecoder:()=>Ci,getMultisigSignatureEncoder:()=>bi,getMultisigTypeCodec:()=>ZDe,getMultisigTypeConfigCodec:()=>ube,getMultisigTypeConfigDecoder:()=>Ii,getMultisigTypeConfigEncoder:()=>hi,getMultisigTypeDecoder:()=>je,getMultisigTypeEncoder:()=>Je,getNegotiationChatbotCodec:()=>Fje,getNegotiationChatbotDecoder:()=>vE,getNegotiationChatbotDiscriminatorBytes:()=>Wje,getNegotiationChatbotEncoder:()=>kH,getNegotiationInitiatedEventCodec:()=>ybe,getNegotiationInitiatedEventDecoder:()=>eW,getNegotiationInitiatedEventEncoder:()=>Yz,getNegotiationStatusCodec:()=>Ebe,getNegotiationStatusDecoder:()=>ki,getNegotiationStatusEncoder:()=>Mi,getNetworkHealthEventCodec:()=>Rbe,getNetworkHealthEventDecoder:()=>aW,getNetworkHealthEventEncoder:()=>iW,getNetworkHealthMetricsCodec:()=>wbe,getNetworkHealthMetricsDecoder:()=>Ui,getNetworkHealthMetricsEncoder:()=>wi,getNetworkMetricsCollectedEventCodec:()=>Bbe,getNetworkMetricsCollectedEventDecoder:()=>yW,getNetworkMetricsCollectedEventEncoder:()=>mW,getNetworkSecurityPoliciesCodec:()=>Vbe,getNetworkSecurityPoliciesDecoder:()=>Oi,getNetworkSecurityPoliciesEncoder:()=>_i,getNotificationMethodCodec:()=>qbe,getNotificationMethodDecoder:()=>Fi,getNotificationMethodEncoder:()=>Wi,getNotificationPriorityCodec:()=>Zbe,getNotificationPriorityDecoder:()=>Ni,getNotificationPriorityEncoder:()=>Bi,getNotificationRequirementCodec:()=>oCe,getNotificationRequirementDecoder:()=>Mt,getNotificationRequirementEncoder:()=>vt,getNotificationTargetCodec:()=>lCe,getNotificationTargetDecoder:()=>Ki,getNotificationTargetEncoder:()=>Li,getNotificationTargetTypeCodec:()=>fCe,getNotificationTargetTypeDecoder:()=>$i,getNotificationTargetTypeEncoder:()=>qi,getNotificationTimingCodec:()=>PCe,getNotificationTimingDecoder:()=>Hi,getNotificationTimingEncoder:()=>Vi,getParticipantStatusCodec:()=>pqe,getParticipantStatusDataCodec:()=>u4e,getParticipantStatusDataDecoder:()=>j5,getParticipantStatusDataEncoder:()=>J5,getParticipantStatusDecoder:()=>wE,getParticipantStatusDiscriminatorBytes:()=>Aqe,getParticipantStatusEncoder:()=>GH,getParticipantStatusUpdatedEventCodec:()=>_Ce,getParticipantStatusUpdatedEventDecoder:()=>RW,getParticipantStatusUpdatedEventEncoder:()=>CW,getParticipantTypeCodec:()=>FCe,getParticipantTypeDecoder:()=>k,getParticipantTypeEncoder:()=>M,getPasswordPoliciesCodec:()=>ZCe,getPasswordPoliciesDecoder:()=>ea,getPasswordPoliciesEncoder:()=>Yi,getPaymentCodec:()=>zqe,getPaymentDecoder:()=>OE,getPaymentDiscriminatorBytes:()=>Oqe,getPaymentEncoder:()=>jH,getPaymentProcessedEventCodec:()=>sRe,getPaymentProcessedEventDecoder:()=>UW,getPaymentProcessedEventEncoder:()=>wW,getPendingTransactionCodec:()=>bRe,getPendingTransactionDecoder:()=>na,getPendingTransactionEncoder:()=>ta,getPermissionCodec:()=>IRe,getPermissionConstraintCodec:()=>_Re,getPermissionConstraintDecoder:()=>fa,getPermissionConstraintEncoder:()=>Ta,getPermissionConstraintTypeCodec:()=>FRe,getPermissionConstraintTypeDecoder:()=>Ea,getPermissionConstraintTypeEncoder:()=>xa,getPermissionDecoder:()=>ya,getPermissionEncoder:()=>ma,getPermissionMetadataCodec:()=>VRe,getPermissionMetadataDecoder:()=>$e,getPermissionMetadataEncoder:()=>qe,getPermissionScopeCodec:()=>qRe,getPermissionScopeDecoder:()=>Qe,getPermissionScopeEncoder:()=>Xe,getPlaceAuctionBidDiscriminatorBytes:()=>VTt,getPlaceAuctionBidInstruction:()=>RR,getPlaceAuctionBidInstructionDataCodec:()=>HTt,getPlaceAuctionBidInstructionDataDecoder:()=>CR,getPlaceAuctionBidInstructionDataEncoder:()=>bR,getPlaceDutchAuctionBidDiscriminatorBytes:()=>YTt,getPlaceDutchAuctionBidInstruction:()=>tft,getPlaceDutchAuctionBidInstructionDataCodec:()=>eft,getPlaceDutchAuctionBidInstructionDataDecoder:()=>vR,getPlaceDutchAuctionBidInstructionDataEncoder:()=>IR,getPolicyMetadataCodec:()=>nhe,getPolicyMetadataDecoder:()=>Ro,getPolicyMetadataEncoder:()=>Co,getPolicyRuleCodec:()=>fhe,getPolicyRuleDecoder:()=>Io,getPolicyRuleEncoder:()=>ho,getPolicyScopeCodec:()=>Phe,getPolicyScopeDecoder:()=>Mo,getPolicyScopeEncoder:()=>vo,getPolicyStatusCodec:()=>Rhe,getPolicyStatusDecoder:()=>wo,getPolicyStatusEncoder:()=>ko,getPolicyTypeCodec:()=>Mhe,getPolicyTypeDecoder:()=>_o,getPolicyTypeEncoder:()=>Uo,getPricingAlgorithmCodec:()=>_he,getPricingAlgorithmDecoder:()=>Ne,getPricingAlgorithmEncoder:()=>Be,getPricingModelCodec:()=>Fhe,getPricingModelDecoder:()=>wt,getPricingModelEncoder:()=>kt,getProcessEscrowPaymentDiscriminatorBytes:()=>uft,getProcessEscrowPaymentInstruction:()=>pft,getProcessEscrowPaymentInstructionAsync:()=>Aft,getProcessEscrowPaymentInstructionDataCodec:()=>gft,getProcessEscrowPaymentInstructionDataDecoder:()=>kR,getProcessEscrowPaymentInstructionDataEncoder:()=>Ip,getProcessPartialRefundDiscriminatorBytes:()=>bft,getProcessPartialRefundInstruction:()=>OR,getProcessPartialRefundInstructionAsync:()=>Rft,getProcessPartialRefundInstructionDataCodec:()=>Cft,getProcessPartialRefundInstructionDataDecoder:()=>_R,getProcessPartialRefundInstructionDataEncoder:()=>vp,getProcessPaymentDiscriminatorBytes:()=>Bft,getProcessPaymentInstruction:()=>Kft,getProcessPaymentInstructionAsync:()=>Lft,getProcessPaymentInstructionDataCodec:()=>Nft,getProcessPaymentInstructionDataDecoder:()=>FR,getProcessPaymentInstructionDataEncoder:()=>Mp,getProposalAccountCodec:()=>Xhe,getProposalAccountDecoder:()=>Ga,getProposalAccountEncoder:()=>Fa,getProposalExecutedEventCodec:()=>oIe,getProposalExecutedEventDecoder:()=>yF,getProposalExecutedEventEncoder:()=>mF,getProposalInstructionCodec:()=>yIe,getProposalInstructionDecoder:()=>Hs,getProposalInstructionEncoder:()=>Vs,getProposalMetadataCodec:()=>EIe,getProposalMetadataDecoder:()=>Ka,getProposalMetadataEncoder:()=>La,getProposalStatusCodec:()=>bIe,getProposalStatusDecoder:()=>dn,getProposalStatusEncoder:()=>an,getProposalTypeCodec:()=>IIe,getProposalTypeDecoder:()=>Oe,getProposalTypeEncoder:()=>_e,getPurchaseServiceDiscriminatorBytes:()=>oxt,getPurchaseServiceInstruction:()=>VR,getPurchaseServiceInstructionAsync:()=>sxt,getPurchaseServiceInstructionDataCodec:()=>cxt,getPurchaseServiceInstructionDataDecoder:()=>KR,getPurchaseServiceInstructionDataEncoder:()=>kp,getPurchaseStatusCodec:()=>wIe,getPurchaseStatusDecoder:()=>Ja,getPurchaseStatusEncoder:()=>Ha,getQuorumMethodCodec:()=>zIe,getQuorumMethodDecoder:()=>$a,getQuorumMethodEncoder:()=>qa,getQuorumRequirementsCodec:()=>VIe,getQuorumRequirementsDecoder:()=>Qa,getQuorumRequirementsEncoder:()=>Xa,getQuotaResetBehaviorCodec:()=>R3e,getQuotaResetBehaviorDecoder:()=>Sg,getQuotaResetBehaviorEncoder:()=>Eg,getRbacConfigCodec:()=>Yqe,getRbacConfigDecoder:()=>LE,getRbacConfigDiscriminatorBytes:()=>Zqe,getRbacConfigEncoder:()=>tJ,getRbacConfigInitializedEventCodec:()=>XIe,getRbacConfigInitializedEventDecoder:()=>OF,getRbacConfigInitializedEventEncoder:()=>_F,getRecordX402PaymentDiscriminatorBytes:()=>yxt,getRecordX402PaymentInstruction:()=>fxt,getRecordX402PaymentInstructionDataCodec:()=>Txt,getRecordX402PaymentInstructionDataDecoder:()=>jR,getRecordX402PaymentInstructionDataEncoder:()=>JR,getReentrancyGuardCodec:()=>P$e,getReentrancyGuardDecoder:()=>HE,getReentrancyGuardDiscriminatorBytes:()=>S$e,getReentrancyGuardEncoder:()=>iJ,getReentrancyGuardSize:()=>C$e,getReentrancyStateCodec:()=>eve,getReentrancyStateDecoder:()=>ed,getReentrancyStateEncoder:()=>Ya,getRefundExpiredEscrowDiscriminatorBytes:()=>hxt,getRefundExpiredEscrowInstruction:()=>Mxt,getRefundExpiredEscrowInstructionAsync:()=>vxt,getRefundExpiredEscrowInstructionDataCodec:()=>Ixt,getRefundExpiredEscrowInstructionDataDecoder:()=>XR,getRefundExpiredEscrowInstructionDataEncoder:()=>wp,getRegisterAgentCompressedDiscriminatorBytes:()=>eEt,getRegisterAgentCompressedInstruction:()=>nEt,getRegisterAgentCompressedInstructionAsync:()=>rh,getRegisterAgentCompressedInstructionDataCodec:()=>tEt,getRegisterAgentCompressedInstructionDataDecoder:()=>nh,getRegisterAgentCompressedInstructionDataEncoder:()=>Jp,getRegisterAgentDiscriminatorBytes:()=>Lxt,getRegisterAgentInstruction:()=>Vxt,getRegisterAgentInstructionAsync:()=>eh,getRegisterAgentInstructionDataCodec:()=>Kxt,getRegisterAgentInstructionDataDecoder:()=>YR,getRegisterAgentInstructionDataEncoder:()=>Fp,getRegisterExtensionDiscriminatorBytes:()=>EEt,getRegisterExtensionInstruction:()=>DEt,getRegisterExtensionInstructionAsync:()=>PEt,getRegisterExtensionInstructionDataCodec:()=>SEt,getRegisterExtensionInstructionDataDecoder:()=>sh,getRegisterExtensionInstructionDataEncoder:()=>jp,getRegulatoryStatusCodec:()=>o3e,getRegulatoryStatusDecoder:()=>Zu,getRegulatoryStatusEncoder:()=>Qu,getRejectWorkDeliveryDiscriminatorBytes:()=>OEt,getRejectWorkDeliveryInstruction:()=>WEt,getRejectWorkDeliveryInstructionDataCodec:()=>zEt,getRejectWorkDeliveryInstructionDataDecoder:()=>dh,getRejectWorkDeliveryInstructionDataEncoder:()=>ah,getReplicateAgentDiscriminatorBytes:()=>jEt,getReplicateAgentInstruction:()=>XEt,getReplicateAgentInstructionAsync:()=>$Et,getReplicateAgentInstructionDataCodec:()=>qEt,getReplicateAgentInstructionDataDecoder:()=>Ah,getReplicateAgentInstructionDataEncoder:()=>$p,getReplicationRecordCodec:()=>V$e,getReplicationRecordDecoder:()=>qE,getReplicationRecordDiscriminatorBytes:()=>K$e,getReplicationRecordEncoder:()=>mJ,getReplicationTemplateCodec:()=>mXe,getReplicationTemplateCreatedEventCodec:()=>ave,getReplicationTemplateCreatedEventDecoder:()=>GF,getReplicationTemplateCreatedEventEncoder:()=>FF,getReplicationTemplateDataCodec:()=>f4e,getReplicationTemplateDataDecoder:()=>e9,getReplicationTemplateDataEncoder:()=>Y5,getReplicationTemplateDecoder:()=>tS,getReplicationTemplateDiscriminatorBytes:()=>lXe,getReplicationTemplateEncoder:()=>DJ,getReportDataCodec:()=>fve,getReportDataDecoder:()=>nd,getReportDataEncoder:()=>td,getReportEntryCodec:()=>lBe,getReportEntryDecoder:()=>tt,getReportEntryEncoder:()=>et,getReportEntryExportCodec:()=>Pve,getReportEntryExportDecoder:()=>KF,getReportEntryExportEncoder:()=>LF,getReportStatusCodec:()=>Mve,getReportStatusDecoder:()=>ud,getReportStatusEncoder:()=>dd,getReportSummaryCodec:()=>zve,getReportSummaryDecoder:()=>od,getReportSummaryEncoder:()=>rd,getReportTypeCodec:()=>Bve,getReportTypeDecoder:()=>ve,getReportTypeEncoder:()=>Ie,getReportingFrequencyCodec:()=>Rve,getReportingFrequencyDecoder:()=>Tc,getReportingFrequencyEncoder:()=>yc,getReputationMetricsInitializedEventCodec:()=>qve,getReputationMetricsInitializedEventDecoder:()=>XF,getReputationMetricsInitializedEventEncoder:()=>$F,getReputationPaymentRecordedEventCodec:()=>uMe,getReputationPaymentRecordedEventDecoder:()=>YF,getReputationPaymentRecordedEventEncoder:()=>ZF,getReputationRatingSubmittedEventCodec:()=>EMe,getReputationRatingSubmittedEventDecoder:()=>o4,getReputationRatingSubmittedEventEncoder:()=>r4,getResaleMarketCodec:()=>FXe,getResaleMarketDecoder:()=>sS,getResaleMarketDiscriminatorBytes:()=>WXe,getResaleMarketEncoder:()=>UJ,getResetReentrancyGuardDiscriminatorBytes:()=>cSt,getResetReentrancyGuardInstruction:()=>aSt,getResetReentrancyGuardInstructionAsync:()=>iSt,getResetReentrancyGuardInstructionDataCodec:()=>sSt,getResetReentrancyGuardInstructionDataDecoder:()=>mh,getResetReentrancyGuardInstructionDataEncoder:()=>Xp,getResolveDisputeDiscriminatorBytes:()=>CSt,getResolveDisputeInstruction:()=>ISt,getResolveDisputeInstructionAsync:()=>hSt,getResolveDisputeInstructionDataCodec:()=>RSt,getResolveDisputeInstructionDataDecoder:()=>fh,getResolveDisputeInstructionDataEncoder:()=>Qp,getResourceConstraintsCodec:()=>EBe,getResourceConstraintsDecoder:()=>rt,getResourceConstraintsEncoder:()=>nt,getResourceConstraintsExportCodec:()=>bMe,getResourceConstraintsExportDecoder:()=>i4,getResourceConstraintsExportEncoder:()=>s4,getResourceQuotaCodec:()=>P3e,getResourceQuotaDecoder:()=>ag,getResourceQuotaEncoder:()=>ig,getReviewScheduleCodec:()=>FMe,getReviewScheduleDecoder:()=>va,getReviewScheduleEncoder:()=>Ia,getRiskAcceptanceCodec:()=>ZMe,getRiskAcceptanceDecoder:()=>md,getRiskAcceptanceEncoder:()=>ld,getRiskAssessmentCodec:()=>uke,getRiskAssessmentDecoder:()=>en,getRiskAssessmentEncoder:()=>Yt,getRiskCategoryCodec:()=>lke,getRiskCategoryDecoder:()=>Ed,getRiskCategoryEncoder:()=>xd,getRiskFactorCodec:()=>bke,getRiskFactorDecoder:()=>Td,getRiskFactorEncoder:()=>yd,getRiskIndicatorCodec:()=>Mke,getRiskIndicatorDecoder:()=>sd,getRiskIndicatorEncoder:()=>cd,getRiskLevelCodec:()=>_ke,getRiskLevelDecoder:()=>hd,getRiskLevelEncoder:()=>Rd,getRoleCodec:()=>Fke,getRoleConstraintsCodec:()=>Vke,getRoleConstraintsDecoder:()=>vd,getRoleConstraintsEncoder:()=>Id,getRoleDecoder:()=>gn,getRoleEncoder:()=>un,getRoleMetadataCodec:()=>Xke,getRoleMetadataDecoder:()=>kd,getRoleMetadataEncoder:()=>Md,getRoleStatusCodec:()=>ewe,getRoleStatusDecoder:()=>Ud,getRoleStatusEncoder:()=>wd,getRoleTypeCodec:()=>owe,getRoleTypeDecoder:()=>Od,getRoleTypeEncoder:()=>_d,getRoyaltyConfigCodec:()=>uwe,getRoyaltyConfigDecoder:()=>pn,getRoyaltyConfigEncoder:()=>An,getRoyaltyStreamCodec:()=>cQe,getRoyaltyStreamCreatedEventCodec:()=>ywe,getRoyaltyStreamCreatedEventDecoder:()=>Y4,getRoyaltyStreamCreatedEventEncoder:()=>Z4,getRoyaltyStreamDecoder:()=>dS,getRoyaltyStreamDiscriminatorBytes:()=>oQe,getRoyaltyStreamEncoder:()=>KJ,getRoyaltyStreamSize:()=>aQe,getRuleConditionCodec:()=>A3e,getRuleConditionDecoder:()=>Ye,getRuleConditionEncoder:()=>Ze,getRuleConditionExportCodec:()=>Ewe,getRuleConditionExportDecoder:()=>n6,getRuleConditionExportEncoder:()=>t6,getRuleEffectCodec:()=>bwe,getRuleEffectDecoder:()=>ka,getRuleEffectEncoder:()=>Ma,getScopeBoundariesCodec:()=>Iwe,getScopeBoundariesDecoder:()=>Da,getScopeBoundariesEncoder:()=>Pa,getScopeInheritanceCodec:()=>wwe,getScopeInheritanceDecoder:()=>Ua,getScopeInheritanceEncoder:()=>wa,getScopeTypeCodec:()=>zwe,getScopeTypeDecoder:()=>Ca,getScopeTypeEncoder:()=>ba,getSecurityEventTypeCodec:()=>Bwe,getSecurityEventTypeDecoder:()=>ji,getSecurityEventTypeEncoder:()=>Ji,getSecurityPoliciesCodec:()=>Vwe,getSecurityPoliciesDecoder:()=>Yd,getSecurityPoliciesEncoder:()=>Zd,getSendA2aMessageDiscriminatorBytes:()=>BSt,getSendA2aMessageInstruction:()=>LSt,getSendA2aMessageInstructionDataCodec:()=>NSt,getSendA2aMessageInstructionDataDecoder:()=>Sh,getSendA2aMessageInstructionDataEncoder:()=>Eh,getSendCommunicationMessageDiscriminatorBytes:()=>ePt,getSendCommunicationMessageInstruction:()=>nPt,getSendCommunicationMessageInstructionDataCodec:()=>tPt,getSendCommunicationMessageInstructionDataDecoder:()=>Mh,getSendCommunicationMessageInstructionDataEncoder:()=>vh,getSendEnhancedMessageDiscriminatorBytes:()=>pPt,getSendEnhancedMessageInstruction:()=>mPt,getSendEnhancedMessageInstructionAsync:()=>_h,getSendEnhancedMessageInstructionDataCodec:()=>lPt,getSendEnhancedMessageInstructionDataDecoder:()=>Uh,getSendEnhancedMessageInstructionDataEncoder:()=>Yp,getSendMessageDiscriminatorBytes:()=>kPt,getSendMessageInstruction:()=>UPt,getSendMessageInstructionDataCodec:()=>wPt,getSendMessageInstructionDataDecoder:()=>Wh,getSendMessageInstructionDataEncoder:()=>zh,getServiceAuctionCreatedEventCodec:()=>Xwe,getServiceAuctionCreatedEventDecoder:()=>g6,getServiceAuctionCreatedEventEncoder:()=>u6,getServiceListingCodec:()=>UQe,getServiceListingCreatedEventCodec:()=>oUe,getServiceListingCreatedEventDecoder:()=>y6,getServiceListingCreatedEventEncoder:()=>m6,getServiceListingDataCodec:()=>I4e,getServiceListingDataDecoder:()=>c9,getServiceListingDataEncoder:()=>o9,getServiceListingDecoder:()=>lS,getServiceListingDiscriminatorBytes:()=>wQe,getServiceListingEncoder:()=>$J,getServicePerformanceEventCodec:()=>fUe,getServicePerformanceEventDecoder:()=>S6,getServicePerformanceEventEncoder:()=>E6,getServicePurchaseCodec:()=>eZe,getServicePurchaseDataCodec:()=>F4e,getServicePurchaseDataDecoder:()=>A9,getServicePurchaseDataEncoder:()=>g9,getServicePurchaseDecoder:()=>SS,getServicePurchaseDiscriminatorBytes:()=>YQe,getServicePurchaseEncoder:()=>ij,getServicePurchasedEventCodec:()=>bUe,getServicePurchasedEventDecoder:()=>I6,getServicePurchasedEventEncoder:()=>h6,getSessionConstraintsCodec:()=>IUe,getSessionConstraintsDecoder:()=>Wd,getSessionConstraintsEncoder:()=>zd,getSessionPoliciesCodec:()=>_Ue,getSessionPoliciesDecoder:()=>tu,getSessionPoliciesEncoder:()=>eu,getSodConstraintCodec:()=>FUe,getSodConstraintDecoder:()=>Gd,getSodConstraintEncoder:()=>Fd,getSodConstraintTypeCodec:()=>LUe,getSodConstraintTypeDecoder:()=>ru,getSodConstraintTypeEncoder:()=>nu,getStakeTokensDiscriminatorBytes:()=>JPt,getStakeTokensInstruction:()=>$Pt,getStakeTokensInstructionAsync:()=>qPt,getStakeTokensInstructionDataCodec:()=>jPt,getStakeTokensInstructionDataDecoder:()=>Gh,getStakeTokensInstructionDataEncoder:()=>tl,getStakingAccountCodec:()=>TZe,getStakingAccountDecoder:()=>RS,getStakingAccountDiscriminatorBytes:()=>yZe,getStakingAccountEncoder:()=>Tj,getStakingAccountSize:()=>EZe,getStakingConfigCodec:()=>WZe,getStakingConfigDecoder:()=>kS,getStakingConfigDiscriminatorBytes:()=>zZe,getStakingConfigEncoder:()=>vj,getStakingConfigSize:()=>BZe,getStepUpTriggerCodec:()=>JUe,getStepUpTriggerDecoder:()=>Uc,getStepUpTriggerEncoder:()=>wc,getSubmissionDetailsCodec:()=>ZUe,getSubmissionDetailsDecoder:()=>iu,getSubmissionDetailsEncoder:()=>su,getSubmitDisputeEvidenceDiscriminatorBytes:()=>cDt,getSubmitDisputeEvidenceInstruction:()=>aDt,getSubmitDisputeEvidenceInstructionAsync:()=>iDt,getSubmitDisputeEvidenceInstructionDataCodec:()=>sDt,getSubmitDisputeEvidenceInstructionDataDecoder:()=>Lh,getSubmitDisputeEvidenceInstructionDataEncoder:()=>nl,getSubmitEvidenceBatchDiscriminatorBytes:()=>EDt,getSubmitEvidenceBatchInstruction:()=>DDt,getSubmitEvidenceBatchInstructionAsync:()=>PDt,getSubmitEvidenceBatchInstructionDataCodec:()=>SDt,getSubmitEvidenceBatchInstructionDataDecoder:()=>Hh,getSubmitEvidenceBatchInstructionDataEncoder:()=>rl,getSubmitWorkDeliveryDiscriminatorBytes:()=>ODt,getSubmitWorkDeliveryInstruction:()=>FDt,getSubmitWorkDeliveryInstructionAsync:()=>WDt,getSubmitWorkDeliveryInstructionDataCodec:()=>zDt,getSubmitWorkDeliveryInstructionDataDecoder:()=>qh,getSubmitWorkDeliveryInstructionDataEncoder:()=>ol,getSubmitX402RatingDiscriminatorBytes:()=>XDt,getSubmitX402RatingInstruction:()=>ZDt,getSubmitX402RatingInstructionDataCodec:()=>QDt,getSubmitX402RatingInstructionDataDecoder:()=>rI,getSubmitX402RatingInstructionDataEncoder:()=>nI,getTallyVotesDiscriminatorBytes:()=>sbt,getTallyVotesInstruction:()=>iI,getTallyVotesInstructionDataCodec:()=>ibt,getTallyVotesInstructionDataDecoder:()=>sI,getTallyVotesInstructionDataEncoder:()=>cI,getTimeConstraintsCodec:()=>o_e,getTimeConstraintsDecoder:()=>Nd,getTimeConstraintsEncoder:()=>Bd,getTimeLockCodec:()=>A_e,getTimeLockDecoder:()=>oa,getTimeLockEncoder:()=>ra,getTimeLockTypeCodec:()=>y_e,getTimeLockTypeDecoder:()=>du,getTimeLockTypeEncoder:()=>au,getToken2022ExtensionsEnabledCodec:()=>E_e,getToken2022ExtensionsEnabledDecoder:()=>Au,getToken2022ExtensionsEnabledEncoder:()=>gu,getToken2022MintCreatedEventCodec:()=>I_e,getToken2022MintCreatedEventDecoder:()=>Q6,getToken2022MintCreatedEventEncoder:()=>X6,getTopAgentAddedEventCodec:()=>__e,getTopAgentAddedEventDecoder:()=>nG,getTopAgentAddedEventEncoder:()=>tG,getTransactionAnalyticsEventCodec:()=>B_e,getTransactionAnalyticsEventDecoder:()=>mG,getTransactionAnalyticsEventEncoder:()=>lG,getTransactionPriorityCodec:()=>V_e,getTransactionPriorityDecoder:()=>sa,getTransactionPriorityEncoder:()=>ca,getTransactionStatusCodec:()=>q_e,getTransactionStatusDecoder:()=>aa,getTransactionStatusEncoder:()=>ia,getTransactionTypeCodec:()=>Z_e,getTransactionTypeDecoder:()=>Ae,getTransactionTypeEncoder:()=>ge,getTransferFeeConfigParamsCodec:()=>J4e,getTransferFeeConfigParamsDecoder:()=>x9,getTransferFeeConfigParamsEncoder:()=>f9,getTransferFeeInitializedEventCodec:()=>a2e,getTransferFeeInitializedEventDecoder:()=>DG,getTransferFeeInitializedEventEncoder:()=>PG,getTrendDirectionCodec:()=>A2e,getTrendDirectionDecoder:()=>Pd,getTrendDirectionEncoder:()=>Sd,getTypingIndicatorEventCodec:()=>E2e,getTypingIndicatorEventDecoder:()=>vG,getTypingIndicatorEventEncoder:()=>IG,getUnlockMethodCodec:()=>b2e,getUnlockMethodDecoder:()=>Fo,getUnlockMethodEncoder:()=>Wo,getUnstakeTokensDiscriminatorBytes:()=>fbt,getUnstakeTokensInstruction:()=>Sbt,getUnstakeTokensInstructionAsync:()=>Ebt,getUnstakeTokensInstructionDataCodec:()=>xbt,getUnstakeTokensInstructionDataDecoder:()=>uI,getUnstakeTokensInstructionDataEncoder:()=>cl,getUpdateA2aStatusDiscriminatorBytes:()=>Gbt,getUpdateA2aStatusInstruction:()=>Lbt,getUpdateA2aStatusInstructionAsync:()=>Nbt,getUpdateA2aStatusInstructionDataCodec:()=>Bbt,getUpdateA2aStatusInstructionDataDecoder:()=>pI,getUpdateA2aStatusInstructionDataEncoder:()=>sl,getUpdateAgentDiscriminatorBytes:()=>eCt,getUpdateAgentInstruction:()=>TI,getUpdateAgentInstructionAsync:()=>nCt,getUpdateAgentInstructionDataCodec:()=>tCt,getUpdateAgentInstructionDataDecoder:()=>yI,getUpdateAgentInstructionDataEncoder:()=>Al,getUpdateAgentReputationDiscriminatorBytes:()=>xCt,getUpdateAgentReputationInstruction:()=>PCt,getUpdateAgentReputationInstructionAsync:()=>SCt,getUpdateAgentReputationInstructionDataCodec:()=>ECt,getUpdateAgentReputationInstructionDataDecoder:()=>EI,getUpdateAgentReputationInstructionDataEncoder:()=>pl,getUpdateAgentServiceDiscriminatorBytes:()=>BCt,getUpdateAgentServiceInstruction:()=>MI,getUpdateAgentServiceInstructionAsync:()=>LCt,getUpdateAgentServiceInstructionDataCodec:()=>NCt,getUpdateAgentServiceInstructionDataDecoder:()=>vI,getUpdateAgentServiceInstructionDataEncoder:()=>ll,getUpdateAnalyticsDashboardDiscriminatorBytes:()=>oRt,getUpdateAnalyticsDashboardInstruction:()=>iRt,getUpdateAnalyticsDashboardInstructionAsync:()=>sRt,getUpdateAnalyticsDashboardInstructionDataCodec:()=>cRt,getUpdateAnalyticsDashboardInstructionDataDecoder:()=>UI,getUpdateAnalyticsDashboardInstructionDataEncoder:()=>ml,getUpdateAuctionReservePriceDiscriminatorBytes:()=>xRt,getUpdateAuctionReservePriceInstruction:()=>SRt,getUpdateAuctionReservePriceInstructionDataCodec:()=>ERt,getUpdateAuctionReservePriceInstructionDataDecoder:()=>zI,getUpdateAuctionReservePriceInstructionDataEncoder:()=>OI,getUpdateChannelSettingsDiscriminatorBytes:()=>MRt,getUpdateChannelSettingsInstruction:()=>BI,getUpdateChannelSettingsInstructionAsync:()=>wRt,getUpdateChannelSettingsInstructionDataCodec:()=>kRt,getUpdateChannelSettingsInstructionDataDecoder:()=>GI,getUpdateChannelSettingsInstructionDataEncoder:()=>yl,getUpdateDynamicPricingDiscriminatorBytes:()=>JRt,getUpdateDynamicPricingInstruction:()=>qRt,getUpdateDynamicPricingInstructionDataCodec:()=>jRt,getUpdateDynamicPricingInstructionDataDecoder:()=>HI,getUpdateDynamicPricingInstructionDataEncoder:()=>VI,getUpdateMarketAnalyticsDiscriminatorBytes:()=>nht,getUpdateMarketAnalyticsInstruction:()=>oht,getUpdateMarketAnalyticsInstructionDataCodec:()=>rht,getUpdateMarketAnalyticsInstructionDataDecoder:()=>qI,getUpdateMarketAnalyticsInstructionDataEncoder:()=>jI,getUpdateParticipantStatusDiscriminatorBytes:()=>Rht,getUpdateParticipantStatusInstruction:()=>vht,getUpdateParticipantStatusInstructionAsync:()=>Iht,getUpdateParticipantStatusInstructionDataCodec:()=>hht,getUpdateParticipantStatusInstructionDataDecoder:()=>QI,getUpdateParticipantStatusInstructionDataEncoder:()=>Tl,getUpdateTransferFeeConfigDiscriminatorBytes:()=>Lht,getUpdateTransferFeeConfigInstruction:()=>Hht,getUpdateTransferFeeConfigInstructionAsync:()=>Vht,getUpdateTransferFeeConfigInstructionDataCodec:()=>Kht,getUpdateTransferFeeConfigInstructionDataDecoder:()=>tv,getUpdateTransferFeeConfigInstructionDataEncoder:()=>fl,getUserEngagementEventCodec:()=>B2e,getUserEngagementEventDecoder:()=>OG,getUserEngagementEventEncoder:()=>_G,getUserJoinedChannelEventCodec:()=>J2e,getUserJoinedChannelEventDecoder:()=>BG,getUserJoinedChannelEventEncoder:()=>GG,getUserLeftChannelEventCodec:()=>Z2e,getUserLeftChannelEventDecoder:()=>HG,getUserLeftChannelEventEncoder:()=>VG,getUserRegistryCodec:()=>iYe,getUserRegistryDecoder:()=>_S,getUserRegistryDiscriminatorBytes:()=>sYe,getUserRegistryEncoder:()=>Oj,getUserRegistrySize:()=>uYe,getValueTypeCodec:()=>n0e,getValueTypeDecoder:()=>is,getValueTypeEncoder:()=>ss,getVerifyAgentDiscriminatorBytes:()=>pIt,getVerifyAgentInstruction:()=>mIt,getVerifyAgentInstructionAsync:()=>sv,getVerifyAgentInstructionDataCodec:()=>lIt,getVerifyAgentInstructionDataDecoder:()=>cv,getVerifyAgentInstructionDataEncoder:()=>xl,getVerifyWorkDeliveryDiscriminatorBytes:()=>kIt,getVerifyWorkDeliveryInstruction:()=>UIt,getVerifyWorkDeliveryInstructionDataCodec:()=>wIt,getVerifyWorkDeliveryInstructionDataDecoder:()=>dv,getVerifyWorkDeliveryInstructionDataEncoder:()=>av,getViolationSeverityCodec:()=>s0e,getViolationSeverityDecoder:()=>bd,getViolationSeverityEncoder:()=>Dd,getVolumeTierCodec:()=>u0e,getVolumeTierDecoder:()=>ct,getVolumeTierEncoder:()=>ot,getVoteCastEnhancedEventCodec:()=>_0e,getVoteCastEnhancedEventDecoder:()=>nB,getVoteCastEnhancedEventEncoder:()=>tB,getVoteCastEventCodec:()=>L0e,getVoteCastEventDecoder:()=>iB,getVoteCastEventEncoder:()=>sB,getVoteChoiceCodec:()=>J0e,getVoteChoiceDecoder:()=>j,getVoteChoiceEncoder:()=>J,getVoteCodec:()=>R0e,getVoteDecoder:()=>Du,getVoteDelegatedEventCodec:()=>Z0e,getVoteDelegatedEventDecoder:()=>yB,getVoteDelegatedEventEncoder:()=>mB,getVoteEncoder:()=>Pu,getVotesTalliedEventCodec:()=>a8e,getVotesTalliedEventDecoder:()=>xB,getVotesTalliedEventEncoder:()=>fB,getVotingResultsCodec:()=>y8e,getVotingResultsDecoder:()=>vu,getVotingResultsEncoder:()=>Iu,getWorkDeliveryCodec:()=>vYe,getWorkDeliveryDataCodec:()=>Z4e,getWorkDeliveryDataDecoder:()=>I9,getWorkDeliveryDataEncoder:()=>h9,getWorkDeliveryDecoder:()=>WS,getWorkDeliveryDiscriminatorBytes:()=>IYe,getWorkDeliveryEncoder:()=>$j,getWorkDeliveryRejectedEventCodec:()=>R8e,getWorkDeliveryRejectedEventDecoder:()=>vB,getWorkDeliveryRejectedEventEncoder:()=>IB,getWorkDeliverySubmittedEventCodec:()=>F8e,getWorkDeliverySubmittedEventDecoder:()=>_B,getWorkDeliverySubmittedEventEncoder:()=>UB,getWorkDeliveryVerifiedEventCodec:()=>Z8e,getWorkDeliveryVerifiedEventDecoder:()=>WB,getWorkDeliveryVerifiedEventEncoder:()=>zB,getWorkOrderCodec:()=>ZYe,getWorkOrderCreatedEventCodec:()=>sOe,getWorkOrderCreatedEventDecoder:()=>BB,getWorkOrderCreatedEventEncoder:()=>GB,getWorkOrderDataCodec:()=>s6e,getWorkOrderDataDecoder:()=>O9,getWorkOrderDataEncoder:()=>_9,getWorkOrderDecoder:()=>qS,getWorkOrderDiscriminatorBytes:()=>QYe,getWorkOrderEncoder:()=>tq,getWorkOrderStatusCodec:()=>uOe,getWorkOrderStatusDecoder:()=>wu,getWorkOrderStatusEncoder:()=>ku,getX402ConfigDataCodec:()=>P6e,getX402ConfigDataDecoder:()=>B9,getX402ConfigDataEncoder:()=>G9,getX402PaymentDataCodec:()=>_6e,getX402PaymentDataDecoder:()=>H9,getX402PaymentDataEncoder:()=>V9,getX402PaymentRecordedEventCodec:()=>POe,getX402PaymentRecordedEventDecoder:()=>VB,getX402PaymentRecordedEventEncoder:()=>KB,getX402RatingDataCodec:()=>L6e,getX402RatingDataDecoder:()=>eN,getX402RatingDataEncoder:()=>Y9,getX402RatingSubmittedEventCodec:()=>wOe,getX402RatingSubmittedEventDecoder:()=>YB,getX402RatingSubmittedEventEncoder:()=>ZB,identifyGhostspeakMarketplaceAccount:()=>tet,identifyGhostspeakMarketplaceInstruction:()=>net,isDelegationScope:()=>s1e,isGhostspeakMarketplaceError:()=>cet,parseAcceptJobApplicationInstruction:()=>xet,parseActivateAgentInstruction:()=>Wet,parseAddMessageReactionInstruction:()=>ett,parseAddTopAgentInstruction:()=>Att,parseApplyToJobInstruction:()=>htt,parseApproveExtensionInstruction:()=>ztt,parseAssignArbitratorInstruction:()=>Xtt,parseBatchReplicateAgentsInstruction:()=>unt,parseCancelEscrowInstruction:()=>hnt,parseCastVoteEnhancedInstruction:()=>grt,parseCastVoteInstruction:()=>Vnt,parseClaimStakingRewardsInstruction:()=>Drt,parseCompleteEscrowInstruction:()=>Lrt,parseConfigureX402Instruction:()=>sot,parseCreateA2aSessionInstruction:()=>Pot,parseCreateAnalyticsDashboardInstruction:()=>Bot,parseCreateBulkDealInstruction:()=>ict,parseCreateChannelInstruction:()=>Cct,parseCreateCommunicationSessionInstruction:()=>Nct,parseCreateDynamicPricingEngineInstruction:()=>est,parseCreateEnhancedChannelInstruction:()=>xst,parseCreateEscrowInstruction:()=>Kst,parseCreateEscrowWithSolInstruction:()=>pit,parseCreateIncentiveProgramInstruction:()=>Rit,parseCreateJobPostingInstruction:()=>Bit,parseCreateMarketAnalyticsInstruction:()=>Zit,parseCreateMultisigInstruction:()=>mat,parseCreateReplicationTemplateInstruction:()=>wat,parseCreateRoyaltyStreamInstruction:()=>Hat,parseCreateServiceAuctionInstruction:()=>ddt,parseCreateServiceListingInstruction:()=>Cdt,parseCreateStakingAccountInstruction:()=>Wdt,parseCreateToken2022MintInstruction:()=>eut,parseCreateWorkOrderInstruction:()=>lut,parseDeactivateAgentInstruction:()=>kut,parseDelegateVoteInstruction:()=>jut,parseDisputeEscrowInstruction:()=>ugt,parseDistributeIncentivesInstruction:()=>Mgt,parseExecuteBulkDealBatchInstruction:()=>Hgt,parseExecuteProposalInstruction:()=>eAt,parseExportActionInstruction:()=>uAt,parseExportAuditContextInstruction:()=>EAt,parseExportBiometricQualityInstruction:()=>MAt,parseExportComplianceStatusInstruction:()=>BAt,parseExportDynamicPricingConfigInstruction:()=>XAt,parseExportMultisigConfigInstruction:()=>spt,parseExportReportEntryInstruction:()=>ypt,parseExportResourceConstraintsInstruction:()=>Rpt,parseExportRuleConditionInstruction:()=>zpt,parseExtendAuctionForReserveInstruction:()=>Jpt,parseExtendLockupInstruction:()=>slt,parseFileDisputeInstruction:()=>Plt,parseFinalizeAuctionInstruction:()=>klt,parseGenerateComplianceReportInstruction:()=>Vlt,parseInitReentrancyGuardInstruction:()=>Eyt,parseInitializeAuditTrailInstruction:()=>d1t,parseInitializeConfidentialTransferMintInstruction:()=>D1t,parseInitializeDefaultAccountStateInstruction:()=>O1t,parseInitializeGovernanceProposalInstruction:()=>j1t,parseInitializeInterestBearingConfigInstruction:()=>imt,parseInitializeMintCloseAuthorityInstruction:()=>xmt,parseInitializeRbacConfigInstruction:()=>_mt,parseInitializeStakingConfigInstruction:()=>qmt,parseInitiateNegotiationInstruction:()=>ayt,parseJoinChannelInstruction:()=>kyt,parseLeaveChannelInstruction:()=>Lyt,parseListAgentForResaleInstruction:()=>nTt,parseMakeCounterOfferInstruction:()=>ETt,parseManageAgentStatusInstruction:()=>OTt,parsePlaceAuctionBidInstruction:()=>JTt,parsePlaceDutchAuctionBidInstruction:()=>nft,parseProcessEscrowPaymentInstruction:()=>lft,parseProcessPartialRefundInstruction:()=>hft,parseProcessPaymentInstruction:()=>Vft,parsePurchaseServiceInstruction:()=>ixt,parseRecordX402PaymentInstruction:()=>xxt,parseRefundExpiredEscrowInstruction:()=>kxt,parseRegisterAgentCompressedInstruction:()=>rEt,parseRegisterAgentInstruction:()=>Hxt,parseRegisterExtensionInstruction:()=>bEt,parseRejectWorkDeliveryInstruction:()=>FEt,parseReplicateAgentInstruction:()=>QEt,parseResetReentrancyGuardInstruction:()=>dSt,parseResolveDisputeInstruction:()=>vSt,parseSendA2aMessageInstruction:()=>KSt,parseSendCommunicationMessageInstruction:()=>rPt,parseSendEnhancedMessageInstruction:()=>yPt,parseSendMessageInstruction:()=>_Pt,parseStakeTokensInstruction:()=>XPt,parseSubmitDisputeEvidenceInstruction:()=>dDt,parseSubmitEvidenceBatchInstruction:()=>bDt,parseSubmitWorkDeliveryInstruction:()=>GDt,parseSubmitX402RatingInstruction:()=>YDt,parseTallyVotesInstruction:()=>abt,parseUnstakeTokensInstruction:()=>Pbt,parseUpdateA2aStatusInstruction:()=>Kbt,parseUpdateAgentInstruction:()=>rCt,parseUpdateAgentReputationInstruction:()=>DCt,parseUpdateAgentServiceInstruction:()=>KCt,parseUpdateAnalyticsDashboardInstruction:()=>aRt,parseUpdateAuctionReservePriceInstruction:()=>PRt,parseUpdateChannelSettingsInstruction:()=>URt,parseUpdateDynamicPricingInstruction:()=>$Rt,parseUpdateMarketAnalyticsInstruction:()=>cht,parseUpdateParticipantStatusInstruction:()=>Mht,parseUpdateTransferFeeConfigInstruction:()=>Jht,parseVerifyAgentInstruction:()=>yIt,parseVerifyWorkDeliveryInstruction:()=>_It});var H=i(()=>{cq();yq();Fte();f();p();});var qn={};jv(qn,{deriveA2AMessagePda:()=>rvt,deriveA2ASessionPda:()=>nvt,deriveA2ASessionPdaOriginal:()=>tvt,deriveAgentPda:()=>$It,deriveAgentPdaOriginal:()=>qIt,deriveAgentTreeConfigPda:()=>dvt,deriveAgentVerificationPda:()=>svt,deriveAuctionPda:()=>Ev,deriveChannelPda:()=>vl,deriveEscrowPDA:()=>lvt,deriveEscrowPDAOriginal:()=>pvt,deriveEscrowPda:()=>mvt,deriveJobApplicationPda:()=>QIt,deriveJobPostingPda:()=>xv,deriveMessagePda:()=>Sv,derivePaymentPda:()=>evt,deriveReplicationRecordPda:()=>avt,deriveReplicationTemplatePda:()=>ivt,deriveServiceListingPda:()=>XIt,deriveServicePurchasePda:()=>cvt,deriveTokenAccountPda:()=>yvt,deriveUserRegistryPda:()=>ovt,deriveWorkDeliveryPDA:()=>Avt,deriveWorkDeliveryPda:()=>YIt,deriveWorkOrderPDA:()=>gvt,deriveWorkOrderPda:()=>ZIt,findProgramDerivedAddress:()=>uvt});async function qIt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(t),getUtf8Encoder().encode(r)]});return o}async function $It(e){let t=await getProgramDerivedAddress({programAddress:e.programAddress,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(e.owner),getUtf8Encoder().encode(e.agentId)]});return [t[0],t[1]]}async function XIt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([115,101,114,118,105,99,101,95,108,105,115,116,105,110,103])),getAddressEncoder().encode(t),getUtf8Encoder().encode(r)]});return o}async function xv(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,112,111,115,116,105,110,103])),getAddressEncoder().encode(t),getUtf8Encoder().encode(r)]});return o}async function QIt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,97,112,112,108,105,99,97,116,105,111,110])),getAddressEncoder().encode(t),getAddressEncoder().encode(r)]});return o}async function ZIt(e,t,r){let o=new Uint8Array(8);new DataView(o.buffer).setBigUint64(0,r,true);let[s]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([119,111,114,107,95,111,114,100,101,114])),getAddressEncoder().encode(t),o]});return s}async function YIt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([119,111,114,107,95,100,101,108,105,118,101,114,121])),getAddressEncoder().encode(t),getAddressEncoder().encode(r)]});return o}async function evt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([112,97,121,109,101,110,116])),getAddressEncoder().encode(t),getAddressEncoder().encode(r)]});return o}async function tvt(e,t){let[r]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,101,115,115,105,111,110])),getAddressEncoder().encode(t)]});return r}async function nvt(e){return [await vl(e.programAddress,e.channelId),0]}async function vl(e,t){let[r]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([99,104,97,110,110,101,108])),getUtf8Encoder().encode(t)]});return r}async function rvt(e,t,r){let o=new Uint8Array(8);new DataView(o.buffer).setBigInt64(0,r,true);let[s]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,109,101,115,115,97,103,101])),getAddressEncoder().encode(t),o]});return s}async function ovt(e,t){let[r]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(t)]});return r}async function cvt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([115,101,114,118,105,99,101,95,112,117,114,99,104,97,115,101])),getAddressEncoder().encode(t),getAddressEncoder().encode(r)]});return o}async function svt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,118,101,114,105,102,105,99,97,116,105,111,110])),getAddressEncoder().encode(t),getAddressEncoder().encode(r)]});return o}async function ivt(e,t){let[r]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,108,105,99,97,116,105,111,110,95,116,101,109,112,108,97,116,101])),getAddressEncoder().encode(t)]});return r}async function avt(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,108,105,99,97,116,105,111,110,95,114,101,99,111,114,100])),getAddressEncoder().encode(t),getAddressEncoder().encode(r)]});return o}async function dvt(e,t){let[r]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,116,114,101,101,95,99,111,110,102,105,103])),getAddressEncoder().encode(t)]});return r}async function uvt(e,t){let r=e.map(n=>typeof n=="string"?getUtf8Encoder().encode(n):typeof n=="object"&&n.constructor===Uint8Array?n:getAddressEncoder().encode(n)),o=await getProgramDerivedAddress({programAddress:t,seeds:r});return [o[0],o[1]]}async function gvt(e,t,r){let o=[getBytesEncoder().encode(new Uint8Array([119,111,114,107,95,111,114,100,101,114])),getAddressEncoder().encode(e),getU64Encoder().encode(t)],n=await getProgramDerivedAddress({programAddress:r,seeds:o});return [n[0],n[1]]}async function Avt(e,t){let r=[getBytesEncoder().encode(new Uint8Array([119,111,114,107,95,100,101,108,105,118,101,114,121])),getAddressEncoder().encode(e)],o=await getProgramDerivedAddress({programAddress:t,seeds:r});return [o[0],o[1]]}async function pvt(e,t){let r=[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getAddressEncoder().encode(e)],o=await getProgramDerivedAddress({programAddress:t,seeds:r});return [o[0],o[1]]}async function lvt(e){let t=[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getUtf8Encoder().encode(e.escrowId)],r=await getProgramDerivedAddress({programAddress:e.programAddress,seeds:t});return [r[0],r[1]]}async function mvt(e,t,r,o){let n=new Uint8Array(8);new DataView(n.buffer).setUint32(0,o,true);let[c]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getAddressEncoder().encode(t),getAddressEncoder().encode(r),n.slice(0,4)]});return c}async function yvt(e,t){let r="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",o="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",[n]=await getProgramDerivedAddress({programAddress:r,seeds:[getAddressEncoder().encode(e),getAddressEncoder().encode(o),getAddressEncoder().encode(t)]});return n}async function Ev(e,t){let[r]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([97,117,99,116,105,111,110])),getAddressEncoder().encode(t)]});return r}async function Sv(e,t,r){let o=new Uint8Array(4);new DataView(o.buffer).setUint32(0,r,true);let[s]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([109,101,115,115,97,103,101])),getAddressEncoder().encode(t),o]});return s}var mt=i(()=>{});H();f();function Gte(e){return typeof e!="object"||e===null?false:typeof e.IpfsHash=="string"}var jn=class{rpc;rpcSubscriptions;commitment;endpoint;maxRetries;retryDelay;timeout;constructor(t){this.endpoint=t.endpoint,this.rpc=createSolanaRpc(t.endpoint),this.commitment=t.commitment??"confirmed",this.maxRetries=t.maxRetries??3,this.retryDelay=t.retryDelay??1e3,this.timeout=t.timeout??6e4,t.wsEndpoint&&(this.rpcSubscriptions=createSolanaRpcSubscriptions(t.wsEndpoint));}async getAccountInfo(t,r){return this.withRetry(async()=>{let o=await this.rpc.getAccountInfo(t,{commitment:r?.commitment??this.commitment,encoding:"base64"}).send();return o.value?this.parseAccountInfo(o.value):null})}async getMultipleAccounts(t,r){return this.withRetry(async()=>(await this.rpc.getMultipleAccounts(t,{commitment:r?.commitment??this.commitment,encoding:"base64"}).send()).value.map(n=>n?this.parseAccountInfo(n):null))}async getProgramAccounts(t,r){return this.withRetry(async()=>(await this.rpc.getProgramAccounts(t,{commitment:r?.commitment??this.commitment,encoding:"base64",filters:r?.filters}).send()).map(n=>{let s=n;return {pubkey:s.pubkey,account:this.parseAccountInfo(s.account)}}))}blockhashCache=null;async getLatestBlockhash(){let t=Date.now();if(this.blockhashCache&&t-this.blockhashCache.timestamp<1e3)return this.blockhashCache.value;let r=await this.withRetry(async()=>{let o=await this.rpc.getLatestBlockhash({commitment:this.commitment}).send();return {blockhash:o.value.blockhash,lastValidBlockHeight:BigInt(o.value.lastValidBlockHeight)}});return this.blockhashCache={value:r,timestamp:t},r}async sendTransaction(t,r){return this.withRetry(async()=>await this.rpc.sendTransaction(t,{encoding:"base64",skipPreflight:r?.skipPreflight??false,preflightCommitment:r?.preflightCommitment??this.commitment,maxRetries:r?.maxRetries?BigInt(r.maxRetries):void 0}).send())}async getSignatureStatuses(t){return this.withRetry(async()=>(await this.rpc.getSignatureStatuses(t).send()).value.map(o=>{if(!o)return null;let n=o;return {slot:n.slot,confirmations:n.confirmations,err:n.err,confirmationStatus:n.confirmationStatus}}))}async simulateTransaction(t,r){return this.withRetry(async()=>{let o=await this.rpc.simulateTransaction(t,{encoding:"base64",commitment:r?.commitment??this.commitment,replaceRecentBlockhash:r?.replaceRecentBlockhash??false}).send();return {err:o.value.err,logs:o.value.logs??[],unitsConsumed:o.value.unitsConsumed?BigInt(o.value.unitsConsumed):void 0,returnData:o.value.returnData}})}async getFeeForMessage(t){return this.withRetry(async()=>{let r=await this.rpc.getFeeForMessage(t,{commitment:this.commitment}).send();return r.value?BigInt(r.value):null})}async isHealthy(){try{return await this.rpc.getHealth().send(),!0}catch{return false}}async getVersion(){return await this.rpc.getVersion().send()}async subscribeToAccount(t,r){if(!this.rpcSubscriptions)throw new Error("WebSocket endpoint not configured");console.warn("Account subscription is not fully implemented in this version");let o=setInterval(async()=>{try{let n=await this.getAccountInfo(t);r(n);}catch(n){console.error("Subscription polling error:",n);}},5e3);return ()=>{clearInterval(o);}}async withRetry(t,r=this.maxRetries){let o;for(let n=0;n<=r;n++)try{return await t()}catch(s){o=s,n<r&&await new Promise(c=>setTimeout(c,this.retryDelay*Math.pow(2,n)));}throw o}parseAccountInfo(t){let r=t,o=r.data,n=Array.isArray(o)?o[0]:o;return {executable:r.executable,lamports:typeof r.lamports=="number"?lamports(BigInt(r.lamports)):r.lamports,owner:r.owner,rentEpoch:r.rentEpoch!==void 0?typeof r.rentEpoch=="number"?BigInt(r.rentEpoch):r.rentEpoch:BigInt(0),data:Buffer.from(n,"base64"),space:r.space?typeof r.space=="number"?BigInt(r.space):r.space:void 0}}};function GIt(e,t="mainnet-beta"){let r="https://explorer.solana.com/tx";switch(t){case "devnet":return `${r}/${e}?cluster=devnet`;case "testnet":return `${r}/${e}?cluster=testnet`;case "localnet":return `${r}/${e}?cluster=custom&customUrl=http://localhost:8899`;default:return `${r}/${e}`}}function BIt(e,t="mainnet-beta"){let r="https://solscan.io/tx";switch(t){case "devnet":return `${r}/${e}?cluster=devnet`;case "testnet":return `${r}/${e}?cluster=testnet`;case "localnet":return `Local transaction: ${e} (not viewable on Solscan)`;default:return `${r}/${e}`}}function NIt(e,t="mainnet-beta"){let r="https://solana.fm/tx";switch(t){case "devnet":return `${r}/${e}?cluster=devnet-solana`;case "testnet":return `${r}/${e}?cluster=testnet-solana`;case "localnet":return `Local transaction: ${e} (not viewable on SolanaFM)`;default:return `${r}/${e}`}}function LIt(e,t="mainnet-beta"){let r="https://xray.helius.xyz/tx";switch(t){case "devnet":return `${r}/${e}?network=devnet`;case "testnet":return `${r}/${e}?network=testnet`;case "localnet":return `Local transaction: ${e} (not viewable on XRAY)`;default:return `${r}/${e}`}}function KIt(e,t="mainnet-beta"){return {solanaExplorer:GIt(e,t),solscan:BIt(e,t),solanaFM:NIt(e,t),xray:LIt(e,t)}}function uv(e,t,r="confirmed"){return {signature:e,cluster:t,urls:KIt(e,t),commitment:r,timestamp:Date.now()}}function gv(e,t){console.error("\u{1F6A8} GhostSpeak SDK Error:",e.message),t&&(t.operation&&console.error("\u{1F527} Operation:",t.operation),t.instructionName&&console.error("\u{1F4CB} Instruction:",t.instructionName),t.accounts&&(console.error("\u{1F3E6} Accounts provided:",t.accounts.length),t.accounts.forEach((r,o)=>{if(typeof r=="string")console.error(` ${o+1}. ${r}`);else if(typeof r=="object"){let n="address"in r?r.address:r,s="name"in r?r.name:void 0;console.error(` ${o+1}. ${n}${s?` (${s})`:""}`);}else console.error(` ${o+1}. ${String(r)}`);})),t.params&&console.error("\u2699\uFE0F Parameters:",t.params)),console.error(`
2
- \u{1F4A1} Troubleshooting tips:`),console.error(" 1. Check that all required accounts are provided"),console.error(" 2. Verify account addresses are correct"),console.error(" 3. Ensure signers have sufficient SOL for transaction fees"),console.error(" 4. Confirm the program is deployed on the target network");}function Av(e,t,r,o){return {operation:e,instructionName:t,accounts:r,params:o}}var Sl=class e{static instance=null;rpcClient;config;isDevelopment;logs=[];timings=new Map;constructor(t){this.config=t,this.rpcClient=new jn({endpoint:t.rpcEndpoint??"https://api.devnet.solana.com",commitment:t.commitment}),this.isDevelopment=process.env.NODE_ENV==="development"||t.cluster==="localnet"||false;}static getInstance(t){if(!e.instance&&t&&(e.instance=new e(t)),!e.instance)throw new Error("DevTools not initialized. Call with config first.");return e.instance}enableDevMode(){this.isDevelopment=true,console.log("\u{1F6E0}\uFE0F GhostSpeak Development Mode Enabled"),console.log(" - Transaction simulation before sending"),console.log(" - Cost estimates for all operations"),console.log(" - Enhanced error messages"),console.log(" - Performance timing");}isDevMode(){return this.isDevelopment}analyzeTransaction(t){let r=new Set,o=new Set,n=new Set,s=[],c=64,A=t.map((h,v)=>{c+=32,c+=(h.accounts?.length??0)*32,c+=h.data?.length??0;let S=(h.accounts??[]).map(C=>{let O=C.role.toString().includes("writable")||C.role.toString().includes("WRITABLE")||C.role===1||C.role===3,F=C.role.toString().includes("signer")||C.role.toString().includes("SIGNER")||typeof C=="object"&&"signer"in C||C.role===3;return O?r.add(C.address):o.add(C.address),F&&n.add(C.address),{address:C.address,isWritable:O,isSigner:F,role:C.role}}),U=this.getInstructionDescription(h,v);return {index:v,programId:h.programAddress,accountCount:S.length,dataSize:h.data?.length??0,humanReadable:U,accounts:S}}),g=this.estimateComputeUnits(t),b=this.estimateFee(g,t.length);return c>1232&&s.push(`Transaction size (${c} bytes) exceeds limit (1232 bytes)`),n.size===0&&s.push("No signers found in transaction"),g>BigInt(14e5)&&s.push(`High compute usage: ${g} units`),{instructions:A,totalAccounts:r.size+o.size,signerCount:n.size,writableAccounts:Array.from(r),readonlyAccounts:Array.from(o),estimatedSize:c,estimatedComputeUnits:g,estimatedFee:b,warnings:s}}getInstructionDescription(t,r){let o=t.programAddress;return o===this.config.programId?this.decodeGhostSpeakInstruction(t):o==="11111111111111111111111111111111"?"System Program: Transfer or Create Account":o==="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"?"Token Program: Token Operation":o==="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"?"Token-2022 Program: Advanced Token Operation":"Unknown Instruction"}decodeGhostSpeakInstruction(t){if(!t.data||t.data.length<8)return "GhostSpeak: Unknown Instruction";let r=Array.from(t.data.slice(0,8)).map(n=>n.toString(16).padStart(2,"0")).join("");return `GhostSpeak: ${{a8c5e109d3d1b8d5:"Register Agent",b7f3c8e0a2d4e9f1:"Create Escrow",c4d2f7a9b8e1c3f5:"Send Message",d9e8f2b5c1a7e4f8:"Create Channel"}[r]??"Custom Instruction"}`}estimateComputeUnits(t){let r=BigInt(0);for(let o of t)r+=BigInt(200),r+=BigInt((o.accounts?.length??0)*150),r+=BigInt((o.data?.length??0)*10),o.programAddress===this.config.programId&&(r+=BigInt(5e3));return r}estimateFee(t,r){let o=BigInt(5e3),n=t*BigInt(5)/BigInt(1e6),s=BigInt(r*1e3);return o+n+s}log(t,r){if(!this.isDevelopment)return;let n=`[${new Date().toISOString()}] ${t}`;this.logs.push(n),console.log(`\u{1F50D} ${n}`),r&&console.log(" Data:",r);}startTiming(t){if(!this.isDevelopment)return;let r=typeof performance<"u"?performance.now():Date.now();this.timings.set(t,r);}endTiming(t){if(!this.isDevelopment)return;let r=this.timings.get(t);if(!r)return;let n=(typeof performance<"u"?performance.now():Date.now())-r;this.log(`${t} took ${n.toFixed(2)}ms`),this.timings.delete(t);}formatTransaction(t){let r=["\u{1F4CB} Transaction Analysis","\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550",`Instructions: ${t.instructions.length}`,`Total Accounts: ${t.totalAccounts}`,`Signers: ${t.signerCount}`,`Estimated Size: ${t.estimatedSize} bytes`,`Estimated Compute Units: ${t.estimatedComputeUnits.toLocaleString()}`,`Estimated Fee: ${(Number(t.estimatedFee)/1e9).toFixed(6)} SOL`,""];r.push("Instructions:");for(let o of t.instructions)r.push(` ${o.index+1}. ${o.humanReadable}`),r.push(` Program: ${o.programId.slice(0,8)}...`),r.push(` Accounts: ${o.accountCount}, Data: ${o.dataSize} bytes`);if(t.warnings.length>0){r.push(""),r.push("\u26A0\uFE0F Warnings:");for(let o of t.warnings)r.push(` - ${o}`);}return r.push("\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550"),r.join(`
3
- `)}exportLogs(){return [...this.logs]}clearLogs(){this.logs=[],this.timings.clear();}};function bl(e){if(!e.programAddress)throw new Error("Invalid instruction format")}var Cl=class{rpcClient;config;devTools;debugMode=false;constructor(t){this.config=t,this.rpcClient=new jn({endpoint:t.rpcEndpoint??"https://api.devnet.solana.com",wsEndpoint:t.wsEndpoint,commitment:t.commitment??"confirmed"}),this.devTools=Sl.getInstance(t);}async execute(t,r,o,n){let s=Av("execute",t,o.map(c=>({address:c.address,name:"signer"})),{programId:this.config.programId});try{this.devTools.isDevMode()&&this.devTools.startTiming(t);let c=await Promise.resolve(r());if(bl(c),this.debugMode||this.devTools.isDevMode()){let U=this.devTools.analyzeTransaction([c]);console.log(this.devTools.formatTransaction(U)),this.debugMode=!1;}if(n?.simulate)return await this.simulateInstruction(c,o);let A=await this.rpcClient.getLatestBlockhash(),g={blockhash:A.blockhash,lastValidBlockHeight:A.lastValidBlockHeight},b=pipe(createTransactionMessage({version:0}),U=>setTransactionMessageFeePayerSigner(o[0],U),U=>setTransactionMessageLifetimeUsingBlockhash(g,U),U=>appendTransactionMessageInstructions([c],U)),h=await signTransactionMessageWithSigners(b),v=await this.sendAndConfirm(h,n?.skipPreflight??!1,n?.maxRetries??30);if(typeof v!="string")throw new Error("Transaction signature is not a string");let S=v;if(n?.returnDetails){let U=this.config.cluster??"devnet",C=uv(S,U,this.config.commitment??"confirmed");return this.devTools.isDevMode()&&this.devTools.endTiming(t),C}return this.devTools.isDevMode()&&this.devTools.endTiming(t),S}catch(c){throw gv(c,s),c}}async executeBatch(t,r,o,n){let s=Av("executeBatch",t,o.map(c=>({address:c.address,name:"signer"})),{programId:this.config.programId,instructionCount:r.length});try{let c=await Promise.all(r.map(async(C,O)=>{let F=await Promise.resolve(C());try{return bl(F),F}catch(P){throw new Error(`Instruction ${O} in ${t}: ${P.message}`)}})),A=this.estimateTransactionSize(c);if(A>1232)throw new Error(`Transaction too large: ${A} bytes (max: 1232)`);if(n?.simulate)return await this.simulateBatch(c,o);let g=await this.rpcClient.getLatestBlockhash(),b={blockhash:g.blockhash,lastValidBlockHeight:g.lastValidBlockHeight},h=pipe(createTransactionMessage({version:0}),C=>setTransactionMessageFeePayerSigner(o[0],C),C=>setTransactionMessageLifetimeUsingBlockhash(b,C),C=>appendTransactionMessageInstructions(c,C)),v=await signTransactionMessageWithSigners(h),S=await this.sendAndConfirm(v,n?.skipPreflight??!1);if(typeof S!="string")throw new Error("Transaction signature is not a string");let U=S;if(n?.returnDetails){let C=this.config.cluster??"devnet",O=uv(U,C,this.config.commitment??"confirmed");return this.devTools.isDevMode()&&this.devTools.endTiming(t),O}return this.devTools.isDevMode()&&this.devTools.endTiming(t),U}catch(c){throw gv(c,s),c}}async getAccount(t,r){try{let o=await this.rpcClient.getAccountInfo(t,{commitment:this.config.commitment});if(!o)return null;let s=(await Promise.resolve().then(()=>(H(),El)))[r],c=s(),A=this.extractRawData(o.data);return c.decode(A)}catch(o){return console.warn(`Failed to fetch account ${t}:`,o),null}}async getAccounts(t,r){try{let o=await this.rpcClient.getMultipleAccounts(t,{commitment:this.config.commitment}),s=(await Promise.resolve().then(()=>(H(),El)))[r],c=s();return o.map(A=>{if(!A)return null;try{let g=this.extractRawData(A.data);return c.decode(g)}catch{return null}})}catch(o){return console.warn("Failed to fetch multiple accounts:",o),t.map(()=>null)}}async getProgramAccounts(t,r){try{let o=r?.map(b=>"dataSize"in b?{dataSize:b.dataSize}:(b.memcmp.encoding??"base58")==="base64"?{memcmp:{offset:b.memcmp.offset,bytes:b.memcmp.bytes,encoding:"base64"}}:{memcmp:{offset:b.memcmp.offset,bytes:b.memcmp.bytes,encoding:"base58"}}),n=await this.rpcClient.getProgramAccounts(this.config.programId,{commitment:this.config.commitment,filters:o??[]}),c=(await Promise.resolve().then(()=>(H(),El)))[t],A=c(),g=[];for(let{pubkey:b,account:h}of n)try{let v=this.extractRawData(h.data),S=A.decode(v);g.push({address:b,data:S});}catch{}return g}catch(o){return console.error("Failed to get program accounts:",o),[]}}enableDebug(){return this.debugMode=true,this}async debug(t,r){this.devTools.log(`Debugging ${t}`);let o=await Promise.all(r.map(async s=>{let c=await Promise.resolve(s());return bl(c),c})),n=this.devTools.analyzeTransaction(o);return console.log(this.devTools.formatTransaction(n)),n}async explain(t,r){let o=await this.debug(t,r),n=[`\u{1F50D} Transaction: ${t}`,"","This transaction will:",...o.instructions.map((s,c)=>` ${c+1}. ${s.humanReadable}`),"",`Cost: ~${(Number(o.estimatedFee)/1e9).toFixed(6)} SOL`,`Size: ${o.estimatedSize} bytes`,`Compute: ${o.estimatedComputeUnits.toLocaleString()} units`];return o.warnings.length>0&&(n.push("","\u26A0\uFE0F Warnings:"),n.push(...o.warnings.map(s=>` - ${s}`))),n.join(`
4
- `)}async estimateCost(t){try{let r=await Promise.all(t.map(async b=>{let h=await Promise.resolve(b());return bl(h),h})),o=await this.rpcClient.getLatestBlockhash(),n={blockhash:o.blockhash,lastValidBlockHeight:o.lastValidBlockHeight},s=pipe(createTransactionMessage({version:0}),b=>setTransactionMessageFeePayer(this.config.defaultFeePayer,b),b=>setTransactionMessageLifetimeUsingBlockhash(n,b),b=>appendTransactionMessageInstructions(r,b)),c=compileTransactionMessage(s),A=Buffer.from(c).toString("base64"),g=await this.rpcClient.getFeeForMessage(A);return BigInt(g??0)}catch{return 5000n+BigInt(t.length)*1000n}}async sendAndConfirm(t,r,o=30){let n=getBase64EncodedWireTransaction(t),s=await this.rpcClient.sendTransaction(n,{skipPreflight:r,preflightCommitment:this.config.commitment});console.log("\u{1F50D} Transaction sent, signature:",s),console.log("\u{1F50D} Signature length:",s.length),console.log("\u{1F50D} Signature type:",typeof s);let c=false,A=0,g=1e3,b=3e4,h=Date.now();for(;!c&&A<o&&Date.now()-h<b;)try{console.log(`\u{1F50D} Confirmation attempt ${A+1}/${o}`);let v=await this.rpcClient.getSignatureStatuses([s]);if(v[0]){if(console.log("\u{1F50D} Status found:",v[0]),v[0].err)throw new Error(`Transaction failed: ${JSON.stringify(v[0].err,(U,C)=>typeof C=="bigint"?C.toString():C)}`);let S=v[0].confirmationStatus;if(S===this.config.commitment||this.config.commitment==="confirmed"&&S==="finalized"){c=!0,console.log("\u2705 Transaction confirmed via status check");break}}else {console.log("\u{1F50D} No status found, trying transaction details...");try{let{createSolanaRpc:S}=await import('@solana/kit'),C=await S(this.config.rpcEndpoint??"https://api.devnet.solana.com").getTransaction(s,{commitment:this.config.commitment??"confirmed",encoding:"json",maxSupportedTransactionVersion:0}).send();if(C&&C.meta){if(C.meta.err)throw new Error(`Transaction failed: ${JSON.stringify(C.meta.err,(O,F)=>typeof F=="bigint"?F.toString():F)}`);c=!0,console.log("\u2705 Transaction confirmed via direct lookup");break}}catch{console.log("\u{1F50D} Transaction details not yet available");}}A++,await new Promise(S=>setTimeout(S,g)),g=Math.min(g*1.5,5e3);}catch(v){if(v instanceof Error&&v.message.includes("Transaction failed"))throw v;console.log("\u{1F50D} Confirmation attempt failed:",v.message),A++,await new Promise(S=>setTimeout(S,g*2));}if(!c){console.log("\u{1F50D} Final confirmation attempt via transaction lookup...");try{let{createSolanaRpc:v}=await import('@solana/kit'),U=await v(this.config.rpcEndpoint??"https://api.devnet.solana.com").getTransaction(s,{commitment:this.config.commitment??"confirmed",encoding:"json",maxSupportedTransactionVersion:0}).send();if(U&&U.meta){if(U.meta.err)throw new Error(`Transaction failed: ${JSON.stringify(U.meta.err,(C,O)=>typeof O=="bigint"?O.toString():O)}`);return console.log("\u2705 Transaction confirmed on final check - returning success"),s}}catch(v){console.log("\u{1F50D} Final check failed:",v.message);}return console.log("\u26A0\uFE0F Transaction confirmation timed out, but transaction was sent"),console.log(` Check status at: https://explorer.solana.com/tx/${s}?cluster=${this.config.cluster||"devnet"}`),s}return s}async simulateInstruction(t,r){let o=await this.rpcClient.getLatestBlockhash(),n={blockhash:o.blockhash,lastValidBlockHeight:o.lastValidBlockHeight},s=pipe(createTransactionMessage({version:0}),g=>setTransactionMessageFeePayerSigner(r[0],g),g=>setTransactionMessageLifetimeUsingBlockhash(n,g),g=>appendTransactionMessageInstructions([t],g)),c=await signTransactionMessageWithSigners(s),A=getBase64EncodedWireTransaction(c);return this.rpcClient.simulateTransaction(A,{commitment:this.config.commitment,replaceRecentBlockhash:true})}async simulateBatch(t,r){let o=await this.rpcClient.getLatestBlockhash(),n={blockhash:o.blockhash,lastValidBlockHeight:o.lastValidBlockHeight},s=pipe(createTransactionMessage({version:0}),g=>setTransactionMessageFeePayerSigner(r[0],g),g=>setTransactionMessageLifetimeUsingBlockhash(n,g),g=>appendTransactionMessageInstructions(t,g)),c=await signTransactionMessageWithSigners(s),A=getBase64EncodedWireTransaction(c);return this.rpcClient.simulateTransaction(A,{commitment:this.config.commitment,replaceRecentBlockhash:true})}estimateTransactionSize(t){let r=64;for(let o of t)r+=32,r+=(o.accounts?.length??0)*32,r+=o.data.length;return r}extractRawData(t){if(Buffer.isBuffer(t)||t instanceof Uint8Array)return new Uint8Array(t);if(typeof t=="object"&&t!==null&&"data"in t)return Buffer.from(t.data,"base64");if(typeof t=="string")return Buffer.from(t,"base64");throw new Error("Invalid account data format")}async createCommunicationSession(t){return {programAddress:this.config.programId,accounts:[],data:new Uint8Array(0)}}async sendCommunicationMessage(t,r){return {programAddress:this.config.programId,accounts:[],data:new Uint8Array(0)}}async updateParticipantStatus(t){return {programAddress:this.config.programId,accounts:[],data:new Uint8Array(0)}}};var W=class{builder;config;_debugMode=false;constructor(t){this.config=t,this.builder=new Cl(t);}debug(){return this._debugMode=true,this.builder.enableDebug(),this}async execute(t,r,o){return this.builder.execute(t,r,o)}async executeWithDetails(t,r,o){return this.builder.execute(t,r,o,{returnDetails:true})}async executeBatch(t,r,o){return this.builder.executeBatch(t,r.map(n=>()=>Promise.resolve(n())),o)}async simulate(t,r,o){return this.builder.execute(t,()=>Promise.resolve(r()),o,{simulate:true})}async simulateInstruction(t,r,o){return this.simulate(t,r,o)}async estimateCost(t){return this.builder.estimateCost(t)}async getCost(t,r){return this.builder.estimateCost([r])}async explain(t,r){return this.builder.explain(t,[r])}async analyze(t,r){return this.builder.debug(t,[r])}async getAccount(t,r){return this.builder.getAccount(t,r)}async getAccounts(t,r){return this.builder.getAccounts(t,r)}async getProgramAccounts(t,r){return this.builder.getProgramAccounts(t,r)}get programId(){return this.config.programId}getProgramId(){return this.config.programId}get commitment(){return this.config.commitment??"confirmed"}getCommitment(){return this.config.commitment??"confirmed"}};var Bte=new Map,lv=0,Rl=class{constructor(t){this.config=t;console.log("\u{1F9EA} Initialized TestIPFSProvider for local testing (shared storage)");}storage=Bte;uploadCount=0;async upload(t,r){lv++;let o=typeof t=="string"?t:new TextDecoder().decode(t),n=`Qm${this.generateHash(o)}_test_${lv}`;this.storage.set(n,{content:t,pinned:r?.pin!==false});let s=typeof t=="string"?new TextEncoder().encode(t).length:t.length;return console.log(`\u{1F4E6} Test IPFS upload: ${n} (${s} bytes)`),{hash:n,uri:`ipfs://${n}`,size:s,timestamp:Date.now(),pinned:r?.pin!==false,gateways:[`http://localhost:8080/ipfs/${n}`,`https://test.ipfs.io/ipfs/${n}`]}}async retrieve(t){let r=this.storage.get(t);if(!r)throw new Error(`Test IPFS: Content not found for hash ${t}`);return console.log(`\u{1F4E5} Test IPFS retrieve: ${t}`),await new Promise(o=>setTimeout(o,100)),r.content}async pin(t){let r=this.storage.get(t);return r?(r.pinned=true,console.log(`\u{1F4CC} Test IPFS pin: ${t}`),{hash:t,success:true,status:"pinned"}):{hash:t,success:false,status:"failed",error:`Content not found: ${t}`}}async unpin(t){let r=this.storage.get(t);return r?(r.pinned=false,console.log(`\u{1F4CC} Test IPFS unpin: ${t}`),{hash:t,success:true,status:"pinned"}):{hash:t,success:false,status:"failed",error:`Content not found: ${t}`}}generateHash(t){let r=0;for(let c=0;c<t.length;c++){let A=t.charCodeAt(c);r=(r<<5)-r+A,r=r&r;}let o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",n="",s=Math.abs(r);for(;s>0&&n.length<40;)n=o[s%o.length]+n,s=Math.floor(s/o.length);for(;n.length<40;)n=o[Math.floor(Math.random()*o.length)]+n;return n}getStats(){let t=0,r=0;for(let o of this.storage.values()){let n=typeof o.content=="string"?new TextEncoder().encode(o.content).length:o.content.length;t+=n,o.pinned&&r++;}return {count:this.storage.size,totalSize:t,pinned:r}}clear(){this.storage.clear(),lv=0,console.log("\u{1F9F9} Test IPFS storage cleared");}static getSharedStorage(){return Bte}};var mv=class{constructor(t){this.config=t;}async upload(t,r){let o=this.config.endpoint??"https://api.pinata.cloud",n=new FormData,s=new Blob([t],{type:r?.contentType??"application/octet-stream"});n.append("file",s,r?.filename??"content"),r?.metadata&&n.append("pinataMetadata",JSON.stringify({name:r.filename??"ghostspeak-content",keyvalues:r.metadata}));let c=await fetch(`${o}/pinning/pinFileToIPFS`,{method:"POST",headers:{Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers},body:n});if(!c.ok){let b=await c.text();throw new Error(`Pinata upload failed: ${c.status} ${b}`)}let A=await c.json(),g=typeof t=="string"?new TextEncoder().encode(t).length:t.length;if(!Gte(A))throw new Error("Invalid IPFS upload response format");return {hash:A.IpfsHash,uri:`ipfs://${A.IpfsHash}`,size:g,timestamp:Date.now(),pinned:true,gateways:[`https://gateway.pinata.cloud/ipfs/${A.IpfsHash}`,`https://ipfs.io/ipfs/${A.IpfsHash}`]}}async retrieve(t,r){let n=`${r?.gateway??"https://gateway.pinata.cloud"}/ipfs/${t}`,s=await fetch(n,{signal:r?.timeout?AbortSignal.timeout(r.timeout):void 0});if(!s.ok)throw new Error(`Failed to retrieve from IPFS: ${s.status} ${s.statusText}`);let c=s.headers.get("content-type");return c?.startsWith("text/")||c?.includes("json")?s.text():new Uint8Array(await s.arrayBuffer())}async pin(t){let r=this.config.endpoint??"https://api.pinata.cloud",o=await fetch(`${r}/pinning/pinByHash`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers},body:JSON.stringify({hashToPin:t})}),n=o.ok;return {hash:t,success:n,status:n?"pinned":"failed",error:n?void 0:`Pin failed: ${o.status}`}}async unpin(t){let r=this.config.endpoint??"https://api.pinata.cloud",o=await fetch(`${r}/pinning/unpin/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers}}),n=o.ok;return {hash:t,success:n,status:n?"pinned":"failed",error:n?void 0:`Unpin failed: ${o.status}`}}},yv=class{constructor(t){this.config=t;}async upload(t,r){let o=this.config.endpoint??"http://localhost:5001",n=new FormData,s=new Blob([t],{type:r?.contentType??"application/octet-stream"});n.append("file",s,r?.filename??"content");let c=await fetch(`${o}/api/v0/add`,{method:"POST",body:n});if(!c.ok)throw new Error(`IPFS HTTP upload failed: ${c.status}`);let A=await c.json(),g=typeof t=="string"?new TextEncoder().encode(t).length:t.length;if(typeof A!="object"||A===null)throw new Error("Invalid IPFS HTTP API response");let b=A;if(typeof b.Hash!="string")throw new Error("IPFS HTTP API response missing Hash field");let h=b.Hash;return {hash:h,uri:`ipfs://${h}`,size:g,timestamp:Date.now(),pinned:r?.pin!==false,gateways:[`${o}/ipfs/${h}`,`https://ipfs.io/ipfs/${h}`]}}async retrieve(t,r){let n=`${r?.gateway??this.config.endpoint?.replace("/api/v0","")??"https://ipfs.io"}/ipfs/${t}`,s=await fetch(n,{signal:r?.timeout?AbortSignal.timeout(r.timeout):void 0});if(!s.ok)throw new Error(`Failed to retrieve from IPFS: ${s.status}`);let c=s.headers.get("content-type");return c?.startsWith("text/")||c?.includes("json")?s.text():new Uint8Array(await s.arrayBuffer())}async pin(t){let r=this.config.endpoint??"http://localhost:5001",o=await fetch(`${r}/api/v0/pin/add?arg=${t}`,{method:"POST"}),n=o.ok;return {hash:t,success:n,status:n?"pinned":"failed",error:n?void 0:`Pin failed: ${o.status}`}}async unpin(t){let r=this.config.endpoint??"http://localhost:5001",o=await fetch(`${r}/api/v0/pin/rm?arg=${t}`,{method:"POST"}),n=o.ok;return {hash:t,success:n,status:n?"pinned":"failed",error:n?void 0:`Unpin failed: ${o.status}`}}},hl=class{constructor(t){this.config=t;this.initializeProviders();}providers=[];cache=new Map;initializeProviders(){if(this.providers.push(this.createProvider(this.config.provider)),this.config.fallbackProviders)for(let t of this.config.fallbackProviders)this.providers.push(this.createProvider(t));}createProvider(t){switch(t.name){case "pinata":return new mv(t);case "ipfs-http-client":case "custom":return new yv(t);case "test":return new Rl(t);default:throw new Error(`Unsupported IPFS provider: ${t.name}`)}}async upload(t,r){let o=Date.now(),n;for(let s=0;s<this.providers.length;s++){let c=this.providers[s];try{console.log(`\u{1F4E4} Attempting IPFS upload with provider ${s+1}/${this.providers.length}`);let A=await this.withRetry(()=>c.upload(t,r),this.config.maxRetries??3,this.config.retryDelay??1e3);return console.log(`\u2705 IPFS upload successful: ${A.hash}`),{success:!0,data:A,duration:Date.now()-o,provider:this.config.provider.name}}catch(A){console.warn(`\u274C Provider ${s+1} upload failed:`,A instanceof Error?A.message:String(A)),n=A instanceof Error?A:new Error(String(A));}}return {success:false,error:"UPLOAD_FAILED",message:`All providers failed. Last error: ${n?.message}`,duration:Date.now()-o}}async retrieve(t,r){let o=Date.now();if(this.config.enableCache&&r?.cache!==false){let c=this.cache.get(t);if(c&&Date.now()-c.timestamp<(this.config.cacheTTL??3e5))return {success:true,data:{content:c.content,size:(typeof c.content=="string",c.content.length),hash:t,gateway:"cache",fromCache:true},duration:Date.now()-o}}let n,s=r?.gateway?[r.gateway]:this.config.gateways??["https://ipfs.io"];for(let c of s)for(let A of this.providers)try{let g=await this.withRetry(()=>A.retrieve(t,{...r,gateway:c}),this.config.maxRetries??3,this.config.retryDelay??1e3);return this.config.enableCache&&this.cache.set(t,{content:g,timestamp:Date.now()}),{success:!0,data:{content:g,size:g.length,hash:t,gateway:c,fromCache:!1},duration:Date.now()-o}}catch(g){n=g instanceof Error?g:new Error(String(g));}return {success:false,error:"RETRIEVAL_FAILED",message:`Failed to retrieve from all gateways. Last error: ${n?.message}`,duration:Date.now()-o}}async pin(t){let r=Date.now();for(let o of this.providers)try{let n=await o.pin(t);return {success:n.success,data:n,duration:Date.now()-r}}catch(n){console.warn("Pin attempt failed:",n);}return {success:false,error:"PIN_FAILED",message:"All pin attempts failed",duration:Date.now()-r}}async storeContent(t,r,o){let n=new TextEncoder().encode(t).length,s=this.config.sizeThreshold??800;if(!(o?.forceIpfs??n>s))return {uri:`data:application/json;base64,${btoa(t)}`,useIpfs:false,size:n};let A=await this.upload(t,o);if(!A.success||!A.data)throw new Error(`IPFS upload failed: ${A.message}`);let g={type:r,originalSize:n,ipfsHash:A.data.hash,encoding:"utf8",compression:"none",mimeType:"application/json",uploadedAt:A.data.timestamp,pinned:A.data.pinned,checksum:await this.calculateChecksum(t)};return {uri:A.data.uri,useIpfs:true,ipfsMetadata:g,size:n}}async retrieveContent(t){if(t.startsWith("data:")){let r=t.split(",")[1];if(!r)throw new Error("Invalid data URI format");return atob(r)}if(t.startsWith("ipfs://")){let r=t.replace("ipfs://",""),o=await this.retrieve(r);if(!o.success||!o.data)throw new Error(`Failed to retrieve IPFS content: ${o.message}`);return typeof o.data.content=="string"?o.data.content:new TextDecoder().decode(o.data.content)}throw new Error(`Unsupported URI format: ${t}`)}async withRetry(t,r,o){let n;for(let s=0;s<=r;s++)try{return await t()}catch(c){n=c instanceof Error?c:new Error(String(c)),s<r&&(console.log(`\u23F3 Retrying in ${o}ms... (attempt ${s+1}/${r})`),await new Promise(A=>setTimeout(A,o)));}throw n}async calculateChecksum(t){let o=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(n)).map(c=>c.toString(16).padStart(2,"0")).join("")}clearCache(){this.cache.clear();}getCacheStats(){return {size:this.cache.size,keys:Array.from(this.cache.keys())}}};var fo={provider:{name:"pinata",endpoint:"https://api.pinata.cloud"},gateways:["https://gateway.pinata.cloud","https://ipfs.io","https://cloudflare-ipfs.com","https://gateway.ipfs.io"],autoPinning:true,sizeThreshold:800,maxRetries:3,retryDelay:1e3,enableCache:true,cacheTTL:3e5},Tv=class{client;constructor(t){this.client=new hl(t);}async storeAgentMetadata(t,r){let o=JSON.stringify({...t,createdAt:new Date().toISOString(),version:"1.0.0"});return this.client.storeContent(o,"agent-metadata",{filename:`agent-${t.agentId??"metadata"}.json`,metadata:{type:"agent-metadata",agentId:t.agentId,name:t.name},contentType:"application/json",...r})}async storeChannelMessage(t,r){let o=JSON.stringify({...t,timestamp:new Date().toISOString(),version:"1.0.0"});return this.client.storeContent(o,"channel-message",{filename:`message-${Date.now()}.json`,metadata:{type:"channel-message",channelId:t.channelId,messageType:t.messageType??0},contentType:"application/json",...r})}async storeFileAttachment(t,r,o,n){let s=typeof t=="string"?t:new TextDecoder().decode(t);return this.client.storeContent(s,"file-attachment",{filename:r,contentType:o,metadata:{type:"file-attachment",originalFilename:r,mimeType:o},...n})}async retrieveAgentMetadata(t){let r=await this.client.retrieveContent(t),o=JSON.parse(r);if(typeof o!="object"||o===null)throw new Error("Retrieved agent metadata is not a valid object");return o}async retrieveChannelMessage(t){let r=await this.client.retrieveContent(t),o=JSON.parse(r);if(typeof o!="object"||o===null)throw new Error("Retrieved channel message is not a valid object");return o}async batchUpload(t){return (await Promise.allSettled(t.map(o=>this.client.storeContent(o.content,o.type,{filename:o.filename,...o.options})))).map(o=>o.status==="fulfilled"?{success:true,data:o.value}:{success:false,error:"UPLOAD_FAILED",message:o.reason instanceof Error?o.reason.message:String(o.reason)})}async pinContent(t){let r=await this.client.pin(t);return {...r,data:r.success}}isIPFSUri(t){return t.startsWith("ipfs://")}extractIPFSHash(t){return this.isIPFSUri(t)?t.replace("ipfs://",""):null}getGatewayUrls(t,r){return (r??fo.gateways??[]).map(n=>`${n}/ipfs/${t}`)}isValidIPFSHash(t){return t.length<44?false:t.startsWith("Qm")&&t.length===46?/^Qm[A-Za-z0-9]{44}$/.test(t):t.length>46?/^[A-Za-z0-9]+$/.test(t):false}shouldUseIPFS(t,r){let o=new TextEncoder().encode(t).length,n=r??fo.sizeThreshold??800;return o>n}async compressContent(t){try{if(typeof CompressionStream<"u"){let r=new CompressionStream("gzip"),o=r.writable.getWriter(),n=r.readable.getReader(),c=new TextEncoder().encode(t),A=o.write(c).then(()=>o.close()),g=[],b=async()=>{let C=await n.read(),{done:O,value:F}=C;!O&&F&&(g.push(F),await b());};await Promise.all([A,b()]);let h=g.reduce((C,O)=>C+O.length,0),v=new Uint8Array(h),S=0;for(let C of g)v.set(C,S),S+=C.length;return {compressed:Buffer.from(v).toString("base64"),algorithm:"gzip"}}else return console.warn("Compression not available in this environment, storing uncompressed"),{compressed:t,algorithm:"none"}}catch(r){return console.warn("Compression failed, falling back to uncompressed:",r),{compressed:t,algorithm:"none"}}}async decompressContent(t,r){if(r==="none")return t;try{if(r==="gzip")if(typeof DecompressionStream<"u"){let o=new DecompressionStream("gzip"),n=o.writable.getWriter(),s=o.readable.getReader(),c=Buffer.from(t,"base64"),A=n.write(c).then(()=>n.close()),g=[],b=async()=>{let C=await s.read(),{done:O,value:F}=C;!O&&F&&(g.push(F),await b());};await Promise.all([A,b()]);let h=g.reduce((C,O)=>C+O.length,0),v=new Uint8Array(h),S=0;for(let C of g)v.set(C,S),S+=C.length;return new TextDecoder().decode(v)}else return console.warn("Decompression not available in this environment, returning compressed data"),t;else return console.warn(`Unknown compression algorithm: ${r}`),t}catch(o){return console.error("Decompression failed, returning compressed data:",o),t}}getStats(){return {cacheStats:this.client.getCacheStats(),config:fo}}clearCache(){this.client.clearCache();}};function Nte(e){let t={...fo,...e,provider:{...fo.provider,...e?.provider}};return new Tv(t)}var Lte=address("11111111111111111111111111111111");address("11111111111111111111111111111111");address("SysvarRecentB1ockHashes11111111111111111111");address("SysvarStakeHistory1111111111111111111111111");address("Sysvar1nstructions1111111111111111111111111");address("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");var xo=address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),fv=address("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");address("So11111111111111111111111111111111111111112");var Il=address("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");address("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s");H();var Ml=class extends W{ipfsUtils=null;constructor(t){super(t),t.ipfsConfig&&(this.ipfsUtils=Nte(t.ipfsConfig));}async register(t,r){let o=async()=>{let s=await this.deriveAgentPda(r.agentId,t.address);return await eh({agentAccount:s,signer:t,systemProgram:this.systemProgramId,agentType:r.agentType,name:r.name,description:r.description,metadataUri:r.metadataUri,agentId:r.agentId})},n=()=>{let s=new Uint8Array(5);return s[0]=1,new DataView(s.buffer).setUint32(1,262144,true),{programAddress:"ComputeBudget111111111111111111111111111111",accounts:[],data:s}};return this.debug(),r.skipSimulation?(console.log("\u{1F680} SKIPPING SIMULATION - Sending transaction directly"),this.builder.executeBatch("registerAgent",[n,o],[t],{simulate:false,skipPreflight:true})):this.builder.executeBatch("registerAgent",[n,o],[t])}async registerCompressed(t,r){let o=async()=>{let n=r.treeConfig||await this.deriveTreeConfigPda(t.address);return await rh({merkleTree:r.merkleTree,treeAuthority:n,signer:t,systemProgram:this.systemProgramId,compressionProgram:this.compressionProgramId,agentType:r.agentType,name:r.name,description:r.description,metadataUri:r.metadataUri,agentId:r.agentId,logWrapper:"noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"})};return this.execute("registerAgentCompressed",o,[t])}async update(t,r){let o=()=>TI({agentAccount:r.agentAddress,signer:t,metadataUri:r.metadataUri,agentType:r.agentType,agentId:r.agentId,name:r.name??null,description:r.description??null});return this.execute("updateAgent",o,[t])}async verify(t,r){let o=async()=>await sv({agent:r.agentAddress,verifier:t,agentPubkey:r.agentPubkey,serviceEndpoint:r.serviceEndpoint,supportedCapabilities:r.supportedCapabilities,verifiedAt:r.verifiedAt});return this.execute("verifyAgent",o,[t])}async deactivate(t,r){let o=()=>Eb({agentAccount:r.agentAddress,signer:t,agentId:r.agentId});return this.execute("deactivateAgent",o,[t])}async activate(t,r){let o=()=>oP({agentAccount:r.agentAddress,signer:t,agentId:r.agentId});return this.execute("activateAgent",o,[t])}async getAgentAccount(t){return super.getAccount(t,"getAgentDecoder")}async getAllAgents(){return this.getProgramAccounts("getAgentDecoder")}async getAgentsByType(t){let r=Buffer.alloc(1);r.writeUInt8(t,0);let o=[{memcmp:{offset:BigInt(8),bytes:r.toString("base64"),encoding:"base64"}}];return this.getProgramAccounts("getAgentDecoder",o)}async getUserAgents(t){let r=[{memcmp:{offset:BigInt(9),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getAgentDecoder",r)}async deriveAgentPda(t,r){let{deriveAgentPdaOriginal:o}=await Promise.resolve().then(()=>(mt(),qn));return o(this.programId,r,t)}async deriveUserRegistryPda(t){let{deriveUserRegistryPda:r}=await Promise.resolve().then(()=>(mt(),qn));return r(this.programId,t)}async deriveTreeConfigPda(t){let{getProgramDerivedAddress:r,getAddressEncoder:o}=await import('@solana/addresses'),s=o().encode(t),[c]=await r({programAddress:this.programId,seeds:[new TextEncoder().encode("agent_tree_config"),s]});return c}get systemProgramId(){return Lte}get compressionProgramId(){return "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"}};var z=address("GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9");H();var fvt="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",Kte="So11111111111111111111111111111111111111112";async function It(e,t){let r=new TextEncoder,[o]=await getProgramDerivedAddress({programAddress:e,seeds:[new Uint8Array([101,115,99,114,111,119]),r.encode(t)]});return o}async function kl(e){let[t]=await getProgramDerivedAddress({programAddress:e,seeds:[new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100])]});return t}async function Te(e,t){let[r]=await getProgramDerivedAddress({programAddress:fv,seeds:[getAddressEncoder().encode(e),getAddressEncoder().encode(xo),getAddressEncoder().encode(t)]});return r}async function Vte(e,t){let[r]=await getProgramDerivedAddress({programAddress:fv,seeds:[getAddressEncoder().encode(e),getAddressEncoder().encode(fvt),getAddressEncoder().encode(t)]});return r}var wl=class extends W{async create(t){let r=t.description,o=t.paymentToken??this.defaultPaymentToken,n=BigInt(Math.floor(Date.now()/1e3)+(t.expiresInDays??30)*24*60*60),s=await It(z,r),c=await Te(t.signer.address,o),A=await Te(s,o);return this.execute("createEscrow",()=>ED({escrow:s,client:t.signer,agent:t.seller,paymentToken:o,clientTokenAccount:c,escrowTokenAccount:A,taskId:r,amount:t.amount,expiresAt:n,transferHook:null,isConfidential:false}),[t.signer])}async createWithSol(t){let r=t.description,o=BigInt(Math.floor(Date.now()/1e3)+(t.expiresInDays??30)*24*60*60),n=await It(z,r),s=await Vte(t.signer.address,Kte),c=await Vte(n,Kte);return this.execute("createEscrowWithSol",()=>DD({escrow:n,client:t.signer,agent:t.seller,clientWsolAccount:s,escrowWsolAccount:c,taskId:r,amount:t.amount,expiresAt:o,transferHook:null,isConfidential:false}),[t.signer])}async complete(t,r,o){let n=o??this.defaultPaymentToken,s=await It(z,r),c=await kl(z),A=await Te(s,n),g=await Te(t.address,n);return this.execute("completeEscrow",()=>VP({escrow:s,reentrancyGuard:c,agent:t.address,escrowTokenAccount:A,agentTokenAccount:g,authority:t,tokenProgram:xo,resolutionNotes:"Work completed successfully"}),[t])}async cancel(t,r,o){let n=o.paymentToken??this.defaultPaymentToken,s=await It(z,r),c=await kl(z),A=await Te(s,n),g=await Te(o.buyer,n);return this.execute("cancelEscrow",()=>kP({escrow:s,reentrancyGuard:c,authority:t,clientRefundAccount:g,paymentToken:n,cancellationReason:o.reason??"User cancelled",escrowTokenAccount:A,tokenProgram:xo}),[t])}async dispute(t,r,o){let n=await It(z,r),s=await kl(z);return this.execute("disputeEscrow",()=>Ib({escrow:n,reentrancyGuard:s,authority:t,disputeReason:o}),[t])}async processPartialRefund(t,r,o,n,s,c,A){let g=A??this.defaultPaymentToken,b=await It(z,r),h=await kl(z),v=await Te(b,g),S=await Te(s,g),U=await Te(c,g);return this.execute("processPartialRefund",()=>OR({escrow:b,reentrancyGuard:h,escrowTokenAccount:v,clientRefundAccount:S,agentPaymentAccount:U,paymentToken:g,authority:t,tokenProgram:xo,clientRefundPercentage:Math.min(100,Math.max(0,Number((o*BigInt(100)/n).toString())))}),[t])}async getEscrowAccount(t){return super.getAccount(t,"getEscrowDecoder")}async getEscrowByTaskId(t){let r=await It(z,t);return this.getEscrowAccount(r)}async getAllEscrows(){return this.getProgramAccounts("getEscrowDecoder")}async getEscrowsByBuyer(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getEscrowDecoder",r)}async getEscrowsBySeller(t){let r=[{memcmp:{offset:BigInt(40),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getEscrowDecoder",r)}async getEscrowsByStatus(t){return (await this.getAllEscrows()).filter(({data:o})=>o.status===t)}get defaultPaymentToken(){return Il}};mt();H();var _l=class extends W{async create(t){let r=await this.deriveChannelPda(t.name);return this.execute("createEnhancedChannel",()=>TD({channel:r,reentrancyGuard:this.systemProgramId,creator:t.signer,creatorAgent:t.signer.address,systemProgram:this.systemProgramId,channelId:t.name,participants:[t.signer.address],channelType:t.channelType,metadata:{name:t.name,description:t.description,avatarUrl:null,tags:[],settings:{allowFileSharing:true,allowExternalInvites:!t.isPrivate,messageRetentionDays:30,maxMessageSize:4096,requireEncryption:t.isPrivate??false,autoArchiveAfterDays:365}}}),[t.signer])}async sendMessage(t){let r=await this.deriveMessagePda(t.channelAddress,Date.now());return this.execute("sendEnhancedMessage",()=>_h({channel:t.channelAddress,message:r,reentrancyGuard:this.systemProgramId,sender:t.signer,systemProgram:this.systemProgramId,messageId:`msg_${Date.now()}`,content:t.content,messageType:t.messageType??0,metadata:{replyTo:t.replyTo??null,threadId:null,attachments:t.attachmentUri?[{fileType:"application/octet-stream",fileSize:0,fileHash:"",storageUrl:t.attachmentUri}]:[],mentions:[],reactions:[]},isEncrypted:false}),[t.signer])}async join(t,r){return this.execute("joinChannel",()=>dR({channel:r,reentrancyGuard:this.systemProgramId,user:t,userAgent:t.address}),[t])}async leave(t,r){return this.execute("leaveChannel",()=>pR({channel:r,reentrancyGuard:this.systemProgramId,user:t}),[t])}async updateSettings(t,r,o){return this.execute("updateChannelSettings",()=>BI({channel:r,reentrancyGuard:this.systemProgramId,authority:t,newMetadata:{name:o.name??null,description:o.description??null,avatarUrl:null,tags:[],settings:{allowFileSharing:true,allowExternalInvites:!o.isPrivate,messageRetentionDays:30,maxMessageSize:o.maxMembers?Number(o.maxMembers):4096,requireEncryption:o.isPrivate??false,autoArchiveAfterDays:365}}}),[t])}async addReaction(t,r,o){let n=await this.deriveChannelFromMessage(r);return this.execute("addMessageReaction",()=>aP({channel:n,message:r,reentrancyGuard:this.systemProgramId,user:t,reaction:o}),[t])}async getChannelAccount(t){return super.getAccount(t,"getChannelDecoder")}async getMessageAccount(t){return super.getAccount(t,"getMessageDecoder")}async getAllChannels(){return this.getProgramAccounts("getChannelDecoder")}async getPublicChannels(){return (await this.getAllChannels()).filter(({data:r})=>!r.isPrivate)}async getChannelsByCreator(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getChannelDecoder",r)}async getChannelMessages(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getMessageDecoder",r)}async deriveChannelPda(t){return await vl(z,t)}async deriveMessagePda(t,r){return await Sv(z,t,r)}async deriveChannelFromMessage(t){return t}get systemProgramId(){return "11111111111111111111111111111111"}};mt();H();var Ol=class extends W{getCreateServiceListingInstruction(t){return tb(t)}getPurchaseServiceInstruction(t){return VR(t)}getCreateJobPostingInstruction(t){return wD(t)}getApplyToJobInstruction(t){return TP(t)}getAcceptJobApplicationInstruction(t){return eP(t)}getCreateServiceAuctionInstruction(t){return ZD(t)}getPlaceAuctionBidInstruction(t){return RR(t)}getFinalizeAuctionInstruction(t){return PC(t)}getUpdateAgentServiceInstruction(t){return MI(t)}async createServiceListing(t){let r=await this.getCreateServiceListingInstruction({agent:t.agentAddress,creator:t.signer,title:t.title,description:t.description,price:t.pricePerHour,tokenMint:this.nativeMint,serviceType:t.category,paymentToken:this.nativeMint,estimatedDelivery:Date.now()+6048e5,tags:t.capabilities,listingId:`${t.agentAddress}_${t.title}`});return this.execute("createServiceListing",()=>r,[t.signer])}async createJobPosting(t){let r=await this.deriveJobPostingPda(t.signer.address,t.title),o=await this.getCreateJobPostingInstruction({jobPosting:r,employer:t.signer,title:t.title,description:t.description,requirements:[`Skills: ${t.requiredSkills.join(", ")}`],budget:t.budget,deadline:Date.now()+t.duration*60*60*1e3,skillsNeeded:t.requiredSkills,budgetMin:t.budget,budgetMax:t.budget,paymentToken:this.nativeMint,jobType:t.category,experienceLevel:"intermediate"});return this.execute("createJobPosting",()=>o,[t.signer])}async createServiceAuction(t){let r=await this.deriveAuctionPda(t.serviceListingAddress),o=await this.getCreateServiceAuctionInstruction({auction:r,agent:t.serviceListingAddress,userRegistry:r,creator:t.signer,auctionType:t.auctionType==="english"?0:1,startingPrice:t.startingPrice,reservePrice:t.reservePrice,isReserveHidden:false,currentBid:BigInt(0),currentBidder:null,auctionEndTime:BigInt(Date.now()+t.duration*60*60*1e3),minimumBidIncrement:BigInt(1e3),totalBids:0,dutchConfig:null});return this.execute("createServiceAuction",()=>o,[t.signer])}async getServiceListing(t){return super.getAccount(t,"getServiceListingDecoder")}async getJobPosting(t){return super.getAccount(t,"getJobPostingDecoder")}async getJobApplication(t){return super.getAccount(t,"getJobApplicationDecoder")}async getAuction(t){return super.getAccount(t,"getAuctionMarketplaceDecoder")}async getServicePurchase(t){return super.getAccount(t,"getServicePurchaseDecoder")}async getAllServiceListings(){return this.getProgramAccounts("getServiceListingDecoder")}async getServiceListingsByProvider(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getServiceListingDecoder",r)}async getAllJobPostings(){return this.getProgramAccounts("getJobPostingDecoder")}async getJobPostingsByClient(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getJobPostingDecoder",r)}async getJobApplications(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getJobApplicationDecoder",r)}async getAllAuctions(){return this.getProgramAccounts("getAuctionMarketplaceDecoder")}async getServiceById(t){return this.getServiceListing(t)}async purchase(t,r){let o=r.listingId.split("_")[0],n=r.listingId.split("_")[0],s=this.getPurchaseServiceInstruction({serviceListing:o,servicePurchase:n,buyer:t,listingId:0,quantity:Number(r.amount),requirements:[],customInstructions:"",deadline:Date.now()+10080*60*1e3});return this.execute("purchaseService",()=>s,[t])}async deriveJobPostingPda(t,r){return await xv(z,t,r)}async deriveAuctionPda(t){return await Ev(z,t)}get nativeMint(){return Il}};H();var zl=class extends W{getInitializeGovernanceProposalInstruction(t){return ao(t)}getCastVoteInstruction(t){return Zr(t)}getDelegateVoteInstruction(t){return bb(t)}getExecuteProposalInstruction(t){return io(t)}getTallyVotesInstruction(t){return iI(t)}async createProposal(t){let r=this.deriveProposalPda(t.signer.address,t.title),o=await this.getInitializeGovernanceProposalInstruction({proposal:r,proposer:t.signer,title:t.title,description:t.description,proposalType:{kind:t.proposalType,data:{}},executionParams:{instructions:[],accounts:[],targetProgram:r,executeAfter:BigInt(t.executionDelay??0)},proposalId:BigInt(Date.now())});return this.execute("createProposal",()=>o,[t.signer])}async vote(t){let r=this.mapVoteChoice(t.choice),o=this.getCastVoteInstruction({proposal:t.proposalAddress,voter:t.signer,voterTokenAccount:t.tokenAccount,voteChoice:r,reasoning:t.reasoning??null});return this.execute("castVote",()=>o,[t.signer])}async delegateVotingPower(t){let r=this.getDelegateVoteInstruction({delegator:t.signer,delegate:t.delegate,delegatorTokenAccount:t.tokenAccount,proposalId:BigInt(0),scope:{kind:"All",value:void 0},expiresAt:null});return this.execute("delegateVote",()=>r,[t.signer])}async executeProposal(t){let r=this.getExecuteProposalInstruction({proposal:t.proposalAddress,executor:t.signer,targetProgram:this.getProgramId()});return this.execute("executeProposal",()=>r,[t.signer])}async tallyVotes(t){let r=this.getTallyVotesInstruction({proposal:t.proposalAddress,authority:t.signer});return this.execute("tallyVotes",()=>r,[t.signer])}async getProposal(t){return super.getAccount(t,"getGovernanceProposalDecoder")}async getActiveProposals(){return this.getProgramAccounts("getGovernanceProposalDecoder")}async getProposalsByProposer(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getGovernanceProposalDecoder",r)}async getProposalsByStatus(t){let r=await this.getProgramAccounts("getGovernanceProposalDecoder");return r.filter(o=>r.length>0)}deriveProposalPda(t,r){return `proposal_${t}_${r}`}mapVoteChoice(t){switch(t){case "yes":return 0;case "no":return 1;case "abstain":return 2;default:throw new Error(`Invalid vote choice: ${t}`)}}};H();H();async function Hte(e,t,r){let[o]=await getProgramDerivedAddress({programAddress:e,seeds:[getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,115,105,103])),getAddressEncoder().encode(t),new Uint8Array(new BigUint64Array([r]).buffer)]});return o}var Wl={MEMBER:{VOTE:{action:"vote",resource:"proposal"},VIEW:{action:"view",resource:"all"},COMMENT:{action:"comment",resource:"proposal"}},MODERATOR:{CANCEL_PROPOSAL:{action:"cancel",resource:"proposal"},MODERATE_COMMENTS:{action:"moderate",resource:"comments"},VIEW_REPORTS:{action:"view",resource:"reports"}}};({MODERATOR:{permissions:[...Object.values(Wl.MEMBER),...Object.values(Wl.MODERATOR)]}});var Fl=class extends W{async createMultisig(t){let o={...{max_signers:10,default_timeout:86400n,allow_emergency_override:false,emergency_threshold:{__option:"None"},auto_execute:true,signer_change_threshold:t.threshold,allowed_transaction_types:[],daily_limits:[]},...t.config},n=await Hte(this.programId,t.owner.address,t.multisigId),s=GD({multisig:n,owner:t.owner,multisigId:t.multisigId,threshold:t.threshold,signers:t.signers,config:o});return this.execute("createMultisig",()=>s,[t.owner])}async createProposal(t){let r=await ao({proposer:t.proposer,proposalId:t.proposalId,title:t.title,description:t.description,proposalType:t.proposalType,executionParams:t.executionParams},{programAddress:this.programId});return this.execute("createProposal",()=>r,[t.proposer])}async approveProposal(t){let r=Zr({proposal:t.proposalAddress,voter:t.voter,voterTokenAccount:t.voterTokenAccount,voteChoice:t.voteChoice??0,reasoning:t.reasoning??null});return this.execute("approveProposal",()=>r,[t.voter])}async executeProposal(t){let r=io({proposal:t.proposalAddress,executor:t.executor,targetProgram:t.targetProgram});return this.execute("executeProposal",()=>r,[t.executor])}};H();var Gl=class extends W{getCreateToken2022MintInstruction(t){return ib({...t,transferFeeBasisPoints:t.transferFeeBasisPoints??null,maximumFee:t.maximumFee??null,transferFeeAuthority:t.transferFeeAuthority??null,withdrawWithheldAuthority:t.withdrawWithheldAuthority??null,autoApproveNewAccounts:t.autoApproveNewAccounts??null,auditorElgamalPubkey:t.auditorElgamalPubkey??null,interestRate:t.interestRate??null,rateAuthority:t.rateAuthority??null,closeAuthority:t.closeAuthority??null,defaultAccountState:t.defaultAccountState??null})}getInitializeConfidentialTransferMintInstruction(t){return wC(t)}getInitializeInterestBearingConfigInstruction(t){return KC(t)}getInitializeMintCloseAuthorityInstruction(t){return jC(t)}getInitializeDefaultAccountStateInstruction(t){return zC(t)}getApproveExtensionInstruction(t){return SP(t)}async createMint(t){let r=await this.generateKeypair(),o=await this.getCreateToken2022MintInstruction({authority:t.signer,agent:t.agentAddress,mint:r,decimals:t.decimals,freezeAuthority:t.freezeAuthority??null,enableTransferFee:false,enableConfidentialTransfers:false,enableInterestBearing:false});return this.execute("createToken2022Mint",()=>o,[t.signer,r])}async createMintWithTransferFees(t){let r=await this.generateKeypair(),o=await this.getCreateToken2022MintInstruction({authority:t.signer,agent:t.agentAddress,mint:r,decimals:t.decimals,freezeAuthority:null,enableTransferFee:true,enableConfidentialTransfers:false,enableInterestBearing:false,transferFeeBasisPoints:t.transferFeeBasisPoints,maximumFee:t.maxFee,transferFeeAuthority:t.signer.address,withdrawWithheldAuthority:t.withdrawWithheldAuthority??null});return this.execute("createMintWithFees",()=>o,[t.signer,r])}async createMintWithConfidentialTransfers(t){let r=await this.generateKeypair(),o=await this.getCreateToken2022MintInstruction({authority:t.signer,agent:t.agentAddress,mint:r,decimals:t.decimals,freezeAuthority:null,enableConfidentialTransfers:true,enableTransferFee:false,enableInterestBearing:false,auditorElgamalPubkey:t.auditorElgamalPubkey??null,autoApproveNewAccounts:t.autoApproveNewAccounts??false});return this.execute("createMintWithConfidential",()=>o,[t.signer,r])}async createMintWithInterestBearing(t){let r=await this.generateKeypair(),o=await this.getCreateToken2022MintInstruction({authority:t.signer,agent:t.agentAddress,mint:r,decimals:t.decimals,freezeAuthority:null,enableConfidentialTransfers:false,enableTransferFee:false,enableInterestBearing:true,interestRate:t.interestRate,rateAuthority:t.rateAuthority??t.signer.address});return this.execute("createMintWithInterest",()=>o,[t.signer,r])}async createAdvancedMint(t){let r=await this.generateKeypair(),o=[];return o.push(async()=>this.getCreateToken2022MintInstruction({authority:t.signer,agent:t.agentAddress,mint:r,decimals:t.decimals,freezeAuthority:t.signer.address,enableConfidentialTransfers:true,enableTransferFee:true,enableInterestBearing:true,transferFeeBasisPoints:t.transferFeeBasisPoints,maximumFee:t.maxFee,transferFeeAuthority:t.signer.address,withdrawWithheldAuthority:t.signer.address,auditorElgamalPubkey:null,autoApproveNewAccounts:t.autoApproveConfidential??false,interestRate:t.interestRate,rateAuthority:t.signer.address})),t.defaultAccountState&&o.push(async()=>this.getInitializeDefaultAccountStateInstruction({mint:r.address,authority:t.signer,state:t.defaultAccountState})),this.executeMultiple("createAdvancedMint",o,[t.signer,r])}async getMint(t){return super.getAccount(t,"getMintDecoder")}async getAllMints(){return this.getProgramAccounts("getMintDecoder")}async getMintsByAuthority(t){let r=[{memcmp:{offset:BigInt(8),bytes:t,encoding:"base58"}}];return this.getProgramAccounts("getMintDecoder",r)}async generateKeypair(){return generateKeyPairSigner()}async executeMultiple(t,r,o){if(r.length===0)throw new Error("No instruction factories provided");let n=[];for(let c of r)try{let A=await c();n.push(A);}catch(A){throw new Error(`Failed to create instruction: ${A instanceof Error?A.message:"Unknown error"}`)}let s=n[0];if(!s)throw new Error("First instruction is undefined");return this.execute(t,()=>s,o)}};var Dvt="https://staging.crossmint.com",bvt="https://www.crossmint.com",Pv={AGENT_IDENTITY:"GhostSpeakAgentIdentity",REPUTATION_SCORE:"GhostSpeakReputation",JOB_COMPLETION:"GhostSpeakJobCompletion"},Bl=class{apiKey;baseUrl;chain;constructor(t){this.apiKey=t.apiKey,this.baseUrl=t.environment==="production"?bvt:Dvt,this.chain=t.chain||"base-sepolia";}async createAgentIdentityType(){let t=Pv.AGENT_IDENTITY,r={$schema:"https://json-schema.org/draft/2020-12/schema",title:"GhostSpeak Agent Identity",description:"Verified AI agent identity on the GhostSpeak Protocol",type:"object",properties:{credentialSubject:{type:"object",properties:{agentId:{type:"string"},owner:{type:"string"},capabilities:{type:"array",items:{type:"string"}},registeredAt:{type:"string"},reputationScore:{type:"number"},totalJobsCompleted:{type:"integer"},verified:{type:"boolean"},id:{type:"string"}},required:["agentId","owner","capabilities","registeredAt","verified"],additionalProperties:false}}};return this.createCredentialType(t,r)}async createReputationType(){let t=Pv.REPUTATION_SCORE,r={$schema:"https://json-schema.org/draft/2020-12/schema",title:"GhostSpeak Reputation",description:"Verified reputation score for GhostSpeak users",type:"object",properties:{credentialSubject:{type:"object",properties:{userId:{type:"string"},walletAddress:{type:"string"},reputationScore:{type:"number"},totalTransactions:{type:"integer"},disputeRate:{type:"number"},memberSince:{type:"string"},id:{type:"string"}},required:["userId","walletAddress","reputationScore","memberSince"],additionalProperties:false}}};return this.createCredentialType(t,r)}async createJobCompletionType(){let t=Pv.JOB_COMPLETION,r={$schema:"https://json-schema.org/draft/2020-12/schema",title:"GhostSpeak Job Completion",description:"Certificate of successful job completion on GhostSpeak",type:"object",properties:{credentialSubject:{type:"object",properties:{jobId:{type:"string"},agentId:{type:"string"},clientAddress:{type:"string"},completedAt:{type:"string"},amountPaid:{type:"string"},rating:{type:"integer"},review:{type:"string"},id:{type:"string"}},required:["jobId","agentId","clientAddress","completedAt","amountPaid","rating"],additionalProperties:false}}};return this.createCredentialType(t,r)}async initializeAllTypes(){let[t,r,o]=await Promise.all([this.createAgentIdentityType(),this.createReputationType(),this.createJobCompletionType()]);return {agentIdentity:t,reputation:r,jobCompletion:o}}async createAllTemplates(t){let[r,o,n]=await Promise.all([this.createTemplate(t.agentIdentity.id,{name:"GhostSpeak Agent Identity",description:"Verified AI agent identity on the GhostSpeak Protocol",imageUrl:"https://www.ghostspeak.io/assets/credential-agent.png"}),this.createTemplate(t.reputation.id,{name:"GhostSpeak Reputation",description:"Verified reputation score for GhostSpeak users",imageUrl:"https://www.ghostspeak.io/assets/credential-reputation.png"}),this.createTemplate(t.jobCompletion.id,{name:"GhostSpeak Job Completion Certificate",description:"Certificate of successful job completion on GhostSpeak",imageUrl:"https://www.ghostspeak.io/assets/credential-job.png"})]);return {agentIdentityTemplate:r,reputationTemplate:o,jobCompletionTemplate:n}}async issueAgentCredential(t,r,o,n){return this.issueCredential(t,r,o,n)}async issueReputationCredential(t,r,o,n){return this.issueCredential(t,r,o,n)}async issueJobCompletionCredential(t,r,o,n){return this.issueCredential(t,r,o,n)}async createCredentialType(t,r){let o=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/types/${t}`,{method:"PUT",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify(r)});if(!o.ok){let n=await o.json().catch(()=>({message:o.statusText}));throw new Error(`Failed to create credential type: ${JSON.stringify(n)}`)}return o.json()}async createTemplate(t,r){let o=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/templates/`,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify({credentials:{type:t,encryption:"none",storage:"crossmint"},metadata:r,chain:this.chain})});if(!o.ok){let c=await o.text();try{let A=JSON.parse(c);throw new Error(`Failed to create template: ${JSON.stringify(A)}`)}catch{throw new Error(`Failed to create template (${o.status}): ${c}`)}}let n=await o.json(),s=await this.waitForAction(n.id);return s.data&&s.data.collection?s.data.collection:s.data||s}async waitForAction(t){let r=0;for(;r<60;){await new Promise(s=>setTimeout(s,2e3));let o=await fetch(`${this.baseUrl}/api/2022-06-09/actions/${t}`,{headers:{"X-API-KEY":this.apiKey}});if(!o.ok)throw new Error(`Failed to poll action: ${o.statusText}`);let n=await o.json();if(n.status==="succeeded")return n;if(n.status==="failed")throw new Error(`Action failed: ${JSON.stringify(n)}`);r++;}throw new Error("Action polling timed out")}async issueCredential(t,r,o,n){let s=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/templates/${t}/vcs`,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify({recipient:`email:${r}:${this.chain}`,credential:{subject:o,expiresAt:n||this.getDefaultExpiry()}})});if(!s.ok){let c=await s.json().catch(()=>({message:s.statusText}));throw new Error(`Failed to issue credential: ${JSON.stringify(c)}`)}return s.json()}async getCredential(t){let r=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/${t}`,{headers:{"X-API-KEY":this.apiKey}});if(!r.ok){let o=await r.json().catch(()=>({message:r.statusText}));throw new Error(`Failed to get credential: ${JSON.stringify(o)}`)}return r.json()}async verifyCredential(t){let r=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/verification/verify`,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify({credential:t})});if(!r.ok){let o=await r.json().catch(()=>({message:r.statusText}));throw new Error(`Failed to verify credential: ${JSON.stringify(o)}`)}return r.json()}async revokeCredential(t){let r=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/${t}`,{method:"DELETE",headers:{"X-API-KEY":this.apiKey}});if(!r.ok){let o=await r.json().catch(()=>({message:r.statusText}));throw new Error(`Failed to revoke credential: ${JSON.stringify(o)}`)}return r.json()}getDefaultExpiry(){let t=new Date;return t.setFullYear(t.getFullYear()+1),t.toISOString().split("T")[0]}};var Dv=e=>Cvt.encode(e),Rvt="GHosT3wqDfNq9bKz8dNEQ1F5mLuN7bKdNYx3Z1111111";var Eo=class{programId;constructor(t=Rvt){this.programId=t;}hashSubjectData(t){let r=JSON.stringify(t,Object.keys(t).sort());return sha256(new TextEncoder().encode(r))}generateCredentialId(t,r){let o=Date.now(),n=`${t}-${r}-${o}`,s=sha256(new TextEncoder().encode(n)),c=Dv(s.slice(0,8));return `${t.toLowerCase()}-${c}`}exportAsW3CCredential(t,r,o,n,s){let c=s?.network||"mainnet",A=c==="mainnet"?"did:sol:":`did:sol:${c}:`,g=`solana:${this.programId}:credential:${t.credentialId}`;return {"@context":["https://www.w3.org/ns/credentials/v2","https://w3id.org/security/data-integrity/v2","https://ghostspeak.io/ns/credentials/v1"],type:["VerifiableCredential",`GhostSpeak${o.kind}Credential`],id:`urn:ghostspeak:${t.credentialId}`,issuer:{id:`${A}${this.programId}`,name:"GhostSpeak Protocol"},validFrom:new Date(t.issuedAt*1e3).toISOString(),validUntil:t.expiresAt?new Date(t.expiresAt*1e3).toISOString():void 0,credentialSubject:{id:`${A}${t.subject}`,...n},credentialSchema:{id:o.schemaUri,type:"JsonSchema"},credentialStatus:{id:g,type:"SolanaAccountStatus2025",statusPurpose:"revocation"},relatedResource:s?.includeRelatedResource?[{id:t.subjectDataUri,digestMultibase:`mEi${Dv(t.subjectDataHash)}`}]:void 0,proof:{type:"DataIntegrityProof",created:new Date(t.issuedAt*1e3).toISOString(),verificationMethod:`${A}${this.programId}#key-1`,cryptosuite:"eddsa-rdfc-2022",proofPurpose:"assertionMethod",proofValue:Dv(t.signature)}}}static buildAgentIdentitySubject(t){return t}};var Nl=class{constructor(t){this.config=t;this.credentialModule=new Eo(t.programId),t.crossmint&&(this.crossmintClient=new Bl(t.crossmint));}credentialModule;crossmintClient;async issueAgentIdentityCredential(t){let r=Eo.buildAgentIdentitySubject({agentId:t.agentId,owner:t.owner,name:t.name,capabilities:t.capabilities,serviceEndpoint:t.serviceEndpoint,frameworkOrigin:t.frameworkOrigin,x402Enabled:t.x402Enabled,registeredAt:t.registeredAt,verifiedAt:t.verifiedAt}),o=this.credentialModule.generateCredentialId("AgentIdentity",t.owner),n=this.credentialModule.hashSubjectData(r),s={template:"11111111111111111111111111111111",subject:t.owner,issuer:t.owner,credentialId:o,subjectDataHash:n,subjectDataUri:`ipfs://placeholder/${o}`,status:"Active",signature:t.signature,issuedAt:Math.floor(Date.now()/1e3),expiresAt:void 0,revokedAt:void 0,crossmintCredentialId:void 0},c={authority:"11111111111111111111111111111111",name:"AgentIdentity",kind:"AgentIdentity",schemaUri:"https://ghostspeak.io/schemas/agent-identity.json",description:"Verified AI agent identity on GhostSpeak Protocol",isActive:true,totalIssued:1,createdAt:Math.floor(Date.now()/1e3)},A={credentialType:"11111111111111111111111111111111",name:"GhostSpeak Agent Identity",imageUri:"https://www.ghostspeak.io/assets/credential-agent.png",issuer:t.owner,isActive:true,totalIssued:1,createdAt:Math.floor(Date.now()/1e3),crossmintTemplateId:this.config.crossmintTemplates?.agentIdentity},g=this.credentialModule.exportAsW3CCredential(s,A,c,r),b={solanaCredential:{credentialId:o},w3cCredential:g};if(t.syncToCrossmint&&this.crossmintClient&&t.recipientEmail)if(!A.crossmintTemplateId)b.crossmintSync={status:"failed",error:"No template ID configured"};else try{let h=await this.crossmintClient.issueCredential(A.crossmintTemplateId,t.recipientEmail,r);b.crossmintSync={status:"synced",credentialId:h.credentialId,chain:this.config.crossmint?.chain};}catch(h){b.crossmintSync={status:"failed",error:h instanceof Error?h.message:"Unknown error"};}return b}};G1();Py();DT();var bv=class{config;constructor(t){this.config={programId:a,commitment:"confirmed",cluster:"devnet",rpcEndpoint:t?.rpcEndpoint??this.getDefaultRpcEndpoint(t?.cluster??"devnet"),...t,rpc:t?.rpc??{}};}agent(){return new Cv(this.config)}escrow(){return new Rv(this.config)}channel(){return new hv(this.config)}marketplace(){return new Iv(this.config)}governance(){return new Uv(this.config)}multisig(){return new zv(this.config)}token2022(){return new Nv(this.config)}credentials(){return new Nl({programId:this.config.programId,crossmint:this.config.credentials?.crossmintApiKey?{apiKey:this.config.credentials.crossmintApiKey,environment:this.config.credentials.crossmintEnvironment,chain:this.config.credentials.crossmintChain}:void 0,crossmintTemplates:this.config.credentials?.templates})}enableDevMode(){return console.log("\u{1F6E0}\uFE0F Development mode enabled"),console.log(" - Transaction simulation before sending"),console.log(" - Cost estimates for all operations"),console.log(" - Enhanced error messages"),this.config={...this.config},this}useNetwork(t){return this.config.cluster=t,this.config.rpcEndpoint=this.getDefaultRpcEndpoint(t),this}useRpc(t,r){return this.config.rpcEndpoint=t,this.config.wsEndpoint=r,this}getDefaultRpcEndpoint(t){switch(t){case "mainnet-beta":return "https://api.mainnet-beta.solana.com";case "devnet":return "https://api.devnet.solana.com";case "testnet":return "https://api.testnet.solana.com";case "localnet":return "http://localhost:8899";default:return "https://api.devnet.solana.com"}}},Cv=class{module;params={};constructor(t){this.module=new Ml(t);}create(t){return this.params={...this.params,agentType:0,metadataUri:JSON.stringify(t),agentId:t.name.toLowerCase().replace(/\s+/g,"-"),name:t.name,description:t.description||""},this}withDescription(t){return this.params.description=t,this}withType(t){return this.params.agentType=t,this}withIPFS(){return this.params.forceIPFS=true,this}compressed(){return this.params.compressed=true,this}debug(){return this.module.debug(),this}withSigner(t){return this.params.signer=t,this}validateParams(){if(!this.params.signer)throw new Error("Agent builder requires a signer. Call with signer first.");if(!this.params.metadataUri)throw new Error("Agent builder requires metadata. Call create() first.");if(!this.params.agentId)throw new Error("Agent builder requires agent ID. Call create() first.");this.params.agentType??=0;}async getCost(){return this.validateParams(),this.module.getCost("registerAgent",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async simulate(){let t=()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array});return this.validateParams(),this.module.simulateInstruction("registerAgent",t,[this.params.signer])}async explain(){return this.validateParams(),this.module.explain("registerAgent",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams(),this.params.compressed&&console.log("Creating compressed agent (5000x cheaper)...");let t=await this.module.register(this.params.signer,{agentType:this.params.agentType,name:this.params.name,description:this.params.description,metadataUri:this.params.metadataUri,agentId:this.params.agentId});return {address:await this.deriveAgentAddress(this.params.agentId,this.params.signer),signature:t}}async deriveAgentAddress(t,r){let{deriveAgentPda:o}=await Promise.resolve().then(()=>(mt(),qn)),[n]=await o({programAddress:this.module.getProgramId(),owner:r.address,agentId:t});return n}},Rv=class{module;params={};constructor(t){this.module=new wl(t);}between(t,r){return this.params.buyer=t,this.params.seller=r,this}amount(t){return this.params.amount=t,this}description(t){return this.params.description=t,this}withMilestones(t){return this.params.milestones=t,this}debug(){return this.module.debug(),this}withSigner(t){return this.params.signer=t,this}validateParams(){if(!this.params.buyer)throw new Error("Escrow builder requires buyer address. Call between() first.");if(!this.params.seller)throw new Error("Escrow builder requires seller address. Call between() first.");if(!this.params.amount)throw new Error("Escrow builder requires amount. Call amount() first.");if(!this.params.signer)throw new Error("Escrow builder requires signer.")}async getCost(){return this.module.getCost("createEscrow",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async explain(){return this.module.explain("createEscrow",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams();let t=await this.module.create({signer:this.params.signer,amount:this.params.amount,buyer:this.params.buyer,seller:this.params.seller,description:this.params.description??"",milestones:this.params.milestones}),r=`${Date.now()}_${Math.random().toString(36).substring(7)}`;return {address:await this.deriveEscrowAddress(r),signature:t}}async deriveEscrowAddress(t){let{deriveEscrowPDA:r}=await Promise.resolve().then(()=>(mt(),qn)),[o]=await r({client:this.params.buyer,provider:this.params.seller,escrowId:t,programAddress:this.module.getProgramId()});return o}},hv=class{module;params={};constructor(t){this.module=new _l(t);}create(t){return this.params.name=t,this.params.channelType=2,this}description(t){return this.params.description=t,this}private(){return this.params.isPrivate=true,this.params.channelType=3,this}maxMembers(t){return this.params.maxMembers=t,this}debug(){return this.module.debug(),this}withSigner(t){return this.params.signer=t,this}validateParams(){if(!this.params.name)throw new Error("Channel builder requires name. Call create() first.");if(!this.params.signer)throw new Error("Channel builder requires signer.")}async getCost(){return this.module.getCost("createChannel",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async explain(){return this.module.explain("createChannel",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams();let t=await this.module.create({signer:this.params.signer,name:this.params.name,description:this.params.description??"",channelType:this.params.channelType??2,isPrivate:this.params.isPrivate,maxMembers:this.params.maxMembers}),r=`${this.params.name}_${Date.now()}`;return {address:await this.deriveChannelAddress(r),signature:t}}async deriveChannelAddress(t){let{deriveChannelPda:r}=await Promise.resolve().then(()=>(mt(),qn));return await r(this.module.getProgramId(),t)}},Iv=class{module;params={};constructor(t){this.module=new Ol(t);}service(){return new vv(this.module,this.params)}job(){return new Mv(this.module,this.params)}auction(){return new kv(this.module,this.params)}query(){return new wv(this.module)}debug(){return this.module.debug(),this}withSigner(t){return this.params.signer=t,this}},vv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};create(t){return this.params.title=t.title,this.params.description=t.description,this.params.agentAddress=t.agentAddress,this}pricePerHour(t){return this.params.pricePerHour=t,this}category(t){return this.params.category=t,this}capabilities(t){return this.params.capabilities=t,this}validateParams(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.title)throw new Error("Title required");if(!this.params.description)throw new Error("Description required");if(!this.params.agentAddress)throw new Error("Agent address required");if(!this.params.pricePerHour)throw new Error("Price per hour required");if(!this.params.category)throw new Error("Category required");if(!this.params.capabilities)throw new Error("Capabilities required")}async execute(){this.validateParams();let t=await this.module.createServiceListing({signer:this.params.signer,agentAddress:this.params.agentAddress,title:this.params.title,description:this.params.description,pricePerHour:this.params.pricePerHour,category:this.params.category,capabilities:this.params.capabilities});return {address:`service_${this.params.agentAddress}_${this.params.title}`,signature:t}}withSigner(t){return this.params.signer=t,this}},Mv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};create(t){return this.params.title=t.title,this.params.description=t.description,this}budget(t){return this.params.budget=t,this}duration(t){return this.params.duration=t,this}skills(t){return this.params.requiredSkills=t,this}category(t){return this.params.category=t,this}validateParams(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.title)throw new Error("Title required");if(!this.params.description)throw new Error("Description required");if(!this.params.budget)throw new Error("Budget required");if(!this.params.duration)throw new Error("Duration required");if(!this.params.requiredSkills)throw new Error("Required skills needed");if(!this.params.category)throw new Error("Category required")}async execute(){this.validateParams();let t=await this.module.createJobPosting({signer:this.params.signer,title:this.params.title,description:this.params.description,budget:this.params.budget,duration:this.params.duration,requiredSkills:this.params.requiredSkills,category:this.params.category});return {address:`job_${this.params.signer.address}_${this.params.title}`,signature:t}}withSigner(t){return this.params.signer=t,this}},kv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};forService(t){return this.params.serviceListingAddress=t,this}startingPrice(t){return this.params.startingPrice=t,this}reservePrice(t){return this.params.reservePrice=t,this}duration(t){return this.params.duration=t,this}english(){return this.params.auctionType="english",this}dutch(){return this.params.auctionType="dutch",this}validateParams(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.serviceListingAddress)throw new Error("Service listing address required");if(!this.params.startingPrice)throw new Error("Starting price required");if(!this.params.reservePrice)throw new Error("Reserve price required");if(!this.params.duration)throw new Error("Duration required");if(!this.params.auctionType)throw new Error("Auction type required")}async execute(){this.validateParams();let t=await this.module.createServiceAuction({signer:this.params.signer,serviceListingAddress:this.params.serviceListingAddress,startingPrice:this.params.startingPrice,reservePrice:this.params.reservePrice,duration:this.params.duration,auctionType:this.params.auctionType});return {address:`auction_${this.params.serviceListingAddress}`,signature:t}}withSigner(t){return this.params.signer=t,this}},wv=class{constructor(t){this.module=t;}async serviceListings(){return this.module.getAllServiceListings()}async serviceListingsByCategory(t){let r=await this.module.getAllServiceListings();return r.filter(o=>r.length>0)}async jobPostings(){return this.module.getAllJobPostings()}async auctions(){return this.module.getAllAuctions()}},Uv=class{module;params={};constructor(t){this.module=new zl(t);}proposal(){return new _v(this.module,this.params)}query(){return new Ov(this.module)}debug(){return this.module.debug(),this}withSigner(t){return this.params.signer=t,this}},_v=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};create(t){return this.params.title=t.title,this.params.description=t.description,this}type(t){return this.params.proposalType=t,this}votingDuration(t){return this.params.votingDuration=t,this}executionDelay(t){return this.params.executionDelay=t,this}validateParams(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.title)throw new Error("Title required");if(!this.params.description)throw new Error("Description required");if(!this.params.proposalType)throw new Error("Proposal type required");if(!this.params.votingDuration)throw new Error("Voting duration required")}async execute(){this.validateParams();let t=await this.module.createProposal({signer:this.params.signer,title:this.params.title,description:this.params.description,proposalType:this.params.proposalType,votingDuration:this.params.votingDuration,executionDelay:this.params.executionDelay});return {address:`proposal_${this.params.signer.address}_${this.params.title}`,signature:t}}withSigner(t){return this.params.signer=t,this}},Ov=class{constructor(t){this.module=t;}async activeProposals(){return this.module.getActiveProposals()}async proposalsByProposer(t){return this.module.getProposalsByProposer(t)}async proposalsByStatus(t){return this.module.getProposalsByStatus(t)}},zv=class{module;params={};constructor(t){this.module=new Fl(t);}create(){return new Wv(this.module,this.params)}proposal(){return new Fv(this.module,this.params)}approve(){return new Gv(this.module,this.params)}executeProposal(){return new Bv(this.module,this.params)}withSigner(t){return this.params.signer=t,this}debug(){return this.module.debug(),this}},Wv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};withId(t){return this.params.multisigId=t,this}threshold(t){return this.params.threshold=t,this}signers(t){return this.params.signers=t,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.multisigId)throw new Error("Multisig ID required");if(!this.params.threshold)throw new Error("Threshold required");if(!this.params.signers)throw new Error("Signers required");return {signature:await this.module.createMultisig({owner:this.params.signer,multisigId:this.params.multisigId,threshold:this.params.threshold,signers:this.params.signers})}}withSigner(t){return this.params.signer=t,this}},Fv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};forMultisig(t){return this.params.multisigAddress=t,this}title(t){return this.params.title=t,this}description(t){return this.params.description=t,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.title)throw new Error("Title required");if(!this.params.description)throw new Error("Description required");return {signature:await this.module.createProposal({multisigAddress:this.params.multisigAddress,title:this.params.title,description:this.params.description,proposalType:7,executionParams:{instructions:[],executionDelay:0n,executionConditions:[],cancellable:true,autoExecute:true,executionAuthority:this.params.signer.address},proposalId:BigInt(Date.now()),proposer:this.params.signer})}}withSigner(t){return this.params.signer=t,this}},Gv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};proposal(t){return this.params.proposalAddress=t,this}vote(t){return this.params.voteChoice=t,this}reason(t){return this.params.reasoning=t,this}tokenAccount(t){return this.params.tokenAccount=t,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.proposalAddress)throw new Error("Proposal address required");let t=this.params.voteChoice??0;if(!this.params.tokenAccount)throw new Error("Voter token account required");return {signature:await this.module.approveProposal({proposalAddress:this.params.proposalAddress,voter:this.params.signer,voterTokenAccount:this.params.tokenAccount,voteChoice:t,reasoning:this.params.reasoning})}}withSigner(t){return this.params.signer=t,this}},Bv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};proposal(t){return this.params.proposalAddress=t,this}target(t){return this.params.targetProgram=t,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.proposalAddress)throw new Error("Proposal address required");if(!this.params.targetProgram)throw new Error("Target program required");return {signature:await this.module.executeProposal({proposalAddress:this.params.proposalAddress,executor:this.params.signer,targetProgram:this.params.targetProgram})}}withSigner(t){return this.params.signer=t,this}},Nv=class{module;params={};constructor(t){this.module=new Gl(t);}mint(){return new Lv(this.module,this.params)}query(){return new Kv(this.module)}debug(){return this.module.debug(),this}withSigner(t){return this.params.signer=t,this}},Lv=class{constructor(t,r){this.module=t;this.builderParams=r;this.params.signer=r.signer;}params={};forAgent(t){return this.params.agentAddress=t,this}decimals(t){return this.params.decimals=t,this}freezeAuthority(t){return this.params.freezeAuthority=t,this}withTransferFees(t,r){return this.params.enableTransferFees=true,this.params.transferFeeBasisPoints=t,this.params.maxFee=r,this}withConfidentialTransfers(t=false){return this.params.enableConfidentialTransfers=true,this.params.autoApproveConfidential=t,this}withInterestBearing(t){return this.params.enableInterestBearing=true,this.params.interestRate=t,this}defaultAccountState(t){return this.params.defaultAccountState=t,this}validateParams(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.agentAddress)throw new Error("Agent address required");if(this.params.decimals===void 0)throw new Error("Decimals required");if(this.params.enableTransferFees&&(!this.params.transferFeeBasisPoints||!this.params.maxFee))throw new Error("Transfer fee parameters required when fees enabled");if(this.params.enableInterestBearing&&this.params.interestRate===void 0)throw new Error("Interest rate required when interest bearing enabled")}async execute(){this.validateParams();let t;return [this.params.enableTransferFees,this.params.enableConfidentialTransfers,this.params.enableInterestBearing,this.params.defaultAccountState].filter(Boolean).length>1?t=await this.module.createAdvancedMint({signer:this.params.signer,agentAddress:this.params.agentAddress,decimals:this.params.decimals,transferFeeBasisPoints:this.params.transferFeeBasisPoints??0,maxFee:this.params.maxFee??BigInt(0),interestRate:this.params.interestRate??0,autoApproveConfidential:this.params.autoApproveConfidential,defaultAccountState:this.params.defaultAccountState}):this.params.enableTransferFees?t=await this.module.createMintWithTransferFees({signer:this.params.signer,agentAddress:this.params.agentAddress,decimals:this.params.decimals,transferFeeBasisPoints:this.params.transferFeeBasisPoints,maxFee:this.params.maxFee}):this.params.enableConfidentialTransfers?t=await this.module.createMintWithConfidentialTransfers({signer:this.params.signer,agentAddress:this.params.agentAddress,decimals:this.params.decimals,autoApproveNewAccounts:this.params.autoApproveConfidential}):this.params.enableInterestBearing?t=await this.module.createMintWithInterestBearing({signer:this.params.signer,agentAddress:this.params.agentAddress,decimals:this.params.decimals,interestRate:this.params.interestRate}):t=await this.module.createMint({signer:this.params.signer,agentAddress:this.params.agentAddress,decimals:this.params.decimals,freezeAuthority:this.params.freezeAuthority}),{address:`mint_${this.params.agentAddress}_${this.params.decimals}`,signature:t}}withSigner(t){return this.params.signer=t,this}},Kv=class{constructor(t){this.module=t;}async allMints(){return this.module.getAllMints()}async mintsByAuthority(t){return this.module.getMintsByAuthority(t)}};function hvt(e){return BigInt(Math.round(e*1e9))}var Xn=class extends Error{code;context;solution;instruction;constructor(t,r,o={},n,s){super(r),this.name="GhostSpeakError",this.code=t,this.context=o,this.solution=n,this.instruction=s;}toString(){let t=`${this.name} [${this.code}]: ${this.message}`;return Object.keys(this.context).length>0&&(t+=`
5
- Context: ${JSON.stringify(this.context,null,2)}`),this.solution&&(t+=`
1
+ import {fixEncoderSize,getBytesEncoder,transformEncoder,getStructEncoder,getAddressEncoder,getU64Encoder,getI64Encoder,getU8Encoder,getOptionEncoder,addEncoderSizePrefix,getUtf8Encoder,getU32Encoder,getStructDecoder,fixDecoderSize,getAddressDecoder,getU64Decoder,getI64Decoder,getU8Decoder,getOptionDecoder,getBytesDecoder,addDecoderSizePrefix,getUtf8Decoder,getU32Decoder,combineCodec,getProgramDerivedAddress,AccountRole,upgradeRoleToSigner,isProgramError,containsBytes,getArrayEncoder,getBooleanEncoder,getArrayDecoder,getBooleanDecoder,getEnumEncoder,getEnumDecoder,getU16Encoder,getU16Decoder,getF64Encoder,getF64Decoder,getDiscriminatedUnionEncoder,getUnitEncoder,getTupleEncoder,getDiscriminatedUnionDecoder,getUnitDecoder,getTupleDecoder,assertAccountExists,fetchEncodedAccount,assertAccountsExist,fetchEncodedAccounts,decodeAccount,isTransactionSigner,pipe,createTransactionMessage,setTransactionMessageFeePayerSigner,setTransactionMessageLifetimeUsingBlockhash,appendTransactionMessageInstructions,signTransactionMessageWithSigners,setTransactionMessageFeePayer,compileTransactionMessage,getBase64EncodedWireTransaction,createSolanaRpc,createSolanaRpcSubscriptions,lamports}from'@solana/kit';import {LRUCache}from'lru-cache';import {address}from'@solana/addresses';import'@solana/sysvars';import {sha256}from'@noble/hashes/sha256';import pt from'bs58';import {EventEmitter}from'events';var _u=Object.defineProperty;var M0=Object.getOwnPropertyDescriptor;var k0=Object.getOwnPropertyNames;var w0=Object.prototype.hasOwnProperty;var a=(n,e)=>()=>(n&&(e=n(n=0)),e);var ne=(n,e)=>{for(var t in e)_u(n,t,{get:e[t],enumerable:true});},U0=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of k0(e))!w0.call(n,r)&&r!==t&&_u(n,r,{get:()=>e[r],enumerable:!(o=M0(e,r))||o.enumerable});return n};var lf=n=>U0(_u({},"__esModule",{value:true}),n);function gn(){return getStructEncoder([["auditEnabled",getBooleanEncoder()],["realTimeMonitoring",getBooleanEncoder()],["retentionPeriod",getI64Encoder()]])}function An(){return getStructDecoder([["auditEnabled",getBooleanDecoder()],["realTimeMonitoring",getBooleanDecoder()],["retentionPeriod",getI64Decoder()]])}function W0(){return combineCodec(gn(),An())}var Tf=a(()=>{});function pn(){return getStructEncoder([["policyId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["policyType",En()],["rules",getArrayEncoder(Tn())],["scope",Sn()],["priority",getU8Encoder()],["status",Dn()],["effectiveDate",getI64Encoder()],["expirationDate",getOptionEncoder(getI64Encoder())],["metadata",mn()]])}function ln(){return getStructDecoder([["policyId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["policyType",hn()],["rules",getArrayDecoder(fn())],["scope",xn()],["priority",getU8Decoder()],["status",Pn()],["effectiveDate",getI64Decoder()],["expirationDate",getOptionDecoder(getI64Decoder())],["metadata",yn()]])}function J0(){return combineCodec(pn(),ln())}var xf=a(()=>{m();});function V(){return getEnumEncoder(Cn)}function L(){return getEnumDecoder(Cn)}function Y0(){return combineCodec(V(),L())}var Cn,Df=a(()=>{Cn=(c=>(c[c.None=0]="None",c[c.Basic=1]="Basic",c[c.Verified=2]="Verified",c[c.Pro=3]="Pro",c[c.Whale=4]="Whale",c))(Cn||{});});function Rn(){return getStructEncoder([["maxFailedAttempts",getU8Encoder()],["lockoutDuration",getI64Encoder()],["progressiveLockout",getBooleanEncoder()],["unlockMethods",getArrayEncoder(In())],["notificationRequirements",getArrayEncoder(Me())]])}function bn(){return getStructDecoder([["maxFailedAttempts",getU8Decoder()],["lockoutDuration",getI64Decoder()],["progressiveLockout",getBooleanDecoder()],["unlockMethods",getArrayDecoder(vn())],["notificationRequirements",getArrayDecoder(ke())]])}function dU(){return combineCodec(Rn(),bn())}var hf=a(()=>{m();});function Mn(){return getStructEncoder([["requirementType",wn()],["approvers",getArrayEncoder(getAddressEncoder())],["minApprovals",getU8Encoder()],["approvalTimeout",getI64Encoder()],["evidenceRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function kn(){return getStructDecoder([["requirementType",Un()],["approvers",getArrayDecoder(getAddressDecoder())],["minApprovals",getU8Decoder()],["approvalTimeout",getI64Decoder()],["evidenceRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function CU(){return combineCodec(Mn(),kn())}var bf=a(()=>{m();});function wn(){return getEnumEncoder(_n)}function Un(){return getEnumDecoder(_n)}function vU(){return combineCodec(wn(),Un())}var _n,If=a(()=>{_n=(s=>(s[s.ManagerApproval=0]="ManagerApproval",s[s.PeerReview=1]="PeerReview",s[s.SecurityClearance=2]="SecurityClearance",s[s.BackgroundCheck=3]="BackgroundCheck",s[s.TrainingCompletion=4]="TrainingCompletion",s[s.CertificationRequired=5]="CertificationRequired",s[s.BusinessJustification=6]="BusinessJustification",s[s.TechnicalAssessment=7]="TechnicalAssessment",s))(_n||{});});function zn(){return getStructEncoder([["name",getUtf8Encoder()],["actionType",Wn()],["parameters",getArrayEncoder(getStructEncoder([["0",getUtf8Encoder()],["1",getUtf8Encoder()]]))],["constraints",getArrayEncoder(Fn())]])}function On(){return getStructDecoder([["name",getUtf8Decoder()],["actionType",Nn()],["parameters",getArrayDecoder(getStructDecoder([["0",getUtf8Decoder()],["1",getUtf8Decoder()]]))],["constraints",getArrayDecoder(Gn())]])}function kU(){return combineCodec(zn(),On())}var Uf=a(()=>{m();});function Fn(){return getStructEncoder([["name",getUtf8Encoder()],["preConditions",getArrayEncoder(getUtf8Encoder())],["postConditions",getArrayEncoder(getUtf8Encoder())]])}function Gn(){return getStructDecoder([["name",getUtf8Decoder()],["preConditions",getArrayDecoder(getUtf8Decoder())],["postConditions",getArrayDecoder(getUtf8Decoder())]])}function zU(){return combineCodec(Fn(),Gn())}var Of=a(()=>{});function Wn(){return getU8Encoder()}function Nn(){return getU8Decoder()}function WU(){return combineCodec(Wn(),Nn())}var Ff,Gf=a(()=>{Ff=(y=>(y[y.Create=0]="Create",y[y.Read=1]="Read",y[y.Update=2]="Update",y[y.Delete=3]="Delete",y[y.Execute=4]="Execute",y[y.Approve=5]="Approve",y[y.Reject=6]="Reject",y[y.Transfer=7]="Transfer",y[y.Lock=8]="Lock",y[y.Unlock=9]="Unlock",y))(Ff||{});});function Bf(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function Vf(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function XU(){return combineCodec(Bf(),Vf())}var Lf=a(()=>{});function jf(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()]])}function $f(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()]])}function g_(){return combineCodec(jf(),$f())}var qf=a(()=>{});function Yf(){return getStructEncoder([["agent",getAddressEncoder()],["previousStatus",getBooleanEncoder()],["newStatus",getBooleanEncoder()],["timestamp",getI64Encoder()],["authority",getAddressEncoder()]])}function eS(){return getStructDecoder([["agent",getAddressDecoder()],["previousStatus",getBooleanDecoder()],["newStatus",getBooleanDecoder()],["timestamp",getI64Decoder()],["authority",getAddressDecoder()]])}function T_(){return combineCodec(Yf(),eS())}var tS=a(()=>{});function oS(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()]])}function iS(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()]])}function E_(){return combineCodec(oS(),iS())}var cS=a(()=>{});function Bn(){return getStructEncoder([["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedCapabilities",getArrayEncoder(getU64Encoder())],["verifiedAt",getI64Encoder()]])}function Vn(){return getStructDecoder([["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedCapabilities",getArrayDecoder(getU64Decoder())],["verifiedAt",getI64Decoder()]])}function B_(){return combineCodec(Bn(),Vn())}var sS=a(()=>{});function Ln(){return getStructEncoder([["biometricType",we()],["maxAge",getI64Encoder()],["refreshRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["degradationHandling",Hn()]])}function Kn(){return getStructDecoder([["biometricType",Ue()],["maxAge",getI64Decoder()],["refreshRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["degradationHandling",jn()]])}function tz(){return combineCodec(Ln(),Kn())}var aS=a(()=>{m();});function $n(){return getStructEncoder([["actionType",_e()],["requiredApprovers",getArrayEncoder(getAddressEncoder())],["minApprovals",getU8Encoder()],["approvalTimeout",getI64Encoder()]])}function qn(){return getStructDecoder([["actionType",ze()],["requiredApprovers",getArrayDecoder(getAddressDecoder())],["minApprovals",getU8Decoder()],["approvalTimeout",getI64Decoder()]])}function pz(){return combineCodec($n(),qn())}var dS=a(()=>{m();});function re(){return getDiscriminatedUnionEncoder([["FavorClient",getStructEncoder([["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])],["FavorAgent",getStructEncoder([["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])],["Split",getStructEncoder([["clientPercentage",getU8Encoder()],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])]])}function oe(){return getDiscriminatedUnionDecoder([["FavorClient",getStructDecoder([["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])],["FavorAgent",getStructDecoder([["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])],["Split",getStructDecoder([["clientPercentage",getU8Decoder()],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])]])}function Sz(){return combineCodec(re(),oe())}function xz(n,e){return Array.isArray(e)?{__kind:n,fields:e}:{__kind:n,...e??{}}}function Dz(n,e){return e.__kind===n}var uS=a(()=>{});function _e(){return getEnumEncoder(Jn)}function ze(){return getEnumDecoder(Jn)}function Cz(){return combineCodec(_e(),ze())}var Jn,gS=a(()=>{Jn=(p=>(p[p.AgentRegistered=0]="AgentRegistered",p[p.AgentUpdated=1]="AgentUpdated",p[p.AgentDeactivated=2]="AgentDeactivated",p[p.AgentVerified=3]="AgentVerified",p[p.PaymentProcessed=4]="PaymentProcessed",p[p.EscrowCreated=5]="EscrowCreated",p[p.EscrowReleased=6]="EscrowReleased",p[p.FundsWithdrawn=7]="FundsWithdrawn",p[p.ProposalCreated=8]="ProposalCreated",p[p.VoteCast=9]="VoteCast",p[p.ProposalExecuted=10]="ProposalExecuted",p[p.GovernanceUpdated=11]="GovernanceUpdated",p[p.AccessGranted=12]="AccessGranted",p[p.AccessRevoked=13]="AccessRevoked",p[p.SecurityPolicyUpdated=14]="SecurityPolicyUpdated",p[p.SuspiciousActivity=15]="SuspiciousActivity",p[p.ComplianceReportGenerated=16]="ComplianceReportGenerated",p[p.RegulatorySubmission=17]="RegulatorySubmission",p[p.AuditRequested=18]="AuditRequested",p[p.ViolationDetected=19]="ViolationDetected",p[p.SystemConfigUpdated=20]="SystemConfigUpdated",p[p.EmergencyAction=21]="EmergencyAction",p[p.MaintenancePerformed=22]="MaintenancePerformed",p[p.WorkOrderCreated=23]="WorkOrderCreated",p[p.WorkOrderCompleted=24]="WorkOrderCompleted",p[p.DisputeRaised=25]="DisputeRaised",p[p.DisputeResolved=26]="DisputeResolved",p[p.MultisigCreated=27]="MultisigCreated",p[p.MultisigSigned=28]="MultisigSigned",p[p.MultisigExecuted=29]="MultisigExecuted",p[p.RiskAssessmentPerformed=30]="RiskAssessmentPerformed",p[p.RiskThresholdExceeded=31]="RiskThresholdExceeded",p[p.RiskMitigationApplied=32]="RiskMitigationApplied",p))(Jn||{});});function Oe(){return getStructEncoder([["maxEntries",getU32Encoder()],["retentionPeriod",getI64Encoder()],["autoArchive",getBooleanEncoder()],["reportingFrequency",Zn()],["approvalLevels",getArrayEncoder($n())],["encryptionRequired",getBooleanEncoder()],["backupFrequency",Qn()]])}function Fe(){return getStructDecoder([["maxEntries",getU32Decoder()],["retentionPeriod",getI64Decoder()],["autoArchive",getBooleanDecoder()],["reportingFrequency",Yn()],["approvalLevels",getArrayDecoder(qn())],["encryptionRequired",getBooleanDecoder()],["backupFrequency",Xn()]])}function zz(){return combineCodec(Oe(),Fe())}var lS=a(()=>{m();});function er(){return getStructEncoder([["transactionSignature",getOptionEncoder(getUtf8Encoder())],["amount",getOptionEncoder(getU64Encoder())],["token",getOptionEncoder(getAddressEncoder())],["metadata",getArrayEncoder(getStructEncoder([["0",getUtf8Encoder()],["1",getUtf8Encoder()]]))],["riskScore",getOptionEncoder(getU32Encoder())],["location",getOptionEncoder(getUtf8Encoder())],["clientInfo",getOptionEncoder(getUtf8Encoder())]])}function tr(){return getStructDecoder([["transactionSignature",getOptionDecoder(getUtf8Decoder())],["amount",getOptionDecoder(getU64Decoder())],["token",getOptionDecoder(getAddressDecoder())],["metadata",getArrayDecoder(getStructDecoder([["0",getUtf8Decoder()],["1",getUtf8Decoder()]]))],["riskScore",getOptionDecoder(getU32Decoder())],["location",getOptionDecoder(getUtf8Decoder())],["clientInfo",getOptionDecoder(getUtf8Decoder())]])}function Hz(){return combineCodec(er(),tr())}var TS=a(()=>{});function nr(){return getStructEncoder([["entryId",getU64Encoder()],["timestamp",getI64Encoder()],["action",_e()],["actor",getAddressEncoder()],["target",getOptionEncoder(getAddressEncoder())],["context",er()],["complianceFlags",or()],["previousHash",fixEncoderSize(getBytesEncoder(),32)],["entryHash",fixEncoderSize(getBytesEncoder(),32)],["signature",getOptionEncoder(fixEncoderSize(getBytesEncoder(),64))]])}function rr(){return getStructDecoder([["entryId",getU64Decoder()],["timestamp",getI64Decoder()],["action",ze()],["actor",getAddressDecoder()],["target",getOptionDecoder(getAddressDecoder())],["context",tr()],["complianceFlags",ir()],["previousHash",fixDecoderSize(getBytesDecoder(),32)],["entryHash",fixDecoderSize(getBytesDecoder(),32)],["signature",getOptionDecoder(fixDecoderSize(getBytesDecoder(),64))]])}function Yz(){return combineCodec(nr(),rr())}var PS=a(()=>{m();});function ES(){return getStructEncoder([["entity",getAddressEncoder()],["entityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function hS(){return getStructDecoder([["entity",getAddressDecoder()],["entityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function pO(){return combineCodec(ES(),hS())}var CS=a(()=>{});function sr(){return getEnumEncoder(cr)}function ar(){return getEnumDecoder(cr)}function TO(){return combineCodec(sr(),ar())}var cr,RS=a(()=>{cr=(r=>(r[r.Low=0]="Low",r[r.Medium=1]="Medium",r[r.High=2]="High",r[r.VeryHigh=3]="VeryHigh",r))(cr||{});});function ur(){return getEnumEncoder(dr)}function gr(){return getEnumDecoder(dr)}function DO(){return combineCodec(ur(),gr())}var dr,bS=a(()=>{dr=(A=>(A[A.Password=0]="Password",A[A.DigitalSignature=1]="DigitalSignature",A[A.Biometric=2]="Biometric",A[A.Token=3]="Token",A[A.Certificate=4]="Certificate",A[A.Sms=5]="Sms",A[A.Email=6]="Email",A[A.App=7]="App",A[A.Hardware=8]="Hardware",A))(dr||{});});function Ar(){return getStructEncoder([["mfaRequired",getBooleanEncoder()],["supportedMethods",getArrayEncoder(ur())],["strengthRequirements",lr()],["lockoutPolicies",Rn()],["biometricPolicies",getOptionEncoder(yr())]])}function pr(){return getStructDecoder([["mfaRequired",getBooleanDecoder()],["supportedMethods",getArrayDecoder(gr())],["strengthRequirements",mr()],["lockoutPolicies",bn()],["biometricPolicies",getOptionDecoder(Tr())]])}function kO(){return combineCodec(Ar(),pr())}var IS=a(()=>{m();});function lr(){return getStructEncoder([["minimumLevel",sr()],["riskBased",getBooleanEncoder()],["adaptive",getBooleanEncoder()],["stepUpTriggers",getArrayEncoder(fr())]])}function mr(){return getStructDecoder([["minimumLevel",ar()],["riskBased",getBooleanDecoder()],["adaptive",getBooleanDecoder()],["stepUpTriggers",getArrayDecoder(Sr())]])}function FO(){return combineCodec(lr(),mr())}var kS=a(()=>{m();});function xr(){return getStructEncoder([["defaultDeny",getBooleanEncoder()],["explicitPermissionsRequired",getBooleanEncoder()]])}function Dr(){return getStructDecoder([["defaultDeny",getBooleanDecoder()],["explicitPermissionsRequired",getBooleanDecoder()]])}function BO(){return combineCodec(xr(),Dr())}var _S=a(()=>{});function Qn(){return getEnumEncoder(Pr)}function Xn(){return getEnumDecoder(Pr)}function HO(){return combineCodec(Qn(),Xn())}var Pr,zS=a(()=>{Pr=(r=>(r[r.Hourly=0]="Hourly",r[r.Daily=1]="Daily",r[r.Weekly=2]="Weekly",r[r.Monthly=3]="Monthly",r))(Pr||{});});function yr(){return getStructEncoder([["supportedTypes",getArrayEncoder(we())],["qualityRequirements",Cr()],["livenessDetection",getBooleanEncoder()],["templateProtection",Er()]])}function Tr(){return getStructDecoder([["supportedTypes",getArrayDecoder(Ue())],["qualityRequirements",Rr()],["livenessDetection",getBooleanDecoder()],["templateProtection",hr()]])}function YO(){return combineCodec(yr(),Tr())}var OS=a(()=>{m();});function Er(){return getStructEncoder([["encryptionRequired",getBooleanEncoder()],["storageMethod",br()],["revocationSupport",getBooleanEncoder()],["agingPolicies",getArrayEncoder(Ln())]])}function hr(){return getStructDecoder([["encryptionRequired",getBooleanDecoder()],["storageMethod",Ir()],["revocationSupport",getBooleanDecoder()],["agingPolicies",getArrayDecoder(Kn())]])}function i8(){return combineCodec(Er(),hr())}var WS=a(()=>{m();});function br(){return getEnumEncoder(vr)}function Ir(){return getEnumDecoder(vr)}function d8(){return combineCodec(br(),Ir())}var vr,NS=a(()=>{vr=(c=>(c[c.OnDevice=0]="OnDevice",c[c.Encrypted=1]="Encrypted",c[c.Hashed=2]="Hashed",c[c.Distributed=3]="Distributed",c[c.None=4]="None",c))(vr||{});});function we(){return getEnumEncoder(Mr)}function Ue(){return getEnumDecoder(Mr)}function p8(){return combineCodec(we(),Ue())}var Mr,BS=a(()=>{Mr=(d=>(d[d.Fingerprint=0]="Fingerprint",d[d.FaceRecognition=1]="FaceRecognition",d[d.IrisRecognition=2]="IrisRecognition",d[d.VoiceRecognition=3]="VoiceRecognition",d[d.Signature=4]="Signature",d[d.Gait=5]="Gait",d[d.Behavioral=6]="Behavioral",d))(Mr||{});});function Cr(){return getStructEncoder([["minimumQuality",getU8Encoder()],["assessmentMethod",getUtf8Encoder()],["multipleSamples",getBooleanEncoder()],["qualityThresholds",getArrayEncoder(getStructEncoder([["0",getUtf8Encoder()],["1",getU8Encoder()]]))]])}function Rr(){return getStructDecoder([["minimumQuality",getU8Decoder()],["assessmentMethod",getUtf8Decoder()],["multipleSamples",getBooleanDecoder()],["qualityThresholds",getArrayDecoder(getStructDecoder([["0",getUtf8Decoder()],["1",getU8Decoder()]]))]])}function S8(){return combineCodec(Cr(),Rr())}var qS=a(()=>{});function or(){return getStructEncoder([["requiresReporting",getBooleanEncoder()],["highRisk",getBooleanEncoder()],["sensitiveData",getBooleanEncoder()],["crossBorder",getBooleanEncoder()],["largeAmount",getBooleanEncoder()],["suspicious",getBooleanEncoder()],["manualReview",getBooleanEncoder()],["jurisdiction",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function ir(){return getStructDecoder([["requiresReporting",getBooleanDecoder()],["highRisk",getBooleanDecoder()],["sensitiveData",getBooleanDecoder()],["crossBorder",getBooleanDecoder()],["largeAmount",getBooleanDecoder()],["suspicious",getBooleanDecoder()],["manualReview",getBooleanDecoder()],["jurisdiction",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function k8(){return combineCodec(or(),ir())}var JS=a(()=>{});function kr(){return getStructEncoder([["complianceScore",getU8Encoder()],["policyAdherenceRate",getU8Encoder()],["avgIncidentResponseTime",getU64Encoder()],["falsePositiveRate",getU8Encoder()],["coveragePercentage",getU8Encoder()],["auditReadinessScore",getU8Encoder()]])}function wr(){return getStructDecoder([["complianceScore",getU8Decoder()],["policyAdherenceRate",getU8Decoder()],["avgIncidentResponseTime",getU64Decoder()],["falsePositiveRate",getU8Decoder()],["coveragePercentage",getU8Decoder()],["auditReadinessScore",getU8Decoder()]])}function F8(){return combineCodec(kr(),wr())}var QS=a(()=>{});function Ur(){return getStructEncoder([["frameworks",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["auditRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reportingRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function _r(){return getStructDecoder([["frameworks",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["auditRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reportingRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function B8(){return combineCodec(Ur(),_r())}var XS=a(()=>{});function zr(){return getStructEncoder([["complianceScore",getU8Encoder()],["lastReview",getI64Encoder()],["nextReview",getI64Encoder()],["complianceOfficers",getArrayEncoder(getAddressEncoder())]])}function Or(){return getStructDecoder([["complianceScore",getU8Decoder()],["lastReview",getI64Decoder()],["nextReview",getI64Decoder()],["complianceOfficers",getArrayDecoder(getAddressDecoder())]])}function X8(){return combineCodec(zr(),Or())}var ex=a(()=>{});function rx(){return getStructEncoder([["report",getAddressEncoder()],["reportId",getU64Encoder()],["reportType",ie()],["complianceRate",getU64Encoder()]])}function ox(){return getStructDecoder([["report",getAddressDecoder()],["reportId",getU64Decoder()],["reportType",ce()],["complianceRate",getU64Decoder()]])}function rF(){return combineCodec(rx(),ox())}var ix=a(()=>{m();});function Ax(){return getStructEncoder([["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["owner",getAddressEncoder()],["treeAuthority",getAddressEncoder()],["merkleTree",getAddressEncoder()],["dataHash",fixEncoderSize(getBytesEncoder(),32)],["index",getU64Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["createdAt",getI64Encoder()]])}function px(){return getStructDecoder([["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["owner",getAddressDecoder()],["treeAuthority",getAddressDecoder()],["merkleTree",getAddressDecoder()],["dataHash",fixDecoderSize(getBytesDecoder(),32)],["index",getU64Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["createdAt",getI64Decoder()]])}function mF(){return combineCodec(Ax(),px())}var lx=a(()=>{});function Ne(){return getEnumEncoder(Fr)}function Be(){return getEnumDecoder(Fr)}function SF(){return combineCodec(Ne(),Be())}var Fr,mx=a(()=>{Fr=(i=>(i[i.TimeDelay=0]="TimeDelay",i[i.TokenBalance=1]="TokenBalance",i[i.PriceThreshold=2]="PriceThreshold",i[i.VoteCount=3]="VoteCount",i[i.ExternalOracle=4]="ExternalOracle",i[i.CustomLogic=5]="CustomLogic",i))(Fr||{});});function Gr(){return getStructEncoder([["attribute",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["operator",Nr()],["value",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["valueType",Vr()]])}function Wr(){return getStructDecoder([["attribute",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["operator",Br()],["value",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["valueType",Lr()]])}function EF(){return combineCodec(Gr(),Wr())}var Px=a(()=>{m();});function Nr(){return getEnumEncoder(Kr)}function Br(){return getEnumDecoder(Kr)}function bF(){return combineCodec(Nr(),Br())}var Kr,Ex=a(()=>{Kr=(D=>(D[D.Equals=0]="Equals",D[D.NotEquals=1]="NotEquals",D[D.GreaterThan=2]="GreaterThan",D[D.LessThan=3]="LessThan",D[D.GreaterThanOrEqual=4]="GreaterThanOrEqual",D[D.LessThanOrEqual=5]="LessThanOrEqual",D[D.Contains=6]="Contains",D[D.NotContains=7]="NotContains",D[D.In=8]="In",D[D.NotIn=9]="NotIn",D[D.Matches=10]="Matches",D[D.NotMatches=11]="NotMatches",D))(Kr||{});});function Ve(){return getEnumEncoder(Hr)}function Le(){return getEnumDecoder(Hr)}function kF(){return combineCodec(Ve(),Le())}var Hr,hx=a(()=>{Hr=(c=>(c[c.AgentIdentity=0]="AgentIdentity",c[c.ReputationScore=1]="ReputationScore",c[c.JobCompletion=2]="JobCompletion",c[c.DelegatedSigner=3]="DelegatedSigner",c[c.Custom=4]="Custom",c))(Hr||{});});function $r(){return getEnumEncoder(jr)}function qr(){return getEnumDecoder(jr)}function zF(){return combineCodec($r(),qr())}var jr,Cx=a(()=>{jr=(r=>(r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Revoked=2]="Revoked",r[r.Expired=3]="Expired",r))(jr||{});});function Ke(){return getEnumEncoder(Jr)}function He(){return getEnumDecoder(Jr)}function WF(){return combineCodec(Ke(),He())}var Jr,Rx=a(()=>{Jr=(r=>(r[r.NotSynced=0]="NotSynced",r[r.SyncPending=1]="SyncPending",r[r.SyncedToCrossmint=2]="SyncedToCrossmint",r[r.SyncFailed=3]="SyncFailed",r))(Jr||{});});function Xr(){return getEnumEncoder(Qr)}function Zr(){return getEnumDecoder(Qr)}function LF(){return combineCodec(Xr(),Zr())}var Qr,bx=a(()=>{Qr=(c=>(c[c.Public=0]="Public",c[c.Internal=1]="Internal",c[c.Confidential=2]="Confidential",c[c.Restricted=3]="Restricted",c[c.TopSecret=4]="TopSecret",c))(Qr||{});});function Yr(){return getStructEncoder([["encryptionRequired",getBooleanEncoder()],["classificationRequired",getBooleanEncoder()],["dlpEnabled",getBooleanEncoder()]])}function eo(){return getStructDecoder([["encryptionRequired",getBooleanDecoder()],["classificationRequired",getBooleanDecoder()],["dlpEnabled",getBooleanDecoder()]])}function $F(){return combineCodec(Yr(),eo())}var Ix=a(()=>{});function Hn(){return getEnumEncoder(to)}function jn(){return getEnumDecoder(to)}function XF(){return combineCodec(Hn(),jn())}var to,vx=a(()=>{to=(r=>(r[r.RequireRefresh=0]="RequireRefresh",r[r.GradualDegradation=1]="GradualDegradation",r[r.ImmediateExpiry=2]="ImmediateExpiry",r[r.AdaptiveThreshold=3]="AdaptiveThreshold",r))(to||{});});function no(){return getStructEncoder([["delegator",getAddressEncoder()],["delegatedAt",getI64Encoder()],["scope",oo()],["expiresAt",getOptionEncoder(getI64Encoder())]])}function ro(){return getStructDecoder([["delegator",getAddressDecoder()],["delegatedAt",getI64Decoder()],["scope",io()],["expiresAt",getOptionDecoder(getI64Decoder())]])}function iG(){return combineCodec(no(),ro())}var wx=a(()=>{m();});function oo(){return getDiscriminatedUnionEncoder([["All",getUnitEncoder()],["ProposalType",getStructEncoder([["fields",getTupleEncoder([se()])]])],["SingleProposal",getUnitEncoder()],["Limited",getUnitEncoder()]])}function io(){return getDiscriminatedUnionDecoder([["All",getUnitDecoder()],["ProposalType",getStructDecoder([["fields",getTupleDecoder([ae()])]])],["SingleProposal",getUnitDecoder()],["Limited",getUnitDecoder()]])}function pG(){return combineCodec(oo(),io())}function lG(n,e){return Array.isArray(e)?{__kind:n,fields:e}:{__kind:n,...e??{}}}function mG(n,e){return e.__kind===n}var Ux=a(()=>{m();});function _x(){return getStructEncoder([["escrowId",getU64Encoder()],["agent",getAddressEncoder()],["deliveryProof",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function zx(){return getStructDecoder([["escrowId",getU64Decoder()],["agent",getAddressDecoder()],["deliveryProof",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function vG(){return combineCodec(_x(),zx())}var Ox=a(()=>{});function Fx(){return getStructEncoder([["escrowId",getU64Encoder()],["client",getAddressEncoder()],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Gx(){return getStructDecoder([["escrowId",getU64Decoder()],["client",getAddressDecoder()],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function LG(){return combineCodec(Fx(),Gx())}var Wx=a(()=>{});function Nx(){return getStructEncoder([["escrowId",getU64Encoder()],["decision",re()],["arbitrator",getAddressEncoder()]])}function Bx(){return getStructDecoder([["escrowId",getU64Decoder()],["decision",oe()],["arbitrator",getAddressDecoder()]])}function XG(){return combineCodec(Nx(),Bx())}var Vx=a(()=>{m();});function co(){return getStructEncoder([["breakGlassEnabled",getBooleanEncoder()],["emergencyContacts",getArrayEncoder(getAddressEncoder())],["approvalRequired",getBooleanEncoder()]])}function so(){return getStructDecoder([["breakGlassEnabled",getBooleanDecoder()],["emergencyContacts",getArrayDecoder(getAddressDecoder())],["approvalRequired",getBooleanDecoder()]])}function i2(){return combineCodec(co(),so())}var Hx=a(()=>{});function ao(){return getStructEncoder([["emergencyContacts",getArrayEncoder(getAddressEncoder())],["emergencyThreshold",getU8Encoder()],["emergencyTimeout",getI64Encoder()],["emergencyTransactionTypes",getArrayEncoder(de())],["freezeEnabled",getBooleanEncoder()],["frozen",getBooleanEncoder()],["frozenAt",getOptionEncoder(getI64Encoder())],["autoUnfreezeDuration",getOptionEncoder(getI64Encoder())]])}function uo(){return getStructDecoder([["emergencyContacts",getArrayDecoder(getAddressDecoder())],["emergencyThreshold",getU8Decoder()],["emergencyTimeout",getI64Decoder()],["emergencyTransactionTypes",getArrayDecoder(ue())],["freezeEnabled",getBooleanDecoder()],["frozen",getBooleanDecoder()],["frozenAt",getOptionDecoder(getI64Decoder())],["autoUnfreezeDuration",getOptionDecoder(getI64Decoder())]])}function p2(){return combineCodec(ao(),uo())}var Zx=a(()=>{m();});function je(){return getEnumEncoder(go)}function $e(){return getEnumDecoder(go)}function T2(){return combineCodec(je(),$e())}var go,Yx=a(()=>{go=(r=>(r[r.Hard=0]="Hard",r[r.Soft=1]="Soft",r[r.Advisory=2]="Advisory",r[r.ExceptionBased=3]="ExceptionBased",r))(go||{});});function nD(){return getStructEncoder([["escrowId",getU64Encoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()]])}function rD(){return getStructDecoder([["escrowId",getU64Decoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()]])}function E2(){return combineCodec(nD(),rD())}var oD=a(()=>{});function dD(){return getStructEncoder([["escrowId",getU64Encoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()],["deadline",getI64Encoder()]])}function uD(){return getStructDecoder([["escrowId",getU64Decoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()],["deadline",getI64Decoder()]])}function v2(){return combineCodec(dD(),uD())}var gD=a(()=>{});function po(){return getEnumEncoder(Ao)}function lo(){return getEnumDecoder(Ao)}function U2(){return combineCodec(po(),lo())}var Ao,AD=a(()=>{Ao=(r=>(r[r.Active=0]="Active",r[r.Completed=1]="Completed",r[r.Disputed=2]="Disputed",r[r.Cancelled=3]="Cancelled",r))(Ao||{});});function ge(){return getStructEncoder([["conditionType",Ne()],["targetValue",getU64Encoder()],["currentValue",getU64Encoder()],["met",getBooleanEncoder()],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Ae(){return getStructDecoder([["conditionType",Be()],["targetValue",getU64Decoder()],["currentValue",getU64Decoder()],["met",getBooleanDecoder()],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function H2(){return combineCodec(ge(),Ae())}var mD=a(()=>{m();});function qe(){return getStructEncoder([["instructions",getArrayEncoder(mo())],["executionDelay",getI64Encoder()],["executionConditions",getArrayEncoder(ge())],["cancellable",getBooleanEncoder()],["autoExecute",getBooleanEncoder()],["executionAuthority",getAddressEncoder()]])}function Je(){return getStructDecoder([["instructions",getArrayDecoder(yo())],["executionDelay",getI64Decoder()],["executionConditions",getArrayDecoder(Ae())],["cancellable",getBooleanDecoder()],["autoExecute",getBooleanDecoder()],["executionAuthority",getAddressDecoder()]])}function Y2(){return combineCodec(qe(),Je())}var xD=a(()=>{m();});function To(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["latitudeRange",So()],["longitudeRange",Do()],["radius",getOptionEncoder(getU32Encoder())]])}function fo(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["latitudeRange",xo()],["longitudeRange",Po()],["radius",getOptionDecoder(getU32Decoder())]])}function dW(){return combineCodec(To(),fo())}var ED=a(()=>{m();});function hD(){return getStructEncoder([["agent",getAddressEncoder()],["amount",getU64Encoder()],["reason",Qe()],["newTier",V()]])}function CD(){return getStructDecoder([["agent",getAddressDecoder()],["amount",getU64Decoder()],["reason",Xe()],["newTier",L()]])}function TW(){return combineCodec(hD(),CD())}var RD=a(()=>{m();});function vD(){return getStructEncoder([["agent",getAddressEncoder()],["amount",getU64Encoder()],["unlockAt",getI64Encoder()],["reputationBoostBps",getU16Encoder()],["tier",V()],["dailyApiCalls",getU32Encoder()],["votingPower",getU64Encoder()]])}function MD(){return getStructDecoder([["agent",getAddressDecoder()],["amount",getU64Decoder()],["unlockAt",getI64Decoder()],["reputationBoostBps",getU16Decoder()],["tier",L()],["dailyApiCalls",getU32Decoder()],["votingPower",getU64Decoder()]])}function vW(){return combineCodec(vD(),MD())}var kD=a(()=>{m();});function wD(){return getStructEncoder([["agent",getAddressEncoder()],["amount",getU64Encoder()]])}function UD(){return getStructDecoder([["agent",getAddressDecoder()],["amount",getU64Decoder()]])}function FW(){return combineCodec(wD(),UD())}var _D=a(()=>{});function FD(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["proposer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function GD(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["proposer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function JW(){return combineCodec(FD(),GD())}var WD=a(()=>{});function Eo(){return getStructEncoder([["level",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["value",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["includeDescendants",getBooleanEncoder()]])}function ho(){return getStructDecoder([["level",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["value",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["includeDescendants",getBooleanDecoder()]])}function tN(){return combineCodec(Eo(),ho())}var jD=a(()=>{});function Co(){return getStructEncoder([["responseTeam",getArrayEncoder(getAddressEncoder())],["escalationProcedures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["notificationRequirements",getArrayEncoder(Me())]])}function Ro(){return getStructDecoder([["responseTeam",getArrayDecoder(getAddressDecoder())],["escalationProcedures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["notificationRequirements",getArrayDecoder(ke())]])}function pN(){return combineCodec(Co(),Ro())}var $D=a(()=>{m();});function So(){return getStructEncoder([["min",getF64Encoder()],["max",getF64Encoder()]])}function xo(){return getStructDecoder([["min",getF64Decoder()],["max",getF64Decoder()]])}function TN(){return combineCodec(So(),xo())}var QD=a(()=>{});function Uo(){return getStructEncoder([["allowedCountries",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blockedCountries",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["allowedIpRanges",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blockedIpRanges",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["geofencingEnabled",getBooleanEncoder()],["allowedRegions",getArrayEncoder(To())]])}function _o(){return getStructDecoder([["allowedCountries",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blockedCountries",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["allowedIpRanges",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blockedIpRanges",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["geofencingEnabled",getBooleanDecoder()],["allowedRegions",getArrayDecoder(fo())]])}function EN(){return combineCodec(Uo(),_o())}var XD=a(()=>{m();});function Do(){return getStructEncoder([["min",getF64Encoder()],["max",getF64Encoder()]])}function Po(){return getStructDecoder([["min",getF64Decoder()],["max",getF64Decoder()]])}function bN(){return combineCodec(Do(),Po())}var eP=a(()=>{});function rP(){return getStructEncoder([["multisigId",getU64Encoder()],["multisigType",pe()],["owner",getAddressEncoder()],["threshold",getU8Encoder()],["signerCount",getU8Encoder()],["timestamp",getI64Encoder()]])}function oP(){return getStructDecoder([["multisigId",getU64Decoder()],["multisigType",le()],["owner",getAddressDecoder()],["threshold",getU8Decoder()],["signerCount",getU8Decoder()],["timestamp",getI64Decoder()]])}function FN(){return combineCodec(rP(),oP())}var iP=a(()=>{m();});function zo(){return getStructEncoder([["signer",getAddressEncoder()],["signature",fixEncoderSize(getBytesEncoder(),64)],["signedAt",getI64Encoder()],["signatureMethod",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["verificationData",getOptionEncoder(addEncoderSizePrefix(getBytesEncoder(),getU32Encoder()))]])}function Oo(){return getStructDecoder([["signer",getAddressDecoder()],["signature",fixDecoderSize(getBytesDecoder(),64)],["signedAt",getI64Decoder()],["signatureMethod",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["verificationData",getOptionDecoder(addDecoderSizePrefix(getBytesDecoder(),getU32Decoder()))]])}function XN(){return combineCodec(zo(),Oo())}var AP=a(()=>{});function pe(){return getEnumEncoder(Fo)}function le(){return getEnumDecoder(Fo)}function t6(){return combineCodec(pe(),le())}var Fo,pP=a(()=>{Fo=(i=>(i[i.Protocol=0]="Protocol",i[i.Dao=1]="Dao",i[i.Dispute=2]="Dispute",i[i.AgentConsortium=3]="AgentConsortium",i[i.AgentTreasury=4]="AgentTreasury",i[i.Custom=5]="Custom",i))(Fo||{});});function Go(){return getStructEncoder([["multisigType",pe()],["timelockSeconds",getI64Encoder()],["minSigners",getU8Encoder()],["maxSigners",getU8Encoder()],["minReputationScore",getU16Encoder()],["requiresTokenHoldings",getBooleanEncoder()],["minTokenBalance",getU64Encoder()]])}function Wo(){return getStructDecoder([["multisigType",le()],["timelockSeconds",getI64Decoder()],["minSigners",getU8Decoder()],["maxSigners",getU8Decoder()],["minReputationScore",getU16Decoder()],["requiresTokenHoldings",getBooleanDecoder()],["minTokenBalance",getU64Decoder()]])}function p6(){return combineCodec(Go(),Wo())}var yP=a(()=>{m();});function Ze(){return getStructEncoder([["maxSigners",getU8Encoder()],["defaultTimeout",getI64Encoder()],["allowEmergencyOverride",getBooleanEncoder()],["emergencyThreshold",getOptionEncoder(getU8Encoder())],["autoExecute",getBooleanEncoder()],["signerChangeThreshold",getU8Encoder()],["allowedTransactionTypes",getArrayEncoder(de())]])}function Ye(){return getStructDecoder([["maxSigners",getU8Decoder()],["defaultTimeout",getI64Decoder()],["allowEmergencyOverride",getBooleanDecoder()],["emergencyThreshold",getOptionDecoder(getU8Decoder())],["autoExecute",getBooleanDecoder()],["signerChangeThreshold",getU8Decoder()],["allowedTransactionTypes",getArrayDecoder(ue())]])}function E6(){return combineCodec(Ze(),Ye())}var SP=a(()=>{m();});function No(){return getStructEncoder([["firewallRequired",getBooleanEncoder()],["intrusionDetection",getBooleanEncoder()],["trafficMonitoring",getBooleanEncoder()]])}function Bo(){return getStructDecoder([["firewallRequired",getBooleanDecoder()],["intrusionDetection",getBooleanDecoder()],["trafficMonitoring",getBooleanDecoder()]])}function b6(){return combineCodec(No(),Bo())}var xP=a(()=>{});function Lo(){return getEnumEncoder(Vo)}function Ko(){return getEnumDecoder(Vo)}function k6(){return combineCodec(Lo(),Ko())}var Vo,DP=a(()=>{Vo=(i=>(i[i.OnChain=0]="OnChain",i[i.Email=1]="Email",i[i.Sms=2]="Sms",i[i.Push=3]="Push",i[i.InApp=4]="InApp",i[i.All=5]="All",i))(Vo||{});});function jo(){return getEnumEncoder(Ho)}function $o(){return getEnumDecoder(Ho)}function z6(){return combineCodec(jo(),$o())}var Ho,PP=a(()=>{Ho=(c=>(c[c.Low=0]="Low",c[c.Medium=1]="Medium",c[c.High=2]="High",c[c.Critical=3]="Critical",c[c.Emergency=4]="Emergency",c))(Ho||{});});function Me(){return getStructEncoder([["eventType",Zo()],["targets",getArrayEncoder(qo())],["method",Lo()],["timing",Qo()]])}function ke(){return getStructDecoder([["eventType",Yo()],["targets",getArrayDecoder(Jo())],["method",Ko()],["timing",Xo()]])}function B6(){return combineCodec(Me(),ke())}var EP=a(()=>{m();});function qo(){return getStructEncoder([["targetType",ei()],["targetId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["priority",jo()]])}function Jo(){return getStructDecoder([["targetType",ti()],["targetId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["priority",$o()]])}function X6(){return combineCodec(qo(),Jo())}var hP=a(()=>{m();});function ei(){return getEnumEncoder(ni)}function ti(){return getEnumDecoder(ni)}function tB(){return combineCodec(ei(),ti())}var ni,CP=a(()=>{ni=(d=>(d[d.User=0]="User",d[d.Administrator=1]="Administrator",d[d.SecurityTeam=2]="SecurityTeam",d[d.ComplianceTeam=3]="ComplianceTeam",d[d.Manager=4]="Manager",d[d.AuditTeam=5]="AuditTeam",d[d.ExternalSystem=6]="ExternalSystem",d))(ni||{});});function Qo(){return getEnumEncoder(ri)}function Xo(){return getEnumDecoder(ri)}function iB(){return combineCodec(Qo(),Xo())}var ri,RP=a(()=>{ri=(r=>(r[r.Immediate=0]="Immediate",r[r.Delayed=1]="Delayed",r[r.Batched=2]="Batched",r[r.Scheduled=3]="Scheduled",r))(ri||{});});function oi(){return getStructEncoder([["minimumLength",getU8Encoder()],["complexityRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["historyCount",getU8Encoder()],["maxAge",getI64Encoder()]])}function ii(){return getStructDecoder([["minimumLength",getU8Decoder()],["complexityRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["historyCount",getU8Decoder()],["maxAge",getI64Decoder()]])}function SB(){return combineCodec(oi(),ii())}var vP=a(()=>{});function ci(){return getStructEncoder([["transactionId",getU64Encoder()],["transactionType",de()],["target",getAddressEncoder()],["data",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["requiredSignatures",getU8Encoder()],["signatures",getArrayEncoder(zo())],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["priority",ui()],["executionConditions",getArrayEncoder(ge())],["status",Ai()],["timeLock",getOptionEncoder(ai())]])}function si(){return getStructDecoder([["transactionId",getU64Decoder()],["transactionType",ue()],["target",getAddressDecoder()],["data",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["requiredSignatures",getU8Decoder()],["signatures",getArrayDecoder(Oo())],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["priority",gi()],["executionConditions",getArrayDecoder(Ae())],["status",pi()],["timeLock",getOptionDecoder(di())]])}function FB(){return combineCodec(ci(),si())}var _P=a(()=>{m();});function xi(){return getStructEncoder([["permissionId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["resourceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["actions",getArrayEncoder(zn())],["scope",Ri()],["constraints",getArrayEncoder(Pi())],["metadata",hi()]])}function Di(){return getStructDecoder([["permissionId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["resourceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["actions",getArrayDecoder(On())],["scope",bi()],["constraints",getArrayDecoder(Ei())],["metadata",Ci()]])}function BB(){return combineCodec(xi(),Di())}var FP=a(()=>{m();});function Pi(){return getStructEncoder([["constraintType",Ii()],["conditions",getArrayEncoder(Gr())],["enforcement",je()]])}function Ei(){return getStructDecoder([["constraintType",vi()],["conditions",getArrayDecoder(Wr())],["enforcement",$e()]])}function $B(){return combineCodec(Pi(),Ei())}var GP=a(()=>{m();});function Ii(){return getEnumEncoder(Mi)}function vi(){return getEnumDecoder(Mi)}function XB(){return combineCodec(Ii(),vi())}var Mi,WP=a(()=>{Mi=(i=>(i[i.Temporal=0]="Temporal",i[i.Contextual=1]="Contextual",i[i.Conditional=2]="Conditional",i[i.ResourceBased=3]="ResourceBased",i[i.AttributeBased=4]="AttributeBased",i[i.RiskBased=5]="RiskBased",i))(Mi||{});});function hi(){return getStructEncoder([["businessJustification",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["riskAssessment",ki()],["complianceMapping",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["relatedPermissions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["owner",getOptionEncoder(getAddressEncoder())],["lastReview",getOptionEncoder(getI64Encoder())],["reviewFrequency",getI64Encoder()]])}function Ci(){return getStructDecoder([["businessJustification",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["riskAssessment",wi()],["complianceMapping",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["relatedPermissions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["owner",getOptionDecoder(getAddressDecoder())],["lastReview",getOptionDecoder(getI64Decoder())],["reviewFrequency",getI64Decoder()]])}function r4(){return combineCodec(hi(),Ci())}var jP=a(()=>{m();});function Ri(){return getStructEncoder([["scopeType",zi()],["boundaries",Ui()],["hierarchical",getBooleanEncoder()],["inherited",getBooleanEncoder()]])}function bi(){return getStructDecoder([["scopeType",Oi()],["boundaries",_i()],["hierarchical",getBooleanDecoder()],["inherited",getBooleanDecoder()]])}function s4(){return combineCodec(Ri(),bi())}var JP=a(()=>{m();});function mn(){return getStructEncoder([["author",getOptionEncoder(getAddressEncoder())],["approver",getOptionEncoder(getAddressEncoder())],["approvalDate",getOptionEncoder(getI64Encoder())],["businessJustification",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["complianceReferences",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAssessment",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reviewSchedule",Wi()]])}function yn(){return getStructDecoder([["author",getOptionDecoder(getAddressDecoder())],["approver",getOptionDecoder(getAddressDecoder())],["approvalDate",getOptionDecoder(getI64Decoder())],["businessJustification",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["complianceReferences",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAssessment",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reviewSchedule",Ni()]])}function m4(){return combineCodec(mn(),yn())}var ZP=a(()=>{m();});function Tn(){return getStructEncoder([["ruleId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["conditions",getArrayEncoder(Li())],["effect",Bi()],["priority",getU8Encoder()],["enabled",getBooleanEncoder()]])}function fn(){return getStructDecoder([["ruleId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["conditions",getArrayDecoder(Ki())],["effect",Vi()],["priority",getU8Decoder()],["enabled",getBooleanDecoder()]])}function k4(){return combineCodec(Tn(),fn())}var YP=a(()=>{m();});function Sn(){return getStructEncoder([["subjects",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["actions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["inheritance",Hi()]])}function xn(){return getStructDecoder([["subjects",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["actions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["inheritance",ji()]])}function z4(){return combineCodec(Sn(),xn())}var eE=a(()=>{m();});function Dn(){return getEnumEncoder($i)}function Pn(){return getEnumDecoder($i)}function W4(){return combineCodec(Dn(),Pn())}var $i,tE=a(()=>{$i=(i=>(i[i.Active=0]="Active",i[i.Inactive=1]="Inactive",i[i.Draft=2]="Draft",i[i.UnderReview=3]="UnderReview",i[i.Deprecated=4]="Deprecated",i[i.Suspended=5]="Suspended",i))($i||{});});function En(){return getEnumEncoder(qi)}function hn(){return getEnumDecoder(qi)}function L4(){return combineCodec(En(),hn())}var qi,nE=a(()=>{qi=(i=>(i[i.Allow=0]="Allow",i[i.Deny=1]="Deny",i[i.Conditional=2]="Conditional",i[i.Delegated=3]="Delegated",i[i.Temporary=4]="Temporary",i[i.Emergency=5]="Emergency",i))(qi||{});});function J(){return getEnumEncoder(Dt)}function Q(){return getEnumDecoder(Dt)}function $4(){return combineCodec(J(),Q())}var Dt,rE=a(()=>{Dt=(s=>(s[s.Fixed=0]="Fixed",s[s.Hourly=1]="Hourly",s[s.PerTask=2]="PerTask",s[s.Subscription=3]="Subscription",s[s.Auction=4]="Auction",s[s.Dynamic=5]="Dynamic",s[s.RevenueShare=6]="RevenueShare",s[s.Tiered=7]="Tiered",s))(Dt||{});});function Ji(){return getStructEncoder([["pubkey",getAddressEncoder()],["isSigner",getBooleanEncoder()],["isWritable",getBooleanEncoder()],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Qi(){return getStructDecoder([["pubkey",getAddressDecoder()],["isSigner",getBooleanDecoder()],["isWritable",getBooleanDecoder()],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function iV(){return combineCodec(Ji(),Qi())}var cE=a(()=>{});function mo(){return getStructEncoder([["programId",getAddressEncoder()],["accounts",getArrayEncoder(Ji())],["data",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function yo(){return getStructDecoder([["programId",getAddressDecoder()],["accounts",getArrayDecoder(Qi())],["data",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function TV(){return combineCodec(mo(),yo())}var gE=a(()=>{m();});function Yi(){return getStructEncoder([["ipfsHash",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["externalReferences",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAssessment",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["impactAnalysis",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["implementationTimeline",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function ec(){return getStructDecoder([["ipfsHash",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["externalReferences",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAssessment",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["impactAnalysis",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["implementationTimeline",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function DV(){return combineCodec(Yi(),ec())}var lE=a(()=>{});function nc(){return getEnumEncoder(tc)}function rc(){return getEnumDecoder(tc)}function CV(){return combineCodec(nc(),rc())}var tc,mE=a(()=>{tc=(s=>(s[s.Draft=0]="Draft",s[s.Active=1]="Active",s[s.Passed=2]="Passed",s[s.Failed=3]="Failed",s[s.Executed=4]="Executed",s[s.Cancelled=5]="Cancelled",s[s.Expired=6]="Expired",s[s.Queued=7]="Queued",s))(tc||{});});function se(){return getEnumEncoder(Pt)}function ae(){return getEnumDecoder(Pt)}function vV(){return combineCodec(se(),ae())}var Pt,Hg=a(()=>{Pt=(s=>(s[s.ParameterUpdate=0]="ParameterUpdate",s[s.ProtocolUpgrade=1]="ProtocolUpgrade",s[s.TreasuryOperation=2]="TreasuryOperation",s[s.FeeUpdate=3]="FeeUpdate",s[s.SecurityUpdate=4]="SecurityUpdate",s[s.GovernanceUpdate=5]="GovernanceUpdate",s[s.EmergencyAction=6]="EmergencyAction",s[s.Custom=7]="Custom",s))(Pt||{});});function xE(){return getStructEncoder([["authority",getAddressEncoder()],["feesEnabled",getBooleanEncoder()],["escrowFeeBps",getU16Encoder()],["agentRegistrationFee",getU64Encoder()],["listingFee",getU64Encoder()],["disputeFeeBps",getU16Encoder()],["timestamp",getI64Encoder()]])}function DE(){return getStructDecoder([["authority",getAddressDecoder()],["feesEnabled",getBooleanDecoder()],["escrowFeeBps",getU16Decoder()],["agentRegistrationFee",getU64Decoder()],["listingFee",getU64Decoder()],["disputeFeeBps",getU16Decoder()],["timestamp",getI64Decoder()]])}function WV(){return combineCodec(xE(),DE())}var PE=a(()=>{});function ic(){return getEnumEncoder(oc)}function cc(){return getEnumDecoder(oc)}function LV(){return combineCodec(ic(),cc())}var oc,EE=a(()=>{oc=(r=>(r[r.Absolute=0]="Absolute",r[r.Relative=1]="Relative",r[r.Weighted=2]="Weighted",r[r.Dynamic=3]="Dynamic",r))(oc||{});});function sc(){return getStructEncoder([["minimumParticipation",getU8Encoder()],["approvalThreshold",getU8Encoder()],["superMajorityRequired",getBooleanEncoder()],["minimumVotingPower",getU64Encoder()],["quorumMethod",ic()]])}function ac(){return getStructDecoder([["minimumParticipation",getU8Decoder()],["approvalThreshold",getU8Decoder()],["superMajorityRequired",getBooleanDecoder()],["minimumVotingPower",getU64Decoder()],["quorumMethod",cc()]])}function XV(){return combineCodec(sc(),ac())}var RE=a(()=>{m();});function vE(){return getStructEncoder([["rbacConfig",getAddressEncoder()],["authority",getAddressEncoder()],["rolesCount",getU32Encoder()]])}function ME(){return getStructDecoder([["rbacConfig",getAddressDecoder()],["authority",getAddressDecoder()],["rolesCount",getU32Decoder()]])}function rL(){return combineCodec(vE(),ME())}var kE=a(()=>{});function uc(){return getEnumEncoder(dc)}function gc(){return getEnumDecoder(dc)}function sL(){return combineCodec(uc(),gc())}var dc,wE=a(()=>{dc=(t=>(t[t.Unlocked=0]="Unlocked",t[t.Locked=1]="Locked",t))(dc||{});});function Ac(){return getStructEncoder([["summary",yc()],["entries",getArrayEncoder(lc())],["complianceMetrics",kr()],["riskIndicators",getArrayEncoder(fc())],["recommendations",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function pc(){return getStructDecoder([["summary",Tc()],["entries",getArrayDecoder(mc())],["complianceMetrics",wr()],["riskIndicators",getArrayDecoder(Sc())],["recommendations",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function TL(){return combineCodec(Ac(),pc())}var UE=a(()=>{m();});function lc(){return getStructEncoder([["timestamp",getI64Encoder()],["eventId",getUtf8Encoder()],["entryType",getUtf8Encoder()],["amount",getOptionEncoder(getU64Encoder())],["parties",getArrayEncoder(getAddressEncoder())]])}function mc(){return getStructDecoder([["timestamp",getI64Decoder()],["eventId",getUtf8Decoder()],["entryType",getUtf8Decoder()],["amount",getOptionDecoder(getU64Decoder())],["parties",getArrayDecoder(getAddressDecoder())]])}function kL(){return combineCodec(lc(),mc())}var OE=a(()=>{});function Zn(){return getEnumEncoder(xc)}function Yn(){return getEnumDecoder(xc)}function zL(){return combineCodec(Zn(),Yn())}var xc,FE=a(()=>{xc=(i=>(i[i.Daily=0]="Daily",i[i.Weekly=1]="Weekly",i[i.Monthly=2]="Monthly",i[i.Quarterly=3]="Quarterly",i[i.Annually=4]="Annually",i[i.OnDemand=5]="OnDemand",i))(xc||{});});function Pc(){return getEnumEncoder(Dc)}function Ec(){return getEnumDecoder(Dc)}function WL(){return combineCodec(Pc(),Ec())}var Dc,GE=a(()=>{Dc=(d=>(d[d.Draft=0]="Draft",d[d.Generated=1]="Generated",d[d.Reviewed=2]="Reviewed",d[d.Approved=3]="Approved",d[d.Submitted=4]="Submitted",d[d.Acknowledged=5]="Acknowledged",d[d.Rejected=6]="Rejected",d))(Dc||{});});function yc(){return getStructEncoder([["totalTransactions",getU64Encoder()],["totalVolume",getU64Encoder()],["highRiskTransactions",getU64Encoder()],["complianceViolations",getU64Encoder()],["securityIncidents",getU64Encoder()],["averageRiskScore",getU8Encoder()]])}function Tc(){return getStructDecoder([["totalTransactions",getU64Decoder()],["totalVolume",getU64Decoder()],["highRiskTransactions",getU64Decoder()],["complianceViolations",getU64Decoder()],["securityIncidents",getU64Decoder()],["averageRiskScore",getU8Decoder()]])}function HL(){return combineCodec(yc(),Tc())}var WE=a(()=>{});function ie(){return getEnumEncoder(hc)}function ce(){return getEnumDecoder(hc)}function JL(){return combineCodec(ie(),ce())}var hc,NE=a(()=>{hc=(s=>(s[s.FinancialTransactions=0]="FinancialTransactions",s[s.SuspiciousActivity=1]="SuspiciousActivity",s[s.RegulatoryCompliance=2]="RegulatoryCompliance",s[s.SecurityIncidents=3]="SecurityIncidents",s[s.AuditSummary=4]="AuditSummary",s[s.RiskAssessment=5]="RiskAssessment",s[s.GovernanceActivity=6]="GovernanceActivity",s[s.DataPrivacyCompliance=7]="DataPrivacyCompliance",s))(hc||{});});function vc(){return getStructEncoder([["allowedResourceTypes",getArrayEncoder(getUtf8Encoder())],["blockedResourceTypes",getArrayEncoder(getUtf8Encoder())],["accessLimits",getArrayEncoder(getStructEncoder([["0",getUtf8Encoder()],["1",getU64Encoder()]]))],["compartments",getArrayEncoder(getUtf8Encoder())]])}function Mc(){return getStructDecoder([["allowedResourceTypes",getArrayDecoder(getUtf8Decoder())],["blockedResourceTypes",getArrayDecoder(getUtf8Decoder())],["accessLimits",getArrayDecoder(getStructDecoder([["0",getUtf8Decoder()],["1",getU64Decoder()]]))],["compartments",getArrayDecoder(getUtf8Decoder())]])}function YL(){return combineCodec(vc(),Mc())}var LE=a(()=>{});function KE(){return getStructEncoder([["agent",getAddressEncoder()],["timestamp",getI64Encoder()]])}function HE(){return getStructDecoder([["agent",getAddressDecoder()],["timestamp",getI64Decoder()]])}function s5(){return combineCodec(KE(),HE())}var jE=a(()=>{});function $E(){return getStructEncoder([["agent",getAddressEncoder()],["paymentSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["responseTimeMs",getU64Encoder()],["success",getBooleanEncoder()],["newReputationScore",getU64Encoder()],["timestamp",getI64Encoder()]])}function qE(){return getStructDecoder([["agent",getAddressDecoder()],["paymentSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["responseTimeMs",getU64Decoder()],["success",getBooleanDecoder()],["newReputationScore",getU64Decoder()],["timestamp",getI64Decoder()]])}function E5(){return combineCodec($E(),qE())}var JE=a(()=>{});function ZE(){return getStructEncoder([["agent",getAddressEncoder()],["client",getAddressEncoder()],["rating",getU8Encoder()],["newReputationScore",getU64Encoder()],["timestamp",getI64Encoder()]])}function YE(){return getStructDecoder([["agent",getAddressDecoder()],["client",getAddressDecoder()],["rating",getU8Decoder()],["newReputationScore",getU64Decoder()],["timestamp",getI64Decoder()]])}function U5(){return combineCodec(ZE(),YE())}var eh=a(()=>{});function th(){return getStructEncoder([["agent",getAddressEncoder()],["totalTags",getU32Encoder()],["skillTagsCount",getU32Encoder()],["behaviorTagsCount",getU32Encoder()],["complianceTagsCount",getU32Encoder()],["tagScoresCount",getU32Encoder()],["timestamp",getI64Encoder()]])}function nh(){return getStructDecoder([["agent",getAddressDecoder()],["totalTags",getU32Decoder()],["skillTagsCount",getU32Decoder()],["behaviorTagsCount",getU32Decoder()],["complianceTagsCount",getU32Decoder()],["tagScoresCount",getU32Decoder()],["timestamp",getI64Decoder()]])}function B5(){return combineCodec(th(),nh())}var rh=a(()=>{});function Wi(){return getStructEncoder([["frequency",getI64Encoder()],["lastReview",getOptionEncoder(getI64Encoder())],["nextReview",getI64Encoder()],["reviewOwners",getArrayEncoder(getAddressEncoder())],["reviewCriteria",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Ni(){return getStructDecoder([["frequency",getI64Decoder()],["lastReview",getOptionDecoder(getI64Decoder())],["nextReview",getI64Decoder()],["reviewOwners",getArrayDecoder(getAddressDecoder())],["reviewCriteria",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function t3(){return combineCodec(Wi(),Ni())}var ch=a(()=>{});function Uc(){return getStructEncoder([["accepted",getBooleanEncoder()],["acceptingAuthority",getOptionEncoder(getAddressEncoder())],["acceptanceDate",getOptionEncoder(getI64Encoder())],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reviewDate",getOptionEncoder(getI64Encoder())]])}function _c(){return getStructDecoder([["accepted",getBooleanDecoder()],["acceptingAuthority",getOptionDecoder(getAddressDecoder())],["acceptanceDate",getOptionDecoder(getI64Decoder())],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reviewDate",getOptionDecoder(getI64Decoder())]])}function m3(){return combineCodec(Uc(),_c())}var dh=a(()=>{});function ki(){return getStructEncoder([["riskScore",getU8Encoder()],["riskFactors",getArrayEncoder(zc())],["mitigationMeasures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAcceptance",Uc()]])}function wi(){return getStructDecoder([["riskScore",getU8Decoder()],["riskFactors",getArrayDecoder(Oc())],["mitigationMeasures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAcceptance",_c()]])}function b3(){return combineCodec(ki(),wi())}var Ah=a(()=>{m();});function Gc(){return getEnumEncoder(Fc)}function Wc(){return getEnumDecoder(Fc)}function k3(){return combineCodec(Gc(),Wc())}var Fc,ph=a(()=>{Fc=(d=>(d[d.Operational=0]="Operational",d[d.Financial=1]="Financial",d[d.Compliance=2]="Compliance",d[d.Security=3]="Security",d[d.Reputational=4]="Reputational",d[d.Technical=5]="Technical",d[d.Legal=6]="Legal",d))(Fc||{});});function zc(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["category",Gc()],["impact",getU8Encoder()],["likelihood",getU8Encoder()],["riskScore",getU8Encoder()]])}function Oc(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["category",Wc()],["impact",getU8Decoder()],["likelihood",getU8Decoder()],["riskScore",getU8Decoder()]])}function B3(){return combineCodec(zc(),Oc())}var lh=a(()=>{m();});function fc(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["currentValue",getU64Encoder()],["thresholdValue",getU64Encoder()],["trend",Nc()],["severity",Vc()],["recommendedActions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Sc(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["currentValue",getU64Decoder()],["thresholdValue",getU64Decoder()],["trend",Bc()],["severity",Lc()],["recommendedActions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function $3(){return combineCodec(fc(),Sc())}var Eh=a(()=>{m();});function Hc(){return getEnumEncoder(Kc)}function jc(){return getEnumDecoder(Kc)}function X3(){return combineCodec(Hc(),jc())}var Kc,hh=a(()=>{Kc=(r=>(r[r.Low=0]="Low",r[r.Medium=1]="Medium",r[r.High=2]="High",r[r.Critical=3]="Critical",r))(Kc||{});});function ct(){return getStructEncoder([["roleId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["roleType",Yc()],["permissions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["constraints",$c()],["inheritsFrom",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["metadata",Jc()],["status",Xc()],["createdAt",getI64Encoder()],["modifiedAt",getI64Encoder()]])}function st(){return getStructDecoder([["roleId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["roleType",es()],["permissions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["constraints",qc()],["inheritsFrom",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["metadata",Qc()],["status",Zc()],["createdAt",getI64Decoder()],["modifiedAt",getI64Decoder()]])}function t9(){return combineCodec(ct(),st())}var vh=a(()=>{m();});function $c(){return getStructEncoder([["timeConstraints",getOptionEncoder(is())],["locationConstraints",getOptionEncoder(Uo())],["resourceConstraints",getOptionEncoder(vc())],["sessionConstraints",getOptionEncoder(ts())],["sodConstraints",getArrayEncoder(rs())],["maxConcurrentSessions",getOptionEncoder(getU32Encoder())],["activationRequirements",getArrayEncoder(Mn())]])}function qc(){return getStructDecoder([["timeConstraints",getOptionDecoder(cs())],["locationConstraints",getOptionDecoder(_o())],["resourceConstraints",getOptionDecoder(Mc())],["sessionConstraints",getOptionDecoder(ns())],["sodConstraints",getArrayDecoder(os())],["maxConcurrentSessions",getOptionDecoder(getU32Decoder())],["activationRequirements",getArrayDecoder(kn())]])}function s9(){return combineCodec($c(),qc())}var wh=a(()=>{m();});function Jc(){return getStructEncoder([["businessPurpose",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["riskLevel",Hc()],["dataAccessLevel",Xr()],["complianceRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["roleOwner",getOptionEncoder(getAddressEncoder())],["roleCustodian",getOptionEncoder(getAddressEncoder())],["reviewFrequency",getI64Encoder()],["lastReview",getOptionEncoder(getI64Encoder())],["nextReview",getOptionEncoder(getI64Encoder())]])}function Qc(){return getStructDecoder([["businessPurpose",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["riskLevel",jc()],["dataAccessLevel",Zr()],["complianceRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["roleOwner",getOptionDecoder(getAddressDecoder())],["roleCustodian",getOptionDecoder(getAddressDecoder())],["reviewFrequency",getI64Decoder()],["lastReview",getOptionDecoder(getI64Decoder())],["nextReview",getOptionDecoder(getI64Decoder())]])}function p9(){return combineCodec(Jc(),Qc())}var Bh=a(()=>{m();});function Xc(){return getEnumEncoder(ds)}function Zc(){return getEnumDecoder(ds)}function T9(){return combineCodec(Xc(),Zc())}var ds,Vh=a(()=>{ds=(c=>(c[c.Active=0]="Active",c[c.Inactive=1]="Inactive",c[c.Deprecated=2]="Deprecated",c[c.UnderReview=3]="UnderReview",c[c.Suspended=4]="Suspended",c))(ds||{});});function Yc(){return getEnumEncoder(us)}function es(){return getEnumDecoder(us)}function D9(){return combineCodec(Yc(),es())}var us,Lh=a(()=>{us=(s=>(s[s.Administrative=0]="Administrative",s[s.Operational=1]="Operational",s[s.ReadOnly=2]="ReadOnly",s[s.Compliance=3]="Compliance",s[s.Emergency=4]="Emergency",s[s.Custom=5]="Custom",s[s.Service=6]="Service",s[s.Guest=7]="Guest",s))(us||{});});function Bi(){return getEnumEncoder(gs)}function Vi(){return getEnumDecoder(gs)}function C9(){return combineCodec(Bi(),Vi())}var gs,Kh=a(()=>{gs=(i=>(i[i.Allow=0]="Allow",i[i.Deny=1]="Deny",i[i.AuditOnly=2]="AuditOnly",i[i.RequireApproval=3]="RequireApproval",i[i.RequireMfa=4]="RequireMfa",i[i.RequireJustification=5]="RequireJustification",i))(gs||{});});function Li(){return getStructEncoder([["conditionType",Ne()],["subjectAttributes",getArrayEncoder(ls)],["resourceAttributes",getArrayEncoder(ls)],["actionAttributes",getArrayEncoder(ls)],["environmentAttributes",getArrayEncoder(ls)]])}function Ki(){return getStructDecoder([["conditionType",Be()],["subjectAttributes",getArrayDecoder(ms)],["resourceAttributes",getArrayDecoder(ms)],["actionAttributes",getArrayDecoder(ms)],["environmentAttributes",getArrayDecoder(ms)]])}function b9(){return combineCodec(Li(),Ki())}var ls,ms,Jh=a(()=>{m();ls=getStructEncoder([["0",getUtf8Encoder()],["1",getUtf8Encoder()]]),ms=getStructDecoder([["0",getUtf8Decoder()],["1",getUtf8Decoder()]]);});function Ui(){return getStructEncoder([["includedResources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["excludedResources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resourcePatterns",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["hierarchicalBoundaries",getArrayEncoder(Eo())]])}function _i(){return getStructDecoder([["includedResources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["excludedResources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resourcePatterns",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["hierarchicalBoundaries",getArrayDecoder(ho())]])}function k9(){return combineCodec(Ui(),_i())}var Qh=a(()=>{m();});function Hi(){return getEnumEncoder(fs)}function ji(){return getEnumDecoder(fs)}function z9(){return combineCodec(Hi(),ji())}var fs,Xh=a(()=>{fs=(r=>(r[r.None=0]="None",r[r.Hierarchical=1]="Hierarchical",r[r.Delegated=2]="Delegated",r[r.Inherited=3]="Inherited",r))(fs||{});});function zi(){return getEnumEncoder(Ss)}function Oi(){return getEnumDecoder(Ss)}function W9(){return combineCodec(zi(),Oi())}var Ss,Zh=a(()=>{Ss=(i=>(i[i.Global=0]="Global",i[i.Organization=1]="Organization",i[i.Department=2]="Department",i[i.Project=3]="Project",i[i.Resource=4]="Resource",i[i.Individual=5]="Individual",i))(Ss||{});});function Zo(){return getEnumEncoder(xs)}function Yo(){return getEnumDecoder(xs)}function L9(){return combineCodec(Zo(),Yo())}var xs,Yh=a(()=>{xs=(s=>(s[s.AccountLockout=0]="AccountLockout",s[s.PasswordChange=1]="PasswordChange",s[s.PrivilegeEscalation=2]="PrivilegeEscalation",s[s.SuspiciousActivity=3]="SuspiciousActivity",s[s.PolicyViolation=4]="PolicyViolation",s[s.AccessDenied=5]="AccessDenied",s[s.DataBreach=6]="DataBreach",s[s.SystemCompromise=7]="SystemCompromise",s))(xs||{});});function Ds(){return getStructEncoder([["authentication",Ar()],["authorization",xr()],["password",oi()],["session",Es()],["dataProtection",Yr()],["networkSecurity",No()],["incidentResponse",Co()],["compliance",Ur()]])}function Ps(){return getStructDecoder([["authentication",pr()],["authorization",Dr()],["password",ii()],["session",hs()],["dataProtection",eo()],["networkSecurity",Bo()],["incidentResponse",Ro()],["compliance",_r()]])}function $9(){return combineCodec(Ds(),Ps())}var eC=a(()=>{m();});function me(){return getStructEncoder([["id",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["serviceType",Cs()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function ye(){return getStructDecoder([["id",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["serviceType",Rs()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function X9(){return combineCodec(me(),ye())}var tC=a(()=>{m();});function Cs(){return getEnumEncoder(bs)}function Rs(){return getEnumDecoder(bs)}function tK(){return combineCodec(Cs(),Rs())}var bs,nC=a(()=>{bs=(c=>(c[c.AIAgentService=0]="AIAgentService",c[c.DIDCommMessaging=1]="DIDCommMessaging",c[c.CredentialRepository=2]="CredentialRepository",c[c.LinkedDomains=3]="LinkedDomains",c[c.Custom=4]="Custom",c))(bs||{});});function ts(){return getStructEncoder([["maxSessionDuration",getI64Encoder()],["idleTimeout",getI64Encoder()],["reauthInterval",getI64Encoder()],["mfaRequired",getBooleanEncoder()],["deviceFingerprinting",getBooleanEncoder()],["sessionEncryption",getBooleanEncoder()]])}function ns(){return getStructDecoder([["maxSessionDuration",getI64Decoder()],["idleTimeout",getI64Decoder()],["reauthInterval",getI64Decoder()],["mfaRequired",getBooleanDecoder()],["deviceFingerprinting",getBooleanDecoder()],["sessionEncryption",getBooleanDecoder()]])}function iK(){return combineCodec(ts(),ns())}var rC=a(()=>{});function Es(){return getStructEncoder([["maxSessionDuration",getI64Encoder()],["idleTimeout",getI64Encoder()],["concurrentSessions",getU8Encoder()]])}function hs(){return getStructDecoder([["maxSessionDuration",getI64Decoder()],["idleTimeout",getI64Decoder()],["concurrentSessions",getU8Decoder()]])}function gK(){return combineCodec(Es(),hs())}var cC=a(()=>{});function Qe(){return getEnumEncoder(Is)}function Xe(){return getEnumDecoder(Is)}function mK(){return combineCodec(Qe(),Xe())}var Is,sC=a(()=>{Is=(o=>(o[o.Fraud=0]="Fraud",o[o.DisputeLoss=1]="DisputeLoss",o[o.Custom=2]="Custom",o))(Is||{});});function rs(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["conflictingRoles",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["constraintType",vs()],["enforcementLevel",je()],["exceptionProcedures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function os(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["conflictingRoles",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["constraintType",Ms()],["enforcementLevel",$e()],["exceptionProcedures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function SK(){return combineCodec(rs(),os())}var uC=a(()=>{m();});function vs(){return getEnumEncoder(ks)}function Ms(){return getEnumDecoder(ks)}function EK(){return combineCodec(vs(),Ms())}var ks,gC=a(()=>{ks=(r=>(r[r.Static=0]="Static",r[r.Dynamic=1]="Dynamic",r[r.Temporal=2]="Temporal",r[r.Contextual=3]="Contextual",r))(ks||{});});function lC(){return getStructEncoder([["agent",getAddressEncoder()],["sourceName",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["sourceScore",getU16Encoder()],["weightedAggregateScore",getU64Encoder()],["hasConflict",getBooleanEncoder()],["totalSources",getU32Encoder()],["timestamp",getI64Encoder()]])}function mC(){return getStructDecoder([["agent",getAddressDecoder()],["sourceName",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["sourceScore",getU16Decoder()],["weightedAggregateScore",getU64Decoder()],["hasConflict",getBooleanDecoder()],["totalSources",getU32Decoder()],["timestamp",getI64Decoder()]])}function BK(){return combineCodec(lC(),mC())}var yC=a(()=>{});function ws(){return getStructEncoder([["sourceName",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["score",getU16Encoder()],["weight",getU16Encoder()],["dataPoints",getU32Encoder()],["reliability",getU16Encoder()],["lastUpdated",getI64Encoder()]])}function Us(){return getStructDecoder([["sourceName",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["score",getU16Decoder()],["weight",getU16Decoder()],["dataPoints",getU32Decoder()],["reliability",getU16Decoder()],["lastUpdated",getI64Decoder()]])}function XK(){return combineCodec(ws(),Us())}var SC=a(()=>{});function fr(){return getEnumEncoder(_s)}function Sr(){return getEnumDecoder(_s)}function tH(){return combineCodec(fr(),Sr())}var _s,xC=a(()=>{_s=(d=>(d[d.HighRiskAction=0]="HighRiskAction",d[d.SensitiveData=1]="SensitiveData",d[d.LargeTransaction=2]="LargeTransaction",d[d.NewDevice=3]="NewDevice",d[d.UnusualLocation=4]="UnusualLocation",d[d.TimeBasedRisk=5]="TimeBasedRisk",d[d.BehaviorAnomaly=6]="BehaviorAnomaly",d))(_s||{});});function zs(){return getStructEncoder([["submittedAt",getI64Encoder()],["regulatoryBody",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["submissionReference",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["acknowledged",getBooleanEncoder()],["acknowledgedAt",getOptionEncoder(getI64Encoder())],["regulatoryResponse",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Os(){return getStructDecoder([["submittedAt",getI64Decoder()],["regulatoryBody",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["submissionReference",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["acknowledged",getBooleanDecoder()],["acknowledgedAt",getOptionDecoder(getI64Decoder())],["regulatoryResponse",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function sH(){return combineCodec(zs(),Os())}var CC=a(()=>{});function IC(){return getStructEncoder([["agent",getAddressEncoder()],["tagsRemoved",getU32Encoder()],["remainingTags",getU32Encoder()],["timestamp",getI64Encoder()]])}function vC(){return getStructDecoder([["agent",getAddressDecoder()],["tagsRemoved",getU32Decoder()],["remainingTags",getU32Decoder()],["timestamp",getI64Decoder()]])}function mH(){return combineCodec(IC(),vC())}var MC=a(()=>{});function at(){return getStructEncoder([["tagName",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["confidence",getU16Encoder()],["evidenceCount",getU32Encoder()],["lastUpdated",getI64Encoder()]])}function dt(){return getStructDecoder([["tagName",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["confidence",getU16Decoder()],["evidenceCount",getU32Decoder()],["lastUpdated",getI64Decoder()]])}function bH(){return combineCodec(at(),dt())}var UC=a(()=>{});function OC(){return getStructEncoder([["agent",getAddressEncoder()],["oldTier",V()],["newTier",V()],["totalStaked",getU64Encoder()],["dailyApiCalls",getU32Encoder()],["votingPower",getU64Encoder()]])}function FC(){return getStructDecoder([["agent",getAddressDecoder()],["oldTier",L()],["newTier",L()],["totalStaked",getU64Decoder()],["dailyApiCalls",getU32Decoder()],["votingPower",getU64Decoder()]])}function zH(){return combineCodec(OC(),FC())}var GC=a(()=>{m();});function is(){return getStructEncoder([["allowedHours",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["allowedDays",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["timezone",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["maxSessionDuration",getOptionEncoder(getI64Encoder())],["expiresAt",getOptionEncoder(getI64Encoder())],["reactivationPeriod",getOptionEncoder(getI64Encoder())]])}function cs(){return getStructDecoder([["allowedHours",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["allowedDays",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["timezone",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["maxSessionDuration",getOptionDecoder(getI64Decoder())],["expiresAt",getOptionDecoder(getI64Decoder())],["reactivationPeriod",getOptionDecoder(getI64Decoder())]])}function BH(){return combineCodec(is(),cs())}var BC=a(()=>{});function ai(){return getStructEncoder([["duration",getI64Encoder()],["lockedAt",getI64Encoder()],["unlocksAt",getI64Encoder()],["earlyUnlockConditions",getArrayEncoder(ge())],["lockType",Fs()],["cancellable",getBooleanEncoder()]])}function di(){return getStructDecoder([["duration",getI64Decoder()],["lockedAt",getI64Decoder()],["unlocksAt",getI64Decoder()],["earlyUnlockConditions",getArrayDecoder(Ae())],["lockType",Gs()],["cancellable",getBooleanDecoder()]])}function JH(){return combineCodec(ai(),di())}var VC=a(()=>{m();});function Fs(){return getEnumEncoder(Ws)}function Gs(){return getEnumDecoder(Ws)}function YH(){return combineCodec(Fs(),Gs())}var Ws,LC=a(()=>{Ws=(r=>(r[r.Standard=0]="Standard",r[r.Vesting=1]="Vesting",r[r.Emergency=2]="Emergency",r[r.Governance=3]="Governance",r))(Ws||{});});function ui(){return getEnumEncoder(Ns)}function gi(){return getEnumDecoder(Ns)}function r7(){return combineCodec(ui(),gi())}var Ns,KC=a(()=>{Ns=(c=>(c[c.Low=0]="Low",c[c.Normal=1]="Normal",c[c.High=2]="High",c[c.Critical=3]="Critical",c[c.Emergency=4]="Emergency",c))(Ns||{});});function Ai(){return getEnumEncoder(Bs)}function pi(){return getEnumDecoder(Bs)}function s7(){return combineCodec(Ai(),pi())}var Bs,HC=a(()=>{Bs=(d=>(d[d.Pending=0]="Pending",d[d.PartiallyApproved=1]="PartiallyApproved",d[d.FullyApproved=2]="FullyApproved",d[d.Executed=3]="Executed",d[d.Cancelled=4]="Cancelled",d[d.Expired=5]="Expired",d[d.Failed=6]="Failed",d))(Bs||{});});function de(){return getEnumEncoder(Vs)}function ue(){return getEnumDecoder(Vs)}function g7(){return combineCodec(de(),ue())}var Vs,jC=a(()=>{Vs=(b=>(b[b.Transfer=0]="Transfer",b[b.Withdrawal=1]="Withdrawal",b[b.EscrowRelease=2]="EscrowRelease",b[b.ProposalCreation=3]="ProposalCreation",b[b.VoteExecution=4]="VoteExecution",b[b.ParameterUpdate=5]="ParameterUpdate",b[b.SignerAddition=6]="SignerAddition",b[b.SignerRemoval=7]="SignerRemoval",b[b.ThresholdUpdate=8]="ThresholdUpdate",b[b.ConfigUpdate=9]="ConfigUpdate",b[b.EmergencyFreeze=10]="EmergencyFreeze",b[b.EmergencyUnfreeze=11]="EmergencyUnfreeze",b[b.SecurityPolicyUpdate=12]="SecurityPolicyUpdate",b[b.ProtocolUpgrade=13]="ProtocolUpgrade",b[b.FeatureToggle=14]="FeatureToggle",b[b.RiskParameterUpdate=15]="RiskParameterUpdate",b[b.CustomInstruction=16]="CustomInstruction",b))(Vs||{});});function Nc(){return getEnumEncoder(Ls)}function Bc(){return getEnumDecoder(Ls)}function m7(){return combineCodec(Nc(),Bc())}var Ls,$C=a(()=>{Ls=(r=>(r[r.Increasing=0]="Increasing",r[r.Decreasing=1]="Decreasing",r[r.Stable=2]="Stable",r[r.Unknown=3]="Unknown",r))(Ls||{});});function In(){return getEnumEncoder(Ks)}function vn(){return getEnumDecoder(Ks)}function S7(){return combineCodec(In(),vn())}var Ks,qC=a(()=>{Ks=(c=>(c[c.TimeBasedAutoUnlock=0]="TimeBasedAutoUnlock",c[c.AdminUnlock=1]="AdminUnlock",c[c.SelfServiceUnlock=2]="SelfServiceUnlock",c[c.MultiFactorUnlock=3]="MultiFactorUnlock",c[c.SupervisorUnlock=4]="SupervisorUnlock",c))(Ks||{});});function Vr(){return getEnumEncoder(Hs)}function Lr(){return getEnumDecoder(Hs)}function E7(){return combineCodec(Vr(),Lr())}var Hs,JC=a(()=>{Hs=(s=>(s[s.String=0]="String",s[s.Number=1]="Number",s[s.Boolean=2]="Boolean",s[s.Date=3]="Date",s[s.Time=4]="Time",s[s.Duration=5]="Duration",s[s.List=6]="List",s[s.Object=7]="Object",s))(Hs||{});});function Te(){return getStructEncoder([["id",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["methodType",js()],["controller",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["publicKeyMultibase",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["relationships",getArrayEncoder(qs())],["createdAt",getI64Encoder()],["revoked",getBooleanEncoder()]])}function fe(){return getStructDecoder([["id",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["methodType",$s()],["controller",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["publicKeyMultibase",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["relationships",getArrayDecoder(Js())],["createdAt",getI64Decoder()],["revoked",getBooleanDecoder()]])}function U7(){return combineCodec(Te(),fe())}var QC=a(()=>{m();});function js(){return getEnumEncoder(Qs)}function $s(){return getEnumDecoder(Qs)}function F7(){return combineCodec(js(),$s())}var Qs,XC=a(()=>{Qs=(o=>(o[o.Ed25519VerificationKey2020=0]="Ed25519VerificationKey2020",o[o.X25519KeyAgreementKey2020=1]="X25519KeyAgreementKey2020",o[o.EcdsaSecp256k1VerificationKey2019=2]="EcdsaSecp256k1VerificationKey2019",o))(Qs||{});});function qs(){return getEnumEncoder(Xs)}function Js(){return getEnumDecoder(Xs)}function B7(){return combineCodec(qs(),Js())}var Xs,ZC=a(()=>{Xs=(c=>(c[c.Authentication=0]="Authentication",c[c.AssertionMethod=1]="AssertionMethod",c[c.KeyAgreement=2]="KeyAgreement",c[c.CapabilityInvocation=3]="CapabilityInvocation",c[c.CapabilityDelegation=4]="CapabilityDelegation",c))(Xs||{});});function Vc(){return getEnumEncoder(Zs)}function Lc(){return getEnumDecoder(Zs)}function H7(){return combineCodec(Vc(),Lc())}var Zs,YC=a(()=>{Zs=(r=>(r[r.Low=0]="Low",r[r.Medium=1]="Medium",r[r.High=2]="High",r[r.Critical=3]="Critical",r))(Zs||{});});function Ys(){return getStructEncoder([["voter",getAddressEncoder()],["choice",ta()],["votingPower",getU64Encoder()],["votedAt",getI64Encoder()],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["delegationInfo",getOptionEncoder(no())]])}function ea(){return getStructDecoder([["voter",getAddressDecoder()],["choice",na()],["votingPower",getU64Decoder()],["votedAt",getI64Decoder()],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["delegationInfo",getOptionDecoder(ro())]])}function sj(){return combineCodec(Ys(),ea())}var nR=a(()=>{m();});function ta(){return getEnumEncoder(ra)}function na(){return getEnumDecoder(ra)}function gj(){return combineCodec(ta(),na())}var ra,rR=a(()=>{ra=(o=>(o[o.For=0]="For",o[o.Against=1]="Against",o[o.Abstain=2]="Abstain",o))(ra||{});});function ca(){return getStructEncoder([["votesFor",getU64Encoder()],["votesAgainst",getU64Encoder()],["votesAbstain",getU64Encoder()],["totalVotingPower",getU64Encoder()],["participationRate",getU8Encoder()],["individualVotes",getArrayEncoder(Ys())],["weightedVoting",getBooleanEncoder()],["quorumReached",getBooleanEncoder()],["approvalThresholdMet",getBooleanEncoder()]])}function sa(){return getStructDecoder([["votesFor",getU64Decoder()],["votesAgainst",getU64Decoder()],["votesAbstain",getU64Decoder()],["totalVotingPower",getU64Decoder()],["participationRate",getU8Decoder()],["individualVotes",getArrayDecoder(ea())],["weightedVoting",getBooleanDecoder()],["quorumReached",getBooleanDecoder()],["approvalThresholdMet",getBooleanDecoder()]])}function Sj(){return combineCodec(ca(),sa())}var oR=a(()=>{m();});var m=a(()=>{Tf();xf();Df();hf();bf();If();Uf();Of();Gf();Lf();qf();tS();cS();sS();aS();dS();uS();gS();lS();TS();PS();CS();RS();bS();IS();kS();_S();zS();OS();WS();NS();BS();qS();JS();QS();XS();ex();ix();lx();mx();Px();Ex();hx();Cx();Rx();bx();Ix();vx();wx();Ux();Ox();Wx();Vx();Hx();Zx();Yx();oD();gD();AD();mD();xD();ED();RD();kD();_D();WD();jD();$D();QD();XD();eP();iP();AP();pP();yP();SP();xP();DP();PP();EP();hP();CP();RP();vP();_P();FP();GP();WP();jP();JP();ZP();YP();eE();tE();nE();rE();cE();gE();lE();mE();Hg();PE();EE();RE();kE();wE();UE();OE();FE();GE();WE();NE();LE();jE();JE();eh();rh();ch();dh();Ah();ph();lh();Eh();hh();vh();wh();Bh();Vh();Lh();Kh();Jh();Qh();Xh();Zh();Yh();eC();tC();nC();rC();cC();sC();uC();gC();yC();SC();xC();CC();MC();UC();GC();BC();VC();LC();KC();HC();jC();$C();qC();JC();QC();XC();ZC();YC();nR();rR();oR();});function kj(){return fixEncoderSize(getBytesEncoder(),8).encode(ZA)}function dR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentType",getU8Encoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["pricingModel",J()],["reputationScore",getU32Encoder()],["totalJobsCompleted",getU32Encoder()],["totalEarnings",getU64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["originalPrice",getU64Encoder()],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isReplicable",getBooleanEncoder()],["replicationFee",getU64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isVerified",getBooleanEncoder()],["verificationTimestamp",getI64Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["frameworkOrigin",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedTokens",getArrayEncoder(getAddressEncoder())],["cnftMint",getOptionEncoder(getAddressEncoder())],["merkleTree",getOptionEncoder(getAddressEncoder())],["supportsA2a",getBooleanEncoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["parentAgent",getOptionEncoder(getAddressEncoder())],["generation",getU32Encoder()],["x402Enabled",getBooleanEncoder()],["x402PaymentAddress",getAddressEncoder()],["x402AcceptedTokens",getArrayEncoder(getAddressEncoder())],["x402PricePerCall",getU64Encoder()],["x402ServiceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["x402TotalPayments",getU64Encoder()],["x402TotalCalls",getU64Encoder()],["lastPaymentTimestamp",getI64Encoder()],["apiSpecUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["apiVersion",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["bump",getU8Encoder()]]),n=>({...n,discriminator:ZA}))}function YA(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentType",getU8Decoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["pricingModel",Q()],["reputationScore",getU32Decoder()],["totalJobsCompleted",getU32Decoder()],["totalEarnings",getU64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["originalPrice",getU64Decoder()],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isReplicable",getBooleanDecoder()],["replicationFee",getU64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isVerified",getBooleanDecoder()],["verificationTimestamp",getI64Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["frameworkOrigin",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedTokens",getArrayDecoder(getAddressDecoder())],["cnftMint",getOptionDecoder(getAddressDecoder())],["merkleTree",getOptionDecoder(getAddressDecoder())],["supportsA2a",getBooleanDecoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["parentAgent",getOptionDecoder(getAddressDecoder())],["generation",getU32Decoder()],["x402Enabled",getBooleanDecoder()],["x402PaymentAddress",getAddressDecoder()],["x402AcceptedTokens",getArrayDecoder(getAddressDecoder())],["x402PricePerCall",getU64Decoder()],["x402ServiceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["x402TotalPayments",getU64Decoder()],["x402TotalCalls",getU64Decoder()],["lastPaymentTimestamp",getI64Decoder()],["apiSpecUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["apiVersion",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["bump",getU8Decoder()]])}function wj(){return combineCodec(dR(),YA())}function ep(n){return decodeAccount(n,YA())}async function Uj(n,e,t){let o=await uR(n,e,t);return assertAccountExists(o),o}async function uR(n,e,t){let o=await fetchEncodedAccount(n,e,t);return ep(o)}async function _j(n,e,t){let o=await gR(n,e,t);return assertAccountsExist(o),o}async function gR(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>ep(r))}var ZA,AR=a(()=>{m();ZA=new Uint8Array([47,166,112,147,155,197,86,7]);});function Zj(){return fixEncoderSize(getBytesEncoder(),8).encode(rp)}function ER(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["authorizedSource",getAddressEncoder()],["indexLimit",getU64Encoder()],["currentIndex",getU64Encoder()],["expiresAt",getI64Encoder()],["network",getU8Encoder()],["signature",fixEncoderSize(getBytesEncoder(),64)],["nonce",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["revoked",getBooleanEncoder()],["createdAt",getI64Encoder()],["lastUsedAt",getOptionEncoder(getI64Encoder())],["totalReputationChange",getI64Encoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:rp}))}function op(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["authorizedSource",getAddressDecoder()],["indexLimit",getU64Decoder()],["currentIndex",getU64Decoder()],["expiresAt",getI64Decoder()],["network",getU8Decoder()],["signature",fixDecoderSize(getBytesDecoder(),64)],["nonce",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["revoked",getBooleanDecoder()],["createdAt",getI64Decoder()],["lastUsedAt",getOptionDecoder(getI64Decoder())],["totalReputationChange",getI64Decoder()],["bump",getU8Decoder()]])}function Yj(){return combineCodec(ER(),op())}function ip(n){return decodeAccount(n,op())}async function e$(n,e,t){let o=await hR(n,e,t);return assertAccountExists(o),o}async function hR(n,e,t){let o=await fetchEncodedAccount(n,e,t);return ip(o)}async function t$(n,e,t){let o=await CR(n,e,t);return assertAccountsExist(o),o}async function CR(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>ip(r))}var rp,RR=a(()=>{rp=new Uint8Array([30,249,165,44,155,194,188,175]);});function T$(){return fixEncoderSize(getBytesEncoder(),8).encode(cp)}function kR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["treeCreator",getAddressEncoder()],["treeDelegate",getAddressEncoder()],["numMinted",getU64Encoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:cp}))}function sp(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["treeCreator",getAddressDecoder()],["treeDelegate",getAddressDecoder()],["numMinted",getU64Decoder()],["bump",getU8Decoder()]])}function f$(){return combineCodec(kR(),sp())}function ap(n){return decodeAccount(n,sp())}async function S$(n,e,t){let o=await wR(n,e,t);return assertAccountExists(o),o}async function wR(n,e,t){let o=await fetchEncodedAccount(n,e,t);return ap(o)}async function x$(n,e,t){let o=await UR(n,e,t);return assertAccountsExist(o),o}async function UR(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>ap(r))}function D$(){return 81}var cp,_R=a(()=>{cp=new Uint8Array([145,145,156,0,197,232,130,245]);});function F$(){return fixEncoderSize(getBytesEncoder(),8).encode(dp)}function BR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["verifier",getAddressEncoder()],["verificationData",Bn()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:dp}))}function up(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["verifier",getAddressDecoder()],["verificationData",Vn()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function G$(){return combineCodec(BR(),up())}function gp(n){return decodeAccount(n,up())}async function W$(n,e,t){let o=await VR(n,e,t);return assertAccountExists(o),o}async function VR(n,e,t){let o=await fetchEncodedAccount(n,e,t);return gp(o)}async function N$(n,e,t){let o=await LR(n,e,t);return assertAccountsExist(o),o}async function LR(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>gp(r))}var dp,KR=a(()=>{m();dp=new Uint8Array([128,155,95,241,66,207,166,59]);});function nq(){return fixEncoderSize(getBytesEncoder(),8).encode(lp)}function JR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["trailId",getU64Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU8Encoder()],["entries",getArrayEncoder(nr())],["config",Oe()],["complianceStatus",zr()],["hashChain",getArrayEncoder(fixEncoderSize(getBytesEncoder(),32))],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),n=>({...n,discriminator:lp}))}function mp(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["trailId",getU64Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU8Decoder()],["entries",getArrayDecoder(rr())],["config",Fe()],["complianceStatus",Or()],["hashChain",getArrayDecoder(fixDecoderSize(getBytesDecoder(),32))],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function rq(){return combineCodec(JR(),mp())}function yp(n){return decodeAccount(n,mp())}async function oq(n,e,t){let o=await QR(n,e,t);return assertAccountExists(o),o}async function QR(n,e,t){let o=await fetchEncodedAccount(n,e,t);return yp(o)}async function iq(n,e,t){let o=await XR(n,e,t);return assertAccountsExist(o),o}async function XR(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>yp(r))}var lp,ZR=a(()=>{m();lp=new Uint8Array([171,223,253,181,134,88,66,26]);});function Eq(){return fixEncoderSize(getBytesEncoder(),8).encode(Sp)}function db(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authorization",getAddressEncoder()],["agent",getAddressEncoder()],["authorizedSource",getAddressEncoder()],["usageIndex",getU64Encoder()],["reputationChange",getI64Encoder()],["usedAt",getI64Encoder()],["transactionSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["bump",getU8Encoder()]]),n=>({...n,discriminator:Sp}))}function xp(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authorization",getAddressDecoder()],["agent",getAddressDecoder()],["authorizedSource",getAddressDecoder()],["usageIndex",getU64Decoder()],["reputationChange",getI64Decoder()],["usedAt",getI64Decoder()],["transactionSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["bump",getU8Decoder()]])}function hq(){return combineCodec(db(),xp())}function Dp(n){return decodeAccount(n,xp())}async function Cq(n,e,t){let o=await ub(n,e,t);return assertAccountExists(o),o}async function ub(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Dp(o)}async function Rq(n,e,t){let o=await gb(n,e,t);return assertAccountsExist(o),o}async function gb(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Dp(r))}var Sp,Ab=a(()=>{Sp=new Uint8Array([109,102,102,17,210,84,85,210]);});function Nq(){return fixEncoderSize(getBytesEncoder(),8).encode(Rp)}function pb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reportId",getU64Encoder()],["reportType",ie()],["generatedAt",getI64Encoder()],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["reportData",Ac()],["signature",fixEncoderSize(getBytesEncoder(),64)],["status",Pc()],["submissionDetails",getOptionEncoder(zs())],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),n=>({...n,discriminator:Rp}))}function bp(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reportId",getU64Decoder()],["reportType",ce()],["generatedAt",getI64Decoder()],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["reportData",pc()],["signature",fixDecoderSize(getBytesDecoder(),64)],["status",Ec()],["submissionDetails",getOptionDecoder(Os())],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function Bq(){return combineCodec(pb(),bp())}function Ip(n){return decodeAccount(n,bp())}async function Vq(n,e,t){let o=await lb(n,e,t);return assertAccountExists(o),o}async function lb(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Ip(o)}async function Lq(n,e,t){let o=await mb(n,e,t);return assertAccountsExist(o),o}async function mb(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Ip(r))}var Rp,yb=a(()=>{m();Rp=new Uint8Array([75,146,78,26,130,240,228,35]);});function tJ(){return fixEncoderSize(getBytesEncoder(),8).encode(Wp)}function Tb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["template",getAddressEncoder()],["subject",getAddressEncoder()],["issuer",getAddressEncoder()],["credentialId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["subjectDataHash",fixEncoderSize(getBytesEncoder(),32)],["subjectDataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["status",$r()],["signature",fixEncoderSize(getBytesEncoder(),64)],["issuedAt",getI64Encoder()],["expiresAt",getOptionEncoder(getI64Encoder())],["revokedAt",getOptionEncoder(getI64Encoder())],["crossChainStatus",Ke()],["crossmintCredentialId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["sourceAccount",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),n=>({...n,discriminator:Wp}))}function Np(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["template",getAddressDecoder()],["subject",getAddressDecoder()],["issuer",getAddressDecoder()],["credentialId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["subjectDataHash",fixDecoderSize(getBytesDecoder(),32)],["subjectDataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["status",qr()],["signature",fixDecoderSize(getBytesDecoder(),64)],["issuedAt",getI64Decoder()],["expiresAt",getOptionDecoder(getI64Decoder())],["revokedAt",getOptionDecoder(getI64Decoder())],["crossChainStatus",He()],["crossmintCredentialId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["sourceAccount",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function nJ(){return combineCodec(Tb(),Np())}function Bp(n){return decodeAccount(n,Np())}async function rJ(n,e,t){let o=await fb(n,e,t);return assertAccountExists(o),o}async function fb(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Bp(o)}async function oJ(n,e,t){let o=await Sb(n,e,t);return assertAccountsExist(o),o}async function Sb(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Bp(r))}var Wp,xb=a(()=>{m();Wp=new Uint8Array([145,44,68,220,67,46,100,135]);});function RJ(){return fixEncoderSize(getBytesEncoder(),8).encode(qp)}function Cb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["credentialType",getAddressEncoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["imageUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["issuer",getAddressEncoder()],["isActive",getBooleanEncoder()],["totalIssued",getU64Encoder()],["createdAt",getI64Encoder()],["crossmintTemplateId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["bump",getU8Encoder()]]),n=>({...n,discriminator:qp}))}function Jp(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["credentialType",getAddressDecoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["imageUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["issuer",getAddressDecoder()],["isActive",getBooleanDecoder()],["totalIssued",getU64Decoder()],["createdAt",getI64Decoder()],["crossmintTemplateId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["bump",getU8Decoder()]])}function bJ(){return combineCodec(Cb(),Jp())}function Qp(n){return decodeAccount(n,Jp())}async function IJ(n,e,t){let o=await Rb(n,e,t);return assertAccountExists(o),o}async function Rb(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Qp(o)}async function vJ(n,e,t){let o=await bb(n,e,t);return assertAccountsExist(o),o}async function bb(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Qp(r))}var qp,Ib=a(()=>{qp=new Uint8Array([229,129,99,91,179,207,66,75]);});function XJ(){return fixEncoderSize(getBytesEncoder(),8).encode(rl)}function kb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["kind",Ve()],["schemaUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["totalIssued",getU64Encoder()],["createdAt",getI64Encoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:rl}))}function ol(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["kind",Le()],["schemaUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["totalIssued",getU64Decoder()],["createdAt",getI64Decoder()],["bump",getU8Decoder()]])}function ZJ(){return combineCodec(kb(),ol())}function il(n){return decodeAccount(n,ol())}async function YJ(n,e,t){let o=await wb(n,e,t);return assertAccountExists(o),o}async function wb(n,e,t){let o=await fetchEncodedAccount(n,e,t);return il(o)}async function eQ(n,e,t){let o=await Ub(n,e,t);return assertAccountsExist(o),o}async function Ub(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>il(r))}var rl,_b=a(()=>{m();rl=new Uint8Array([132,171,20,181,39,219,217,112]);});function xQ(){return fixEncoderSize(getBytesEncoder(),8).encode(Al)}function Fb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["did",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["controller",getAddressEncoder()],["verificationMethods",getArrayEncoder(Te())],["serviceEndpoints",getArrayEncoder(me())],["context",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["alsoKnownAs",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU32Encoder()],["deactivated",getBooleanEncoder()],["deactivatedAt",getOptionEncoder(getI64Encoder())],["bump",getU8Encoder()]]),n=>({...n,discriminator:Al}))}function pl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["did",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["controller",getAddressDecoder()],["verificationMethods",getArrayDecoder(fe())],["serviceEndpoints",getArrayDecoder(ye())],["context",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["alsoKnownAs",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU32Decoder()],["deactivated",getBooleanDecoder()],["deactivatedAt",getOptionDecoder(getI64Decoder())],["bump",getU8Decoder()]])}function DQ(){return combineCodec(Fb(),pl())}function ll(n){return decodeAccount(n,pl())}async function PQ(n,e,t){let o=await Gb(n,e,t);return assertAccountExists(o),o}async function Gb(n,e,t){let o=await fetchEncodedAccount(n,e,t);return ll(o)}async function EQ(n,e,t){let o=await Wb(n,e,t);return assertAccountsExist(o),o}async function Wb(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>ll(r))}var Al,Nb=a(()=>{m();Al=new Uint8Array([109,220,168,224,33,173,192,166]);});function FQ(){return fixEncoderSize(getBytesEncoder(),8).encode(Cl)}function Hb(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["escrowId",getU64Encoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()],["tokenMint",getAddressEncoder()],["status",po()],["jobDescription",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deliveryProof",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["deadline",getI64Encoder()],["createdAt",getI64Encoder()],["completedAt",getOptionEncoder(getI64Encoder())],["disputeReason",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["arbitratorDecision",getOptionEncoder(re())],["bump",getU8Encoder()]]),n=>({...n,discriminator:Cl}))}function Rl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["escrowId",getU64Decoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()],["tokenMint",getAddressDecoder()],["status",lo()],["jobDescription",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deliveryProof",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["deadline",getI64Decoder()],["createdAt",getI64Decoder()],["completedAt",getOptionDecoder(getI64Decoder())],["disputeReason",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["arbitratorDecision",getOptionDecoder(oe())],["bump",getU8Decoder()]])}function GQ(){return combineCodec(Hb(),Rl())}function bl(n){return decodeAccount(n,Rl())}async function WQ(n,e,t){let o=await jb(n,e,t);return assertAccountExists(o),o}async function jb(n,e,t){let o=await fetchEncodedAccount(n,e,t);return bl(o)}async function NQ(n,e,t){let o=await $b(n,e,t);return assertAccountsExist(o),o}async function $b(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>bl(r))}var Cl,qb=a(()=>{m();Cl=new Uint8Array([38,0,98,160,102,4,51,160]);});function nX(){return fixEncoderSize(getBytesEncoder(),8).encode(Ml)}function rI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["proposer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposalType",se()],["createdAt",getI64Encoder()],["votingStartsAt",getI64Encoder()],["votingEndsAt",getI64Encoder()],["executionTimestamp",getOptionEncoder(getI64Encoder())],["status",nc()],["votingResults",ca()],["executionParams",qe()],["quorumRequirements",sc()],["metadata",Yi()],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),n=>({...n,discriminator:Ml}))}function kl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["proposer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposalType",ae()],["createdAt",getI64Decoder()],["votingStartsAt",getI64Decoder()],["votingEndsAt",getI64Decoder()],["executionTimestamp",getOptionDecoder(getI64Decoder())],["status",rc()],["votingResults",sa()],["executionParams",Je()],["quorumRequirements",ac()],["metadata",ec()],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function rX(){return combineCodec(rI(),kl())}function wl(n){return decodeAccount(n,kl())}async function oX(n,e,t){let o=await oI(n,e,t);return assertAccountExists(o),o}async function oI(n,e,t){let o=await fetchEncodedAccount(n,e,t);return wl(o)}async function iX(n,e,t){let o=await iI(n,e,t);return assertAccountsExist(o),o}async function iI(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>wl(r))}var Ml,cI=a(()=>{m();Ml=new Uint8Array([53,107,240,190,43,73,65,143]);});function TX(){return fixEncoderSize(getBytesEncoder(),8).encode(zl)}function TI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["multisigId",getU64Encoder()],["multisigType",pe()],["threshold",getU8Encoder()],["signers",getArrayEncoder(getAddressEncoder())],["owner",getAddressEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["nonce",getU64Encoder()],["pendingTransactions",getArrayEncoder(ci())],["config",Ze()],["emergencyConfig",ao()],["typeConfig",Go()],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),n=>({...n,discriminator:zl}))}function Ol(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["multisigId",getU64Decoder()],["multisigType",le()],["threshold",getU8Decoder()],["signers",getArrayDecoder(getAddressDecoder())],["owner",getAddressDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["nonce",getU64Decoder()],["pendingTransactions",getArrayDecoder(si())],["config",Ye()],["emergencyConfig",uo()],["typeConfig",Wo()],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function fX(){return combineCodec(TI(),Ol())}function Fl(n){return decodeAccount(n,Ol())}async function SX(n,e,t){let o=await fI(n,e,t);return assertAccountExists(o),o}async function fI(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Fl(o)}async function xX(n,e,t){let o=await SI(n,e,t);return assertAccountsExist(o),o}async function SI(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Fl(r))}var zl,xI=a(()=>{m();zl=new Uint8Array([224,116,121,186,68,161,79,236]);});function OX(){return fixEncoderSize(getBytesEncoder(),8).encode(Nl)}function bI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["treasury",getAddressEncoder()],["buybackPool",getAddressEncoder()],["moderatorPool",getAddressEncoder()],["escrowFeeBps",getU16Encoder()],["agentRegistrationFee",getU64Encoder()],["listingFee",getU64Encoder()],["disputeFeeBps",getU16Encoder()],["feesEnabled",getBooleanEncoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),n=>({...n,discriminator:Nl}))}function Bl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["treasury",getAddressDecoder()],["buybackPool",getAddressDecoder()],["moderatorPool",getAddressDecoder()],["escrowFeeBps",getU16Decoder()],["agentRegistrationFee",getU64Decoder()],["listingFee",getU64Decoder()],["disputeFeeBps",getU16Decoder()],["feesEnabled",getBooleanDecoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function FX(){return combineCodec(bI(),Bl())}function Vl(n){return decodeAccount(n,Bl())}async function GX(n,e,t){let o=await II(n,e,t);return assertAccountExists(o),o}async function II(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Vl(o)}async function WX(n,e,t){let o=await vI(n,e,t);return assertAccountsExist(o),o}async function vI(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Vl(r))}function NX(){return 230}var Nl,MI=a(()=>{Nl=new Uint8Array([207,91,250,28,152,179,215,209]);});function eZ(){return fixEncoderSize(getBytesEncoder(),8).encode($l)}function zI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU8Encoder()],["roles",getArrayEncoder(ct())],["permissions",getArrayEncoder(xi())],["accessPolicies",getArrayEncoder(pn())],["securityPolicies",Ds()],["auditConfig",gn()],["emergencyAccess",co()],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),n=>({...n,discriminator:$l}))}function ql(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU8Decoder()],["roles",getArrayDecoder(st())],["permissions",getArrayDecoder(Di())],["accessPolicies",getArrayDecoder(ln())],["securityPolicies",Ps()],["auditConfig",An()],["emergencyAccess",so()],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function tZ(){return combineCodec(zI(),ql())}function Jl(n){return decodeAccount(n,ql())}async function nZ(n,e,t){let o=await OI(n,e,t);return assertAccountExists(o),o}async function OI(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Jl(o)}async function rZ(n,e,t){let o=await FI(n,e,t);return assertAccountsExist(o),o}async function FI(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Jl(r))}var $l,GI=a(()=>{m();$l=new Uint8Array([177,94,184,202,221,112,110,38]);});function EZ(){return fixEncoderSize(getBytesEncoder(),8).encode(Ql)}function BI(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["state",uc()],["nonce",getU64Encoder()],["lastInteraction",getI64Encoder()],["authority",getAddressEncoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:Ql}))}function Xl(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["state",gc()],["nonce",getU64Decoder()],["lastInteraction",getI64Decoder()],["authority",getAddressDecoder()],["bump",getU8Decoder()]])}function hZ(){return combineCodec(BI(),Xl())}function Zl(n){return decodeAccount(n,Xl())}async function CZ(n,e,t){let o=await VI(n,e,t);return assertAccountExists(o),o}async function VI(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Zl(o)}async function RZ(n,e,t){let o=await LI(n,e,t);return assertAccountsExist(o),o}async function LI(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Zl(r))}function bZ(){return 58}var Ql,KI=a(()=>{m();Ql=new Uint8Array([207,227,141,11,194,21,193,32]);});function LZ(){return fixEncoderSize(getBytesEncoder(),8).encode(Yl)}function $I(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["successfulPayments",getU64Encoder()],["failedPayments",getU64Encoder()],["totalResponseTime",getU64Encoder()],["responseTimeCount",getU64Encoder()],["totalDisputes",getU32Encoder()],["disputesResolved",getU32Encoder()],["totalRating",getU32Encoder()],["totalRatingsCount",getU32Encoder()],["paymentHistory7d",getArrayEncoder(getU64Encoder(),{size:7})],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["skillTags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["behaviorTags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["complianceTags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tagScores",getArrayEncoder(at())],["tagUpdatedAt",getI64Encoder()],["sourceScores",getArrayEncoder(ws())],["primarySource",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["lastAggregation",getI64Encoder()],["conflictFlags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["bump",getU8Encoder()]]),n=>({...n,discriminator:Yl}))}function em(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["successfulPayments",getU64Decoder()],["failedPayments",getU64Decoder()],["totalResponseTime",getU64Decoder()],["responseTimeCount",getU64Decoder()],["totalDisputes",getU32Decoder()],["disputesResolved",getU32Decoder()],["totalRating",getU32Decoder()],["totalRatingsCount",getU32Decoder()],["paymentHistory7d",getArrayDecoder(getU64Decoder(),{size:7})],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["skillTags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["behaviorTags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["complianceTags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tagScores",getArrayDecoder(dt())],["tagUpdatedAt",getI64Decoder()],["sourceScores",getArrayDecoder(Us())],["primarySource",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["lastAggregation",getI64Decoder()],["conflictFlags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["bump",getU8Decoder()]])}function KZ(){return combineCodec($I(),em())}function tm(n){return decodeAccount(n,em())}async function HZ(n,e,t){let o=await qI(n,e,t);return assertAccountExists(o),o}async function qI(n,e,t){let o=await fetchEncodedAccount(n,e,t);return tm(o)}async function jZ(n,e,t){let o=await JI(n,e,t);return assertAccountsExist(o),o}async function JI(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>tm(r))}var Yl,QI=a(()=>{m();Yl=new Uint8Array([8,160,71,30,66,150,108,33]);});function AY(){return fixEncoderSize(getBytesEncoder(),8).encode(om)}function tv(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["amountStaked",getU64Encoder()],["stakedAt",getI64Encoder()],["lockDuration",getI64Encoder()],["unlockAt",getI64Encoder()],["reputationBoostBps",getU16Encoder()],["hasVerifiedBadge",getBooleanEncoder()],["hasPremiumBenefits",getBooleanEncoder()],["totalSlashed",getU64Encoder()],["tier",V()],["apiCallsRemaining",getU32Encoder()],["lastQuotaReset",getI64Encoder()],["votingPower",getU64Encoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:om}))}function im(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["amountStaked",getU64Decoder()],["stakedAt",getI64Decoder()],["lockDuration",getI64Decoder()],["unlockAt",getI64Decoder()],["reputationBoostBps",getU16Decoder()],["hasVerifiedBadge",getBooleanDecoder()],["hasPremiumBenefits",getBooleanDecoder()],["totalSlashed",getU64Decoder()],["tier",L()],["apiCallsRemaining",getU32Decoder()],["lastQuotaReset",getI64Decoder()],["votingPower",getU64Decoder()],["bump",getU8Decoder()]])}function pY(){return combineCodec(tv(),im())}function cm(n){return decodeAccount(n,im())}async function lY(n,e,t){let o=await nv(n,e,t);return assertAccountExists(o),o}async function nv(n,e,t){let o=await fetchEncodedAccount(n,e,t);return cm(o)}async function mY(n,e,t){let o=await rv(n,e,t);return assertAccountsExist(o),o}async function rv(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>cm(r))}function yY(){return 106}var om,ov=a(()=>{m();om=new Uint8Array([52,178,251,157,180,186,98,234]);});function _Y(){return fixEncoderSize(getBytesEncoder(),8).encode(sm)}function gv(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["minStake",getU64Encoder()],["minLockDuration",getI64Encoder()],["fraudSlashBps",getU16Encoder()],["disputeSlashBps",getU16Encoder()],["treasury",getAddressEncoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:sm}))}function am(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["minStake",getU64Decoder()],["minLockDuration",getI64Decoder()],["fraudSlashBps",getU16Decoder()],["disputeSlashBps",getU16Decoder()],["treasury",getAddressDecoder()],["bump",getU8Decoder()]])}function zY(){return combineCodec(gv(),am())}function dm(n){return decodeAccount(n,am())}async function OY(n,e,t){let o=await Av(n,e,t);return assertAccountExists(o),o}async function Av(n,e,t){let o=await fetchEncodedAccount(n,e,t);return dm(o)}async function FY(n,e,t){let o=await pv(n,e,t);return assertAccountsExist(o),o}async function pv(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>dm(r))}function GY(){return 93}var sm,lv=a(()=>{sm=new Uint8Array([45,134,252,82,37,57,84,25]);});function oee(){return fixEncoderSize(getBytesEncoder(),8).encode(um)}function Tv(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["user",getAddressEncoder()],["agentCount",getU16Encoder()],["listingCount",getU16Encoder()],["workOrderCount",getU16Encoder()],["channelCount",getU16Encoder()],["totalVolumeTraded",getU64Encoder()],["lastActivity",getI64Encoder()],["createdAt",getI64Encoder()],["isRateLimited",getBooleanEncoder()],["rateLimitExpiry",getI64Encoder()],["lastExtensionRegistration",getI64Encoder()],["lastDisputeFiling",getI64Encoder()],["lastEvidenceSubmission",getI64Encoder()],["lastBatchExecution",getI64Encoder()],["lastDashboardUpdate",getI64Encoder()],["lastBulkDealCreation",getI64Encoder()],["lastDashboardCreation",getI64Encoder()],["bump",getU8Encoder()]]),n=>({...n,discriminator:um}))}function gm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["user",getAddressDecoder()],["agentCount",getU16Decoder()],["listingCount",getU16Decoder()],["workOrderCount",getU16Decoder()],["channelCount",getU16Decoder()],["totalVolumeTraded",getU64Decoder()],["lastActivity",getI64Decoder()],["createdAt",getI64Decoder()],["isRateLimited",getBooleanDecoder()],["rateLimitExpiry",getI64Decoder()],["lastExtensionRegistration",getI64Decoder()],["lastDisputeFiling",getI64Decoder()],["lastEvidenceSubmission",getI64Decoder()],["lastBatchExecution",getI64Decoder()],["lastDashboardUpdate",getI64Decoder()],["lastBulkDealCreation",getI64Decoder()],["lastDashboardCreation",getI64Decoder()],["bump",getU8Decoder()]])}function iee(){return combineCodec(Tv(),gm())}function Am(n){return decodeAccount(n,gm())}async function cee(n,e,t){let o=await fv(n,e,t);return assertAccountExists(o),o}async function fv(n,e,t){let o=await fetchEncodedAccount(n,e,t);return Am(o)}async function see(n,e,t){let o=await Sv(n,e,t);return assertAccountsExist(o),o}async function Sv(n,e,t){return (await fetchEncodedAccounts(n,e,t)).map(r=>Am(r))}function aee(){return 138}var um,xv=a(()=>{um=new Uint8Array([37,84,98,14,130,63,210,138]);});var Dv=a(()=>{AR();RR();_R();KR();ZR();Ab();yb();xb();Ib();_b();Nb();qb();cI();xI();MI();GI();KI();QI();ov();lv();xv();});function dee(n){let e="data"in n?n.data:n;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([47,166,112,147,155,197,86,7])),0))return 0;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([30,249,165,44,155,194,188,175])),0))return 1;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,145,156,0,197,232,130,245])),0))return 2;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([128,155,95,241,66,207,166,59])),0))return 3;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([171,223,253,181,134,88,66,26])),0))return 4;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([109,102,102,17,210,84,85,210])),0))return 5;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([75,146,78,26,130,240,228,35])),0))return 6;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,44,68,220,67,46,100,135])),0))return 7;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([229,129,99,91,179,207,66,75])),0))return 8;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([132,171,20,181,39,219,217,112])),0))return 9;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([109,220,168,224,33,173,192,166])),0))return 10;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([38,0,98,160,102,4,51,160])),0))return 11;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([53,107,240,190,43,73,65,143])),0))return 12;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([224,116,121,186,68,161,79,236])),0))return 13;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([207,91,250,28,152,179,215,209])),0))return 14;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([177,94,184,202,221,112,110,38])),0))return 15;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([207,227,141,11,194,21,193,32])),0))return 16;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([8,160,71,30,66,150,108,33])),0))return 17;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([52,178,251,157,180,186,98,234])),0))return 18;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([45,134,252,82,37,57,84,25])),0))return 19;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([37,84,98,14,130,63,210,138])),0))return 20;throw new Error("The provided account could not be identified as a ghostspeakMarketplace account.")}function uee(n){let e="data"in n?n.data:n;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,139,87,21,195,152,29,217])),0))return 0;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([28,233,51,115,33,220,41,28])),0))return 1;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([225,89,166,101,215,40,191,4])),0))return 2;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([48,219,232,202,151,97,230,20])),0))return 3;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([183,109,12,128,134,8,139,144])),0))return 4;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([211,208,67,175,20,248,8,227])),0))return 5;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,40,200,239,69,147,82,182])),0))return 6;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,215,165,116,36,108,68,80])),0))return 7;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([148,146,240,10,226,215,167,174])),0))return 8;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([205,171,239,225,82,126,96,166])),0))return 9;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([177,8,195,104,56,34,84,162])),0))return 10;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([110,174,221,244,36,206,60,237])),0))return 11;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([77,13,56,161,67,155,206,119])),0))return 12;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([9,115,79,19,158,209,221,38])),0))return 13;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([210,63,221,114,212,97,195,156])),0))return 14;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([213,97,79,234,22,228,14,32])),0))return 15;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([156,109,115,85,12,60,245,99])),0))return 16;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,182,236,249,212,17,175,161])),0))return 17;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([137,84,234,206,17,58,54,215])),0))return 18;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([28,50,43,233,244,98,123,118])),0))return 19;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([215,68,129,228,237,165,0,240])),0))return 20;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([228,11,207,44,52,188,169,237])),0))return 21;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([78,164,6,115,206,48,168,105])),0))return 22;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([255,193,171,224,68,171,194,87])),0))return 23;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([164,219,91,38,45,31,33,47])),0))return 24;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([165,202,159,139,65,65,36,163])),0))return 25;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([135,157,66,195,2,113,175,30])),0))return 26;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([15,6,94,55,65,80,123,248])),0))return 27;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([93,74,168,125,46,153,9,255])),0))return 28;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([168,180,218,211,184,19,102,12])),0))return 29;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([222,179,207,59,191,78,24,248])),0))return 30;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([38,123,95,95,223,158,169,87])),0))return 31;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([190,242,137,27,41,18,233,37])),0))return 32;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([5,196,24,54,196,56,173,191])),0))return 33;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([217,177,33,54,136,185,123,96])),0))return 34;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([23,160,228,88,168,145,129,19])),0))return 35;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,101,172,252,1,4,12,116])),0))return 36;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([85,2,178,9,119,139,102,164])),0))return 37;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([80,227,92,245,231,37,99,180])),0))return 38;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([87,146,181,198,252,68,243,102])),0))return 39;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([22,167,59,238,22,231,239,146])),0))return 40;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([64,216,17,91,205,94,45,57])),0))return 41;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([197,97,123,54,221,168,11,135])),0))return 42;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([206,96,254,186,129,180,103,198])),0))return 43;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([61,236,225,167,134,43,53,93])),0))return 44;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([161,240,255,69,130,227,71,123])),0))return 45;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([206,212,108,12,105,61,100,66])),0))return 46;if(containsBytes(e,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([43,9,131,59,74,118,113,170])),0))return 47;throw new Error("The provided instruction could not be identified as a ghostspeakMarketplace instruction.")}var u,Pv,Ev,hv=a(()=>{u="4wHjA2a5YC4twZb4NQpwZpixo5FgxxzuJUrCG7UnF9pB",Pv=(C=>(C[C.Agent=0]="Agent",C[C.AgentReputationAuth=1]="AgentReputationAuth",C[C.AgentTreeConfig=2]="AgentTreeConfig",C[C.AgentVerification=3]="AgentVerification",C[C.AuditTrail=4]="AuditTrail",C[C.AuthorizationUsageRecord=5]="AuthorizationUsageRecord",C[C.ComplianceReport=6]="ComplianceReport",C[C.Credential=7]="Credential",C[C.CredentialTemplate=8]="CredentialTemplate",C[C.CredentialType=9]="CredentialType",C[C.DidDocument=10]="DidDocument",C[C.GhostProtectEscrow=11]="GhostProtectEscrow",C[C.GovernanceProposal=12]="GovernanceProposal",C[C.Multisig=13]="Multisig",C[C.ProtocolConfig=14]="ProtocolConfig",C[C.RbacConfig=15]="RbacConfig",C[C.ReentrancyGuard=16]="ReentrancyGuard",C[C.ReputationMetrics=17]="ReputationMetrics",C[C.StakingAccount=18]="StakingAccount",C[C.StakingConfig=19]="StakingConfig",C[C.UserRegistry=20]="UserRegistry",C))(Pv||{});Ev=(l=>(l[l.ActivateAgent=0]="ActivateAgent",l[l.ApproveDelivery=1]="ApproveDelivery",l[l.ArbitrateDispute=2]="ArbitrateDispute",l[l.CreateAgentAuthorization=3]="CreateAgentAuthorization",l[l.CreateCredentialTemplate=4]="CreateCredentialTemplate",l[l.CreateCredentialType=5]="CreateCredentialType",l[l.CreateDidDocument=6]="CreateDidDocument",l[l.CreateEscrow=7]="CreateEscrow",l[l.CreateMultisig=8]="CreateMultisig",l[l.DeactivateAgent=9]="DeactivateAgent",l[l.DeactivateCredentialTemplate=10]="DeactivateCredentialTemplate",l[l.DeactivateCredentialType=11]="DeactivateCredentialType",l[l.DeactivateDidDocument=12]="DeactivateDidDocument",l[l.EnableProtocolFees=13]="EnableProtocolFees",l[l.FileDispute=14]="FileDispute",l[l.GenerateComplianceReport=15]="GenerateComplianceReport",l[l.InitReentrancyGuard=16]="InitReentrancyGuard",l[l.InitializeAuditTrail=17]="InitializeAuditTrail",l[l.InitializeGovernanceProposal=18]="InitializeGovernanceProposal",l[l.InitializeProtocolConfig=19]="InitializeProtocolConfig",l[l.InitializeRbacConfig=20]="InitializeRbacConfig",l[l.InitializeReputationMetrics=21]="InitializeReputationMetrics",l[l.InitializeStakingConfig=22]="InitializeStakingConfig",l[l.IssueCredential=23]="IssueCredential",l[l.ManageAgentStatus=24]="ManageAgentStatus",l[l.RecordPayaiPayment=25]="RecordPayaiPayment",l[l.RegisterAgent=26]="RegisterAgent",l[l.RegisterAgentCompressed=27]="RegisterAgentCompressed",l[l.ResetReentrancyGuard=28]="ResetReentrancyGuard",l[l.ResolveDidDocument=29]="ResolveDidDocument",l[l.RevokeAuthorization=30]="RevokeAuthorization",l[l.RevokeCredential=31]="RevokeCredential",l[l.SlashStake=32]="SlashStake",l[l.StakeGhost=33]="StakeGhost",l[l.SubmitDelivery=34]="SubmitDelivery",l[l.SubmitServiceRating=35]="SubmitServiceRating",l[l.UnstakeGhost=36]="UnstakeGhost",l[l.UpdateAgent=37]="UpdateAgent",l[l.UpdateAgentReputation=38]="UpdateAgentReputation",l[l.UpdateAgentService=39]="UpdateAgentService",l[l.UpdateCrosschainStatus=40]="UpdateCrosschainStatus",l[l.UpdateDidDocument=41]="UpdateDidDocument",l[l.UpdateProtocolConfig=42]="UpdateProtocolConfig",l[l.UpdateReputationTags=43]="UpdateReputationTags",l[l.UpdateReputationWithAuth=44]="UpdateReputationWithAuth",l[l.UpdateSourceReputation=45]="UpdateSourceReputation",l[l.VerifyAgent=46]="VerifyAgent",l[l.VerifyAuthorization=47]="VerifyAuthorization",l))(Ev||{});});var E=a(()=>{hv();});function Aee(n){return process.env.NODE_ENV!=="production"?zv[n]:"Error message not available in production bundles."}function pee(n,e,t){return isProgramError(n,e,u,t)}var Cv,Rv,bv,Iv,vv,Mv,kv,wv,Uv,_v,zv,Ov=a(()=>{E();Cv=6e3,Rv=6001,bv=6002,Iv=6003,vv=6004,Mv=6005,kv=6006,wv=6007,Uv=6008,_v=6009;process.env.NODE_ENV!=="production"&&(zv={[Cv]:"DID document is already deactivated",[_v]:"DID is deactivated",[Iv]:"Duplicate verification method ID",[vv]:"Duplicate service endpoint ID",[wv]:"Invalid DID format",[Mv]:"Verification method not found",[kv]:"Service endpoint not found",[bv]:"Maximum number of service endpoints reached",[Rv]:"Maximum number of verification methods reached",[Uv]:"Unauthorized DID operation"});});var Fv=a(()=>{Ov();});function I(n){if(n==null)throw new Error("Expected a value but received null or undefined.");return n}function x(n){if(!n)throw new Error("Expected a Address.");return typeof n=="object"&&"address"in n?n.address:Array.isArray(n)?n[0]:n}function g(n,e){return t=>{if(!t.value)return Object.freeze({address:n,role:AccountRole.READONLY});let o=t.isWritable?AccountRole.WRITABLE:AccountRole.READONLY;return Object.freeze({address:x(t.value),role:Gv(t.value)?upgradeRoleToSigner(o):o,...Gv(t.value)?{signer:t.value}:{}})}}function Gv(n){return !!n&&typeof n=="object"&&"address"in n&&isTransactionSigner(n)}var h=a(()=>{});function vee(){return fixEncoderSize(getBytesEncoder(),8).encode(mm)}function Na(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),n=>({...n,discriminator:mm}))}function ym(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Mee(){return combineCodec(Na(),ym())}async function kee(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agentAccount.value||(r.agentAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.signer.value)),getUtf8Encoder().encode(I(c.agentId))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Na().encode(c),programAddress:t})}function Tm(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Na().encode(c),programAddress:t})}function wee(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agentAccount:t(),signer:t(),clock:t()},data:ym().decode(n.data)}}var mm,Bv=a(()=>{E();h();mm=new Uint8Array([252,139,87,21,195,152,29,217]);});function Wee(){return fixEncoderSize(getBytesEncoder(),8).encode(fm)}function Sm(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:fm}))}function xm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Nee(){return combineCodec(Sm(),xm())}function Bee(n,e){let t=e?.programAddress??u,r={escrow:{value:n.escrow??null,isWritable:true},escrowVault:{value:n.escrowVault??null,isWritable:true},agentTokenAccount:{value:n.agentTokenAccount??null,isWritable:true},client:{value:n.client??null,isWritable:false},tokenProgram:{value:n.tokenProgram??null,isWritable:false}};r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=g(t);return Object.freeze({accounts:[c(r.escrow),c(r.escrowVault),c(r.agentTokenAccount),c(r.client),c(r.tokenProgram)],data:Sm().encode({}),programAddress:t})}function Vee(n){if(n.accounts.length<5)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{escrow:t(),escrowVault:t(),agentTokenAccount:t(),client:t(),tokenProgram:t()},data:xm().decode(n.data)}}var fm,Kv=a(()=>{E();h();fm=new Uint8Array([28,233,51,115,33,220,41,28]);});function Jee(){return fixEncoderSize(getBytesEncoder(),8).encode(Dm)}function Pm(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["decision",re()]]),n=>({...n,discriminator:Dm}))}function Em(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["decision",oe()]])}function Qee(){return combineCodec(Pm(),Em())}function Xee(n,e){let t=e?.programAddress??u,r={escrow:{value:n.escrow??null,isWritable:true},escrowVault:{value:n.escrowVault??null,isWritable:true},agentTokenAccount:{value:n.agentTokenAccount??null,isWritable:true},clientTokenAccount:{value:n.clientTokenAccount??null,isWritable:true},agentStaking:{value:n.agentStaking??null,isWritable:true},arbitrator:{value:n.arbitrator??null,isWritable:false},tokenProgram:{value:n.tokenProgram??null,isWritable:false}},c={...n};r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let i=g(t);return Object.freeze({accounts:[i(r.escrow),i(r.escrowVault),i(r.agentTokenAccount),i(r.clientTokenAccount),i(r.agentStaking),i(r.arbitrator),i(r.tokenProgram)],data:Pm().encode(c),programAddress:t})}function Zee(n){if(n.accounts.length<7)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{escrow:t(),escrowVault:t(),agentTokenAccount:t(),clientTokenAccount:t(),agentStaking:t(),arbitrator:t(),tokenProgram:t()},data:Em().decode(n.data)}}var Dm,$v=a(()=>{E();h();m();Dm=new Uint8Array([225,89,166,101,215,40,191,4]);});var iM={};ne(iM,{CREATE_AGENT_AUTHORIZATION_DISCRIMINATOR:()=>Va,getCreateAgentAuthorizationDiscriminatorBytes:()=>eM,getCreateAgentAuthorizationInstruction:()=>rM,getCreateAgentAuthorizationInstructionAsync:()=>nM,getCreateAgentAuthorizationInstructionDataCodec:()=>tM,getCreateAgentAuthorizationInstructionDataDecoder:()=>La,getCreateAgentAuthorizationInstructionDataEncoder:()=>Lt,parseCreateAgentAuthorizationInstruction:()=>oM});function eM(){return fixEncoderSize(getBytesEncoder(),8).encode(Va)}function Lt(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authorizedSource",getAddressEncoder()],["indexLimit",getU64Encoder()],["expiresAt",getI64Encoder()],["network",getU8Encoder()],["signature",fixEncoderSize(getBytesEncoder(),64)],["nonce",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:Va}))}function La(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authorizedSource",getAddressDecoder()],["indexLimit",getU64Decoder()],["expiresAt",getI64Decoder()],["network",getU8Decoder()],["signature",fixDecoderSize(getBytesDecoder(),64)],["nonce",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function tM(){return combineCodec(Lt(),La())}async function nM(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:false},authorization:{value:n.authorization??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.authorization.value||(r.authorization.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,97,117,116,104])),getAddressEncoder().encode(x(r.agent.value)),getAddressEncoder().encode(I(c.authorizedSource)),getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())).encode(I(c.nonce))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.authorization),i(r.authority),i(r.systemProgram)],data:Lt().encode(c),programAddress:t})}function rM(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:false},authorization:{value:n.authorization??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.authorization),i(r.authority),i(r.systemProgram)],data:Lt().encode(c),programAddress:t})}function oM(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agent:t(),authorization:t(),authority:t(),systemProgram:t()},data:La().decode(n.data)}}var Va,Rm=a(()=>{E();h();Va=new Uint8Array([48,219,232,202,151,97,230,20]);});function Cte(){return fixEncoderSize(getBytesEncoder(),8).encode(Um)}function Ha(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["imageUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["crossmintTemplateId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:Um}))}function _m(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["imageUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["crossmintTemplateId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Rte(){return combineCodec(Ha(),_m())}async function bte(n,e){let t=e?.programAddress??u,r={credentialTemplate:{value:n.credentialTemplate??null,isWritable:true},credentialType:{value:n.credentialType??null,isWritable:false},issuer:{value:n.issuer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.credentialTemplate.value||(r.credentialTemplate.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([99,114,101,100,101,110,116,105,97,108,95,116,101,109,112,108,97,116,101])),getAddressEncoder().encode(x(r.credentialType.value)),getUtf8Encoder().encode(I(c.name))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.credentialTemplate),i(r.credentialType),i(r.issuer),i(r.systemProgram)],data:Ha().encode(c),programAddress:t})}function Ite(n,e){let t=e?.programAddress??u,r={credentialTemplate:{value:n.credentialTemplate??null,isWritable:true},credentialType:{value:n.credentialType??null,isWritable:false},issuer:{value:n.issuer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.credentialTemplate),i(r.credentialType),i(r.issuer),i(r.systemProgram)],data:Ha().encode(c),programAddress:t})}function vte(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credentialTemplate:t(),credentialType:t(),issuer:t(),systemProgram:t()},data:_m().decode(n.data)}}var Um,sM=a(()=>{E();h();Um=new Uint8Array([183,109,12,128,134,8,139,144]);});function Fte(){return fixEncoderSize(getBytesEncoder(),8).encode(Bm)}function $a(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["kind",Ve()],["schemaUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),n=>({...n,discriminator:Bm}))}function Vm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["kind",Le()],["schemaUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Gte(){return combineCodec($a(),Vm())}async function Wte(n,e){let t=e?.programAddress??u,r={credentialType:{value:n.credentialType??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.credentialType.value||(r.credentialType.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([99,114,101,100,101,110,116,105,97,108,95,116,121,112,101])),getUtf8Encoder().encode(I(c.name))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.credentialType),i(r.authority),i(r.systemProgram)],data:$a().encode(c),programAddress:t})}function Nte(n,e){let t=e?.programAddress??u,r={credentialType:{value:n.credentialType??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.credentialType),i(r.authority),i(r.systemProgram)],data:$a().encode(c),programAddress:t})}function Bte(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credentialType:t(),authority:t(),systemProgram:t()},data:Vm().decode(n.data)}}var Bm,dM=a(()=>{E();h();m();Bm=new Uint8Array([211,208,67,175,20,248,8,227]);});function nne(){return fixEncoderSize(getBytesEncoder(),8).encode(Km)}function qa(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["didString",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["verificationMethods",getArrayEncoder(Te())],["serviceEndpoints",getArrayEncoder(me())]]),n=>({...n,discriminator:Km}))}function Hm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["didString",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["verificationMethods",getArrayDecoder(fe())],["serviceEndpoints",getArrayDecoder(ye())]])}function rne(){return combineCodec(qa(),Hm())}async function one(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:true},controller:{value:n.controller??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.didDocument.value||(r.didDocument.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([100,105,100,95,100,111,99,117,109,101,110,116])),getAddressEncoder().encode(x(r.controller.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.didDocument),i(r.controller),i(r.systemProgram),i(r.clock)],data:qa().encode(c),programAddress:t})}function ine(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:true},controller:{value:n.controller??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.didDocument),i(r.controller),i(r.systemProgram),i(r.clock)],data:qa().encode(c),programAddress:t})}function cne(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{didDocument:t(),controller:t(),systemProgram:t(),clock:t()},data:Hm().decode(n.data)}}var Km,pM=a(()=>{E();h();m();Km=new Uint8Array([253,40,200,239,69,147,82,182]);});function Ene(){return fixEncoderSize(getBytesEncoder(),8).encode(qm)}function Ja(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["escrowId",getU64Encoder()],["amount",getU64Encoder()],["jobDescription",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deadline",getI64Encoder()]]),n=>({...n,discriminator:qm}))}function Jm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["escrowId",getU64Decoder()],["amount",getU64Decoder()],["jobDescription",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deadline",getI64Decoder()]])}function hne(){return combineCodec(Ja(),Jm())}async function Cne(n,e){let t=e?.programAddress??u,r={escrow:{value:n.escrow??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},clientTokenAccount:{value:n.clientTokenAccount??null,isWritable:true},escrowVault:{value:n.escrowVault??null,isWritable:true},tokenMint:{value:n.tokenMint??null,isWritable:false},client:{value:n.client??null,isWritable:true},tokenProgram:{value:n.tokenProgram??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.escrow.value||(r.escrow.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([103,104,111,115,116,95,112,114,111,116,101,99,116])),getAddressEncoder().encode(x(r.client.value)),getU64Encoder().encode(I(c.escrowId))]})),r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.escrow),i(r.agent),i(r.clientTokenAccount),i(r.escrowVault),i(r.tokenMint),i(r.client),i(r.tokenProgram),i(r.systemProgram)],data:Ja().encode(c),programAddress:t})}function Rne(n,e){let t=e?.programAddress??u,r={escrow:{value:n.escrow??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},clientTokenAccount:{value:n.clientTokenAccount??null,isWritable:true},escrowVault:{value:n.escrowVault??null,isWritable:true},tokenMint:{value:n.tokenMint??null,isWritable:false},client:{value:n.client??null,isWritable:true},tokenProgram:{value:n.tokenProgram??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.escrow),i(r.agent),i(r.clientTokenAccount),i(r.escrowVault),i(r.tokenMint),i(r.client),i(r.tokenProgram),i(r.systemProgram)],data:Ja().encode(c),programAddress:t})}function bne(n){if(n.accounts.length<8)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{escrow:t(),agent:t(),clientTokenAccount:t(),escrowVault:t(),tokenMint:t(),client:t(),tokenProgram:t(),systemProgram:t()},data:Jm().decode(n.data)}}var qm,yM=a(()=>{E();h();qm=new Uint8Array([253,215,165,116,36,108,68,80]);});function Bne(){return fixEncoderSize(getBytesEncoder(),8).encode(Xm)}function Qa(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["multisigId",getU64Encoder()],["threshold",getU8Encoder()],["signers",getArrayEncoder(getAddressEncoder())],["config",Ze()]]),n=>({...n,discriminator:Xm}))}function Zm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["multisigId",getU64Decoder()],["threshold",getU8Decoder()],["signers",getArrayDecoder(getAddressDecoder())],["config",Ye()]])}function Vne(){return combineCodec(Qa(),Zm())}async function Lne(n,e){let t=e?.programAddress??u,r={multisig:{value:n.multisig??null,isWritable:true},owner:{value:n.owner??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.multisig.value||(r.multisig.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,115,105,103])),getAddressEncoder().encode(x(r.owner.value)),getU64Encoder().encode(I(c.multisigId))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.multisig),i(r.owner),i(r.systemProgram)],data:Qa().encode(c),programAddress:t})}function Kne(n,e){let t=e?.programAddress??u,r={multisig:{value:n.multisig??null,isWritable:true},owner:{value:n.owner??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.multisig),i(r.owner),i(r.systemProgram)],data:Qa().encode(c),programAddress:t})}function Hne(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{multisig:t(),owner:t(),systemProgram:t()},data:Zm().decode(n.data)}}var Xm,xM=a(()=>{E();h();m();Xm=new Uint8Array([148,146,240,10,226,215,167,174]);});function ire(){return fixEncoderSize(getBytesEncoder(),8).encode(e1)}function Xa(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),n=>({...n,discriminator:e1}))}function t1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function cre(){return combineCodec(Xa(),t1())}async function sre(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agentAccount.value||(r.agentAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.signer.value)),getUtf8Encoder().encode(I(c.agentId))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Xa().encode(c),programAddress:t})}function n1(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Xa().encode(c),programAddress:t})}function are(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agentAccount:t(),signer:t(),clock:t()},data:t1().decode(n.data)}}var e1,EM=a(()=>{E();h();e1=new Uint8Array([205,171,239,225,82,126,96,166]);});function mre(){return fixEncoderSize(getBytesEncoder(),8).encode(r1)}function o1(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:r1}))}function i1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function yre(){return combineCodec(o1(),i1())}function Tre(n,e){let t=e?.programAddress??u,r={credentialTemplate:{value:n.credentialTemplate??null,isWritable:true},issuer:{value:n.issuer??null,isWritable:true}},c=g(t);return Object.freeze({accounts:[c(r.credentialTemplate),c(r.issuer)],data:o1().encode({}),programAddress:t})}function fre(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credentialTemplate:t(),issuer:t()},data:i1().decode(n.data)}}var r1,RM=a(()=>{E();h();r1=new Uint8Array([177,8,195,104,56,34,84,162]);});function Cre(){return fixEncoderSize(getBytesEncoder(),8).encode(c1)}function s1(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:c1}))}function a1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Rre(){return combineCodec(s1(),a1())}function bre(n,e){let t=e?.programAddress??u,r={credentialType:{value:n.credentialType??null,isWritable:true},authority:{value:n.authority??null,isWritable:true}},c=g(t);return Object.freeze({accounts:[c(r.credentialType),c(r.authority)],data:s1().encode({}),programAddress:t})}function Ire(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credentialType:t(),authority:t()},data:a1().decode(n.data)}}var c1,vM=a(()=>{E();h();c1=new Uint8Array([110,174,221,244,36,206,60,237]);});function Fre(){return fixEncoderSize(getBytesEncoder(),8).encode(u1)}function Za(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:u1}))}function g1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Gre(){return combineCodec(Za(),g1())}async function Wre(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:true},controller:{value:n.controller??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}};r.didDocument.value||(r.didDocument.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([100,105,100,95,100,111,99,117,109,101,110,116])),getAddressEncoder().encode(x(r.controller.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.didDocument),c(r.controller),c(r.clock)],data:Za().encode({}),programAddress:t})}function Nre(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:true},controller:{value:n.controller??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.didDocument),c(r.controller),c(r.clock)],data:Za().encode({}),programAddress:t})}function Bre(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{didDocument:t(),controller:t(),clock:t()},data:g1().decode(n.data)}}var u1,kM=a(()=>{E();h();u1=new Uint8Array([77,13,56,161,67,155,206,119]);});function Jre(){return fixEncoderSize(getBytesEncoder(),8).encode(p1)}function Ya(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:p1}))}function l1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Qre(){return combineCodec(Ya(),l1())}async function Xre(n,e){let t=e?.programAddress??u,r={config:{value:n.config??null,isWritable:true},authority:{value:n.authority??null,isWritable:false}};r.config.value||(r.config.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([112,114,111,116,111,99,111,108,95,99,111,110,102,105,103]))]}));let c=g(t);return Object.freeze({accounts:[c(r.config),c(r.authority)],data:Ya().encode({}),programAddress:t})}function Zre(n,e){let t=e?.programAddress??u,r={config:{value:n.config??null,isWritable:true},authority:{value:n.authority??null,isWritable:false}},c=g(t);return Object.freeze({accounts:[c(r.config),c(r.authority)],data:Ya().encode({}),programAddress:t})}function Yre(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{config:t(),authority:t()},data:l1().decode(n.data)}}var p1,UM=a(()=>{E();h();p1=new Uint8Array([9,115,79,19,158,209,221,38]);});function Aoe(){return fixEncoderSize(getBytesEncoder(),8).encode(m1)}function y1(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),n=>({...n,discriminator:m1}))}function T1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function poe(){return combineCodec(y1(),T1())}function loe(n,e){let t=e?.programAddress??u,r={escrow:{value:n.escrow??null,isWritable:true},client:{value:n.client??null,isWritable:false}},c={...n},i=g(t);return Object.freeze({accounts:[i(r.escrow),i(r.client)],data:y1().encode(c),programAddress:t})}function moe(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{escrow:t(),client:t()},data:T1().decode(n.data)}}var m1,OM=a(()=>{E();h();m1=new Uint8Array([210,63,221,114,212,97,195,156]);});function hoe(){return fixEncoderSize(getBytesEncoder(),8).encode(S1)}function ed(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reportId",getU64Encoder()],["reportType",ie()],["dateRangeStart",getI64Encoder()],["dateRangeEnd",getI64Encoder()]]),n=>({...n,discriminator:S1}))}function x1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reportId",getU64Decoder()],["reportType",ce()],["dateRangeStart",getI64Decoder()],["dateRangeEnd",getI64Decoder()]])}function Coe(){return combineCodec(ed(),x1())}async function Roe(n,e){let t=e?.programAddress??u,r={report:{value:n.report??null,isWritable:true},auditTrail:{value:n.auditTrail??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.report.value||(r.report.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([99,111,109,112,108,105,97,110,99,101,95,114,101,112,111,114,116])),getU64Encoder().encode(I(c.reportId))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.report),i(r.auditTrail),i(r.authority),i(r.systemProgram)],data:ed().encode(c),programAddress:t})}function boe(n,e){let t=e?.programAddress??u,r={report:{value:n.report??null,isWritable:true},auditTrail:{value:n.auditTrail??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.report),i(r.auditTrail),i(r.authority),i(r.systemProgram)],data:ed().encode(c),programAddress:t})}function Ioe(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{report:t(),auditTrail:t(),authority:t(),systemProgram:t()},data:x1().decode(n.data)}}var S1,BM=a(()=>{E();h();m();S1=new Uint8Array([213,97,79,234,22,228,14,32]);});function Loe(){return fixEncoderSize(getBytesEncoder(),8).encode(P1)}function td(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["entityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["config",Oe()]]),n=>({...n,discriminator:P1}))}function E1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["entityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["config",Fe()]])}function Koe(){return combineCodec(td(),E1())}async function Hoe(n,e){let t=e?.programAddress??u,r={auditTrail:{value:n.auditTrail??null,isWritable:true},entity:{value:n.entity??null,isWritable:false},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.auditTrail.value||(r.auditTrail.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,117,100,105,116,95,116,114,97,105,108])),getAddressEncoder().encode(x(r.entity.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.auditTrail),i(r.entity),i(r.authority),i(r.systemProgram)],data:td().encode(c),programAddress:t})}function joe(n,e){let t=e?.programAddress??u,r={auditTrail:{value:n.auditTrail??null,isWritable:true},entity:{value:n.entity??null,isWritable:false},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.auditTrail),i(r.entity),i(r.authority),i(r.systemProgram)],data:td().encode(c),programAddress:t})}function $oe(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{auditTrail:t(),entity:t(),authority:t(),systemProgram:t()},data:E1().decode(n.data)}}var P1,LM=a(()=>{E();h();m();P1=new Uint8Array([145,182,236,249,212,17,175,161]);});function nie(){return fixEncoderSize(getBytesEncoder(),8).encode(C1)}function nd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposalType",se()],["executionParams",qe()]]),n=>({...n,discriminator:C1}))}function R1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposalType",ae()],["executionParams",Je()]])}function rie(){return combineCodec(nd(),R1())}async function Kt(n,e){let t=e?.programAddress??u,r={proposal:{value:n.proposal??null,isWritable:true},proposer:{value:n.proposer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.proposal.value||(r.proposal.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([103,111,118,101,114,110,97,110,99,101,95,112,114,111,112,111,115,97,108])),getU64Encoder().encode(I(c.proposalId))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.proposal),i(r.proposer),i(r.systemProgram)],data:nd().encode(c),programAddress:t})}function oie(n,e){let t=e?.programAddress??u,r={proposal:{value:n.proposal??null,isWritable:true},proposer:{value:n.proposer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.proposal),i(r.proposer),i(r.systemProgram)],data:nd().encode(c),programAddress:t})}function iie(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{proposal:t(),proposer:t(),systemProgram:t()},data:R1().decode(n.data)}}var C1,ZM=a(()=>{E();h();m();C1=new Uint8Array([137,84,234,206,17,58,54,215]);});function pie(){return fixEncoderSize(getBytesEncoder(),8).encode(I1)}function rd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:I1}))}function v1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function lie(){return combineCodec(rd(),v1())}async function mie(n,e){let t=e?.programAddress??u,r={config:{value:n.config??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},treasury:{value:n.treasury??null,isWritable:false},buybackPool:{value:n.buybackPool??null,isWritable:false},moderatorPool:{value:n.moderatorPool??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false}};r.config.value||(r.config.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([112,114,111,116,111,99,111,108,95,99,111,110,102,105,103]))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.config),c(r.authority),c(r.treasury),c(r.buybackPool),c(r.moderatorPool),c(r.systemProgram)],data:rd().encode({}),programAddress:t})}function yie(n,e){let t=e?.programAddress??u,r={config:{value:n.config??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},treasury:{value:n.treasury??null,isWritable:false},buybackPool:{value:n.buybackPool??null,isWritable:false},moderatorPool:{value:n.moderatorPool??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false}};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.config),c(r.authority),c(r.treasury),c(r.buybackPool),c(r.moderatorPool),c(r.systemProgram)],data:rd().encode({}),programAddress:t})}function Tie(n){if(n.accounts.length<6)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{config:t(),authority:t(),treasury:t(),buybackPool:t(),moderatorPool:t(),systemProgram:t()},data:v1().decode(n.data)}}var I1,ek=a(()=>{E();h();I1=new Uint8Array([28,50,43,233,244,98,123,118]);});function Iie(){return fixEncoderSize(getBytesEncoder(),8).encode(k1)}function od(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initialRoles",getArrayEncoder(ct())]]),n=>({...n,discriminator:k1}))}function w1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initialRoles",getArrayDecoder(st())]])}function vie(){return combineCodec(od(),w1())}async function Mie(n,e){let t=e?.programAddress??u,r={rbacConfig:{value:n.rbacConfig??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.rbacConfig.value||(r.rbacConfig.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,98,97,99,95,99,111,110,102,105,103])),getAddressEncoder().encode(x(r.authority.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.rbacConfig),i(r.authority),i(r.systemProgram)],data:od().encode(c),programAddress:t})}function kie(n,e){let t=e?.programAddress??u,r={rbacConfig:{value:n.rbacConfig??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.rbacConfig),i(r.authority),i(r.systemProgram)],data:od().encode(c),programAddress:t})}function wie(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{rbacConfig:t(),authority:t(),systemProgram:t()},data:w1().decode(n.data)}}var k1,nk=a(()=>{E();h();m();k1=new Uint8Array([215,68,129,228,237,165,0,240]);});function Bie(){return fixEncoderSize(getBytesEncoder(),8).encode(_1)}function id(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:_1}))}function z1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Vie(){return combineCodec(id(),z1())}async function Lie(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}};r.reputationMetrics.value||(r.reputationMetrics.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,117,116,97,116,105,111,110,95,109,101,116,114,105,99,115])),getAddressEncoder().encode(x(r.agent.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.reputationMetrics),c(r.agent),c(r.authority),c(r.systemProgram),c(r.clock)],data:id().encode({}),programAddress:t})}function Kie(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.reputationMetrics),c(r.agent),c(r.authority),c(r.systemProgram),c(r.clock)],data:id().encode({}),programAddress:t})}function Hie(n){if(n.accounts.length<5)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reputationMetrics:t(),agent:t(),authority:t(),systemProgram:t(),clock:t()},data:z1().decode(n.data)}}var _1,ok=a(()=>{E();h();_1=new Uint8Array([228,11,207,44,52,188,169,237]);});function rce(){return fixEncoderSize(getBytesEncoder(),8).encode(F1)}function cd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["minStake",getU64Encoder()],["treasury",getAddressEncoder()]]),n=>({...n,discriminator:F1}))}function G1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["minStake",getU64Decoder()],["treasury",getAddressDecoder()]])}function oce(){return combineCodec(cd(),G1())}async function W1(n,e){let t=e?.programAddress??u,r={stakingConfig:{value:n.stakingConfig??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.stakingConfig.value||(r.stakingConfig.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.stakingConfig),i(r.authority),i(r.systemProgram)],data:cd().encode(c),programAddress:t})}function ice(n,e){let t=e?.programAddress??u,r={stakingConfig:{value:n.stakingConfig??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.stakingConfig),i(r.authority),i(r.systemProgram)],data:cd().encode(c),programAddress:t})}function cce(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{stakingConfig:t(),authority:t(),systemProgram:t()},data:G1().decode(n.data)}}var F1,ck=a(()=>{E();h();F1=new Uint8Array([78,164,6,115,206,48,168,105]);});function lce(){return fixEncoderSize(getBytesEncoder(),8).encode(B1)}function sd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:B1}))}function V1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function mce(){return combineCodec(sd(),V1())}async function yce(n,e){let t=e?.programAddress??u,r={reentrancyGuard:{value:n.reentrancyGuard??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}};r.reentrancyGuard.value||(r.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.reentrancyGuard),c(r.authority),c(r.systemProgram)],data:sd().encode({}),programAddress:t})}function Tce(n,e){let t=e?.programAddress??u,r={reentrancyGuard:{value:n.reentrancyGuard??null,isWritable:true},authority:{value:n.authority??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let c=g(t);return Object.freeze({accounts:[c(r.reentrancyGuard),c(r.authority),c(r.systemProgram)],data:sd().encode({}),programAddress:t})}function fce(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reentrancyGuard:t(),authority:t(),systemProgram:t()},data:V1().decode(n.data)}}var B1,ak=a(()=>{E();h();B1=new Uint8Array([156,109,115,85,12,60,245,99]);});function bce(){return fixEncoderSize(getBytesEncoder(),8).encode(j1)}function dd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["credentialId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["subjectDataHash",fixEncoderSize(getBytesEncoder(),32)],["subjectDataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expiresAt",getOptionEncoder(getI64Encoder())],["sourceAccount",getOptionEncoder(getAddressEncoder())]]),n=>({...n,discriminator:j1}))}function $1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["credentialId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["subjectDataHash",fixDecoderSize(getBytesDecoder(),32)],["subjectDataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expiresAt",getOptionDecoder(getI64Decoder())],["sourceAccount",getOptionDecoder(getAddressDecoder())]])}function Ice(){return combineCodec(dd(),$1())}async function vce(n,e){let t=e?.programAddress??u,r={credential:{value:n.credential??null,isWritable:true},credentialTemplate:{value:n.credentialTemplate??null,isWritable:true},credentialType:{value:n.credentialType??null,isWritable:true},subject:{value:n.subject??null,isWritable:false},issuer:{value:n.issuer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.credential.value||(r.credential.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([99,114,101,100,101,110,116,105,97,108])),getAddressEncoder().encode(x(r.credentialTemplate.value)),getAddressEncoder().encode(x(r.subject.value)),getUtf8Encoder().encode(I(c.credentialId))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.credential),i(r.credentialTemplate),i(r.credentialType),i(r.subject),i(r.issuer),i(r.systemProgram)],data:dd().encode(c),programAddress:t})}function Mce(n,e){let t=e?.programAddress??u,r={credential:{value:n.credential??null,isWritable:true},credentialTemplate:{value:n.credentialTemplate??null,isWritable:true},credentialType:{value:n.credentialType??null,isWritable:true},subject:{value:n.subject??null,isWritable:false},issuer:{value:n.issuer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.credential),i(r.credentialTemplate),i(r.credentialType),i(r.subject),i(r.issuer),i(r.systemProgram)],data:dd().encode(c),programAddress:t})}function kce(n){if(n.accounts.length<6)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credential:t(),credentialTemplate:t(),credentialType:t(),subject:t(),issuer:t(),systemProgram:t()},data:$1().decode(n.data)}}var j1,fk=a(()=>{E();h();j1=new Uint8Array([255,193,171,224,68,171,194,87]);});function Vce(){return fixEncoderSize(getBytesEncoder(),8).encode(J1)}function ud(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newStatus",getBooleanEncoder()]]),n=>({...n,discriminator:J1}))}function Q1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newStatus",getBooleanDecoder()]])}function Lce(){return combineCodec(ud(),Q1())}async function Kce(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:true},owner:{value:n.owner??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agent.value||(r.agent.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.owner.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.owner),i(r.clock)],data:ud().encode(c),programAddress:t})}function Hce(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:true},owner:{value:n.owner??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.owner),i(r.clock)],data:ud().encode(c),programAddress:t})}function jce(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agent:t(),owner:t(),clock:t()},data:Q1().decode(n.data)}}var J1,xk=a(()=>{E();h();J1=new Uint8Array([164,219,91,38,45,31,33,47]);});function dse(){return fixEncoderSize(getBytesEncoder(),8).encode(Z1)}function gd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["paymentSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["responseTimeMs",getU64Encoder()],["success",getBooleanEncoder()]]),n=>({...n,discriminator:Z1}))}function Y1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["paymentSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["responseTimeMs",getU64Decoder()],["success",getBooleanDecoder()]])}function use(){return combineCodec(gd(),Y1())}async function gse(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.reputationMetrics.value||(r.reputationMetrics.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,117,116,97,116,105,111,110,95,109,101,116,114,105,99,115])),getAddressEncoder().encode(x(r.agent.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.authority),i(r.clock)],data:gd().encode(c),programAddress:t})}function Ase(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.authority),i(r.clock)],data:gd().encode(c),programAddress:t})}function pse(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reputationMetrics:t(),agent:t(),authority:t(),clock:t()},data:Y1().decode(n.data)}}var Z1,hk=a(()=>{E();h();Z1=new Uint8Array([165,202,159,139,65,65,36,163]);});function Pse(){return fixEncoderSize(getBytesEncoder(),8).encode(ey)}function fd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["pricingModel",J()]]),n=>({...n,discriminator:ey}))}function ty(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["pricingModel",Q()]])}function Ese(){return combineCodec(fd(),ty())}async function ny(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},stakingAccount:{value:n.stakingAccount??null,isWritable:false},signer:{value:n.signer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agentAccount.value||(r.agentAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.signer.value)),getUtf8Encoder().encode(I(c.agentId))]})),r.stakingAccount.value||(r.stakingAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(x(r.signer.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.stakingAccount),i(r.signer),i(r.systemProgram),i(r.clock)],data:fd().encode(c),programAddress:t})}function hse(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},stakingAccount:{value:n.stakingAccount??null,isWritable:false},signer:{value:n.signer??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.stakingAccount),i(r.signer),i(r.systemProgram),i(r.clock)],data:fd().encode(c),programAddress:t})}function Cse(n){if(n.accounts.length<5)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agentAccount:t(),stakingAccount:t(),signer:t(),systemProgram:t(),clock:t()},data:ty().decode(n.data)}}var ey,Ik=a(()=>{E();h();m();ey=new Uint8Array([135,157,66,195,2,113,175,30]);});function _se(){return fixEncoderSize(getBytesEncoder(),8).encode(ry)}function Rd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["pricingModel",J()]]),n=>({...n,discriminator:ry}))}function oy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["pricingModel",Q()]])}function zse(){return combineCodec(Rd(),oy())}async function iy(n,e){let t=e?.programAddress??u,r={treeAuthority:{value:n.treeAuthority??null,isWritable:true},merkleTree:{value:n.merkleTree??null,isWritable:true},userRegistry:{value:n.userRegistry??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},compressionProgram:{value:n.compressionProgram??null,isWritable:false},logWrapper:{value:n.logWrapper??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.treeAuthority.value||(r.treeAuthority.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,116,114,101,101,95,99,111,110,102,105,103])),getAddressEncoder().encode(x(r.signer.value))]})),r.userRegistry.value||(r.userRegistry.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(x(r.signer.value))]})),r.compressionProgram.value||(r.compressionProgram.value="cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"),r.logWrapper.value||(r.logWrapper.value="noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.treeAuthority),i(r.merkleTree),i(r.userRegistry),i(r.signer),i(r.compressionProgram),i(r.logWrapper),i(r.systemProgram),i(r.clock)],data:Rd().encode(c),programAddress:t})}function Ose(n,e){let t=e?.programAddress??u,r={treeAuthority:{value:n.treeAuthority??null,isWritable:true},merkleTree:{value:n.merkleTree??null,isWritable:true},userRegistry:{value:n.userRegistry??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},compressionProgram:{value:n.compressionProgram??null,isWritable:false},logWrapper:{value:n.logWrapper??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.compressionProgram.value||(r.compressionProgram.value="cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"),r.logWrapper.value||(r.logWrapper.value="noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.treeAuthority),i(r.merkleTree),i(r.userRegistry),i(r.signer),i(r.compressionProgram),i(r.logWrapper),i(r.systemProgram),i(r.clock)],data:Rd().encode(c),programAddress:t})}function Fse(n){if(n.accounts.length<8)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{treeAuthority:t(),merkleTree:t(),userRegistry:t(),signer:t(),compressionProgram:t(),logWrapper:t(),systemProgram:t(),clock:t()},data:oy().decode(n.data)}}var ry,wk=a(()=>{E();h();m();ry=new Uint8Array([15,6,94,55,65,80,123,248]);});function Hse(){return fixEncoderSize(getBytesEncoder(),8).encode(sy)}function bd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:sy}))}function ay(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function jse(){return combineCodec(bd(),ay())}async function $se(n,e){let t=e?.programAddress??u,r={reentrancyGuard:{value:n.reentrancyGuard??null,isWritable:true},authority:{value:n.authority??null,isWritable:true}};r.reentrancyGuard.value||(r.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let c=g(t);return Object.freeze({accounts:[c(r.reentrancyGuard),c(r.authority)],data:bd().encode({}),programAddress:t})}function qse(n,e){let t=e?.programAddress??u,r={reentrancyGuard:{value:n.reentrancyGuard??null,isWritable:true},authority:{value:n.authority??null,isWritable:true}},c=g(t);return Object.freeze({accounts:[c(r.reentrancyGuard),c(r.authority)],data:bd().encode({}),programAddress:t})}function Jse(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reentrancyGuard:t(),authority:t()},data:ay().decode(n.data)}}var sy,_k=a(()=>{E();h();sy=new Uint8Array([93,74,168,125,46,153,9,255]);});function oae(){return fixEncoderSize(getBytesEncoder(),8).encode(uy)}function Id(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:uy}))}function gy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function iae(){return combineCodec(Id(),gy())}async function cae(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:false},didController:{value:n.didController??null,isWritable:false}};r.didDocument.value||(r.didDocument.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([100,105,100,95,100,111,99,117,109,101,110,116])),getAddressEncoder().encode(x(r.didController.value))]}));let c=g(t);return Object.freeze({accounts:[c(r.didDocument),c(r.didController)],data:Id().encode({}),programAddress:t})}function sae(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:false},didController:{value:n.didController??null,isWritable:false}},c=g(t);return Object.freeze({accounts:[c(r.didDocument),c(r.didController)],data:Id().encode({}),programAddress:t})}function aae(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{didDocument:t(),didController:t()},data:gy().decode(n.data)}}var uy,Ok=a(()=>{E();h();uy=new Uint8Array([168,180,218,211,184,19,102,12]);});var Lk={};ne(Lk,{REVOKE_AUTHORIZATION_DISCRIMINATOR:()=>vd,getRevokeAuthorizationDiscriminatorBytes:()=>Wk,getRevokeAuthorizationInstruction:()=>Bk,getRevokeAuthorizationInstructionDataCodec:()=>Nk,getRevokeAuthorizationInstructionDataDecoder:()=>kd,getRevokeAuthorizationInstructionDataEncoder:()=>Md,parseRevokeAuthorizationInstruction:()=>Vk});function Wk(){return fixEncoderSize(getBytesEncoder(),8).encode(vd)}function Md(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["nonce",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:vd}))}function kd(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["nonce",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Nk(){return combineCodec(Md(),kd())}function Bk(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:false},authorization:{value:n.authorization??null,isWritable:true},authority:{value:n.authority??null,isWritable:false}},c={...n},i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.authorization),i(r.authority)],data:Md().encode(c),programAddress:t})}function Vk(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agent:t(),authorization:t(),authority:t()},data:kd().decode(n.data)}}var vd,Ay=a(()=>{E();h();vd=new Uint8Array([222,179,207,59,191,78,24,248]);});function vae(){return fixEncoderSize(getBytesEncoder(),8).encode(py)}function ly(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:py}))}function my(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Mae(){return combineCodec(ly(),my())}function kae(n,e){let t=e?.programAddress??u,r={credential:{value:n.credential??null,isWritable:true},issuer:{value:n.issuer??null,isWritable:true}},c=g(t);return Object.freeze({accounts:[c(r.credential),c(r.issuer)],data:ly().encode({}),programAddress:t})}function wae(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credential:t(),issuer:t()},data:my().decode(n.data)}}var py,jk=a(()=>{E();h();py=new Uint8Array([38,123,95,95,223,158,169,87]);});function Kae(){return fixEncoderSize(getBytesEncoder(),8).encode(fy)}function wd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["reason",Qe()],["customAmount",getOptionEncoder(getU64Encoder())]]),n=>({...n,discriminator:fy}))}function Sy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["reason",Xe()],["customAmount",getOptionDecoder(getU64Decoder())]])}function Hae(){return combineCodec(wd(),Sy())}async function jae(n,e){let t=e?.programAddress??u,r={stakingAccount:{value:n.stakingAccount??null,isWritable:true},stakingConfig:{value:n.stakingConfig??null,isWritable:false},stakingVault:{value:n.stakingVault??null,isWritable:true},treasury:{value:n.treasury??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},tokenProgram:{value:n.tokenProgram??null,isWritable:false}},c={...n};r.stakingAccount.value||(r.stakingAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(I(c.owner))]})),r.stakingConfig.value||(r.stakingConfig.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),r.stakingVault.value||(r.stakingVault.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,118,97,117,108,116])),getAddressEncoder().encode(x(r.stakingConfig.value))]})),r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let i=g(t);return Object.freeze({accounts:[i(r.stakingAccount),i(r.stakingConfig),i(r.stakingVault),i(r.treasury),i(r.authority),i(r.tokenProgram)],data:wd().encode(c),programAddress:t})}function $ae(n,e){let t=e?.programAddress??u,r={stakingAccount:{value:n.stakingAccount??null,isWritable:true},stakingConfig:{value:n.stakingConfig??null,isWritable:false},stakingVault:{value:n.stakingVault??null,isWritable:true},treasury:{value:n.treasury??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},tokenProgram:{value:n.tokenProgram??null,isWritable:false}},c={...n};r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let i=g(t);return Object.freeze({accounts:[i(r.stakingAccount),i(r.stakingConfig),i(r.stakingVault),i(r.treasury),i(r.authority),i(r.tokenProgram)],data:wd().encode(c),programAddress:t})}function qae(n){if(n.accounts.length<6)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{stakingAccount:t(),stakingConfig:t(),stakingVault:t(),treasury:t(),authority:t(),tokenProgram:t()},data:Sy().decode(n.data)}}var fy,qk=a(()=>{E();h();m();fy=new Uint8Array([190,242,137,27,41,18,233,37]);});function ide(){return fixEncoderSize(getBytesEncoder(),8).encode(xy)}function _d(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["amount",getU64Encoder()],["lockDuration",getI64Encoder()]]),n=>({...n,discriminator:xy}))}function Dy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["amount",getU64Decoder()],["lockDuration",getI64Decoder()]])}function cde(){return combineCodec(_d(),Dy())}async function Py(n,e){let t=e?.programAddress??u,r={stakingAccount:{value:n.stakingAccount??null,isWritable:true},ownerTokenAccount:{value:n.ownerTokenAccount??null,isWritable:true},stakingVault:{value:n.stakingVault??null,isWritable:true},stakingConfig:{value:n.stakingConfig??null,isWritable:false},ghostMint:{value:n.ghostMint??null,isWritable:false},owner:{value:n.owner??null,isWritable:true},tokenProgram:{value:n.tokenProgram??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false},rent:{value:n.rent??null,isWritable:false}},c={...n};r.stakingAccount.value||(r.stakingAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(x(r.owner.value))]})),r.stakingVault.value||(r.stakingVault.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,118,97,117,108,116])),getAddressEncoder().encode(x(r.stakingConfig.value))]})),r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.rent.value||(r.rent.value="SysvarRent111111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.stakingAccount),i(r.ownerTokenAccount),i(r.stakingVault),i(r.stakingConfig),i(r.ghostMint),i(r.owner),i(r.tokenProgram),i(r.systemProgram),i(r.rent)],data:_d().encode(c),programAddress:t})}function sde(n,e){let t=e?.programAddress??u,r={stakingAccount:{value:n.stakingAccount??null,isWritable:true},ownerTokenAccount:{value:n.ownerTokenAccount??null,isWritable:true},stakingVault:{value:n.stakingVault??null,isWritable:true},stakingConfig:{value:n.stakingConfig??null,isWritable:false},ghostMint:{value:n.ghostMint??null,isWritable:false},owner:{value:n.owner??null,isWritable:true},tokenProgram:{value:n.tokenProgram??null,isWritable:false},systemProgram:{value:n.systemProgram??null,isWritable:false},rent:{value:n.rent??null,isWritable:false}},c={...n};r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.rent.value||(r.rent.value="SysvarRent111111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.stakingAccount),i(r.ownerTokenAccount),i(r.stakingVault),i(r.stakingConfig),i(r.ghostMint),i(r.owner),i(r.tokenProgram),i(r.systemProgram),i(r.rent)],data:_d().encode(c),programAddress:t})}function ade(n){if(n.accounts.length<9)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{stakingAccount:t(),ownerTokenAccount:t(),stakingVault:t(),stakingConfig:t(),ghostMint:t(),owner:t(),tokenProgram:t(),systemProgram:t(),rent:t()},data:Dy().decode(n.data)}}var xy,Zk=a(()=>{E();h();xy=new Uint8Array([5,196,24,54,196,56,173,191]);});function Dde(){return fixEncoderSize(getBytesEncoder(),8).encode(Ey)}function hy(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["deliveryProof",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),n=>({...n,discriminator:Ey}))}function Cy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["deliveryProof",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Pde(){return combineCodec(hy(),Cy())}function Ede(n,e){let t=e?.programAddress??u,r={escrow:{value:n.escrow??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},agentOwner:{value:n.agentOwner??null,isWritable:false}},c={...n},i=g(t);return Object.freeze({accounts:[i(r.escrow),i(r.agent),i(r.agentOwner)],data:hy().encode(c),programAddress:t})}function hde(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{escrow:t(),agent:t(),agentOwner:t()},data:Cy().decode(n.data)}}var Ey,tw=a(()=>{E();h();Ey=new Uint8Array([217,177,33,54,136,185,123,96]);});function Bde(){return fixEncoderSize(getBytesEncoder(),8).encode(by)}function zd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["rating",getU8Encoder()],["paymentSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),n=>({...n,discriminator:by}))}function Iy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["rating",getU8Decoder()],["paymentSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Vde(){return combineCodec(zd(),Iy())}async function Lde(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},client:{value:n.client??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.reputationMetrics.value||(r.reputationMetrics.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,117,116,97,116,105,111,110,95,109,101,116,114,105,99,115])),getAddressEncoder().encode(x(r.agent.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.client),i(r.clock)],data:zd().encode(c),programAddress:t})}function Kde(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},client:{value:n.client??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.client),i(r.clock)],data:zd().encode(c),programAddress:t})}function Hde(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reputationMetrics:t(),agent:t(),client:t(),clock:t()},data:Iy().decode(n.data)}}var by,rw=a(()=>{E();h();by=new Uint8Array([23,160,228,88,168,145,129,19]);});function Zde(){return fixEncoderSize(getBytesEncoder(),8).encode(My)}function Od(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),n=>({...n,discriminator:My}))}function ky(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Yde(){return combineCodec(Od(),ky())}async function wy(n,e){let t=e?.programAddress??u,r={stakingAccount:{value:n.stakingAccount??null,isWritable:true},stakingConfig:{value:n.stakingConfig??null,isWritable:false},stakingVault:{value:n.stakingVault??null,isWritable:true},ownerTokenAccount:{value:n.ownerTokenAccount??null,isWritable:true},owner:{value:n.owner??null,isWritable:true},tokenProgram:{value:n.tokenProgram??null,isWritable:false}};r.stakingAccount.value||(r.stakingAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103])),getAddressEncoder().encode(x(r.owner.value))]})),r.stakingConfig.value||(r.stakingConfig.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,99,111,110,102,105,103]))]})),r.stakingVault.value||(r.stakingVault.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([115,116,97,107,105,110,103,95,118,97,117,108,116])),getAddressEncoder().encode(x(r.stakingConfig.value))]})),r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=g(t);return Object.freeze({accounts:[c(r.stakingAccount),c(r.stakingConfig),c(r.stakingVault),c(r.ownerTokenAccount),c(r.owner),c(r.tokenProgram)],data:Od().encode({}),programAddress:t})}function eue(n,e){let t=e?.programAddress??u,r={stakingAccount:{value:n.stakingAccount??null,isWritable:true},stakingConfig:{value:n.stakingConfig??null,isWritable:false},stakingVault:{value:n.stakingVault??null,isWritable:true},ownerTokenAccount:{value:n.ownerTokenAccount??null,isWritable:true},owner:{value:n.owner??null,isWritable:true},tokenProgram:{value:n.tokenProgram??null,isWritable:false}};r.tokenProgram.value||(r.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let c=g(t);return Object.freeze({accounts:[c(r.stakingAccount),c(r.stakingConfig),c(r.stakingVault),c(r.ownerTokenAccount),c(r.owner),c(r.tokenProgram)],data:Od().encode({}),programAddress:t})}function tue(n){if(n.accounts.length<6)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{stakingAccount:t(),stakingConfig:t(),stakingVault:t(),ownerTokenAccount:t(),owner:t(),tokenProgram:t()},data:ky().decode(n.data)}}var My,cw=a(()=>{E();h();My=new Uint8Array([252,101,172,252,1,4,12,116]);});function Aue(){return fixEncoderSize(getBytesEncoder(),8).encode(Oy)}function Vd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["name",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["description",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["pricingModel",getOptionEncoder(J())]]),n=>({...n,discriminator:Oy}))}function Fy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["name",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["description",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["pricingModel",getOptionDecoder(Q())]])}function pue(){return combineCodec(Vd(),Fy())}async function lue(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agentAccount.value||(r.agentAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.signer.value)),getUtf8Encoder().encode(I(c.agentId))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Vd().encode(c),programAddress:t})}function Gy(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Vd().encode(c),programAddress:t})}function mue(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agentAccount:t(),signer:t(),clock:t()},data:Fy().decode(n.data)}}var Oy,aw=a(()=>{E();h();m();Oy=new Uint8Array([85,2,178,9,119,139,102,164]);});function kue(){return fixEncoderSize(getBytesEncoder(),8).encode(Ny)}function Ld(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["reputationScore",getU64Encoder()]]),n=>({...n,discriminator:Ny}))}function By(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["reputationScore",getU64Decoder()]])}function wue(){return combineCodec(Ld(),By())}async function Uue(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agentAccount.value||(r.agentAccount.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.signer.value)),getUtf8Encoder().encode(I(c.agentId))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Ld().encode(c),programAddress:t})}function _ue(n,e){let t=e?.programAddress??u,r={agentAccount:{value:n.agentAccount??null,isWritable:true},signer:{value:n.signer??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentAccount),i(r.signer),i(r.clock)],data:Ld().encode(c),programAddress:t})}function zue(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agentAccount:t(),signer:t(),clock:t()},data:By().decode(n.data)}}var Ny,gw=a(()=>{E();h();Ny=new Uint8Array([80,227,92,245,231,37,99,180]);});function Zue(){return fixEncoderSize(getBytesEncoder(),8).encode(Jy)}function Kd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["lastUpdated",getI64Encoder()],["metadataUri",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:Jy}))}function Qy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["lastUpdated",getI64Decoder()],["metadataUri",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Yue(){return combineCodec(Kd(),Qy())}async function ege(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:true},owner:{value:n.owner??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.agent.value||(r.agent.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(x(r.owner.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.owner),i(r.systemProgram)],data:Kd().encode(c),programAddress:t})}function tge(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:true},owner:{value:n.owner??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.owner),i(r.systemProgram)],data:Kd().encode(c),programAddress:t})}function nge(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agent:t(),owner:t(),systemProgram:t()},data:Qy().decode(n.data)}}var Jy,lw=a(()=>{E();h();Jy=new Uint8Array([87,146,181,198,252,68,243,102]);});function mge(){return fixEncoderSize(getBytesEncoder(),8).encode(Xy)}function Zy(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["crossmintCredentialId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["status",Ke()]]),n=>({...n,discriminator:Xy}))}function Yy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["crossmintCredentialId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["status",He()]])}function yge(){return combineCodec(Zy(),Yy())}function Tge(n,e){let t=e?.programAddress??u,r={credential:{value:n.credential??null,isWritable:true},issuer:{value:n.issuer??null,isWritable:true}},c={...n},i=g(t);return Object.freeze({accounts:[i(r.credential),i(r.issuer)],data:Zy().encode(c),programAddress:t})}function fge(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{credential:t(),issuer:t()},data:Yy().decode(n.data)}}var Xy,Tw=a(()=>{E();h();m();Xy=new Uint8Array([22,167,59,238,22,231,239,146]);});function bge(){return fixEncoderSize(getBytesEncoder(),8).encode(tT)}function $d(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["addVerificationMethod",getOptionEncoder(Te())],["removeVerificationMethodId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["addServiceEndpoint",getOptionEncoder(me())],["removeServiceEndpointId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:tT}))}function nT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["addVerificationMethod",getOptionDecoder(fe())],["removeVerificationMethodId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["addServiceEndpoint",getOptionDecoder(ye())],["removeServiceEndpointId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Ige(){return combineCodec($d(),nT())}async function vge(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:true},controller:{value:n.controller??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.didDocument.value||(r.didDocument.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([100,105,100,95,100,111,99,117,109,101,110,116])),getAddressEncoder().encode(x(r.controller.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.didDocument),i(r.controller),i(r.clock)],data:$d().encode(c),programAddress:t})}function Mge(n,e){let t=e?.programAddress??u,r={didDocument:{value:n.didDocument??null,isWritable:true},controller:{value:n.controller??null,isWritable:true},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.didDocument),i(r.controller),i(r.clock)],data:$d().encode(c),programAddress:t})}function kge(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{didDocument:t(),controller:t(),clock:t()},data:nT().decode(n.data)}}var tT,Cw=a(()=>{E();h();m();tT=new Uint8Array([64,216,17,91,205,94,45,57]);});function Bge(){return fixEncoderSize(getBytesEncoder(),8).encode(cT)}function qd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["escrowFeeBps",getOptionEncoder(getU16Encoder())],["agentRegistrationFee",getOptionEncoder(getU64Encoder())],["listingFee",getOptionEncoder(getU64Encoder())],["disputeFeeBps",getOptionEncoder(getU16Encoder())],["feesEnabled",getOptionEncoder(getBooleanEncoder())],["treasury",getOptionEncoder(getAddressEncoder())],["buybackPool",getOptionEncoder(getAddressEncoder())],["moderatorPool",getOptionEncoder(getAddressEncoder())]]),n=>({...n,discriminator:cT}))}function sT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["escrowFeeBps",getOptionDecoder(getU16Decoder())],["agentRegistrationFee",getOptionDecoder(getU64Decoder())],["listingFee",getOptionDecoder(getU64Decoder())],["disputeFeeBps",getOptionDecoder(getU16Decoder())],["feesEnabled",getOptionDecoder(getBooleanDecoder())],["treasury",getOptionDecoder(getAddressDecoder())],["buybackPool",getOptionDecoder(getAddressDecoder())],["moderatorPool",getOptionDecoder(getAddressDecoder())]])}function Vge(){return combineCodec(qd(),sT())}async function Lge(n,e){let t=e?.programAddress??u,r={config:{value:n.config??null,isWritable:true},authority:{value:n.authority??null,isWritable:false}},c={...n};r.config.value||(r.config.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([112,114,111,116,111,99,111,108,95,99,111,110,102,105,103]))]}));let i=g(t);return Object.freeze({accounts:[i(r.config),i(r.authority)],data:qd().encode(c),programAddress:t})}function Kge(n,e){let t=e?.programAddress??u,r={config:{value:n.config??null,isWritable:true},authority:{value:n.authority??null,isWritable:false}},c={...n},i=g(t);return Object.freeze({accounts:[i(r.config),i(r.authority)],data:qd().encode(c),programAddress:t})}function Hge(n){if(n.accounts.length<2)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{config:t(),authority:t()},data:sT().decode(n.data)}}var cT,kw=a(()=>{E();h();cT=new Uint8Array([197,97,123,54,221,168,11,135]);});function eAe(){return fixEncoderSize(getBytesEncoder(),8).encode(mT)}function Xd(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["skillTags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["behaviorTags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["complianceTags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tagScores",getArrayEncoder(at())]]),n=>({...n,discriminator:mT}))}function yT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["skillTags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["behaviorTags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["complianceTags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tagScores",getArrayDecoder(dt())]])}function tAe(){return combineCodec(Xd(),yT())}async function nAe(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.reputationMetrics.value||(r.reputationMetrics.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,117,116,97,116,105,111,110,95,109,101,116,114,105,99,115])),getAddressEncoder().encode(x(r.agent.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.authority),i(r.clock)],data:Xd().encode(c),programAddress:t})}function rAe(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.authority),i(r.clock)],data:Xd().encode(c),programAddress:t})}function oAe(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reputationMetrics:t(),agent:t(),authority:t(),clock:t()},data:yT().decode(n.data)}}var mT,Uw=a(()=>{E();h();m();mT=new Uint8Array([206,96,254,186,129,180,103,198]);});var Vw={};ne(Vw,{UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR:()=>nu,getUpdateReputationWithAuthDiscriminatorBytes:()=>Fw,getUpdateReputationWithAuthInstruction:()=>Nw,getUpdateReputationWithAuthInstructionAsync:()=>Ww,getUpdateReputationWithAuthInstructionDataCodec:()=>Gw,getUpdateReputationWithAuthInstructionDataDecoder:()=>ru,getUpdateReputationWithAuthInstructionDataEncoder:()=>Jt,parseUpdateReputationWithAuthInstruction:()=>Bw});function Fw(){return fixEncoderSize(getBytesEncoder(),8).encode(nu)}function Jt(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reputationChange",getI64Encoder()],["transactionSignature",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["nonce",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:nu}))}function ru(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reputationChange",getI64Decoder()],["transactionSignature",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["nonce",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Gw(){return combineCodec(Jt(),ru())}async function Ww(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:false},reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},authorization:{value:n.authorization??null,isWritable:true},usageRecord:{value:n.usageRecord??null,isWritable:true},authorizedSource:{value:n.authorizedSource??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.reputationMetrics.value||(r.reputationMetrics.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,117,116,97,116,105,111,110,95,109,101,116,114,105,99,115])),getAddressEncoder().encode(x(r.agent.value))]})),r.authorization.value||(r.authorization.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,97,117,116,104])),getAddressEncoder().encode(x(r.agent.value)),getAddressEncoder().encode(x(r.authorizedSource.value)),getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())).encode(I(c.nonce))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.reputationMetrics),i(r.authorization),i(r.usageRecord),i(r.authorizedSource),i(r.systemProgram),i(r.clock)],data:Jt().encode(c),programAddress:t})}function Nw(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:false},reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},authorization:{value:n.authorization??null,isWritable:true},usageRecord:{value:n.usageRecord??null,isWritable:true},authorizedSource:{value:n.authorizedSource??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.reputationMetrics),i(r.authorization),i(r.usageRecord),i(r.authorizedSource),i(r.systemProgram),i(r.clock)],data:Jt().encode(c),programAddress:t})}function Bw(n){if(n.accounts.length<7)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agent:t(),reputationMetrics:t(),authorization:t(),usageRecord:t(),authorizedSource:t(),systemProgram:t(),clock:t()},data:ru().decode(n.data)}}var nu,PT=a(()=>{E();h();nu=new Uint8Array([61,236,225,167,134,43,53,93]);});function CAe(){return fixEncoderSize(getBytesEncoder(),8).encode(RT)}function ou(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sourceName",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["score",getU16Encoder()],["weight",getU16Encoder()],["dataPoints",getU32Encoder()],["reliability",getU16Encoder()]]),n=>({...n,discriminator:RT}))}function bT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sourceName",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["score",getU16Decoder()],["weight",getU16Decoder()],["dataPoints",getU32Decoder()],["reliability",getU16Decoder()]])}function RAe(){return combineCodec(ou(),bT())}async function bAe(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.reputationMetrics.value||(r.reputationMetrics.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,117,116,97,116,105,111,110,95,109,101,116,114,105,99,115])),getAddressEncoder().encode(x(r.agent.value))]})),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.authority),i(r.clock)],data:ou().encode(c),programAddress:t})}function IAe(n,e){let t=e?.programAddress??u,r={reputationMetrics:{value:n.reputationMetrics??null,isWritable:true},agent:{value:n.agent??null,isWritable:true},authority:{value:n.authority??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.reputationMetrics),i(r.agent),i(r.authority),i(r.clock)],data:ou().encode(c),programAddress:t})}function vAe(n){if(n.accounts.length<4)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{reputationMetrics:t(),agent:t(),authority:t(),clock:t()},data:bT().decode(n.data)}}var RT,jw=a(()=>{E();h();RT=new Uint8Array([161,240,255,69,130,227,71,123]);});function QAe(){return fixEncoderSize(getBytesEncoder(),8).encode(MT)}function iu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedCapabilities",getArrayEncoder(getU64Encoder())],["verifiedAt",getI64Encoder()]]),n=>({...n,discriminator:MT}))}function kT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedCapabilities",getArrayDecoder(getU64Decoder())],["verifiedAt",getI64Decoder()]])}function XAe(){return combineCodec(iu(),kT())}async function wT(n,e){let t=e?.programAddress??u,r={agentVerification:{value:n.agentVerification??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},verifier:{value:n.verifier??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.agentVerification.value||(r.agentVerification.value=await getProgramDerivedAddress({programAddress:t,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,118,101,114,105,102,105,99,97,116,105,111,110])),getAddressEncoder().encode(x(r.agent.value)),getAddressEncoder().encode(x(r.verifier.value))]})),r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentVerification),i(r.agent),i(r.verifier),i(r.systemProgram),i(r.clock)],data:iu().encode(c),programAddress:t})}function ZAe(n,e){let t=e?.programAddress??u,r={agentVerification:{value:n.agentVerification??null,isWritable:true},agent:{value:n.agent??null,isWritable:false},verifier:{value:n.verifier??null,isWritable:true},systemProgram:{value:n.systemProgram??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.systemProgram.value||(r.systemProgram.value="11111111111111111111111111111111"),r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agentVerification),i(r.agent),i(r.verifier),i(r.systemProgram),i(r.clock)],data:iu().encode(c),programAddress:t})}function YAe(n){if(n.accounts.length<5)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agentVerification:t(),agent:t(),verifier:t(),systemProgram:t(),clock:t()},data:kT().decode(n.data)}}var MT,qw=a(()=>{E();h();MT=new Uint8Array([206,212,108,12,105,61,100,66]);});function lpe(){return fixEncoderSize(getBytesEncoder(),8).encode(UT)}function _T(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["nonce",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),n=>({...n,discriminator:UT}))}function zT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["nonce",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function mpe(){return combineCodec(_T(),zT())}function ype(n,e){let t=e?.programAddress??u,r={agent:{value:n.agent??null,isWritable:false},authorization:{value:n.authorization??null,isWritable:false},clock:{value:n.clock??null,isWritable:false}},c={...n};r.clock.value||(r.clock.value="SysvarC1ock11111111111111111111111111111111");let i=g(t);return Object.freeze({accounts:[i(r.agent),i(r.authorization),i(r.clock)],data:_T().encode(c),programAddress:t})}function Tpe(n){if(n.accounts.length<3)throw new Error("Not enough accounts");let e=0,t=()=>{let o=n.accounts[e];return e+=1,o};return {programAddress:n.programAddress,accounts:{agent:t(),authorization:t(),clock:t()},data:zT().decode(n.data)}}var UT,Xw=a(()=>{E();h();UT=new Uint8Array([43,9,131,59,74,118,113,170]);});var Zw=a(()=>{Bv();Kv();$v();Rm();sM();dM();pM();yM();xM();EM();RM();vM();kM();UM();OM();BM();LM();ZM();ek();nk();ok();ck();ak();fk();xk();hk();Ik();wk();_k();Ok();Ay();jk();qk();Zk();tw();rw();cw();aw();gw();lw();Tw();Cw();kw();Uw();PT();jw();qw();Xw();});var cu={};ne(cu,{ACTIVATE_AGENT_DISCRIMINATOR:()=>mm,AGENT_DISCRIMINATOR:()=>ZA,AGENT_REPUTATION_AUTH_DISCRIMINATOR:()=>rp,AGENT_TREE_CONFIG_DISCRIMINATOR:()=>cp,AGENT_VERIFICATION_DISCRIMINATOR:()=>dp,APPROVE_DELIVERY_DISCRIMINATOR:()=>fm,ARBITRATE_DISPUTE_DISCRIMINATOR:()=>Dm,AUDIT_TRAIL_DISCRIMINATOR:()=>lp,AUTHORIZATION_USAGE_RECORD_DISCRIMINATOR:()=>Sp,AccessTier:()=>Cn,ActionType:()=>Ff,ActivationRequirementType:()=>_n,AuditAction:()=>Jn,AuthenticationLevel:()=>cr,AuthenticationMethod:()=>dr,BackupFrequency:()=>Pr,BiometricStorageMethod:()=>vr,BiometricType:()=>Mr,COMPLIANCE_REPORT_DISCRIMINATOR:()=>Rp,CREATE_AGENT_AUTHORIZATION_DISCRIMINATOR:()=>Va,CREATE_CREDENTIAL_TEMPLATE_DISCRIMINATOR:()=>Um,CREATE_CREDENTIAL_TYPE_DISCRIMINATOR:()=>Bm,CREATE_DID_DOCUMENT_DISCRIMINATOR:()=>Km,CREATE_ESCROW_DISCRIMINATOR:()=>qm,CREATE_MULTISIG_DISCRIMINATOR:()=>Xm,CREDENTIAL_DISCRIMINATOR:()=>Wp,CREDENTIAL_TEMPLATE_DISCRIMINATOR:()=>qp,CREDENTIAL_TYPE_DISCRIMINATOR:()=>rl,ConditionType:()=>Fr,ConstraintOperator:()=>Kr,CredentialKind:()=>Hr,CredentialStatus:()=>jr,CrossChainStatus:()=>Jr,DEACTIVATE_AGENT_DISCRIMINATOR:()=>e1,DEACTIVATE_CREDENTIAL_TEMPLATE_DISCRIMINATOR:()=>r1,DEACTIVATE_CREDENTIAL_TYPE_DISCRIMINATOR:()=>c1,DEACTIVATE_DID_DOCUMENT_DISCRIMINATOR:()=>u1,DID_DOCUMENT_DISCRIMINATOR:()=>Al,DataAccessLevel:()=>Qr,DegradationHandling:()=>to,ENABLE_PROTOCOL_FEES_DISCRIMINATOR:()=>p1,EnforcementLevel:()=>go,EscrowStatus:()=>Ao,FILE_DISPUTE_DISCRIMINATOR:()=>m1,GENERATE_COMPLIANCE_REPORT_DISCRIMINATOR:()=>S1,GHOSTSPEAK_MARKETPLACE_ERROR__ALREADY_DEACTIVATED:()=>Cv,GHOSTSPEAK_MARKETPLACE_ERROR__DID_DEACTIVATED:()=>_v,GHOSTSPEAK_MARKETPLACE_ERROR__DUPLICATE_METHOD_ID:()=>Iv,GHOSTSPEAK_MARKETPLACE_ERROR__DUPLICATE_SERVICE_ID:()=>vv,GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DID_FORMAT:()=>wv,GHOSTSPEAK_MARKETPLACE_ERROR__METHOD_NOT_FOUND:()=>Mv,GHOSTSPEAK_MARKETPLACE_ERROR__SERVICE_NOT_FOUND:()=>kv,GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_SERVICE_ENDPOINTS:()=>bv,GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_VERIFICATION_METHODS:()=>Rv,GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_DID_OPERATION:()=>Uv,GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS:()=>u,GHOST_PROTECT_ESCROW_DISCRIMINATOR:()=>Cl,GOVERNANCE_PROPOSAL_DISCRIMINATOR:()=>Ml,GhostspeakMarketplaceAccount:()=>Pv,GhostspeakMarketplaceInstruction:()=>Ev,INITIALIZE_AUDIT_TRAIL_DISCRIMINATOR:()=>P1,INITIALIZE_GOVERNANCE_PROPOSAL_DISCRIMINATOR:()=>C1,INITIALIZE_PROTOCOL_CONFIG_DISCRIMINATOR:()=>I1,INITIALIZE_RBAC_CONFIG_DISCRIMINATOR:()=>k1,INITIALIZE_REPUTATION_METRICS_DISCRIMINATOR:()=>_1,INITIALIZE_STAKING_CONFIG_DISCRIMINATOR:()=>F1,INIT_REENTRANCY_GUARD_DISCRIMINATOR:()=>B1,ISSUE_CREDENTIAL_DISCRIMINATOR:()=>j1,MANAGE_AGENT_STATUS_DISCRIMINATOR:()=>J1,MULTISIG_DISCRIMINATOR:()=>zl,MultisigType:()=>Fo,NotificationMethod:()=>Vo,NotificationPriority:()=>Ho,NotificationTargetType:()=>ni,NotificationTiming:()=>ri,PROTOCOL_CONFIG_DISCRIMINATOR:()=>Nl,PermissionConstraintType:()=>Mi,PolicyStatus:()=>$i,PolicyType:()=>qi,PricingModel:()=>Dt,ProposalStatus:()=>tc,ProposalType:()=>Pt,QuorumMethod:()=>oc,RBAC_CONFIG_DISCRIMINATOR:()=>$l,RECORD_PAYAI_PAYMENT_DISCRIMINATOR:()=>Z1,REENTRANCY_GUARD_DISCRIMINATOR:()=>Ql,REGISTER_AGENT_COMPRESSED_DISCRIMINATOR:()=>ry,REGISTER_AGENT_DISCRIMINATOR:()=>ey,REPUTATION_METRICS_DISCRIMINATOR:()=>Yl,RESET_REENTRANCY_GUARD_DISCRIMINATOR:()=>sy,RESOLVE_DID_DOCUMENT_DISCRIMINATOR:()=>uy,REVOKE_AUTHORIZATION_DISCRIMINATOR:()=>vd,REVOKE_CREDENTIAL_DISCRIMINATOR:()=>py,ReentrancyState:()=>dc,ReportStatus:()=>Dc,ReportType:()=>hc,ReportingFrequency:()=>xc,RiskCategory:()=>Fc,RiskLevel:()=>Kc,RoleStatus:()=>ds,RoleType:()=>us,RuleEffect:()=>gs,SLASH_STAKE_DISCRIMINATOR:()=>fy,STAKE_GHOST_DISCRIMINATOR:()=>xy,STAKING_ACCOUNT_DISCRIMINATOR:()=>om,STAKING_CONFIG_DISCRIMINATOR:()=>sm,SUBMIT_DELIVERY_DISCRIMINATOR:()=>Ey,SUBMIT_SERVICE_RATING_DISCRIMINATOR:()=>by,ScopeInheritance:()=>fs,ScopeType:()=>Ss,SecurityEventType:()=>xs,ServiceEndpointType:()=>bs,SlashReason:()=>Is,SodConstraintType:()=>ks,StepUpTrigger:()=>_s,TimeLockType:()=>Ws,TransactionPriority:()=>Ns,TransactionStatus:()=>Bs,TransactionType:()=>Vs,TrendDirection:()=>Ls,UNSTAKE_GHOST_DISCRIMINATOR:()=>My,UPDATE_AGENT_DISCRIMINATOR:()=>Oy,UPDATE_AGENT_REPUTATION_DISCRIMINATOR:()=>Ny,UPDATE_AGENT_SERVICE_DISCRIMINATOR:()=>Jy,UPDATE_CROSSCHAIN_STATUS_DISCRIMINATOR:()=>Xy,UPDATE_DID_DOCUMENT_DISCRIMINATOR:()=>tT,UPDATE_PROTOCOL_CONFIG_DISCRIMINATOR:()=>cT,UPDATE_REPUTATION_TAGS_DISCRIMINATOR:()=>mT,UPDATE_REPUTATION_WITH_AUTH_DISCRIMINATOR:()=>nu,UPDATE_SOURCE_REPUTATION_DISCRIMINATOR:()=>RT,USER_REGISTRY_DISCRIMINATOR:()=>um,UnlockMethod:()=>Ks,VERIFY_AGENT_DISCRIMINATOR:()=>MT,VERIFY_AUTHORIZATION_DISCRIMINATOR:()=>UT,ValueType:()=>Hs,VerificationMethodType:()=>Qs,VerificationRelationship:()=>Xs,ViolationSeverity:()=>Zs,VoteChoice:()=>ra,arbitratorDecision:()=>xz,decodeAgent:()=>ep,decodeAgentReputationAuth:()=>ip,decodeAgentTreeConfig:()=>ap,decodeAgentVerification:()=>gp,decodeAuditTrail:()=>yp,decodeAuthorizationUsageRecord:()=>Dp,decodeComplianceReport:()=>Ip,decodeCredential:()=>Bp,decodeCredentialTemplate:()=>Qp,decodeCredentialType:()=>il,decodeDidDocument:()=>ll,decodeGhostProtectEscrow:()=>bl,decodeGovernanceProposal:()=>wl,decodeMultisig:()=>Fl,decodeProtocolConfig:()=>Vl,decodeRbacConfig:()=>Jl,decodeReentrancyGuard:()=>Zl,decodeReputationMetrics:()=>tm,decodeStakingAccount:()=>cm,decodeStakingConfig:()=>dm,decodeUserRegistry:()=>Am,delegationScope:()=>lG,fetchAgent:()=>Uj,fetchAgentReputationAuth:()=>e$,fetchAgentTreeConfig:()=>S$,fetchAgentVerification:()=>W$,fetchAllAgent:()=>_j,fetchAllAgentReputationAuth:()=>t$,fetchAllAgentTreeConfig:()=>x$,fetchAllAgentVerification:()=>N$,fetchAllAuditTrail:()=>iq,fetchAllAuthorizationUsageRecord:()=>Rq,fetchAllComplianceReport:()=>Lq,fetchAllCredential:()=>oJ,fetchAllCredentialTemplate:()=>vJ,fetchAllCredentialType:()=>eQ,fetchAllDidDocument:()=>EQ,fetchAllGhostProtectEscrow:()=>NQ,fetchAllGovernanceProposal:()=>iX,fetchAllMaybeAgent:()=>gR,fetchAllMaybeAgentReputationAuth:()=>CR,fetchAllMaybeAgentTreeConfig:()=>UR,fetchAllMaybeAgentVerification:()=>LR,fetchAllMaybeAuditTrail:()=>XR,fetchAllMaybeAuthorizationUsageRecord:()=>gb,fetchAllMaybeComplianceReport:()=>mb,fetchAllMaybeCredential:()=>Sb,fetchAllMaybeCredentialTemplate:()=>bb,fetchAllMaybeCredentialType:()=>Ub,fetchAllMaybeDidDocument:()=>Wb,fetchAllMaybeGhostProtectEscrow:()=>$b,fetchAllMaybeGovernanceProposal:()=>iI,fetchAllMaybeMultisig:()=>SI,fetchAllMaybeProtocolConfig:()=>vI,fetchAllMaybeRbacConfig:()=>FI,fetchAllMaybeReentrancyGuard:()=>LI,fetchAllMaybeReputationMetrics:()=>JI,fetchAllMaybeStakingAccount:()=>rv,fetchAllMaybeStakingConfig:()=>pv,fetchAllMaybeUserRegistry:()=>Sv,fetchAllMultisig:()=>xX,fetchAllProtocolConfig:()=>WX,fetchAllRbacConfig:()=>rZ,fetchAllReentrancyGuard:()=>RZ,fetchAllReputationMetrics:()=>jZ,fetchAllStakingAccount:()=>mY,fetchAllStakingConfig:()=>FY,fetchAllUserRegistry:()=>see,fetchAuditTrail:()=>oq,fetchAuthorizationUsageRecord:()=>Cq,fetchComplianceReport:()=>Vq,fetchCredential:()=>rJ,fetchCredentialTemplate:()=>IJ,fetchCredentialType:()=>YJ,fetchDidDocument:()=>PQ,fetchGhostProtectEscrow:()=>WQ,fetchGovernanceProposal:()=>oX,fetchMaybeAgent:()=>uR,fetchMaybeAgentReputationAuth:()=>hR,fetchMaybeAgentTreeConfig:()=>wR,fetchMaybeAgentVerification:()=>VR,fetchMaybeAuditTrail:()=>QR,fetchMaybeAuthorizationUsageRecord:()=>ub,fetchMaybeComplianceReport:()=>lb,fetchMaybeCredential:()=>fb,fetchMaybeCredentialTemplate:()=>Rb,fetchMaybeCredentialType:()=>wb,fetchMaybeDidDocument:()=>Gb,fetchMaybeGhostProtectEscrow:()=>jb,fetchMaybeGovernanceProposal:()=>oI,fetchMaybeMultisig:()=>fI,fetchMaybeProtocolConfig:()=>II,fetchMaybeRbacConfig:()=>OI,fetchMaybeReentrancyGuard:()=>VI,fetchMaybeReputationMetrics:()=>qI,fetchMaybeStakingAccount:()=>nv,fetchMaybeStakingConfig:()=>Av,fetchMaybeUserRegistry:()=>fv,fetchMultisig:()=>SX,fetchProtocolConfig:()=>GX,fetchRbacConfig:()=>nZ,fetchReentrancyGuard:()=>CZ,fetchReputationMetrics:()=>HZ,fetchStakingAccount:()=>lY,fetchStakingConfig:()=>OY,fetchUserRegistry:()=>cee,getAccessAuditConfigCodec:()=>W0,getAccessAuditConfigDecoder:()=>An,getAccessAuditConfigEncoder:()=>gn,getAccessPolicyCodec:()=>J0,getAccessPolicyDecoder:()=>ln,getAccessPolicyEncoder:()=>pn,getAccessTierCodec:()=>Y0,getAccessTierDecoder:()=>L,getAccessTierEncoder:()=>V,getAccountLockoutPoliciesCodec:()=>dU,getAccountLockoutPoliciesDecoder:()=>bn,getAccountLockoutPoliciesEncoder:()=>Rn,getActionCodec:()=>kU,getActionConstraintCodec:()=>zU,getActionConstraintDecoder:()=>Gn,getActionConstraintEncoder:()=>Fn,getActionDecoder:()=>On,getActionEncoder:()=>zn,getActionTypeCodec:()=>WU,getActionTypeDecoder:()=>Nn,getActionTypeEncoder:()=>Wn,getActivateAgentDiscriminatorBytes:()=>vee,getActivateAgentInstruction:()=>Tm,getActivateAgentInstructionAsync:()=>kee,getActivateAgentInstructionDataCodec:()=>Mee,getActivateAgentInstructionDataDecoder:()=>ym,getActivateAgentInstructionDataEncoder:()=>Na,getActivationRequirementCodec:()=>CU,getActivationRequirementDecoder:()=>kn,getActivationRequirementEncoder:()=>Mn,getActivationRequirementTypeCodec:()=>vU,getActivationRequirementTypeDecoder:()=>Un,getActivationRequirementTypeEncoder:()=>wn,getAgentCodec:()=>wj,getAgentDecoder:()=>YA,getAgentDiscriminatorBytes:()=>kj,getAgentEncoder:()=>dR,getAgentRegisteredEventCodec:()=>XU,getAgentRegisteredEventDecoder:()=>Vf,getAgentRegisteredEventEncoder:()=>Bf,getAgentReputationAuthCodec:()=>Yj,getAgentReputationAuthDecoder:()=>op,getAgentReputationAuthDiscriminatorBytes:()=>Zj,getAgentReputationAuthEncoder:()=>ER,getAgentServiceUpdatedEventCodec:()=>g_,getAgentServiceUpdatedEventDecoder:()=>$f,getAgentServiceUpdatedEventEncoder:()=>jf,getAgentStatusChangedEventCodec:()=>T_,getAgentStatusChangedEventDecoder:()=>eS,getAgentStatusChangedEventEncoder:()=>Yf,getAgentTreeConfigCodec:()=>f$,getAgentTreeConfigDecoder:()=>sp,getAgentTreeConfigDiscriminatorBytes:()=>T$,getAgentTreeConfigEncoder:()=>kR,getAgentTreeConfigSize:()=>D$,getAgentUpdatedEventCodec:()=>E_,getAgentUpdatedEventDecoder:()=>iS,getAgentUpdatedEventEncoder:()=>oS,getAgentVerificationCodec:()=>G$,getAgentVerificationDataCodec:()=>B_,getAgentVerificationDataDecoder:()=>Vn,getAgentVerificationDataEncoder:()=>Bn,getAgentVerificationDecoder:()=>up,getAgentVerificationDiscriminatorBytes:()=>F$,getAgentVerificationEncoder:()=>BR,getAgingPolicyCodec:()=>tz,getAgingPolicyDecoder:()=>Kn,getAgingPolicyEncoder:()=>Ln,getApprovalLevelCodec:()=>pz,getApprovalLevelDecoder:()=>qn,getApprovalLevelEncoder:()=>$n,getApproveDeliveryDiscriminatorBytes:()=>Wee,getApproveDeliveryInstruction:()=>Bee,getApproveDeliveryInstructionDataCodec:()=>Nee,getApproveDeliveryInstructionDataDecoder:()=>xm,getApproveDeliveryInstructionDataEncoder:()=>Sm,getArbitrateDisputeDiscriminatorBytes:()=>Jee,getArbitrateDisputeInstruction:()=>Xee,getArbitrateDisputeInstructionDataCodec:()=>Qee,getArbitrateDisputeInstructionDataDecoder:()=>Em,getArbitrateDisputeInstructionDataEncoder:()=>Pm,getArbitratorDecisionCodec:()=>Sz,getArbitratorDecisionDecoder:()=>oe,getArbitratorDecisionEncoder:()=>re,getAuditActionCodec:()=>Cz,getAuditActionDecoder:()=>ze,getAuditActionEncoder:()=>_e,getAuditConfigCodec:()=>zz,getAuditConfigDecoder:()=>Fe,getAuditConfigEncoder:()=>Oe,getAuditContextCodec:()=>Hz,getAuditContextDecoder:()=>tr,getAuditContextEncoder:()=>er,getAuditEntryCodec:()=>Yz,getAuditEntryDecoder:()=>rr,getAuditEntryEncoder:()=>nr,getAuditTrailCodec:()=>rq,getAuditTrailDecoder:()=>mp,getAuditTrailDiscriminatorBytes:()=>nq,getAuditTrailEncoder:()=>JR,getAuditTrailInitializedEventCodec:()=>pO,getAuditTrailInitializedEventDecoder:()=>hS,getAuditTrailInitializedEventEncoder:()=>ES,getAuthenticationLevelCodec:()=>TO,getAuthenticationLevelDecoder:()=>ar,getAuthenticationLevelEncoder:()=>sr,getAuthenticationMethodCodec:()=>DO,getAuthenticationMethodDecoder:()=>gr,getAuthenticationMethodEncoder:()=>ur,getAuthenticationPoliciesCodec:()=>kO,getAuthenticationPoliciesDecoder:()=>pr,getAuthenticationPoliciesEncoder:()=>Ar,getAuthenticationStrengthCodec:()=>FO,getAuthenticationStrengthDecoder:()=>mr,getAuthenticationStrengthEncoder:()=>lr,getAuthorizationPoliciesCodec:()=>BO,getAuthorizationPoliciesDecoder:()=>Dr,getAuthorizationPoliciesEncoder:()=>xr,getAuthorizationUsageRecordCodec:()=>hq,getAuthorizationUsageRecordDecoder:()=>xp,getAuthorizationUsageRecordDiscriminatorBytes:()=>Eq,getAuthorizationUsageRecordEncoder:()=>db,getBackupFrequencyCodec:()=>HO,getBackupFrequencyDecoder:()=>Xn,getBackupFrequencyEncoder:()=>Qn,getBiometricPoliciesCodec:()=>YO,getBiometricPoliciesDecoder:()=>Tr,getBiometricPoliciesEncoder:()=>yr,getBiometricProtectionCodec:()=>i8,getBiometricProtectionDecoder:()=>hr,getBiometricProtectionEncoder:()=>Er,getBiometricQualityCodec:()=>S8,getBiometricQualityDecoder:()=>Rr,getBiometricQualityEncoder:()=>Cr,getBiometricStorageMethodCodec:()=>d8,getBiometricStorageMethodDecoder:()=>Ir,getBiometricStorageMethodEncoder:()=>br,getBiometricTypeCodec:()=>p8,getBiometricTypeDecoder:()=>Ue,getBiometricTypeEncoder:()=>we,getComplianceFlagsCodec:()=>k8,getComplianceFlagsDecoder:()=>ir,getComplianceFlagsEncoder:()=>or,getComplianceMetricsCodec:()=>F8,getComplianceMetricsDecoder:()=>wr,getComplianceMetricsEncoder:()=>kr,getCompliancePoliciesCodec:()=>B8,getCompliancePoliciesDecoder:()=>_r,getCompliancePoliciesEncoder:()=>Ur,getComplianceReportCodec:()=>Bq,getComplianceReportDecoder:()=>bp,getComplianceReportDiscriminatorBytes:()=>Nq,getComplianceReportEncoder:()=>pb,getComplianceReportGeneratedEventCodec:()=>rF,getComplianceReportGeneratedEventDecoder:()=>ox,getComplianceReportGeneratedEventEncoder:()=>rx,getComplianceStatusCodec:()=>X8,getComplianceStatusDecoder:()=>Or,getComplianceStatusEncoder:()=>zr,getCompressedAgentCreatedEventCodec:()=>mF,getCompressedAgentCreatedEventDecoder:()=>px,getCompressedAgentCreatedEventEncoder:()=>Ax,getConditionTypeCodec:()=>SF,getConditionTypeDecoder:()=>Be,getConditionTypeEncoder:()=>Ne,getConstraintConditionCodec:()=>EF,getConstraintConditionDecoder:()=>Wr,getConstraintConditionEncoder:()=>Gr,getConstraintOperatorCodec:()=>bF,getConstraintOperatorDecoder:()=>Br,getConstraintOperatorEncoder:()=>Nr,getCreateAgentAuthorizationDiscriminatorBytes:()=>eM,getCreateAgentAuthorizationInstruction:()=>rM,getCreateAgentAuthorizationInstructionAsync:()=>nM,getCreateAgentAuthorizationInstructionDataCodec:()=>tM,getCreateAgentAuthorizationInstructionDataDecoder:()=>La,getCreateAgentAuthorizationInstructionDataEncoder:()=>Lt,getCreateCredentialTemplateDiscriminatorBytes:()=>Cte,getCreateCredentialTemplateInstruction:()=>Ite,getCreateCredentialTemplateInstructionAsync:()=>bte,getCreateCredentialTemplateInstructionDataCodec:()=>Rte,getCreateCredentialTemplateInstructionDataDecoder:()=>_m,getCreateCredentialTemplateInstructionDataEncoder:()=>Ha,getCreateCredentialTypeDiscriminatorBytes:()=>Fte,getCreateCredentialTypeInstruction:()=>Nte,getCreateCredentialTypeInstructionAsync:()=>Wte,getCreateCredentialTypeInstructionDataCodec:()=>Gte,getCreateCredentialTypeInstructionDataDecoder:()=>Vm,getCreateCredentialTypeInstructionDataEncoder:()=>$a,getCreateDidDocumentDiscriminatorBytes:()=>nne,getCreateDidDocumentInstruction:()=>ine,getCreateDidDocumentInstructionAsync:()=>one,getCreateDidDocumentInstructionDataCodec:()=>rne,getCreateDidDocumentInstructionDataDecoder:()=>Hm,getCreateDidDocumentInstructionDataEncoder:()=>qa,getCreateEscrowDiscriminatorBytes:()=>Ene,getCreateEscrowInstruction:()=>Rne,getCreateEscrowInstructionAsync:()=>Cne,getCreateEscrowInstructionDataCodec:()=>hne,getCreateEscrowInstructionDataDecoder:()=>Jm,getCreateEscrowInstructionDataEncoder:()=>Ja,getCreateMultisigDiscriminatorBytes:()=>Bne,getCreateMultisigInstruction:()=>Kne,getCreateMultisigInstructionAsync:()=>Lne,getCreateMultisigInstructionDataCodec:()=>Vne,getCreateMultisigInstructionDataDecoder:()=>Zm,getCreateMultisigInstructionDataEncoder:()=>Qa,getCredentialCodec:()=>nJ,getCredentialDecoder:()=>Np,getCredentialDiscriminatorBytes:()=>tJ,getCredentialEncoder:()=>Tb,getCredentialKindCodec:()=>kF,getCredentialKindDecoder:()=>Le,getCredentialKindEncoder:()=>Ve,getCredentialStatusCodec:()=>zF,getCredentialStatusDecoder:()=>qr,getCredentialStatusEncoder:()=>$r,getCredentialTemplateCodec:()=>bJ,getCredentialTemplateDecoder:()=>Jp,getCredentialTemplateDiscriminatorBytes:()=>RJ,getCredentialTemplateEncoder:()=>Cb,getCredentialTypeCodec:()=>ZJ,getCredentialTypeDecoder:()=>ol,getCredentialTypeDiscriminatorBytes:()=>XJ,getCredentialTypeEncoder:()=>kb,getCrossChainStatusCodec:()=>WF,getCrossChainStatusDecoder:()=>He,getCrossChainStatusEncoder:()=>Ke,getDataAccessLevelCodec:()=>LF,getDataAccessLevelDecoder:()=>Zr,getDataAccessLevelEncoder:()=>Xr,getDataProtectionPoliciesCodec:()=>$F,getDataProtectionPoliciesDecoder:()=>eo,getDataProtectionPoliciesEncoder:()=>Yr,getDeactivateAgentDiscriminatorBytes:()=>ire,getDeactivateAgentInstruction:()=>n1,getDeactivateAgentInstructionAsync:()=>sre,getDeactivateAgentInstructionDataCodec:()=>cre,getDeactivateAgentInstructionDataDecoder:()=>t1,getDeactivateAgentInstructionDataEncoder:()=>Xa,getDeactivateCredentialTemplateDiscriminatorBytes:()=>mre,getDeactivateCredentialTemplateInstruction:()=>Tre,getDeactivateCredentialTemplateInstructionDataCodec:()=>yre,getDeactivateCredentialTemplateInstructionDataDecoder:()=>i1,getDeactivateCredentialTemplateInstructionDataEncoder:()=>o1,getDeactivateCredentialTypeDiscriminatorBytes:()=>Cre,getDeactivateCredentialTypeInstruction:()=>bre,getDeactivateCredentialTypeInstructionDataCodec:()=>Rre,getDeactivateCredentialTypeInstructionDataDecoder:()=>a1,getDeactivateCredentialTypeInstructionDataEncoder:()=>s1,getDeactivateDidDocumentDiscriminatorBytes:()=>Fre,getDeactivateDidDocumentInstruction:()=>Nre,getDeactivateDidDocumentInstructionAsync:()=>Wre,getDeactivateDidDocumentInstructionDataCodec:()=>Gre,getDeactivateDidDocumentInstructionDataDecoder:()=>g1,getDeactivateDidDocumentInstructionDataEncoder:()=>Za,getDegradationHandlingCodec:()=>XF,getDegradationHandlingDecoder:()=>jn,getDegradationHandlingEncoder:()=>Hn,getDelegationInfoCodec:()=>iG,getDelegationInfoDecoder:()=>ro,getDelegationInfoEncoder:()=>no,getDelegationScopeCodec:()=>pG,getDelegationScopeDecoder:()=>io,getDelegationScopeEncoder:()=>oo,getDeliverySubmittedEventCodec:()=>vG,getDeliverySubmittedEventDecoder:()=>zx,getDeliverySubmittedEventEncoder:()=>_x,getDidDocumentCodec:()=>DQ,getDidDocumentDecoder:()=>pl,getDidDocumentDiscriminatorBytes:()=>xQ,getDidDocumentEncoder:()=>Fb,getDisputeFiledEventCodec:()=>LG,getDisputeFiledEventDecoder:()=>Gx,getDisputeFiledEventEncoder:()=>Fx,getDisputeResolvedEventCodec:()=>XG,getDisputeResolvedEventDecoder:()=>Bx,getDisputeResolvedEventEncoder:()=>Nx,getEmergencyAccessConfigCodec:()=>i2,getEmergencyAccessConfigDecoder:()=>so,getEmergencyAccessConfigEncoder:()=>co,getEmergencyConfigCodec:()=>p2,getEmergencyConfigDecoder:()=>uo,getEmergencyConfigEncoder:()=>ao,getEnableProtocolFeesDiscriminatorBytes:()=>Jre,getEnableProtocolFeesInstruction:()=>Zre,getEnableProtocolFeesInstructionAsync:()=>Xre,getEnableProtocolFeesInstructionDataCodec:()=>Qre,getEnableProtocolFeesInstructionDataDecoder:()=>l1,getEnableProtocolFeesInstructionDataEncoder:()=>Ya,getEnforcementLevelCodec:()=>T2,getEnforcementLevelDecoder:()=>$e,getEnforcementLevelEncoder:()=>je,getEscrowCompletedEventCodec:()=>E2,getEscrowCompletedEventDecoder:()=>rD,getEscrowCompletedEventEncoder:()=>nD,getEscrowCreatedEventCodec:()=>v2,getEscrowCreatedEventDecoder:()=>uD,getEscrowCreatedEventEncoder:()=>dD,getEscrowStatusCodec:()=>U2,getEscrowStatusDecoder:()=>lo,getEscrowStatusEncoder:()=>po,getExecutionConditionCodec:()=>H2,getExecutionConditionDecoder:()=>Ae,getExecutionConditionEncoder:()=>ge,getExecutionParamsCodec:()=>Y2,getExecutionParamsDecoder:()=>Je,getExecutionParamsEncoder:()=>qe,getFileDisputeDiscriminatorBytes:()=>Aoe,getFileDisputeInstruction:()=>loe,getFileDisputeInstructionDataCodec:()=>poe,getFileDisputeInstructionDataDecoder:()=>T1,getFileDisputeInstructionDataEncoder:()=>y1,getGenerateComplianceReportDiscriminatorBytes:()=>hoe,getGenerateComplianceReportInstruction:()=>boe,getGenerateComplianceReportInstructionAsync:()=>Roe,getGenerateComplianceReportInstructionDataCodec:()=>Coe,getGenerateComplianceReportInstructionDataDecoder:()=>x1,getGenerateComplianceReportInstructionDataEncoder:()=>ed,getGeographicRegionCodec:()=>dW,getGeographicRegionDecoder:()=>fo,getGeographicRegionEncoder:()=>To,getGhostProtectEscrowCodec:()=>GQ,getGhostProtectEscrowDecoder:()=>Rl,getGhostProtectEscrowDiscriminatorBytes:()=>FQ,getGhostProtectEscrowEncoder:()=>Hb,getGhostSlashedEventCodec:()=>TW,getGhostSlashedEventDecoder:()=>CD,getGhostSlashedEventEncoder:()=>hD,getGhostStakedEventCodec:()=>vW,getGhostStakedEventDecoder:()=>MD,getGhostStakedEventEncoder:()=>vD,getGhostUnstakedEventCodec:()=>FW,getGhostUnstakedEventDecoder:()=>UD,getGhostUnstakedEventEncoder:()=>wD,getGhostspeakMarketplaceErrorMessage:()=>Aee,getGovernanceProposalCodec:()=>rX,getGovernanceProposalCreatedEventCodec:()=>JW,getGovernanceProposalCreatedEventDecoder:()=>GD,getGovernanceProposalCreatedEventEncoder:()=>FD,getGovernanceProposalDecoder:()=>kl,getGovernanceProposalDiscriminatorBytes:()=>nX,getGovernanceProposalEncoder:()=>rI,getHierarchicalBoundaryCodec:()=>tN,getHierarchicalBoundaryDecoder:()=>ho,getHierarchicalBoundaryEncoder:()=>Eo,getIncidentResponsePoliciesCodec:()=>pN,getIncidentResponsePoliciesDecoder:()=>Ro,getIncidentResponsePoliciesEncoder:()=>Co,getInitReentrancyGuardDiscriminatorBytes:()=>lce,getInitReentrancyGuardInstruction:()=>Tce,getInitReentrancyGuardInstructionAsync:()=>yce,getInitReentrancyGuardInstructionDataCodec:()=>mce,getInitReentrancyGuardInstructionDataDecoder:()=>V1,getInitReentrancyGuardInstructionDataEncoder:()=>sd,getInitializeAuditTrailDiscriminatorBytes:()=>Loe,getInitializeAuditTrailInstruction:()=>joe,getInitializeAuditTrailInstructionAsync:()=>Hoe,getInitializeAuditTrailInstructionDataCodec:()=>Koe,getInitializeAuditTrailInstructionDataDecoder:()=>E1,getInitializeAuditTrailInstructionDataEncoder:()=>td,getInitializeGovernanceProposalDiscriminatorBytes:()=>nie,getInitializeGovernanceProposalInstruction:()=>oie,getInitializeGovernanceProposalInstructionAsync:()=>Kt,getInitializeGovernanceProposalInstructionDataCodec:()=>rie,getInitializeGovernanceProposalInstructionDataDecoder:()=>R1,getInitializeGovernanceProposalInstructionDataEncoder:()=>nd,getInitializeProtocolConfigDiscriminatorBytes:()=>pie,getInitializeProtocolConfigInstruction:()=>yie,getInitializeProtocolConfigInstructionAsync:()=>mie,getInitializeProtocolConfigInstructionDataCodec:()=>lie,getInitializeProtocolConfigInstructionDataDecoder:()=>v1,getInitializeProtocolConfigInstructionDataEncoder:()=>rd,getInitializeRbacConfigDiscriminatorBytes:()=>Iie,getInitializeRbacConfigInstruction:()=>kie,getInitializeRbacConfigInstructionAsync:()=>Mie,getInitializeRbacConfigInstructionDataCodec:()=>vie,getInitializeRbacConfigInstructionDataDecoder:()=>w1,getInitializeRbacConfigInstructionDataEncoder:()=>od,getInitializeReputationMetricsDiscriminatorBytes:()=>Bie,getInitializeReputationMetricsInstruction:()=>Kie,getInitializeReputationMetricsInstructionAsync:()=>Lie,getInitializeReputationMetricsInstructionDataCodec:()=>Vie,getInitializeReputationMetricsInstructionDataDecoder:()=>z1,getInitializeReputationMetricsInstructionDataEncoder:()=>id,getInitializeStakingConfigDiscriminatorBytes:()=>rce,getInitializeStakingConfigInstruction:()=>ice,getInitializeStakingConfigInstructionAsync:()=>W1,getInitializeStakingConfigInstructionDataCodec:()=>oce,getInitializeStakingConfigInstructionDataDecoder:()=>G1,getInitializeStakingConfigInstructionDataEncoder:()=>cd,getIssueCredentialDiscriminatorBytes:()=>bce,getIssueCredentialInstruction:()=>Mce,getIssueCredentialInstructionAsync:()=>vce,getIssueCredentialInstructionDataCodec:()=>Ice,getIssueCredentialInstructionDataDecoder:()=>$1,getIssueCredentialInstructionDataEncoder:()=>dd,getLatitudeRangeCodec:()=>TN,getLatitudeRangeDecoder:()=>xo,getLatitudeRangeEncoder:()=>So,getLocationConstraintsCodec:()=>EN,getLocationConstraintsDecoder:()=>_o,getLocationConstraintsEncoder:()=>Uo,getLongitudeRangeCodec:()=>bN,getLongitudeRangeDecoder:()=>Po,getLongitudeRangeEncoder:()=>Do,getManageAgentStatusDiscriminatorBytes:()=>Vce,getManageAgentStatusInstruction:()=>Hce,getManageAgentStatusInstructionAsync:()=>Kce,getManageAgentStatusInstructionDataCodec:()=>Lce,getManageAgentStatusInstructionDataDecoder:()=>Q1,getManageAgentStatusInstructionDataEncoder:()=>ud,getMultisigCodec:()=>fX,getMultisigConfigCodec:()=>E6,getMultisigConfigDecoder:()=>Ye,getMultisigConfigEncoder:()=>Ze,getMultisigCreatedEventCodec:()=>FN,getMultisigCreatedEventDecoder:()=>oP,getMultisigCreatedEventEncoder:()=>rP,getMultisigDecoder:()=>Ol,getMultisigDiscriminatorBytes:()=>TX,getMultisigEncoder:()=>TI,getMultisigSignatureCodec:()=>XN,getMultisigSignatureDecoder:()=>Oo,getMultisigSignatureEncoder:()=>zo,getMultisigTypeCodec:()=>t6,getMultisigTypeConfigCodec:()=>p6,getMultisigTypeConfigDecoder:()=>Wo,getMultisigTypeConfigEncoder:()=>Go,getMultisigTypeDecoder:()=>le,getMultisigTypeEncoder:()=>pe,getNetworkSecurityPoliciesCodec:()=>b6,getNetworkSecurityPoliciesDecoder:()=>Bo,getNetworkSecurityPoliciesEncoder:()=>No,getNotificationMethodCodec:()=>k6,getNotificationMethodDecoder:()=>Ko,getNotificationMethodEncoder:()=>Lo,getNotificationPriorityCodec:()=>z6,getNotificationPriorityDecoder:()=>$o,getNotificationPriorityEncoder:()=>jo,getNotificationRequirementCodec:()=>B6,getNotificationRequirementDecoder:()=>ke,getNotificationRequirementEncoder:()=>Me,getNotificationTargetCodec:()=>X6,getNotificationTargetDecoder:()=>Jo,getNotificationTargetEncoder:()=>qo,getNotificationTargetTypeCodec:()=>tB,getNotificationTargetTypeDecoder:()=>ti,getNotificationTargetTypeEncoder:()=>ei,getNotificationTimingCodec:()=>iB,getNotificationTimingDecoder:()=>Xo,getNotificationTimingEncoder:()=>Qo,getPasswordPoliciesCodec:()=>SB,getPasswordPoliciesDecoder:()=>ii,getPasswordPoliciesEncoder:()=>oi,getPendingTransactionCodec:()=>FB,getPendingTransactionDecoder:()=>si,getPendingTransactionEncoder:()=>ci,getPermissionCodec:()=>BB,getPermissionConstraintCodec:()=>$B,getPermissionConstraintDecoder:()=>Ei,getPermissionConstraintEncoder:()=>Pi,getPermissionConstraintTypeCodec:()=>XB,getPermissionConstraintTypeDecoder:()=>vi,getPermissionConstraintTypeEncoder:()=>Ii,getPermissionDecoder:()=>Di,getPermissionEncoder:()=>xi,getPermissionMetadataCodec:()=>r4,getPermissionMetadataDecoder:()=>Ci,getPermissionMetadataEncoder:()=>hi,getPermissionScopeCodec:()=>s4,getPermissionScopeDecoder:()=>bi,getPermissionScopeEncoder:()=>Ri,getPolicyMetadataCodec:()=>m4,getPolicyMetadataDecoder:()=>yn,getPolicyMetadataEncoder:()=>mn,getPolicyRuleCodec:()=>k4,getPolicyRuleDecoder:()=>fn,getPolicyRuleEncoder:()=>Tn,getPolicyScopeCodec:()=>z4,getPolicyScopeDecoder:()=>xn,getPolicyScopeEncoder:()=>Sn,getPolicyStatusCodec:()=>W4,getPolicyStatusDecoder:()=>Pn,getPolicyStatusEncoder:()=>Dn,getPolicyTypeCodec:()=>L4,getPolicyTypeDecoder:()=>hn,getPolicyTypeEncoder:()=>En,getPricingModelCodec:()=>$4,getPricingModelDecoder:()=>Q,getPricingModelEncoder:()=>J,getProposalAccountCodec:()=>iV,getProposalAccountDecoder:()=>Qi,getProposalAccountEncoder:()=>Ji,getProposalInstructionCodec:()=>TV,getProposalInstructionDecoder:()=>yo,getProposalInstructionEncoder:()=>mo,getProposalMetadataCodec:()=>DV,getProposalMetadataDecoder:()=>ec,getProposalMetadataEncoder:()=>Yi,getProposalStatusCodec:()=>CV,getProposalStatusDecoder:()=>rc,getProposalStatusEncoder:()=>nc,getProposalTypeCodec:()=>vV,getProposalTypeDecoder:()=>ae,getProposalTypeEncoder:()=>se,getProtocolConfigCodec:()=>FX,getProtocolConfigDecoder:()=>Bl,getProtocolConfigDiscriminatorBytes:()=>OX,getProtocolConfigEncoder:()=>bI,getProtocolConfigSize:()=>NX,getProtocolConfigUpdatedEventCodec:()=>WV,getProtocolConfigUpdatedEventDecoder:()=>DE,getProtocolConfigUpdatedEventEncoder:()=>xE,getQuorumMethodCodec:()=>LV,getQuorumMethodDecoder:()=>cc,getQuorumMethodEncoder:()=>ic,getQuorumRequirementsCodec:()=>XV,getQuorumRequirementsDecoder:()=>ac,getQuorumRequirementsEncoder:()=>sc,getRbacConfigCodec:()=>tZ,getRbacConfigDecoder:()=>ql,getRbacConfigDiscriminatorBytes:()=>eZ,getRbacConfigEncoder:()=>zI,getRbacConfigInitializedEventCodec:()=>rL,getRbacConfigInitializedEventDecoder:()=>ME,getRbacConfigInitializedEventEncoder:()=>vE,getRecordPayaiPaymentDiscriminatorBytes:()=>dse,getRecordPayaiPaymentInstruction:()=>Ase,getRecordPayaiPaymentInstructionAsync:()=>gse,getRecordPayaiPaymentInstructionDataCodec:()=>use,getRecordPayaiPaymentInstructionDataDecoder:()=>Y1,getRecordPayaiPaymentInstructionDataEncoder:()=>gd,getReentrancyGuardCodec:()=>hZ,getReentrancyGuardDecoder:()=>Xl,getReentrancyGuardDiscriminatorBytes:()=>EZ,getReentrancyGuardEncoder:()=>BI,getReentrancyGuardSize:()=>bZ,getReentrancyStateCodec:()=>sL,getReentrancyStateDecoder:()=>gc,getReentrancyStateEncoder:()=>uc,getRegisterAgentCompressedDiscriminatorBytes:()=>_se,getRegisterAgentCompressedInstruction:()=>Ose,getRegisterAgentCompressedInstructionAsync:()=>iy,getRegisterAgentCompressedInstructionDataCodec:()=>zse,getRegisterAgentCompressedInstructionDataDecoder:()=>oy,getRegisterAgentCompressedInstructionDataEncoder:()=>Rd,getRegisterAgentDiscriminatorBytes:()=>Pse,getRegisterAgentInstruction:()=>hse,getRegisterAgentInstructionAsync:()=>ny,getRegisterAgentInstructionDataCodec:()=>Ese,getRegisterAgentInstructionDataDecoder:()=>ty,getRegisterAgentInstructionDataEncoder:()=>fd,getReportDataCodec:()=>TL,getReportDataDecoder:()=>pc,getReportDataEncoder:()=>Ac,getReportEntryCodec:()=>kL,getReportEntryDecoder:()=>mc,getReportEntryEncoder:()=>lc,getReportStatusCodec:()=>WL,getReportStatusDecoder:()=>Ec,getReportStatusEncoder:()=>Pc,getReportSummaryCodec:()=>HL,getReportSummaryDecoder:()=>Tc,getReportSummaryEncoder:()=>yc,getReportTypeCodec:()=>JL,getReportTypeDecoder:()=>ce,getReportTypeEncoder:()=>ie,getReportingFrequencyCodec:()=>zL,getReportingFrequencyDecoder:()=>Yn,getReportingFrequencyEncoder:()=>Zn,getReputationMetricsCodec:()=>KZ,getReputationMetricsDecoder:()=>em,getReputationMetricsDiscriminatorBytes:()=>LZ,getReputationMetricsEncoder:()=>$I,getReputationMetricsInitializedEventCodec:()=>s5,getReputationMetricsInitializedEventDecoder:()=>HE,getReputationMetricsInitializedEventEncoder:()=>KE,getReputationPaymentRecordedEventCodec:()=>E5,getReputationPaymentRecordedEventDecoder:()=>qE,getReputationPaymentRecordedEventEncoder:()=>$E,getReputationRatingSubmittedEventCodec:()=>U5,getReputationRatingSubmittedEventDecoder:()=>YE,getReputationRatingSubmittedEventEncoder:()=>ZE,getReputationTagsUpdatedEventCodec:()=>B5,getReputationTagsUpdatedEventDecoder:()=>nh,getReputationTagsUpdatedEventEncoder:()=>th,getResetReentrancyGuardDiscriminatorBytes:()=>Hse,getResetReentrancyGuardInstruction:()=>qse,getResetReentrancyGuardInstructionAsync:()=>$se,getResetReentrancyGuardInstructionDataCodec:()=>jse,getResetReentrancyGuardInstructionDataDecoder:()=>ay,getResetReentrancyGuardInstructionDataEncoder:()=>bd,getResolveDidDocumentDiscriminatorBytes:()=>oae,getResolveDidDocumentInstruction:()=>sae,getResolveDidDocumentInstructionAsync:()=>cae,getResolveDidDocumentInstructionDataCodec:()=>iae,getResolveDidDocumentInstructionDataDecoder:()=>gy,getResolveDidDocumentInstructionDataEncoder:()=>Id,getResourceConstraintsCodec:()=>YL,getResourceConstraintsDecoder:()=>Mc,getResourceConstraintsEncoder:()=>vc,getReviewScheduleCodec:()=>t3,getReviewScheduleDecoder:()=>Ni,getReviewScheduleEncoder:()=>Wi,getRevokeAuthorizationDiscriminatorBytes:()=>Wk,getRevokeAuthorizationInstruction:()=>Bk,getRevokeAuthorizationInstructionDataCodec:()=>Nk,getRevokeAuthorizationInstructionDataDecoder:()=>kd,getRevokeAuthorizationInstructionDataEncoder:()=>Md,getRevokeCredentialDiscriminatorBytes:()=>vae,getRevokeCredentialInstruction:()=>kae,getRevokeCredentialInstructionDataCodec:()=>Mae,getRevokeCredentialInstructionDataDecoder:()=>my,getRevokeCredentialInstructionDataEncoder:()=>ly,getRiskAcceptanceCodec:()=>m3,getRiskAcceptanceDecoder:()=>_c,getRiskAcceptanceEncoder:()=>Uc,getRiskAssessmentCodec:()=>b3,getRiskAssessmentDecoder:()=>wi,getRiskAssessmentEncoder:()=>ki,getRiskCategoryCodec:()=>k3,getRiskCategoryDecoder:()=>Wc,getRiskCategoryEncoder:()=>Gc,getRiskFactorCodec:()=>B3,getRiskFactorDecoder:()=>Oc,getRiskFactorEncoder:()=>zc,getRiskIndicatorCodec:()=>$3,getRiskIndicatorDecoder:()=>Sc,getRiskIndicatorEncoder:()=>fc,getRiskLevelCodec:()=>X3,getRiskLevelDecoder:()=>jc,getRiskLevelEncoder:()=>Hc,getRoleCodec:()=>t9,getRoleConstraintsCodec:()=>s9,getRoleConstraintsDecoder:()=>qc,getRoleConstraintsEncoder:()=>$c,getRoleDecoder:()=>st,getRoleEncoder:()=>ct,getRoleMetadataCodec:()=>p9,getRoleMetadataDecoder:()=>Qc,getRoleMetadataEncoder:()=>Jc,getRoleStatusCodec:()=>T9,getRoleStatusDecoder:()=>Zc,getRoleStatusEncoder:()=>Xc,getRoleTypeCodec:()=>D9,getRoleTypeDecoder:()=>es,getRoleTypeEncoder:()=>Yc,getRuleConditionCodec:()=>b9,getRuleConditionDecoder:()=>Ki,getRuleConditionEncoder:()=>Li,getRuleEffectCodec:()=>C9,getRuleEffectDecoder:()=>Vi,getRuleEffectEncoder:()=>Bi,getScopeBoundariesCodec:()=>k9,getScopeBoundariesDecoder:()=>_i,getScopeBoundariesEncoder:()=>Ui,getScopeInheritanceCodec:()=>z9,getScopeInheritanceDecoder:()=>ji,getScopeInheritanceEncoder:()=>Hi,getScopeTypeCodec:()=>W9,getScopeTypeDecoder:()=>Oi,getScopeTypeEncoder:()=>zi,getSecurityEventTypeCodec:()=>L9,getSecurityEventTypeDecoder:()=>Yo,getSecurityEventTypeEncoder:()=>Zo,getSecurityPoliciesCodec:()=>$9,getSecurityPoliciesDecoder:()=>Ps,getSecurityPoliciesEncoder:()=>Ds,getServiceEndpointCodec:()=>X9,getServiceEndpointDecoder:()=>ye,getServiceEndpointEncoder:()=>me,getServiceEndpointTypeCodec:()=>tK,getServiceEndpointTypeDecoder:()=>Rs,getServiceEndpointTypeEncoder:()=>Cs,getSessionConstraintsCodec:()=>iK,getSessionConstraintsDecoder:()=>ns,getSessionConstraintsEncoder:()=>ts,getSessionPoliciesCodec:()=>gK,getSessionPoliciesDecoder:()=>hs,getSessionPoliciesEncoder:()=>Es,getSlashReasonCodec:()=>mK,getSlashReasonDecoder:()=>Xe,getSlashReasonEncoder:()=>Qe,getSlashStakeDiscriminatorBytes:()=>Kae,getSlashStakeInstruction:()=>$ae,getSlashStakeInstructionAsync:()=>jae,getSlashStakeInstructionDataCodec:()=>Hae,getSlashStakeInstructionDataDecoder:()=>Sy,getSlashStakeInstructionDataEncoder:()=>wd,getSodConstraintCodec:()=>SK,getSodConstraintDecoder:()=>os,getSodConstraintEncoder:()=>rs,getSodConstraintTypeCodec:()=>EK,getSodConstraintTypeDecoder:()=>Ms,getSodConstraintTypeEncoder:()=>vs,getSourceReputationUpdatedEventCodec:()=>BK,getSourceReputationUpdatedEventDecoder:()=>mC,getSourceReputationUpdatedEventEncoder:()=>lC,getSourceScoreCodec:()=>XK,getSourceScoreDecoder:()=>Us,getSourceScoreEncoder:()=>ws,getStakeGhostDiscriminatorBytes:()=>ide,getStakeGhostInstruction:()=>sde,getStakeGhostInstructionAsync:()=>Py,getStakeGhostInstructionDataCodec:()=>cde,getStakeGhostInstructionDataDecoder:()=>Dy,getStakeGhostInstructionDataEncoder:()=>_d,getStakingAccountCodec:()=>pY,getStakingAccountDecoder:()=>im,getStakingAccountDiscriminatorBytes:()=>AY,getStakingAccountEncoder:()=>tv,getStakingAccountSize:()=>yY,getStakingConfigCodec:()=>zY,getStakingConfigDecoder:()=>am,getStakingConfigDiscriminatorBytes:()=>_Y,getStakingConfigEncoder:()=>gv,getStakingConfigSize:()=>GY,getStepUpTriggerCodec:()=>tH,getStepUpTriggerDecoder:()=>Sr,getStepUpTriggerEncoder:()=>fr,getSubmissionDetailsCodec:()=>sH,getSubmissionDetailsDecoder:()=>Os,getSubmissionDetailsEncoder:()=>zs,getSubmitDeliveryDiscriminatorBytes:()=>Dde,getSubmitDeliveryInstruction:()=>Ede,getSubmitDeliveryInstructionDataCodec:()=>Pde,getSubmitDeliveryInstructionDataDecoder:()=>Cy,getSubmitDeliveryInstructionDataEncoder:()=>hy,getSubmitServiceRatingDiscriminatorBytes:()=>Bde,getSubmitServiceRatingInstruction:()=>Kde,getSubmitServiceRatingInstructionAsync:()=>Lde,getSubmitServiceRatingInstructionDataCodec:()=>Vde,getSubmitServiceRatingInstructionDataDecoder:()=>Iy,getSubmitServiceRatingInstructionDataEncoder:()=>zd,getTagDecayAppliedEventCodec:()=>mH,getTagDecayAppliedEventDecoder:()=>vC,getTagDecayAppliedEventEncoder:()=>IC,getTagScoreCodec:()=>bH,getTagScoreDecoder:()=>dt,getTagScoreEncoder:()=>at,getTierUpdatedEventCodec:()=>zH,getTierUpdatedEventDecoder:()=>FC,getTierUpdatedEventEncoder:()=>OC,getTimeConstraintsCodec:()=>BH,getTimeConstraintsDecoder:()=>cs,getTimeConstraintsEncoder:()=>is,getTimeLockCodec:()=>JH,getTimeLockDecoder:()=>di,getTimeLockEncoder:()=>ai,getTimeLockTypeCodec:()=>YH,getTimeLockTypeDecoder:()=>Gs,getTimeLockTypeEncoder:()=>Fs,getTransactionPriorityCodec:()=>r7,getTransactionPriorityDecoder:()=>gi,getTransactionPriorityEncoder:()=>ui,getTransactionStatusCodec:()=>s7,getTransactionStatusDecoder:()=>pi,getTransactionStatusEncoder:()=>Ai,getTransactionTypeCodec:()=>g7,getTransactionTypeDecoder:()=>ue,getTransactionTypeEncoder:()=>de,getTrendDirectionCodec:()=>m7,getTrendDirectionDecoder:()=>Bc,getTrendDirectionEncoder:()=>Nc,getUnlockMethodCodec:()=>S7,getUnlockMethodDecoder:()=>vn,getUnlockMethodEncoder:()=>In,getUnstakeGhostDiscriminatorBytes:()=>Zde,getUnstakeGhostInstruction:()=>eue,getUnstakeGhostInstructionAsync:()=>wy,getUnstakeGhostInstructionDataCodec:()=>Yde,getUnstakeGhostInstructionDataDecoder:()=>ky,getUnstakeGhostInstructionDataEncoder:()=>Od,getUpdateAgentDiscriminatorBytes:()=>Aue,getUpdateAgentInstruction:()=>Gy,getUpdateAgentInstructionAsync:()=>lue,getUpdateAgentInstructionDataCodec:()=>pue,getUpdateAgentInstructionDataDecoder:()=>Fy,getUpdateAgentInstructionDataEncoder:()=>Vd,getUpdateAgentReputationDiscriminatorBytes:()=>kue,getUpdateAgentReputationInstruction:()=>_ue,getUpdateAgentReputationInstructionAsync:()=>Uue,getUpdateAgentReputationInstructionDataCodec:()=>wue,getUpdateAgentReputationInstructionDataDecoder:()=>By,getUpdateAgentReputationInstructionDataEncoder:()=>Ld,getUpdateAgentServiceDiscriminatorBytes:()=>Zue,getUpdateAgentServiceInstruction:()=>tge,getUpdateAgentServiceInstructionAsync:()=>ege,getUpdateAgentServiceInstructionDataCodec:()=>Yue,getUpdateAgentServiceInstructionDataDecoder:()=>Qy,getUpdateAgentServiceInstructionDataEncoder:()=>Kd,getUpdateCrosschainStatusDiscriminatorBytes:()=>mge,getUpdateCrosschainStatusInstruction:()=>Tge,getUpdateCrosschainStatusInstructionDataCodec:()=>yge,getUpdateCrosschainStatusInstructionDataDecoder:()=>Yy,getUpdateCrosschainStatusInstructionDataEncoder:()=>Zy,getUpdateDidDocumentDiscriminatorBytes:()=>bge,getUpdateDidDocumentInstruction:()=>Mge,getUpdateDidDocumentInstructionAsync:()=>vge,getUpdateDidDocumentInstructionDataCodec:()=>Ige,getUpdateDidDocumentInstructionDataDecoder:()=>nT,getUpdateDidDocumentInstructionDataEncoder:()=>$d,getUpdateProtocolConfigDiscriminatorBytes:()=>Bge,getUpdateProtocolConfigInstruction:()=>Kge,getUpdateProtocolConfigInstructionAsync:()=>Lge,getUpdateProtocolConfigInstructionDataCodec:()=>Vge,getUpdateProtocolConfigInstructionDataDecoder:()=>sT,getUpdateProtocolConfigInstructionDataEncoder:()=>qd,getUpdateReputationTagsDiscriminatorBytes:()=>eAe,getUpdateReputationTagsInstruction:()=>rAe,getUpdateReputationTagsInstructionAsync:()=>nAe,getUpdateReputationTagsInstructionDataCodec:()=>tAe,getUpdateReputationTagsInstructionDataDecoder:()=>yT,getUpdateReputationTagsInstructionDataEncoder:()=>Xd,getUpdateReputationWithAuthDiscriminatorBytes:()=>Fw,getUpdateReputationWithAuthInstruction:()=>Nw,getUpdateReputationWithAuthInstructionAsync:()=>Ww,getUpdateReputationWithAuthInstructionDataCodec:()=>Gw,getUpdateReputationWithAuthInstructionDataDecoder:()=>ru,getUpdateReputationWithAuthInstructionDataEncoder:()=>Jt,getUpdateSourceReputationDiscriminatorBytes:()=>CAe,getUpdateSourceReputationInstruction:()=>IAe,getUpdateSourceReputationInstructionAsync:()=>bAe,getUpdateSourceReputationInstructionDataCodec:()=>RAe,getUpdateSourceReputationInstructionDataDecoder:()=>bT,getUpdateSourceReputationInstructionDataEncoder:()=>ou,getUserRegistryCodec:()=>iee,getUserRegistryDecoder:()=>gm,getUserRegistryDiscriminatorBytes:()=>oee,getUserRegistryEncoder:()=>Tv,getUserRegistrySize:()=>aee,getValueTypeCodec:()=>E7,getValueTypeDecoder:()=>Lr,getValueTypeEncoder:()=>Vr,getVerificationMethodCodec:()=>U7,getVerificationMethodDecoder:()=>fe,getVerificationMethodEncoder:()=>Te,getVerificationMethodTypeCodec:()=>F7,getVerificationMethodTypeDecoder:()=>$s,getVerificationMethodTypeEncoder:()=>js,getVerificationRelationshipCodec:()=>B7,getVerificationRelationshipDecoder:()=>Js,getVerificationRelationshipEncoder:()=>qs,getVerifyAgentDiscriminatorBytes:()=>QAe,getVerifyAgentInstruction:()=>ZAe,getVerifyAgentInstructionAsync:()=>wT,getVerifyAgentInstructionDataCodec:()=>XAe,getVerifyAgentInstructionDataDecoder:()=>kT,getVerifyAgentInstructionDataEncoder:()=>iu,getVerifyAuthorizationDiscriminatorBytes:()=>lpe,getVerifyAuthorizationInstruction:()=>ype,getVerifyAuthorizationInstructionDataCodec:()=>mpe,getVerifyAuthorizationInstructionDataDecoder:()=>zT,getVerifyAuthorizationInstructionDataEncoder:()=>_T,getViolationSeverityCodec:()=>H7,getViolationSeverityDecoder:()=>Lc,getViolationSeverityEncoder:()=>Vc,getVoteChoiceCodec:()=>gj,getVoteChoiceDecoder:()=>na,getVoteChoiceEncoder:()=>ta,getVoteCodec:()=>sj,getVoteDecoder:()=>ea,getVoteEncoder:()=>Ys,getVotingResultsCodec:()=>Sj,getVotingResultsDecoder:()=>sa,getVotingResultsEncoder:()=>ca,identifyGhostspeakMarketplaceAccount:()=>dee,identifyGhostspeakMarketplaceInstruction:()=>uee,isArbitratorDecision:()=>Dz,isDelegationScope:()=>mG,isGhostspeakMarketplaceError:()=>pee,parseActivateAgentInstruction:()=>wee,parseApproveDeliveryInstruction:()=>Vee,parseArbitrateDisputeInstruction:()=>Zee,parseCreateAgentAuthorizationInstruction:()=>oM,parseCreateCredentialTemplateInstruction:()=>vte,parseCreateCredentialTypeInstruction:()=>Bte,parseCreateDidDocumentInstruction:()=>cne,parseCreateEscrowInstruction:()=>bne,parseCreateMultisigInstruction:()=>Hne,parseDeactivateAgentInstruction:()=>are,parseDeactivateCredentialTemplateInstruction:()=>fre,parseDeactivateCredentialTypeInstruction:()=>Ire,parseDeactivateDidDocumentInstruction:()=>Bre,parseEnableProtocolFeesInstruction:()=>Yre,parseFileDisputeInstruction:()=>moe,parseGenerateComplianceReportInstruction:()=>Ioe,parseInitReentrancyGuardInstruction:()=>fce,parseInitializeAuditTrailInstruction:()=>$oe,parseInitializeGovernanceProposalInstruction:()=>iie,parseInitializeProtocolConfigInstruction:()=>Tie,parseInitializeRbacConfigInstruction:()=>wie,parseInitializeReputationMetricsInstruction:()=>Hie,parseInitializeStakingConfigInstruction:()=>cce,parseIssueCredentialInstruction:()=>kce,parseManageAgentStatusInstruction:()=>jce,parseRecordPayaiPaymentInstruction:()=>pse,parseRegisterAgentCompressedInstruction:()=>Fse,parseRegisterAgentInstruction:()=>Cse,parseResetReentrancyGuardInstruction:()=>Jse,parseResolveDidDocumentInstruction:()=>aae,parseRevokeAuthorizationInstruction:()=>Vk,parseRevokeCredentialInstruction:()=>wae,parseSlashStakeInstruction:()=>qae,parseStakeGhostInstruction:()=>ade,parseSubmitDeliveryInstruction:()=>hde,parseSubmitServiceRatingInstruction:()=>Hde,parseUnstakeGhostInstruction:()=>tue,parseUpdateAgentInstruction:()=>mue,parseUpdateAgentReputationInstruction:()=>zue,parseUpdateAgentServiceInstruction:()=>nge,parseUpdateCrosschainStatusInstruction:()=>fge,parseUpdateDidDocumentInstruction:()=>kge,parseUpdateProtocolConfigInstruction:()=>Hge,parseUpdateReputationTagsInstruction:()=>oAe,parseUpdateReputationWithAuthInstruction:()=>Bw,parseUpdateSourceReputationInstruction:()=>vAe,parseVerifyAgentInstruction:()=>YAe,parseVerifyAuthorizationInstruction:()=>Tpe});var te=a(()=>{Dv();Fv();Zw();E();m();});var su,au,du,_,OT,FT=a(()=>{su=(p=>(p.CodeGeneration="code-generation",p.DataAnalysis="data-analysis",p.ContentCreation="content-creation",p.ImageGeneration="image-generation",p.AudioProcessing="audio-processing",p.VideoProcessing="video-processing",p.NaturalLanguageProcessing="nlp-specialist",p.ComputerVision="computer-vision",p.ReinforcementLearning="reinforcement-learning",p.DeFiExpert="defi-expert",p.NFTSpecialist="nft-specialist",p.SmartContractAudit="smart-contract-audit",p.BlockchainDevelopment="blockchain-dev",p.DAOGovernance="dao-governance",p.GameDevelopment="game-dev",p.WebDevelopment="web-dev",p.MobileDevelopment="mobile-dev",p.APIIntegration="api-integration",p.DatabaseManagement="database-management",p.DevOpsAutomation="devops-automation",p.FinancialAnalysis="financial-analysis",p.MarketResearch="market-research",p.LegalCompliance="legal-compliance",p.CustomerSupport="customer-support",p.TranslationServices="translation-services",p.SecurityAudit="security-audit",p.PenetrationTesting="penetration-testing",p.ThreatDetection="threat-detection",p.IncidentResponse="incident-response",p.DataEngineering="data-engineering",p.DataVisualization="data-visualization",p.PredictiveModeling="predictive-modeling",p.StatisticalAnalysis="statistical-analysis",p))(su||{}),au=(M=>(M.FastResponder="fast-responder",M.QuickResponder="quick-responder",M.SameDay="same-day",M.ConsistentQuality="consistent-quality",M.HighQuality="high-quality",M.TopRated="top-rated",M.PerfectRecord="perfect-record",M.HighVolume="high-volume",M.VeryHighVolume="very-high-volume",M.MegaVolume="mega-volume",M.LongTermActive="long-term-active",M.MultiYear="multi-year",M.CategorySpecialist="category-specialist",M.MultiDomain="multi-domain",M.Generalist="generalist",M.DisputeFree="dispute-free",M.LowDispute="low-dispute",M.HighResolution="high-resolution",M.PlatinumTier="platinum-tier",M.GoldTier="gold-tier",M.SilverTier="silver-tier",M.BronzeTier="bronze-tier",M.Responsive="responsive",M.Communicative="communicative",M.Proactive="proactive",M.DetailOriented="detail-oriented",M.VerifiedIdentity="verified-identity",M.LongStanding="long-standing",M.CommunityTrusted="community-trusted",M.ClientFavorite="client-favorite",M))(au||{}),du=(U=>(U.KYCVerified="kyc-verified",U.KYBVerified="kyb-verified",U.AccreditedInvestor="accredited-investor",U.SOC2Compliant="soc2-compliant",U.ISO27001="iso-27001",U.GDPR="gdpr-compliant",U.HIPAA="hipaa-compliant",U.PCI_DSS="pci-dss",U.AuditedCode="audited-code",U.BugBounty="bug-bounty",U.OpenSource="open-source",U.InsuredService="insured-service",U.BondedAgent="bonded-agent",U.LicensedProfessional="licensed-professional",U.RegulatedEntity="regulated-entity",U.PublicAuditTrail="public-audit-trail",U.TransparentPricing="transparent-pricing",U.VerifiedMetrics="verified-metrics",U))(du||{}),_={MAX_SKILL_TAGS:20,MAX_BEHAVIOR_TAGS:20,MAX_COMPLIANCE_TAGS:10,MAX_TAG_SCORES:50,MAX_TAG_NAME_LENGTH:32,STALE_TAG_THRESHOLD:7776e3,MIN_TAG_CONFIDENCE:5e3,MAX_TAG_CONFIDENCE:1e4,BASIS_POINTS_MAX:1e4},OT={decayRatePerDay:10,minConfidence:2e3,maxAgeSeconds:2160*60*60};});var $T={};ne($T,{batchGetAccounts:()=>Su,batchGetAccountsWithRetry:()=>s0,batchGetAndMap:()=>c0,batchGetExistingAccounts:()=>i0,createBatchFetcher:()=>Upe});function o0(n,e){let t=[];for(let o=0;o<n.length;o+=e)t.push(n.slice(o,o+e));return t}async function Su(n,e,t={}){let o=Math.min(t.batchSize??100,100);if(e.length===0)return [];if(e.length<=o)return (await n.getMultipleAccounts(e).send()).value;let r=o0(e,o),c=[],i=0,d=r.map(async s=>{let A=await n.getMultipleAccounts(s).send();return i+=s.length,t.onProgress?.(i,e.length),A.value});return c.push(...await Promise.all(d)),c.flat()}async function i0(n,e,t={}){let o=await Su(n,e,t),r=[];for(let c=0;c<o.length;c++){let i=o[c];i!==null&&r.push({address:e[c],account:i});}return r}async function c0(n,e,t,o={}){return (await Su(n,e,o)).map((c,i)=>t(c,e[i],i))}async function s0(n,e,t={},o=3){let r=Math.min(t.batchSize??100,100);if(e.length===0)return [];let c=o0(e,r),i=new Array(e.length),d=0;return await Promise.all(c.map(async(s,A)=>{let y=0,R=false;for(;!R&&y<=o;)try{(await n.getMultipleAccounts(s).send()).value.forEach((P,w)=>{i[A*r+w]=P;}),d+=s.length,t.onProgress?.(d,e.length),R=!0;}catch(D){if(y++,y>o)throw new Error(`Batch ${A} failed after ${o} retries: ${D}`);await new Promise(k=>setTimeout(k,100*Math.pow(2,y-1)));}})),i}function Upe(n,e={}){return {getAccounts:(t,o)=>Su(n,t,{...e,...o}),getExisting:(t,o)=>i0(n,t,{...e,...o}),getAndMap:(t,o,r)=>c0(n,t,o,{...e,...r}),getWithRetry:(t,o,r)=>s0(n,t,{...e,...o},r)}}var qT=a(()=>{});var Du={};ne(Du,{deriveA2AMessagePda:()=>Gpe,deriveA2ASessionPda:()=>Fpe,deriveA2ASessionPdaOriginal:()=>Ope,deriveAgentPda:()=>zpe,deriveAgentPdaOriginal:()=>_pe,deriveAgentTreeConfigPda:()=>Bpe,deriveAgentVerificationPda:()=>Npe,deriveEscrowPDA:()=>Kpe,deriveEscrowPDAOriginal:()=>Lpe,deriveEscrowPda:()=>Hpe,deriveMessagePda:()=>$pe,deriveTokenAccountPda:()=>jpe,deriveUserRegistryPda:()=>Wpe,findProgramDerivedAddress:()=>Vpe});async function _pe(n,e,t){let[o]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(e),getUtf8Encoder().encode(t)]});return o}async function zpe(n){let[e,t]=await getProgramDerivedAddress({programAddress:n.programAddress,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(n.owner),getUtf8Encoder().encode(n.agentId)]});return [e,t]}async function Ope(n,e){let[t]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,101,115,115,105,111,110])),getAddressEncoder().encode(e)]});return t}async function Fpe(n){let e=await getProgramDerivedAddress({programAddress:n.programAddress,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,101,115,115,105,111,110])),getAddressEncoder().encode(n.initiator)]});return [e[0],e[1]]}async function Gpe(n,e,t){let o=new Uint8Array(8);new DataView(o.buffer).setBigInt64(0,t,true);let[c]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,109,101,115,115,97,103,101])),getAddressEncoder().encode(e),o]});return c}async function Wpe(n,e){let[t]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(e)]});return t}async function Npe(n,e,t){let[o]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,118,101,114,105,102,105,99,97,116,105,111,110])),getAddressEncoder().encode(e),getAddressEncoder().encode(t)]});return o}async function Bpe(n,e){let[t]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,116,114,101,101,95,99,111,110,102,105,103])),getAddressEncoder().encode(e)]});return t}async function Vpe(n,e){let t=n.map(r=>typeof r=="string"?getUtf8Encoder().encode(r):typeof r=="object"&&r.constructor===Uint8Array?r:getAddressEncoder().encode(r)),o=await getProgramDerivedAddress({programAddress:e,seeds:t});return [o[0],o[1]]}async function Lpe(n,e){let t=[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getAddressEncoder().encode(n)],o=await getProgramDerivedAddress({programAddress:e,seeds:t});return [o[0],o[1]]}async function Kpe(n){let e=[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getUtf8Encoder().encode(n.escrowId)],t=await getProgramDerivedAddress({programAddress:n.programAddress,seeds:e});return [t[0],t[1]]}async function Hpe(n,e,t,o){let r=new Uint8Array(8);new DataView(r.buffer).setUint32(0,o,true);let[i]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),getAddressEncoder().encode(e),getAddressEncoder().encode(t),r.slice(0,4)]});return i}async function jpe(n,e){let t="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",o="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",[r]=await getProgramDerivedAddress({programAddress:t,seeds:[getAddressEncoder().encode(n),getAddressEncoder().encode(o),getAddressEncoder().encode(e)]});return r}async function $pe(n,e,t){let o=new Uint8Array(4);new DataView(o.buffer).setUint32(0,t,true);let[c]=await getProgramDerivedAddress({programAddress:n,seeds:[getBytesEncoder().encode(new Uint8Array([109,101,115,115,97,103,101])),getAddressEncoder().encode(e),o]});return c}var Pu=a(()=>{});var m0={};ne(m0,{ReputationTagEngine:()=>sn});var sn,XT=a(()=>{FT();sn=class{tagCriteria=[];decayConfig;constructor(e=OT){this.decayConfig=e,this.initializeTagCriteria();}initializeTagCriteria(){this.tagCriteria=[{tag:"fast-responder",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{if(e.responseTimeCount===0n)return {shouldAssign:false,confidence:0,evidenceCount:0};let t=e.avgResponseTime,o=Number(e.responseTimeCount);return t<6e4?{shouldAssign:true,confidence:Math.min(1e4,1e4-Math.floor(t/6e4*2e3)),evidenceCount:o,reason:`Average response time ${t}ms`}:{shouldAssign:false,confidence:0,evidenceCount:o}}},{tag:"quick-responder",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{if(e.responseTimeCount===0n)return {shouldAssign:false,confidence:0,evidenceCount:0};let t=e.avgResponseTime,o=Number(e.responseTimeCount);return t<3e5?{shouldAssign:true,confidence:Math.min(1e4,1e4-Math.floor(t/3e5*3e3)),evidenceCount:o,reason:`Average response time ${t}ms`}:{shouldAssign:false,confidence:0,evidenceCount:o}}},{tag:"dispute-free",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let t=Number(e.successfulPayments+e.failedPayments);return t<10?{shouldAssign:false,confidence:0,evidenceCount:0}:e.totalDisputes===0?{shouldAssign:true,confidence:Math.min(1e4,7e3+t*10),evidenceCount:t,reason:`0 disputes over ${t} transactions`}:{shouldAssign:false,confidence:0,evidenceCount:t}}},{tag:"low-dispute",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let t=Number(e.successfulPayments+e.failedPayments);if(t<100)return {shouldAssign:false,confidence:0,evidenceCount:0};let o=e.totalDisputes/t*100;return o<1?{shouldAssign:true,confidence:Math.min(1e4,1e4-Math.floor(o*1e3)),evidenceCount:t,reason:`${o.toFixed(2)}% dispute rate`}:{shouldAssign:false,confidence:0,evidenceCount:t}}},{tag:"high-volume",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let t=Number(e.successfulPayments);return t>=1e3?{shouldAssign:true,confidence:Math.min(1e4,6e3+Math.floor(t/100)),evidenceCount:t,reason:`${t} successful transactions`}:{shouldAssign:false,confidence:0,evidenceCount:t}}},{tag:"very-high-volume",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let t=Number(e.successfulPayments);return t>=1e4?{shouldAssign:true,confidence:Math.min(1e4,8e3+Math.floor(t/1e3)),evidenceCount:t,reason:`${t} successful transactions`}:{shouldAssign:false,confidence:0,evidenceCount:t}}},{tag:"top-rated",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{if(e.totalRatingsCount<10)return {shouldAssign:false,confidence:0,evidenceCount:0};let t=e.avgRating/20,o=e.totalRatingsCount;return t>4.8?{shouldAssign:true,confidence:Math.min(1e4,Math.floor((t-4.8)*5e4)+8e3),evidenceCount:o,reason:`Average rating ${t.toFixed(2)}/5.0`}:{shouldAssign:false,confidence:0,evidenceCount:o}}},{tag:"high-quality",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{if(e.totalRatingsCount<5)return {shouldAssign:false,confidence:0,evidenceCount:0};let t=e.avgRating/20,o=e.totalRatingsCount;return t>4.5?{shouldAssign:true,confidence:Math.min(1e4,Math.floor((t-4.5)*2e4)+7e3),evidenceCount:o,reason:`Average rating ${t.toFixed(2)}/5.0`}:{shouldAssign:false,confidence:0,evidenceCount:o}}},{tag:"consistent-quality",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{if(e.totalRatingsCount<20)return {shouldAssign:false,confidence:0,evidenceCount:0};let t=e.avgRating/20,o=e.totalRatingsCount;return t>4.3?{shouldAssign:true,confidence:Math.min(1e4,Math.floor((t-4)*1e4)+5e3),evidenceCount:o,reason:`Consistent high ratings (${t.toFixed(2)}/5.0)`}:{shouldAssign:false,confidence:0,evidenceCount:o}}},{tag:"perfect-record",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let t=Number(e.successfulPayments+e.failedPayments);return t<50?{shouldAssign:false,confidence:0,evidenceCount:0}:e.successRate/100===100&&e.failedPayments===0n?{shouldAssign:true,confidence:Math.min(1e4,8e3+Math.floor(t/10)),evidenceCount:t,reason:`100% success rate over ${t} transactions`}:{shouldAssign:false,confidence:0,evidenceCount:t}}},{tag:"high-resolution",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{if(e.totalDisputes<5)return {shouldAssign:false,confidence:0,evidenceCount:0};let t=e.disputesResolved/e.totalDisputes*100,o=e.totalDisputes;return t>90?{shouldAssign:true,confidence:Math.min(1e4,Math.floor((t-90)*1e3)+8e3),evidenceCount:o,reason:`${t.toFixed(1)}% disputes resolved favorably`}:{shouldAssign:false,confidence:0,evidenceCount:o}}},{tag:"long-term-active",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let r=(Math.floor(Date.now()/1e3)-e.createdAt)/(365*24*60*60);return r>=1?{shouldAssign:true,confidence:Math.min(1e4,Math.floor(r*2e3)+6e3),evidenceCount:Math.floor(r),reason:`Active for ${r.toFixed(1)} years`}:{shouldAssign:false,confidence:0,evidenceCount:0}}},{tag:"multi-year",category:"behavior",minConfidence:_.MIN_TAG_CONFIDENCE,evaluate:e=>{let r=(Math.floor(Date.now()/1e3)-e.createdAt)/(365*24*60*60);return r>=3?{shouldAssign:true,confidence:Math.min(1e4,Math.floor(r*1e3)+7e3),evidenceCount:Math.floor(r),reason:`Active for ${r.toFixed(1)} years`}:{shouldAssign:false,confidence:0,evidenceCount:0}}}];}async calculateTags(e){let t=[],o=Math.floor(Date.now()/1e3);for(let r of this.tagCriteria){let c=r.evaluate(e);c.shouldAssign&&c.confidence>=r.minConfidence&&t.push({tagName:r.tag,confidence:c.confidence,evidenceCount:c.evidenceCount,lastUpdated:o});}return t}applyTagDecay(e,t){let o=t||Math.floor(Date.now()/1e3),r=[];for(let c of e){let i=o-c.lastUpdated,d=i/(1440*60),s=Math.floor(d*this.decayConfig.decayRatePerDay),A=Math.max(0,c.confidence-s);A>=this.decayConfig.minConfidence&&i<=this.decayConfig.maxAgeSeconds&&r.push({...c,confidence:A});}return r}mergeTags(e,t){let o=new Map;for(let r of e)o.set(r.tagName,r);for(let r of t){let c=o.get(r.tagName);c?(r.confidence>c.confidence||r.evidenceCount>c.evidenceCount)&&o.set(r.tagName,r):o.set(r.tagName,r);}return Array.from(o.values())}filterTags(e,t){let o=[...e],r=Math.floor(Date.now()/1e3);return t.category&&(o=o.filter(c=>this.getTagCategory(c.tagName)===t.category)),t.minConfidence!==void 0&&(o=o.filter(c=>c.confidence>=t.minConfidence)),t.maxAge!==void 0&&(o=o.filter(c=>r-c.lastUpdated<=t.maxAge)),t.activeOnly&&(o=o.filter(c=>r-c.lastUpdated<=_.STALE_TAG_THRESHOLD&&c.confidence>=this.decayConfig.minConfidence)),o}getTagCategory(e){return Object.values(su).includes(e)?"skill":Object.values(au).includes(e)?"behavior":Object.values(du).includes(e)?"compliance":"behavior"}validateTagName(e){return e.length>0&&e.length<=_.MAX_TAG_NAME_LENGTH}validateConfidence(e){return e>=0&&e<=_.MAX_TAG_CONFIDENCE}getConfidenceLevel(e){return e>=1e4?"Absolute":e>=9500?"Very High":e>=8e3?"High":e>=6e3?"Medium":e>=4e3?"Low":"Very Low"}sortByConfidence(e){return [...e].sort((t,o)=>o.confidence-t.confidence)}sortByEvidence(e){return [...e].sort((t,o)=>o.evidenceCount-t.evidenceCount)}sortByRecent(e){return [...e].sort((t,o)=>o.lastUpdated-t.lastUpdated)}getTopTags(e,t){return this.sortByConfidence(e).slice(0,t)}categorizeTags(e){let t=[],o=[],r=[],c=[];for(let i of e)switch(c.push(i.tagName),this.getTagCategory(i.tagName)){case "skill":t.push(i.tagName);break;case "behavior":o.push(i.tagName);break;case "compliance":r.push(i.tagName);break}return {allTags:c,skillTags:t,behaviorTags:o,complianceTags:r,tagScores:e,lastUpdated:e.length>0?Math.max(...e.map(i=>i.lastUpdated)):0}}};});var I0={};ne(I0,{MultiSourceAggregator:()=>YT});var YT,v0=a(()=>{YT=class{adapters=new Map;configs=new Map;CONFLICT_THRESHOLD=300;constructor(){}addSource(e,t){t.enabled&&(this.adapters.set(e.source,e),this.configs.set(e.source,t));}removeSource(e){this.adapters.delete(e),this.configs.delete(e);}updateSourceWeight(e,t){let o=this.configs.get(e);o&&(o.weight=t);}updateSourceReliability(e,t){let o=this.configs.get(e);o&&(o.reliability=t);}async aggregateReputation(e){let t=[];for(let[s,A]of this.adapters.entries())try{let y=await A.fetchReputationData(e.toString());A.validateData(y)&&t.push(y);}catch(y){console.warn(`Failed to fetch reputation from ${s}:`,y);}let o=this.calculateWeightedScore(t),{hasConflicts:r,conflicts:c}=this.detectConflicts(t),i=this.buildSourceBreakdowns(t),d=t.reduce((s,A)=>s+A.dataPoints,0);return {agentId:e,aggregateScore:o,sourceScores:i,hasConflicts:r,conflicts:c,totalDataPoints:d,timestamp:new Date}}calculateWeightedScore(e){if(e.length===0)return 0;let t=0,o=0;for(let r of e){let c=this.configs.get(r.source);if(!c)continue;let i=c.weight/1e4,d=r.reliability,s=r.score*i*d,A=i*d;t+=s,o+=A;}return o===0?0:Math.round(t/o)}detectConflicts(e){if(e.length<2)return {hasConflicts:false,conflicts:[]};let t=e.map(d=>d.score),o=Math.max(...t),r=Math.min(...t),c=o-r,i=[];if(c>this.CONFLICT_THRESHOLD){let d=e.find(A=>A.score===o)?.source,s=e.find(A=>A.score===r)?.source;return i.push(`High variance detected: ${c} (${(c/1e3*100).toFixed(1)}%) between ${d} (${o}) and ${s} (${r})`),{hasConflicts:true,conflicts:i}}return {hasConflicts:false,conflicts:[]}}buildSourceBreakdowns(e){return e.map(t=>{let o=this.configs.get(t.source);if(!o)throw new Error(`No config found for source: ${t.source}`);let r=o.weight,c=t.reliability*1e4,i=t.score*(r/1e4)*(c/1e4)/this.calculateNormalizationFactor(e);return {source:t.source,score:t.score,weight:r,reliability:Math.round(c),dataPoints:t.dataPoints,contribution:Math.round(i),lastUpdated:t.timestamp}})}calculateNormalizationFactor(e){let t=0;for(let o of e){let r=this.configs.get(o.source);if(!r)continue;let c=r.weight/1e4,i=o.reliability;t+=c*i;}return t||1}async getSourceBreakdown(e){return (await this.aggregateReputation(e)).sourceScores}getRegisteredSources(){return Array.from(this.adapters.keys())}getSourceConfig(e){return this.configs.get(e)}enableSource(e){let t=this.configs.get(e);t&&(t.enabled=true);}disableSource(e){let t=this.configs.get(e);t&&(t.enabled=false);}isSourceEnabled(e){return this.configs.get(e)?.enabled??false}};});te();FT();var GT={CONSERVATIVE:{name:"Conservative",mode:"TierOnly",metricVisibility:{showScore:"Private",showJobsCompleted:"Private",showSuccessRate:"Private",showResponseTime:"Private",showDisputes:"Private",showEarnings:"Private",showRatings:"Private",showBadges:"Public"},autoGrantClients:false},BALANCED:{name:"Balanced",mode:"Custom",metricVisibility:{showScore:"Private",showJobsCompleted:"Public",showSuccessRate:"Public",showResponseTime:"Public",showDisputes:"Private",showEarnings:"Private",showRatings:"Public",showBadges:"Public"},autoGrantClients:true},OPEN:{name:"Open",mode:"Public",metricVisibility:{showScore:"Public",showJobsCompleted:"Public",showSuccessRate:"Public",showResponseTime:"Public",showDisputes:"Public",showEarnings:"Public",showRatings:"Public",showBadges:"Public"},autoGrantClients:true}},Ee={SCORE_RANGES:{LOW:{min:2e3},MEDIUM:{min:5e3},HIGH:{min:7500},VERY_HIGH:{min:9e3}},TIER_THRESHOLDS:{BRONZE:2e3,SILVER:5e3,GOLD:7500,PLATINUM:9e3},MAX_AUTHORIZED_VIEWERS:100};E();function Yw(n){return typeof n!="object"||n===null?false:typeof n.IpfsHash=="string"}var At=class{rpc;rpcSubscriptions;commitment;endpoint;maxRetries;retryDelay;timeout;constructor(e){this.endpoint=e.endpoint,this.rpc=createSolanaRpc(e.endpoint),this.commitment=e.commitment??"confirmed",this.maxRetries=e.maxRetries??3,this.retryDelay=e.retryDelay??1e3,this.timeout=e.timeout??6e4,e.wsEndpoint&&(this.rpcSubscriptions=createSolanaRpcSubscriptions(e.wsEndpoint));}async getAccountInfo(e,t){return this.withRetry(async()=>{let o=await this.rpc.getAccountInfo(e,{commitment:t?.commitment??this.commitment,encoding:"base64"}).send();return o.value?this.parseAccountInfo(o.value):null})}async getMultipleAccounts(e,t){return this.withRetry(async()=>(await this.rpc.getMultipleAccounts(e,{commitment:t?.commitment??this.commitment,encoding:"base64"}).send()).value.map(r=>r?this.parseAccountInfo(r):null))}async getProgramAccounts(e,t){return this.withRetry(async()=>(await this.rpc.getProgramAccounts(e,{commitment:t?.commitment??this.commitment,encoding:"base64",filters:t?.filters}).send()).map(r=>{let c=r;return {pubkey:c.pubkey,account:this.parseAccountInfo(c.account)}}))}blockhashCache=null;async getLatestBlockhash(){let e=Date.now();if(this.blockhashCache&&e-this.blockhashCache.timestamp<1e3)return this.blockhashCache.value;let t=await this.withRetry(async()=>{let o=await this.rpc.getLatestBlockhash({commitment:this.commitment}).send();return {blockhash:o.value.blockhash,lastValidBlockHeight:BigInt(o.value.lastValidBlockHeight)}});return this.blockhashCache={value:t,timestamp:e},t}async sendTransaction(e,t){return this.withRetry(async()=>await this.rpc.sendTransaction(e,{encoding:"base64",skipPreflight:t?.skipPreflight??false,preflightCommitment:t?.preflightCommitment??this.commitment,maxRetries:t?.maxRetries?BigInt(t.maxRetries):void 0}).send())}async getSignatureStatuses(e){return this.withRetry(async()=>(await this.rpc.getSignatureStatuses(e).send()).value.map(o=>{if(!o)return null;let r=o;return {slot:r.slot,confirmations:r.confirmations,err:r.err,confirmationStatus:r.confirmationStatus}}))}async simulateTransaction(e,t){return this.withRetry(async()=>{let o=await this.rpc.simulateTransaction(e,{encoding:"base64",commitment:t?.commitment??this.commitment,replaceRecentBlockhash:t?.replaceRecentBlockhash??false}).send();return {err:o.value.err,logs:o.value.logs??[],unitsConsumed:o.value.unitsConsumed?BigInt(o.value.unitsConsumed):void 0,returnData:o.value.returnData}})}async getFeeForMessage(e){return this.withRetry(async()=>{let t=await this.rpc.getFeeForMessage(e,{commitment:this.commitment}).send();return t.value?BigInt(t.value):null})}async isHealthy(){try{return await this.rpc.getHealth().send(),!0}catch{return false}}async getVersion(){return await this.rpc.getVersion().send()}async subscribeToAccount(e,t){if(!this.rpcSubscriptions)throw new Error("WebSocket endpoint not configured");console.warn("Account subscription is not fully implemented in this version");let o=setInterval(async()=>{try{let r=await this.getAccountInfo(e);t(r);}catch(r){console.error("Subscription polling error:",r);}},5e3);return ()=>{clearInterval(o);}}async withRetry(e,t=this.maxRetries){let o;for(let r=0;r<=t;r++)try{return await e()}catch(c){o=c,r<t&&await new Promise(i=>setTimeout(i,this.retryDelay*Math.pow(2,r)));}throw o}parseAccountInfo(e){let t=e,o=t.data,r=Array.isArray(o)?o[0]:o;return {executable:t.executable,lamports:typeof t.lamports=="number"?lamports(BigInt(t.lamports)):t.lamports,owner:t.owner,rentEpoch:t.rentEpoch!==void 0?typeof t.rentEpoch=="number"?BigInt(t.rentEpoch):t.rentEpoch:BigInt(0),data:Buffer.from(r,"base64"),space:t.space?typeof t.space=="number"?BigInt(t.space):t.space:void 0}}};function Cpe(n,e="mainnet-beta"){let t="https://explorer.solana.com/tx";switch(e){case "devnet":return `${t}/${n}?cluster=devnet`;case "testnet":return `${t}/${n}?cluster=testnet`;case "localnet":return `${t}/${n}?cluster=custom&customUrl=http://localhost:8899`;default:return `${t}/${n}`}}function Rpe(n,e="mainnet-beta"){let t="https://solscan.io/tx";switch(e){case "devnet":return `${t}/${n}?cluster=devnet`;case "testnet":return `${t}/${n}?cluster=testnet`;case "localnet":return `Local transaction: ${n} (not viewable on Solscan)`;default:return `${t}/${n}`}}function bpe(n,e="mainnet-beta"){let t="https://solana.fm/tx";switch(e){case "devnet":return `${t}/${n}?cluster=devnet-solana`;case "testnet":return `${t}/${n}?cluster=testnet-solana`;case "localnet":return `Local transaction: ${n} (not viewable on SolanaFM)`;default:return `${t}/${n}`}}function Ipe(n,e="mainnet-beta"){let t="https://xray.helius.xyz/tx";switch(e){case "devnet":return `${t}/${n}?network=devnet`;case "testnet":return `${t}/${n}?network=testnet`;case "localnet":return `Local transaction: ${n} (not viewable on XRAY)`;default:return `${t}/${n}`}}function vpe(n,e="mainnet-beta"){return {solanaExplorer:Cpe(n,e),solscan:Rpe(n,e),solanaFM:bpe(n,e),xray:Ipe(n,e)}}function WT(n,e,t="confirmed"){return {signature:n,cluster:e,urls:vpe(n,e),commitment:t,timestamp:Date.now()}}function NT(n,e){console.error("\u{1F6A8} GhostSpeak SDK Error:",n.message),e&&(e.operation&&console.error("\u{1F527} Operation:",e.operation),e.instructionName&&console.error("\u{1F4CB} Instruction:",e.instructionName),e.accounts&&(console.error("\u{1F3E6} Accounts provided:",e.accounts.length),e.accounts.forEach((t,o)=>{if(typeof t=="string")console.error(` ${o+1}. ${t}`);else if(typeof t=="object"){let r="address"in t?t.address:t,c="name"in t?t.name:void 0;console.error(` ${o+1}. ${r}${c?` (${c})`:""}`);}else console.error(` ${o+1}. ${String(t)}`);})),e.params&&console.error("\u2699\uFE0F Parameters:",e.params)),console.error(`
2
+ \u{1F4A1} Troubleshooting tips:`),console.error(" 1. Check that all required accounts are provided"),console.error(" 2. Verify account addresses are correct"),console.error(" 3. Ensure signers have sufficient SOL for transaction fees"),console.error(" 4. Confirm the program is deployed on the target network");}function BT(n,e,t,o){return {operation:n,instructionName:e,accounts:t,params:o}}var uu=class n{static instance=null;rpcClient;config;isDevelopment;logs=[];timings=new Map;constructor(e){this.config=e,this.rpcClient=new At({endpoint:e.rpcEndpoint??"https://api.devnet.solana.com",commitment:e.commitment}),this.isDevelopment=process.env.NODE_ENV==="development"||e.cluster==="localnet"||false;}static getInstance(e){if(!n.instance&&e&&(n.instance=new n(e)),!n.instance)throw new Error("DevTools not initialized. Call with config first.");return n.instance}enableDevMode(){this.isDevelopment=true,console.log("\u{1F6E0}\uFE0F GhostSpeak Development Mode Enabled"),console.log(" - Transaction simulation before sending"),console.log(" - Cost estimates for all operations"),console.log(" - Enhanced error messages"),console.log(" - Performance timing");}isDevMode(){return this.isDevelopment}analyzeTransaction(e){let t=new Set,o=new Set,r=new Set,c=[],i=64,d=e.map((y,R)=>{i+=32,i+=(y.accounts?.length??0)*32,i+=y.data?.length??0;let D=(y.accounts??[]).map(P=>{let w=P.role.toString().includes("writable")||P.role.toString().includes("WRITABLE")||P.role===1||P.role===3,F=P.role.toString().includes("signer")||P.role.toString().includes("SIGNER")||typeof P=="object"&&"signer"in P||P.role===3;return w?t.add(P.address):o.add(P.address),F&&r.add(P.address),{address:P.address,isWritable:w,isSigner:F,role:P.role}}),k=this.getInstructionDescription(y,R);return {index:R,programId:y.programAddress,accountCount:D.length,dataSize:y.data?.length??0,humanReadable:k,accounts:D}}),s=this.estimateComputeUnits(e),A=this.estimateFee(s,e.length);return i>1232&&c.push(`Transaction size (${i} bytes) exceeds limit (1232 bytes)`),r.size===0&&c.push("No signers found in transaction"),s>BigInt(14e5)&&c.push(`High compute usage: ${s} units`),{instructions:d,totalAccounts:t.size+o.size,signerCount:r.size,writableAccounts:Array.from(t),readonlyAccounts:Array.from(o),estimatedSize:i,estimatedComputeUnits:s,estimatedFee:A,warnings:c}}getInstructionDescription(e,t){let o=e.programAddress;return o===this.config.programId?this.decodeGhostSpeakInstruction(e):o==="11111111111111111111111111111111"?"System Program: Transfer or Create Account":o==="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"?"Token Program: Token Operation":o==="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"?"Token-2022 Program: Advanced Token Operation":"Unknown Instruction"}decodeGhostSpeakInstruction(e){if(!e.data||e.data.length<8)return "GhostSpeak: Unknown Instruction";let t=Array.from(e.data.slice(0,8)).map(r=>r.toString(16).padStart(2,"0")).join("");return `GhostSpeak: ${{a8c5e109d3d1b8d5:"Register Agent",b7f3c8e0a2d4e9f1:"Create Escrow",c4d2f7a9b8e1c3f5:"Send Message",d9e8f2b5c1a7e4f8:"Create Channel"}[t]??"Custom Instruction"}`}estimateComputeUnits(e){let t=BigInt(0);for(let o of e)t+=BigInt(200),t+=BigInt((o.accounts?.length??0)*150),t+=BigInt((o.data?.length??0)*10),o.programAddress===this.config.programId&&(t+=BigInt(5e3));return t}estimateFee(e,t){let o=BigInt(5e3),r=e*BigInt(5)/BigInt(1e6),c=BigInt(t*1e3);return o+r+c}log(e,t){if(!this.isDevelopment)return;let r=`[${new Date().toISOString()}] ${e}`;this.logs.push(r),console.log(`\u{1F50D} ${r}`),t&&console.log(" Data:",t);}startTiming(e){if(!this.isDevelopment)return;let t=typeof performance<"u"?performance.now():Date.now();this.timings.set(e,t);}endTiming(e){if(!this.isDevelopment)return;let t=this.timings.get(e);if(!t)return;let r=(typeof performance<"u"?performance.now():Date.now())-t;this.log(`${e} took ${r.toFixed(2)}ms`),this.timings.delete(e);}formatTransaction(e){let t=["\u{1F4CB} Transaction Analysis","\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550",`Instructions: ${e.instructions.length}`,`Total Accounts: ${e.totalAccounts}`,`Signers: ${e.signerCount}`,`Estimated Size: ${e.estimatedSize} bytes`,`Estimated Compute Units: ${e.estimatedComputeUnits.toLocaleString()}`,`Estimated Fee: ${(Number(e.estimatedFee)/1e9).toFixed(6)} SOL`,""];t.push("Instructions:");for(let o of e.instructions)t.push(` ${o.index+1}. ${o.humanReadable}`),t.push(` Program: ${o.programId.slice(0,8)}...`),t.push(` Accounts: ${o.accountCount}, Data: ${o.dataSize} bytes`);if(e.warnings.length>0){t.push(""),t.push("\u26A0\uFE0F Warnings:");for(let o of e.warnings)t.push(` - ${o}`);}return t.push("\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550"),t.join(`
3
+ `)}exportLogs(){return [...this.logs]}clearLogs(){this.logs=[],this.timings.clear();}};function pu(n){if(!n.programAddress)throw new Error("Invalid instruction format")}var lu=class{rpcClient;config;devTools;debugMode=false;constructor(e){this.config=e,this.rpcClient=new At({endpoint:e.rpcEndpoint??"https://api.devnet.solana.com",wsEndpoint:e.wsEndpoint,commitment:e.commitment??"confirmed"}),this.devTools=uu.getInstance(e);}async execute(e,t,o,r){let c=BT("execute",e,o.map(i=>({address:i.address,name:"signer"})),{programId:this.config.programId});try{this.devTools.isDevMode()&&this.devTools.startTiming(e);let i=await Promise.resolve(t());if(pu(i),this.debugMode||this.devTools.isDevMode()){let k=this.devTools.analyzeTransaction([i]);console.log(this.devTools.formatTransaction(k)),this.debugMode=!1;}if(r?.simulate)return await this.simulateInstruction(i,o);let d=await this.rpcClient.getLatestBlockhash(),s={blockhash:d.blockhash,lastValidBlockHeight:d.lastValidBlockHeight},A=pipe(createTransactionMessage({version:0}),k=>setTransactionMessageFeePayerSigner(o[0],k),k=>setTransactionMessageLifetimeUsingBlockhash(s,k),k=>appendTransactionMessageInstructions([i],k)),y=await signTransactionMessageWithSigners(A),R=await this.sendAndConfirm(y,r?.skipPreflight??!1,r?.maxRetries??30);if(typeof R!="string")throw new Error("Transaction signature is not a string");let D=R;if(r?.returnDetails){let k=this.config.cluster??"devnet",P=WT(D,k,this.config.commitment??"confirmed");return this.devTools.isDevMode()&&this.devTools.endTiming(e),P}return this.devTools.isDevMode()&&this.devTools.endTiming(e),D}catch(i){throw NT(i,c),i}}async executeBatch(e,t,o,r){let c=BT("executeBatch",e,o.map(i=>({address:i.address,name:"signer"})),{programId:this.config.programId,instructionCount:t.length});try{let i=await Promise.all(t.map(async(P,w)=>{let F=await Promise.resolve(P());try{return pu(F),F}catch(b){throw new Error(`Instruction ${w} in ${e}: ${b.message}`)}})),d=this.estimateTransactionSize(i);if(d>1232)throw new Error(`Transaction too large: ${d} bytes (max: 1232)`);if(r?.simulate)return await this.simulateBatch(i,o);let s=await this.rpcClient.getLatestBlockhash(),A={blockhash:s.blockhash,lastValidBlockHeight:s.lastValidBlockHeight},y=pipe(createTransactionMessage({version:0}),P=>setTransactionMessageFeePayerSigner(o[0],P),P=>setTransactionMessageLifetimeUsingBlockhash(A,P),P=>appendTransactionMessageInstructions(i,P)),R=await signTransactionMessageWithSigners(y),D=await this.sendAndConfirm(R,r?.skipPreflight??!1);if(typeof D!="string")throw new Error("Transaction signature is not a string");let k=D;if(r?.returnDetails){let P=this.config.cluster??"devnet",w=WT(k,P,this.config.commitment??"confirmed");return this.devTools.isDevMode()&&this.devTools.endTiming(e),w}return this.devTools.isDevMode()&&this.devTools.endTiming(e),k}catch(i){throw NT(i,c),i}}async getAccount(e,t){try{let o=await this.rpcClient.getAccountInfo(e,{commitment:this.config.commitment});if(!o)return null;let c=(await Promise.resolve().then(()=>(te(),cu)))[t],i=c(),d=this.extractRawData(o.data);return i.decode(d)}catch(o){return console.warn(`Failed to fetch account ${e}:`,o),null}}async getAccounts(e,t){try{let o=await this.rpcClient.getMultipleAccounts(e,{commitment:this.config.commitment}),c=(await Promise.resolve().then(()=>(te(),cu)))[t],i=c();return o.map(d=>{if(!d)return null;try{let s=this.extractRawData(d.data);return i.decode(s)}catch{return null}})}catch(o){return console.warn("Failed to fetch multiple accounts:",o),e.map(()=>null)}}async getProgramAccounts(e,t){try{let o=t?.map(A=>"dataSize"in A?{dataSize:A.dataSize}:(A.memcmp.encoding??"base58")==="base64"?{memcmp:{offset:A.memcmp.offset,bytes:A.memcmp.bytes,encoding:"base64"}}:{memcmp:{offset:A.memcmp.offset,bytes:A.memcmp.bytes,encoding:"base58"}}),r=await this.rpcClient.getProgramAccounts(this.config.programId,{commitment:this.config.commitment,filters:o??[]}),i=(await Promise.resolve().then(()=>(te(),cu)))[e],d=i(),s=[];for(let{pubkey:A,account:y}of r)try{let R=this.extractRawData(y.data),D=d.decode(R);s.push({address:A,data:D});}catch{}return s}catch(o){return console.error("Failed to get program accounts:",o),[]}}enableDebug(){return this.debugMode=true,this}async debug(e,t){this.devTools.log(`Debugging ${e}`);let o=await Promise.all(t.map(async c=>{let i=await Promise.resolve(c());return pu(i),i})),r=this.devTools.analyzeTransaction(o);return console.log(this.devTools.formatTransaction(r)),r}async explain(e,t){let o=await this.debug(e,t),r=[`\u{1F50D} Transaction: ${e}`,"","This transaction will:",...o.instructions.map((c,i)=>` ${i+1}. ${c.humanReadable}`),"",`Cost: ~${(Number(o.estimatedFee)/1e9).toFixed(6)} SOL`,`Size: ${o.estimatedSize} bytes`,`Compute: ${o.estimatedComputeUnits.toLocaleString()} units`];return o.warnings.length>0&&(r.push("","\u26A0\uFE0F Warnings:"),r.push(...o.warnings.map(c=>` - ${c}`))),r.join(`
4
+ `)}async estimateCost(e){try{let t=await Promise.all(e.map(async A=>{let y=await Promise.resolve(A());return pu(y),y})),o=await this.rpcClient.getLatestBlockhash(),r={blockhash:o.blockhash,lastValidBlockHeight:o.lastValidBlockHeight},c=pipe(createTransactionMessage({version:0}),A=>setTransactionMessageFeePayer(this.config.defaultFeePayer,A),A=>setTransactionMessageLifetimeUsingBlockhash(r,A),A=>appendTransactionMessageInstructions(t,A)),i=compileTransactionMessage(c),d=Buffer.from(i).toString("base64"),s=await this.rpcClient.getFeeForMessage(d);return BigInt(s??0)}catch{return 5000n+BigInt(e.length)*1000n}}async sendAndConfirm(e,t,o=30){let r=getBase64EncodedWireTransaction(e),c=await this.rpcClient.sendTransaction(r,{skipPreflight:t,preflightCommitment:this.config.commitment});console.log("\u{1F50D} Transaction sent, signature:",c),console.log("\u{1F50D} Signature length:",c.length),console.log("\u{1F50D} Signature type:",typeof c);let i=false,d=0,s=1e3,A=3e4,y=Date.now();for(;!i&&d<o&&Date.now()-y<A;)try{console.log(`\u{1F50D} Confirmation attempt ${d+1}/${o}`);let R=await this.rpcClient.getSignatureStatuses([c]);if(R[0]){if(console.log("\u{1F50D} Status found:",R[0]),R[0].err)throw new Error(`Transaction failed: ${JSON.stringify(R[0].err,(k,P)=>typeof P=="bigint"?P.toString():P)}`);let D=R[0].confirmationStatus;if(D===this.config.commitment||this.config.commitment==="confirmed"&&D==="finalized"){i=!0,console.log("\u2705 Transaction confirmed via status check");break}}else {console.log("\u{1F50D} No status found, trying transaction details...");try{let{createSolanaRpc:D}=await import('@solana/kit'),P=await D(this.config.rpcEndpoint??"https://api.devnet.solana.com").getTransaction(c,{commitment:this.config.commitment??"confirmed",encoding:"json",maxSupportedTransactionVersion:0}).send();if(P&&P.meta){if(P.meta.err)throw new Error(`Transaction failed: ${JSON.stringify(P.meta.err,(w,F)=>typeof F=="bigint"?F.toString():F)}`);i=!0,console.log("\u2705 Transaction confirmed via direct lookup");break}}catch{console.log("\u{1F50D} Transaction details not yet available");}}d++,await new Promise(D=>setTimeout(D,s)),s=Math.min(s*1.5,5e3);}catch(R){if(R instanceof Error&&R.message.includes("Transaction failed"))throw R;console.log("\u{1F50D} Confirmation attempt failed:",R.message),d++,await new Promise(D=>setTimeout(D,s*2));}if(!i){console.log("\u{1F50D} Final confirmation attempt via transaction lookup...");try{let{createSolanaRpc:R}=await import('@solana/kit'),k=await R(this.config.rpcEndpoint??"https://api.devnet.solana.com").getTransaction(c,{commitment:this.config.commitment??"confirmed",encoding:"json",maxSupportedTransactionVersion:0}).send();if(k&&k.meta){if(k.meta.err)throw new Error(`Transaction failed: ${JSON.stringify(k.meta.err,(P,w)=>typeof w=="bigint"?w.toString():w)}`);return console.log("\u2705 Transaction confirmed on final check - returning success"),c}}catch(R){console.log("\u{1F50D} Final check failed:",R.message);}return console.log("\u26A0\uFE0F Transaction confirmation timed out, but transaction was sent"),console.log(` Check status at: https://explorer.solana.com/tx/${c}?cluster=${this.config.cluster||"devnet"}`),c}return c}async simulateInstruction(e,t){let o=await this.rpcClient.getLatestBlockhash(),r={blockhash:o.blockhash,lastValidBlockHeight:o.lastValidBlockHeight},c=pipe(createTransactionMessage({version:0}),s=>setTransactionMessageFeePayerSigner(t[0],s),s=>setTransactionMessageLifetimeUsingBlockhash(r,s),s=>appendTransactionMessageInstructions([e],s)),i=await signTransactionMessageWithSigners(c),d=getBase64EncodedWireTransaction(i);return this.rpcClient.simulateTransaction(d,{commitment:this.config.commitment,replaceRecentBlockhash:true})}async simulateBatch(e,t){let o=await this.rpcClient.getLatestBlockhash(),r={blockhash:o.blockhash,lastValidBlockHeight:o.lastValidBlockHeight},c=pipe(createTransactionMessage({version:0}),s=>setTransactionMessageFeePayerSigner(t[0],s),s=>setTransactionMessageLifetimeUsingBlockhash(r,s),s=>appendTransactionMessageInstructions(e,s)),i=await signTransactionMessageWithSigners(c),d=getBase64EncodedWireTransaction(i);return this.rpcClient.simulateTransaction(d,{commitment:this.config.commitment,replaceRecentBlockhash:true})}estimateTransactionSize(e){let t=64;for(let o of e)t+=32,t+=(o.accounts?.length??0)*32,t+=o.data.length;return t}extractRawData(e){if(Buffer.isBuffer(e)||e instanceof Uint8Array)return new Uint8Array(e);if(typeof e=="object"&&e!==null&&"data"in e)return Buffer.from(e.data,"base64");if(typeof e=="string")return Buffer.from(e,"base64");throw new Error("Invalid account data format")}async createCommunicationSession(e){return {programAddress:this.config.programId,accounts:[],data:new Uint8Array(0)}}async sendCommunicationMessage(e,t){return {programAddress:this.config.programId,accounts:[],data:new Uint8Array(0)}}async updateParticipantStatus(e){return {programAddress:this.config.programId,accounts:[],data:new Uint8Array(0)}}};var mu={processed:500,confirmed:2e3,finalized:3e4},yu=class{accountCache;pdaCache;config;ttls;constructor(e={}){this.config={enabled:e.enabled??false,maxSize:e.maxSize??1e3,ttlOverrides:e.ttlOverrides??{}},this.ttls={processed:e.ttlOverrides?.processed??mu.processed,confirmed:e.ttlOverrides?.confirmed??mu.confirmed,finalized:e.ttlOverrides?.finalized??mu.finalized},this.accountCache=new LRUCache({max:this.config.maxSize,ttl:mu.finalized}),this.pdaCache=new LRUCache({max:this.config.maxSize});}isEnabled(){return this.config.enabled}getAccount(e,t,o){if(!this.config.enabled)return;let r=`${e}:${t}`,c=this.accountCache.get(r);if(c){if(o!==void 0&&c.slot<o){this.accountCache.delete(r);return}return c.data}}setAccount(e,t,o,r){if(!this.config.enabled)return;let c=`${e}:${o}`,i={data:t,slot:r,commitment:o,timestamp:Date.now()};this.accountCache.set(c,i,{ttl:this.ttls[o]});}getPDA(e){if(this.config.enabled)return this.pdaCache.get(e)}setPDA(e,t){this.config.enabled&&this.pdaCache.set(e,t);}invalidateAccount(e,t){this.config.enabled&&(t?this.accountCache.delete(`${e}:${t}`):["processed","confirmed","finalized"].forEach(o=>{this.accountCache.delete(`${e}:${o}`);}));}clear(){this.accountCache.clear(),this.pdaCache.clear();}getStats(){return {accountCache:{size:this.accountCache.size,max:this.config.maxSize},pdaCache:{size:this.pdaCache.size,max:this.config.maxSize}}}};var z=class{builder;config;logger;cacheManager;_debugMode=false;constructor(e){this.config=e,this.builder=new lu(e),this.cacheManager=new yu(e.cache),this.logger=e.logger;}debug(){return this._debugMode=true,this.builder.enableDebug(),this}async execute(e,t,o){return this.builder.execute(e,t,o)}async executeWithDetails(e,t,o){return this.builder.execute(e,t,o,{returnDetails:true})}async executeBatch(e,t,o){return this.builder.executeBatch(e,t.map(r=>()=>Promise.resolve(r())),o)}async simulate(e,t,o){return this.builder.execute(e,()=>Promise.resolve(t()),o,{simulate:true})}async simulateInstruction(e,t,o){return this.simulate(e,t,o)}async estimateCost(e){return this.builder.estimateCost(e)}async getCost(e,t){return this.builder.estimateCost([t])}async explain(e,t){return this.builder.explain(e,[t])}async analyze(e,t){return this.builder.debug(e,[t])}async getAccount(e,t){if(this.cacheManager.isEnabled()){let r=this.cacheManager.getAccount(e,this.commitment);if(r!==void 0)return this.logger?.info(`[Cache HIT] ${e}`),r}let o=await this.builder.getAccount(e,t);return this.cacheManager.isEnabled()&&o!==null&&(this.cacheManager.setAccount(e,o,this.commitment,0),this.logger?.info(`[Cache SET] ${e}`)),o}async getAccounts(e,t){if(!this.cacheManager.isEnabled())return this.builder.getAccounts(e,t);let o=new Array(e.length),r=[],c=[];for(let i=0;i<e.length;i++){let d=this.cacheManager.getAccount(e[i],this.commitment);d!==void 0?(o[i]=d,this.logger?.info(`[Cache HIT] ${e[i]}`)):(r.push(i),c.push(e[i]));}if(c.length>0){this.logger?.info(`[Cache MISS] Fetching ${c.length}/${e.length} accounts`);let i=await this.builder.getAccounts(c,t),d=0;for(let s=0;s<i.length;s++){let A=r[s],y=i[s];o[A]=y,y!==null&&this.cacheManager.setAccount(c[s],y,this.commitment,d);}}return o}async getProgramAccounts(e,t){return this.builder.getProgramAccounts(e,t)}get programId(){return this.config.programId}getProgramId(){return this.config.programId}get commitment(){return this.config.commitment??"confirmed"}getCommitment(){return this.config.commitment??"confirmed"}invalidateCache(e){this.cacheManager.invalidateAccount(e),this.logger?.info(`[Cache INVALIDATE] ${e}`);}clearCache(){this.cacheManager.clear(),this.logger?.info("[Cache CLEAR] All caches cleared");}getCacheStats(){return this.cacheManager.getStats()}};var t0=new Map,LT=0,Tu=class{constructor(e){this.config=e;console.log("\u{1F9EA} Initialized TestIPFSProvider for local testing (shared storage)");}storage=t0;uploadCount=0;async upload(e,t){LT++;let o=typeof e=="string"?e:new TextDecoder().decode(e),r=`Qm${this.generateHash(o)}_test_${LT}`;this.storage.set(r,{content:e,pinned:t?.pin!==false});let c=typeof e=="string"?new TextEncoder().encode(e).length:e.length;return console.log(`\u{1F4E6} Test IPFS upload: ${r} (${c} bytes)`),{hash:r,uri:`ipfs://${r}`,size:c,timestamp:Date.now(),pinned:t?.pin!==false,gateways:[`http://localhost:8080/ipfs/${r}`,`https://test.ipfs.io/ipfs/${r}`]}}async retrieve(e){let t=this.storage.get(e);if(!t)throw new Error(`Test IPFS: Content not found for hash ${e}`);return console.log(`\u{1F4E5} Test IPFS retrieve: ${e}`),await new Promise(o=>setTimeout(o,100)),t.content}async pin(e){let t=this.storage.get(e);return t?(t.pinned=true,console.log(`\u{1F4CC} Test IPFS pin: ${e}`),{hash:e,success:true,status:"pinned"}):{hash:e,success:false,status:"failed",error:`Content not found: ${e}`}}async unpin(e){let t=this.storage.get(e);return t?(t.pinned=false,console.log(`\u{1F4CC} Test IPFS unpin: ${e}`),{hash:e,success:true,status:"pinned"}):{hash:e,success:false,status:"failed",error:`Content not found: ${e}`}}generateHash(e){let t=0;for(let i=0;i<e.length;i++){let d=e.charCodeAt(i);t=(t<<5)-t+d,t=t&t;}let o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",r="",c=Math.abs(t);for(;c>0&&r.length<40;)r=o[c%o.length]+r,c=Math.floor(c/o.length);for(;r.length<40;)r=o[Math.floor(Math.random()*o.length)]+r;return r}getStats(){let e=0,t=0;for(let o of this.storage.values()){let r=typeof o.content=="string"?new TextEncoder().encode(o.content).length:o.content.length;e+=r,o.pinned&&t++;}return {count:this.storage.size,totalSize:e,pinned:t}}clear(){this.storage.clear(),LT=0,console.log("\u{1F9F9} Test IPFS storage cleared");}static getSharedStorage(){return t0}};var KT=class{constructor(e){this.config=e;}async upload(e,t){let o=this.config.endpoint??"https://api.pinata.cloud",r=new FormData,c=new Blob([e],{type:t?.contentType??"application/octet-stream"});r.append("file",c,t?.filename??"content"),t?.metadata&&r.append("pinataMetadata",JSON.stringify({name:t.filename??"ghostspeak-content",keyvalues:t.metadata}));let i=await fetch(`${o}/pinning/pinFileToIPFS`,{method:"POST",headers:{Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers},body:r});if(!i.ok){let A=await i.text();throw new Error(`Pinata upload failed: ${i.status} ${A}`)}let d=await i.json(),s=typeof e=="string"?new TextEncoder().encode(e).length:e.length;if(!Yw(d))throw new Error("Invalid IPFS upload response format");return {hash:d.IpfsHash,uri:`ipfs://${d.IpfsHash}`,size:s,timestamp:Date.now(),pinned:true,gateways:[`https://gateway.pinata.cloud/ipfs/${d.IpfsHash}`,`https://ipfs.io/ipfs/${d.IpfsHash}`]}}async retrieve(e,t){let r=`${t?.gateway??"https://gateway.pinata.cloud"}/ipfs/${e}`,c=await fetch(r,{signal:t?.timeout?AbortSignal.timeout(t.timeout):void 0});if(!c.ok)throw new Error(`Failed to retrieve from IPFS: ${c.status} ${c.statusText}`);let i=c.headers.get("content-type");return i?.startsWith("text/")||i?.includes("json")?c.text():new Uint8Array(await c.arrayBuffer())}async pin(e){let t=this.config.endpoint??"https://api.pinata.cloud",o=await fetch(`${t}/pinning/pinByHash`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers},body:JSON.stringify({hashToPin:e})}),r=o.ok;return {hash:e,success:r,status:r?"pinned":"failed",error:r?void 0:`Pin failed: ${o.status}`}}async unpin(e){let t=this.config.endpoint??"https://api.pinata.cloud",o=await fetch(`${t}/pinning/unpin/${e}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers}}),r=o.ok;return {hash:e,success:r,status:r?"pinned":"failed",error:r?void 0:`Unpin failed: ${o.status}`}}},HT=class{constructor(e){this.config=e;}async upload(e,t){let o=this.config.endpoint??"http://localhost:5001",r=new FormData,c=new Blob([e],{type:t?.contentType??"application/octet-stream"});r.append("file",c,t?.filename??"content");let i=await fetch(`${o}/api/v0/add`,{method:"POST",body:r});if(!i.ok)throw new Error(`IPFS HTTP upload failed: ${i.status}`);let d=await i.json(),s=typeof e=="string"?new TextEncoder().encode(e).length:e.length;if(typeof d!="object"||d===null)throw new Error("Invalid IPFS HTTP API response");let A=d;if(typeof A.Hash!="string")throw new Error("IPFS HTTP API response missing Hash field");let y=A.Hash;return {hash:y,uri:`ipfs://${y}`,size:s,timestamp:Date.now(),pinned:t?.pin!==false,gateways:[`${o}/ipfs/${y}`,`https://ipfs.io/ipfs/${y}`]}}async retrieve(e,t){let r=`${t?.gateway??this.config.endpoint?.replace("/api/v0","")??"https://ipfs.io"}/ipfs/${e}`,c=await fetch(r,{signal:t?.timeout?AbortSignal.timeout(t.timeout):void 0});if(!c.ok)throw new Error(`Failed to retrieve from IPFS: ${c.status}`);let i=c.headers.get("content-type");return i?.startsWith("text/")||i?.includes("json")?c.text():new Uint8Array(await c.arrayBuffer())}async pin(e){let t=this.config.endpoint??"http://localhost:5001",o=await fetch(`${t}/api/v0/pin/add?arg=${e}`,{method:"POST"}),r=o.ok;return {hash:e,success:r,status:r?"pinned":"failed",error:r?void 0:`Pin failed: ${o.status}`}}async unpin(e){let t=this.config.endpoint??"http://localhost:5001",o=await fetch(`${t}/api/v0/pin/rm?arg=${e}`,{method:"POST"}),r=o.ok;return {hash:e,success:r,status:r?"pinned":"failed",error:r?void 0:`Unpin failed: ${o.status}`}}},fu=class{constructor(e){this.config=e;this.initializeProviders();}providers=[];cache=new Map;initializeProviders(){if(this.providers.push(this.createProvider(this.config.provider)),this.config.fallbackProviders)for(let e of this.config.fallbackProviders)this.providers.push(this.createProvider(e));}createProvider(e){switch(e.name){case "pinata":return new KT(e);case "ipfs-http-client":case "custom":return new HT(e);case "test":return new Tu(e);default:throw new Error(`Unsupported IPFS provider: ${e.name}`)}}async upload(e,t){let o=Date.now(),r;for(let c=0;c<this.providers.length;c++){let i=this.providers[c];try{console.log(`\u{1F4E4} Attempting IPFS upload with provider ${c+1}/${this.providers.length}`);let d=await this.withRetry(()=>i.upload(e,t),this.config.maxRetries??3,this.config.retryDelay??1e3);return console.log(`\u2705 IPFS upload successful: ${d.hash}`),{success:!0,data:d,duration:Date.now()-o,provider:this.config.provider.name}}catch(d){console.warn(`\u274C Provider ${c+1} upload failed:`,d instanceof Error?d.message:String(d)),r=d instanceof Error?d:new Error(String(d));}}return {success:false,error:"UPLOAD_FAILED",message:`All providers failed. Last error: ${r?.message}`,duration:Date.now()-o}}async retrieve(e,t){let o=Date.now();if(this.config.enableCache&&t?.cache!==false){let i=this.cache.get(e);if(i&&Date.now()-i.timestamp<(this.config.cacheTTL??3e5))return {success:true,data:{content:i.content,size:(typeof i.content=="string",i.content.length),hash:e,gateway:"cache",fromCache:true},duration:Date.now()-o}}let r,c=t?.gateway?[t.gateway]:this.config.gateways??["https://ipfs.io"];for(let i of c)for(let d of this.providers)try{let s=await this.withRetry(()=>d.retrieve(e,{...t,gateway:i}),this.config.maxRetries??3,this.config.retryDelay??1e3);return this.config.enableCache&&this.cache.set(e,{content:s,timestamp:Date.now()}),{success:!0,data:{content:s,size:s.length,hash:e,gateway:i,fromCache:!1},duration:Date.now()-o}}catch(s){r=s instanceof Error?s:new Error(String(s));}return {success:false,error:"RETRIEVAL_FAILED",message:`Failed to retrieve from all gateways. Last error: ${r?.message}`,duration:Date.now()-o}}async pin(e){let t=Date.now();for(let o of this.providers)try{let r=await o.pin(e);return {success:r.success,data:r,duration:Date.now()-t}}catch(r){console.warn("Pin attempt failed:",r);}return {success:false,error:"PIN_FAILED",message:"All pin attempts failed",duration:Date.now()-t}}async storeContent(e,t,o){let r=new TextEncoder().encode(e).length,c=this.config.sizeThreshold??800;if(!(o?.forceIpfs??r>c))return {uri:`data:application/json;base64,${btoa(e)}`,useIpfs:false,size:r};let d=await this.upload(e,o);if(!d.success||!d.data)throw new Error(`IPFS upload failed: ${d.message}`);let s={type:t,originalSize:r,ipfsHash:d.data.hash,encoding:"utf8",compression:"none",mimeType:"application/json",uploadedAt:d.data.timestamp,pinned:d.data.pinned,checksum:await this.calculateChecksum(e)};return {uri:d.data.uri,useIpfs:true,ipfsMetadata:s,size:r}}async retrieveContent(e){if(e.startsWith("data:")){let t=e.split(",")[1];if(!t)throw new Error("Invalid data URI format");return atob(t)}if(e.startsWith("ipfs://")){let t=e.replace("ipfs://",""),o=await this.retrieve(t);if(!o.success||!o.data)throw new Error(`Failed to retrieve IPFS content: ${o.message}`);return typeof o.data.content=="string"?o.data.content:new TextDecoder().decode(o.data.content)}throw new Error(`Unsupported URI format: ${e}`)}async withRetry(e,t,o){let r;for(let c=0;c<=t;c++)try{return await e()}catch(i){r=i instanceof Error?i:new Error(String(i)),c<t&&(console.log(`\u23F3 Retrying in ${o}ms... (attempt ${c+1}/${t})`),await new Promise(d=>setTimeout(d,o)));}throw r}async calculateChecksum(e){let o=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")}clearCache(){this.cache.clear();}getCacheStats(){return {size:this.cache.size,keys:Array.from(this.cache.keys())}}};var en={provider:{name:"pinata",endpoint:"https://api.pinata.cloud"},gateways:["https://gateway.pinata.cloud","https://ipfs.io","https://cloudflare-ipfs.com","https://gateway.ipfs.io"],autoPinning:true,sizeThreshold:800,maxRetries:3,retryDelay:1e3,enableCache:true,cacheTTL:3e5},jT=class{client;constructor(e){this.client=new fu(e);}async storeAgentMetadata(e,t){let o=JSON.stringify({...e,createdAt:new Date().toISOString(),version:"1.0.0"});return this.client.storeContent(o,"agent-metadata",{filename:`agent-${e.agentId??"metadata"}.json`,metadata:{type:"agent-metadata",agentId:e.agentId,name:e.name},contentType:"application/json",...t})}async storeChannelMessage(e,t){let o=JSON.stringify({...e,timestamp:new Date().toISOString(),version:"1.0.0"});return this.client.storeContent(o,"channel-message",{filename:`message-${Date.now()}.json`,metadata:{type:"channel-message",channelId:e.channelId,messageType:e.messageType??0},contentType:"application/json",...t})}async storeFileAttachment(e,t,o,r){let c=typeof e=="string"?e:new TextDecoder().decode(e);return this.client.storeContent(c,"file-attachment",{filename:t,contentType:o,metadata:{type:"file-attachment",originalFilename:t,mimeType:o},...r})}async retrieveAgentMetadata(e){let t=await this.client.retrieveContent(e),o=JSON.parse(t);if(typeof o!="object"||o===null)throw new Error("Retrieved agent metadata is not a valid object");return o}async retrieveChannelMessage(e){let t=await this.client.retrieveContent(e),o=JSON.parse(t);if(typeof o!="object"||o===null)throw new Error("Retrieved channel message is not a valid object");return o}async batchUpload(e){return (await Promise.allSettled(e.map(o=>this.client.storeContent(o.content,o.type,{filename:o.filename,...o.options})))).map(o=>o.status==="fulfilled"?{success:true,data:o.value}:{success:false,error:"UPLOAD_FAILED",message:o.reason instanceof Error?o.reason.message:String(o.reason)})}async pinContent(e){let t=await this.client.pin(e);return {...t,data:t.success}}isIPFSUri(e){return e.startsWith("ipfs://")}extractIPFSHash(e){return this.isIPFSUri(e)?e.replace("ipfs://",""):null}getGatewayUrls(e,t){return (t??en.gateways??[]).map(r=>`${r}/ipfs/${e}`)}isValidIPFSHash(e){return e.length<44?false:e.startsWith("Qm")&&e.length===46?/^Qm[A-Za-z0-9]{44}$/.test(e):e.length>46?/^[A-Za-z0-9]+$/.test(e):false}shouldUseIPFS(e,t){let o=new TextEncoder().encode(e).length,r=t??en.sizeThreshold??800;return o>r}async compressContent(e){try{if(typeof CompressionStream<"u"){let t=new CompressionStream("gzip"),o=t.writable.getWriter(),r=t.readable.getReader(),i=new TextEncoder().encode(e),d=o.write(i).then(()=>o.close()),s=[],A=async()=>{let P=await r.read(),{done:w,value:F}=P;!w&&F&&(s.push(F),await A());};await Promise.all([d,A()]);let y=s.reduce((P,w)=>P+w.length,0),R=new Uint8Array(y),D=0;for(let P of s)R.set(P,D),D+=P.length;return {compressed:Buffer.from(R).toString("base64"),algorithm:"gzip"}}else return console.warn("Compression not available in this environment, storing uncompressed"),{compressed:e,algorithm:"none"}}catch(t){return console.warn("Compression failed, falling back to uncompressed:",t),{compressed:e,algorithm:"none"}}}async decompressContent(e,t){if(t==="none")return e;try{if(t==="gzip")if(typeof DecompressionStream<"u"){let o=new DecompressionStream("gzip"),r=o.writable.getWriter(),c=o.readable.getReader(),i=Buffer.from(e,"base64"),d=r.write(i).then(()=>r.close()),s=[],A=async()=>{let P=await c.read(),{done:w,value:F}=P;!w&&F&&(s.push(F),await A());};await Promise.all([d,A()]);let y=s.reduce((P,w)=>P+w.length,0),R=new Uint8Array(y),D=0;for(let P of s)R.set(P,D),D+=P.length;return new TextDecoder().decode(R)}else return console.warn("Decompression not available in this environment, returning compressed data"),e;else return console.warn(`Unknown compression algorithm: ${t}`),e}catch(o){return console.error("Decompression failed, returning compressed data:",o),e}}getStats(){return {cacheStats:this.client.getCacheStats(),config:en}}clearCache(){this.client.clearCache();}};function n0(n){let e={...en,...n,provider:{...en.provider,...n?.provider}};return new jT(e)}var r0=address("11111111111111111111111111111111");address("11111111111111111111111111111111");address("SysvarRecentB1ockHashes11111111111111111111");address("SysvarStakeHistory1111111111111111111111111");address("Sysvar1nstructions1111111111111111111111111");address("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");address("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");address("So11111111111111111111111111111111111111112");address("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");address("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s");te();var tn=class extends z{ipfsUtils=null;constructor(e){super(e),e.ipfsConfig&&(this.ipfsUtils=n0(e.ipfsConfig));}async register(e,t){let o=t.pricingModel??0,r=async()=>{let i=await this.deriveAgentPda(t.agentId,e.address);return await ny({agentAccount:i,signer:e,systemProgram:this.systemProgramId,agentType:t.agentType,name:t.name,description:t.description,metadataUri:t.metadataUri,agentId:t.agentId,pricingModel:o})},c=()=>{let i=new Uint8Array(5);return i[0]=1,new DataView(i.buffer).setUint32(1,256*1024,true),{programAddress:"ComputeBudget111111111111111111111111111111",accounts:[],data:i}};return this.debug(),t.skipSimulation?(console.log("\u{1F680} SKIPPING SIMULATION - Sending transaction directly"),this.builder.executeBatch("registerAgent",[c,r],[e],{simulate:false,skipPreflight:true})):this.builder.executeBatch("registerAgent",[c,r],[e])}async registerCompressed(e,t){let o=async()=>{let r=t.treeConfig||await this.deriveTreeConfigPda(e.address);return await iy({merkleTree:t.merkleTree,treeAuthority:r,signer:e,systemProgram:this.systemProgramId,compressionProgram:this.compressionProgramId,agentType:t.agentType,name:t.name,description:t.description,metadataUri:t.metadataUri,agentId:t.agentId,pricingModel:t.pricingModel??0,logWrapper:"noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"})};return this.execute("registerAgentCompressed",o,[e])}async update(e,t){let o=()=>Gy({agentAccount:t.agentAddress,signer:e,metadataUri:t.metadataUri,agentType:t.agentType,agentId:t.agentId,name:t.name??null,description:t.description??null,pricingModel:t.pricingModel??0});return this.execute("updateAgent",o,[e])}async verify(e,t){let o=async()=>await wT({agent:t.agentAddress,verifier:e,agentPubkey:t.agentPubkey,serviceEndpoint:t.serviceEndpoint,supportedCapabilities:t.supportedCapabilities,verifiedAt:t.verifiedAt});return this.execute("verifyAgent",o,[e])}async deactivate(e,t){let o=()=>n1({agentAccount:t.agentAddress,signer:e,agentId:t.agentId});return this.execute("deactivateAgent",o,[e])}async activate(e,t){let o=()=>Tm({agentAccount:t.agentAddress,signer:e,agentId:t.agentId});return this.execute("activateAgent",o,[e])}async getAgentAccount(e){return super.getAccount(e,"getAgentDecoder")}async getAllAgents(){return this.getProgramAccounts("getAgentDecoder")}async getAgentsByType(e){let t=Buffer.alloc(1);t.writeUInt8(e,0);let o=[{memcmp:{offset:BigInt(8),bytes:t.toString("base64"),encoding:"base64"}}];return this.getProgramAccounts("getAgentDecoder",o)}async getUserAgents(e){let t=[{memcmp:{offset:BigInt(9),bytes:e,encoding:"base58"}}];return this.getProgramAccounts("getAgentDecoder",t)}async batchGetAgents(e,t){return super.getAccounts(e,"getAgentDecoder")}async batchGetExistingAgents(e,t){let{batchGetExistingAccounts:o}=await Promise.resolve().then(()=>(qT(),$T));return o(this.config.rpc,e,{onProgress:t})}async batchGetAndMapAgents(e,t){let{batchGetAndMap:o}=await Promise.resolve().then(()=>(qT(),$T));return o(this.config.rpc,e,t)}async deriveAgentPda(e,t){let{deriveAgentPda:o}=await Promise.resolve().then(()=>(Pu(),Du)),[r]=await o({programAddress:this.programId,owner:t,agentId:e});return r}async deriveUserRegistryPda(e){let{deriveUserRegistryPda:t}=await Promise.resolve().then(()=>(Pu(),Du));return t(this.programId,e)}async deriveTreeConfigPda(e){let{getProgramDerivedAddress:t,getAddressEncoder:o}=await import('@solana/addresses'),c=o().encode(e),[i]=await t({programAddress:this.programId,seeds:[new TextEncoder().encode("agent_tree_config"),c]});return i}get systemProgramId(){return r0}get compressionProgramId(){return "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"}};te();var nn=class extends z{getInitializeGovernanceProposalInstruction(e){return Kt(e)}async createProposal(e){let t=this.deriveProposalPda(e.signer.address,e.title),o=await this.getInitializeGovernanceProposalInstruction({proposal:t,proposer:e.signer,title:e.title,description:e.description,proposalType:{kind:e.proposalType,data:{}},executionParams:{instructions:[],accounts:[],targetProgram:t,executeAfter:BigInt(e.executionDelay??0)},proposalId:BigInt(Date.now())});return this.execute("createProposal",()=>o,[e.signer])}async getProposal(e){return super.getAccount(e,"getGovernanceProposalDecoder")}async getActiveProposals(){return this.getProgramAccounts("getGovernanceProposalDecoder")}async getProposalsByProposer(e){let t=[{memcmp:{offset:BigInt(8),bytes:e,encoding:"base58"}}];return this.getProgramAccounts("getGovernanceProposalDecoder",t)}async getProposalsByStatus(e){let t=await this.getProgramAccounts("getGovernanceProposalDecoder");return t.filter(o=>t.length>0)}deriveProposalPda(e,t){return `proposal_${e}_${t}`}};te();var rn=class extends z{async createMultisig(e){throw new Error("createMultisig: Instruction not available - requires IDL regeneration")}async createProposal(e){let t=await Kt({proposer:e.proposer,proposalId:e.proposalId,title:e.title,description:e.description,proposalType:e.proposalType,executionParams:e.executionParams},{programAddress:this.programId});return this.execute("createProposal",()=>t,[e.proposer])}async executeProposal(e){throw new Error("executeProposal: Use protocol_config instructions for execution")}};var qpe="https://staging.crossmint.com",Jpe="https://www.crossmint.com",JT={AGENT_IDENTITY:"GhostSpeakAgentIdentity",REPUTATION_SCORE:"GhostSpeakReputation",JOB_COMPLETION:"GhostSpeakJobCompletion"},Eu=class{apiKey;baseUrl;chain;constructor(e){this.apiKey=e.apiKey,this.baseUrl=e.environment==="production"?Jpe:qpe,this.chain=e.chain||"base-sepolia";}async createAgentIdentityType(){let e=JT.AGENT_IDENTITY,t={$schema:"https://json-schema.org/draft/2020-12/schema",title:"GhostSpeak Agent Identity",description:"Verified AI agent identity on the GhostSpeak Protocol",type:"object",properties:{credentialSubject:{type:"object",properties:{agentId:{type:"string"},owner:{type:"string"},capabilities:{type:"array",items:{type:"string"}},registeredAt:{type:"string"},reputationScore:{type:"number"},totalJobsCompleted:{type:"integer"},verified:{type:"boolean"},id:{type:"string"}},required:["agentId","owner","capabilities","registeredAt","verified"],additionalProperties:false}}};return this.createCredentialType(e,t)}async createReputationType(){let e=JT.REPUTATION_SCORE,t={$schema:"https://json-schema.org/draft/2020-12/schema",title:"GhostSpeak Reputation",description:"Verified reputation score for GhostSpeak users",type:"object",properties:{credentialSubject:{type:"object",properties:{userId:{type:"string"},walletAddress:{type:"string"},reputationScore:{type:"number"},totalTransactions:{type:"integer"},disputeRate:{type:"number"},memberSince:{type:"string"},id:{type:"string"}},required:["userId","walletAddress","reputationScore","memberSince"],additionalProperties:false}}};return this.createCredentialType(e,t)}async createJobCompletionType(){let e=JT.JOB_COMPLETION,t={$schema:"https://json-schema.org/draft/2020-12/schema",title:"GhostSpeak Job Completion",description:"Certificate of successful job completion on GhostSpeak",type:"object",properties:{credentialSubject:{type:"object",properties:{jobId:{type:"string"},agentId:{type:"string"},clientAddress:{type:"string"},completedAt:{type:"string"},amountPaid:{type:"string"},rating:{type:"integer"},review:{type:"string"},id:{type:"string"}},required:["jobId","agentId","clientAddress","completedAt","amountPaid","rating"],additionalProperties:false}}};return this.createCredentialType(e,t)}async initializeAllTypes(){let[e,t,o]=await Promise.all([this.createAgentIdentityType(),this.createReputationType(),this.createJobCompletionType()]);return {agentIdentity:e,reputation:t,jobCompletion:o}}async createAllTemplates(e){let[t,o,r]=await Promise.all([this.createTemplate(e.agentIdentity.id,{name:"GhostSpeak Agent Identity",description:"Verified AI agent identity on the GhostSpeak Protocol",imageUrl:"https://www.ghostspeak.io/assets/credential-agent.png"}),this.createTemplate(e.reputation.id,{name:"GhostSpeak Reputation",description:"Verified reputation score for GhostSpeak users",imageUrl:"https://www.ghostspeak.io/assets/credential-reputation.png"}),this.createTemplate(e.jobCompletion.id,{name:"GhostSpeak Job Completion Certificate",description:"Certificate of successful job completion on GhostSpeak",imageUrl:"https://www.ghostspeak.io/assets/credential-job.png"})]);return {agentIdentityTemplate:t,reputationTemplate:o,jobCompletionTemplate:r}}async issueAgentCredential(e,t,o,r){return this.issueCredential(e,t,o,r)}async issueReputationCredential(e,t,o,r){return this.issueCredential(e,t,o,r)}async issueJobCompletionCredential(e,t,o,r){return this.issueCredential(e,t,o,r)}async createCredentialType(e,t){let o=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/types/${e}`,{method:"PUT",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify(t)});if(!o.ok){let r=await o.json().catch(()=>({message:o.statusText}));throw new Error(`Failed to create credential type: ${JSON.stringify(r)}`)}return o.json()}async createTemplate(e,t){let o=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/templates/`,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify({credentials:{type:e,encryption:"none",storage:"crossmint"},metadata:t,chain:this.chain})});if(!o.ok){let i=await o.text();try{let d=JSON.parse(i);throw new Error(`Failed to create template: ${JSON.stringify(d)}`)}catch{throw new Error(`Failed to create template (${o.status}): ${i}`)}}let r=await o.json(),c=await this.waitForAction(r.id);return c.data&&c.data.collection?c.data.collection:c.data||c}async waitForAction(e){let t=0;for(;t<60;){await new Promise(c=>setTimeout(c,2e3));let o=await fetch(`${this.baseUrl}/api/2022-06-09/actions/${e}`,{headers:{"X-API-KEY":this.apiKey}});if(!o.ok)throw new Error(`Failed to poll action: ${o.statusText}`);let r=await o.json();if(r.status==="succeeded")return r;if(r.status==="failed")throw new Error(`Action failed: ${JSON.stringify(r)}`);t++;}throw new Error("Action polling timed out")}async issueCredential(e,t,o,r){let c=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/templates/${e}/vcs`,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify({recipient:`email:${t}:${this.chain}`,credential:{subject:o,expiresAt:r||this.getDefaultExpiry()}})});if(!c.ok){let i=await c.json().catch(()=>({message:c.statusText}));throw new Error(`Failed to issue credential: ${JSON.stringify(i)}`)}return c.json()}async getCredential(e){let t=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/${e}`,{headers:{"X-API-KEY":this.apiKey}});if(!t.ok){let o=await t.json().catch(()=>({message:t.statusText}));throw new Error(`Failed to get credential: ${JSON.stringify(o)}`)}return t.json()}async verifyCredential(e){let t=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/verification/verify`,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":this.apiKey},body:JSON.stringify({credential:e})});if(!t.ok){let o=await t.json().catch(()=>({message:t.statusText}));throw new Error(`Failed to verify credential: ${JSON.stringify(o)}`)}return t.json()}async revokeCredential(e){let t=await fetch(`${this.baseUrl}/api/v1-alpha1/credentials/${e}`,{method:"DELETE",headers:{"X-API-KEY":this.apiKey}});if(!t.ok){let o=await t.json().catch(()=>({message:t.statusText}));throw new Error(`Failed to revoke credential: ${JSON.stringify(o)}`)}return t.json()}getDefaultExpiry(){let e=new Date;return e.setFullYear(e.getFullYear()+1),e.toISOString().split("T")[0]}};var a0="did_document";var ve=class extends Error{code;constructor(e,t){super(t||e),this.name="DidError",this.code=e;}};async function hu(n,e){let[t,o]=await getProgramDerivedAddress({programAddress:n,seeds:[new TextEncoder().encode(a0),getAddressEncoder().encode(e)]});return [t,o]}function he(n,e){return `did:sol:${n==="mainnet"?"mainnet-beta":n}:${e.toString()}`}function Cu(n){if(!n.startsWith("did:sol:"))throw new ve("InvalidDidFormat",'DID must start with "did:sol:"');let e=n.split(":");if(e.length!==4)throw new ve("InvalidDidFormat",'DID must have format "did:sol:network:identifier"');let t=["mainnet-beta","devnet","testnet","localnet"];if(!t.includes(e[2]))throw new ve("InvalidDidFormat",`Invalid network "${e[2]}". Must be one of: ${t.join(", ")}`);try{pt.decode(e[3]);}catch{throw new ve("InvalidDidFormat","DID identifier must be a valid base58-encoded Solana public key")}}function d0(n){Cu(n);let e=n.split(":");return {method:e[1],network:e[2],identifier:e[3]}}function QT(n){let e=n.verificationMethods.filter(s=>!s.revoked).map(s=>({id:`${n.did}#${s.id}`,type:s.methodType,controller:s.controller,publicKeyMultibase:s.publicKeyMultibase})),t=n.verificationMethods.filter(s=>!s.revoked&&s.relationships.includes("authentication")).map(s=>`${n.did}#${s.id}`),o=n.verificationMethods.filter(s=>!s.revoked&&s.relationships.includes("assertionMethod")).map(s=>`${n.did}#${s.id}`),r=n.verificationMethods.filter(s=>!s.revoked&&s.relationships.includes("keyAgreement")).map(s=>`${n.did}#${s.id}`),c=n.verificationMethods.filter(s=>!s.revoked&&s.relationships.includes("capabilityInvocation")).map(s=>`${n.did}#${s.id}`),i=n.verificationMethods.filter(s=>!s.revoked&&s.relationships.includes("capabilityDelegation")).map(s=>`${n.did}#${s.id}`),d=n.serviceEndpoints.map(s=>({id:`${n.did}#${s.id}`,type:s.serviceType,serviceEndpoint:s.serviceEndpoint,description:s.description||void 0}));return {"@context":n.context,id:n.did,controller:n.controller.toString(),verificationMethod:e,authentication:t.length>0?t:void 0,assertionMethod:o.length>0?o:void 0,keyAgreement:r.length>0?r:void 0,capabilityInvocation:c.length>0?c:void 0,capabilityDelegation:i.length>0?i:void 0,service:d.length>0?d:void 0,alsoKnownAs:n.alsoKnownAs.length>0?n.alsoKnownAs:void 0}}function u0(n,e,t,o=["authentication"]){let r=`z${t}`;return {id:n,methodType:"Ed25519VerificationKey2020",controller:e,publicKeyMultibase:r,relationships:o,createdAt:Math.floor(Date.now()/1e3),revoked:false}}function g0(n,e,t,o=""){return {id:n,serviceType:e,serviceEndpoint:t,description:o}}function A0(n){return !n.deactivated}function p0(n,e=true){let t=QT(n);return e?JSON.stringify(t,null,2):JSON.stringify(t)}var on=n=>pt.encode(n),ele="GHosT3wqDfNq9bKz8dNEQ1F5mLuN7bKdNYx3Z1111111";var cn=class{programId;didModule;constructor(e=ele,t){this.programId=e,this.didModule=t;}setDidModule(e){this.didModule=e;}hashSubjectData(e){let t=JSON.stringify(e,Object.keys(e).sort());return sha256(new TextEncoder().encode(t))}generateCredentialId(e,t){let o=Date.now(),r=`${e}-${t}-${o}`,c=sha256(new TextEncoder().encode(r)),i=on(c.slice(0,8));return `${e.toLowerCase()}-${i}`}exportAsW3CCredential(e,t,o,r,c){let i=c?.network||"mainnet",d=he(i,this.programId),s=he(i,e.subject),A=`solana:${this.programId}:credential:${e.credentialId}`;return {"@context":["https://www.w3.org/ns/credentials/v2","https://w3id.org/security/data-integrity/v2","https://ghostspeak.io/ns/credentials/v1"],type:["VerifiableCredential",`GhostSpeak${o.kind}Credential`],id:`urn:ghostspeak:${e.credentialId}`,issuer:{id:d,name:"GhostSpeak Protocol"},validFrom:new Date(e.issuedAt*1e3).toISOString(),validUntil:e.expiresAt?new Date(e.expiresAt*1e3).toISOString():void 0,credentialSubject:{id:s,...r},credentialSchema:{id:o.schemaUri,type:"JsonSchema"},credentialStatus:{id:A,type:"SolanaAccountStatus2025",statusPurpose:"revocation"},relatedResource:c?.includeRelatedResource?[{id:e.subjectDataUri,digestMultibase:`mEi${on(e.subjectDataHash)}`}]:void 0,proof:{type:"DataIntegrityProof",created:new Date(e.issuedAt*1e3).toISOString(),verificationMethod:`${d}#key-1`,cryptosuite:"eddsa-rdfc-2022",proofPurpose:"assertionMethod",proofValue:on(e.signature)}}}async exportWithDidResolution(e,t,o,r,c){if(!this.didModule)return this.exportAsW3CCredential(e,t,o,r,c);let i=c?.network||"mainnet",d=he(i,this.programId),s=he(i,e.subject),A=await this.didModule.resolve(this.programId).catch(()=>null);await this.didModule.resolve(e.subject).catch(()=>null);let R=`solana:${this.programId}:credential:${e.credentialId}`,D=A?.verificationMethods?.[0]?`${d}#${A.verificationMethods[0].id}`:`${d}#key-1`;return {"@context":["https://www.w3.org/ns/credentials/v2","https://w3id.org/security/data-integrity/v2","https://ghostspeak.io/ns/credentials/v1"],type:["VerifiableCredential",`GhostSpeak${o.kind}Credential`],id:`urn:ghostspeak:${e.credentialId}`,issuer:{id:d,name:"GhostSpeak Protocol"},validFrom:new Date(e.issuedAt*1e3).toISOString(),validUntil:e.expiresAt?new Date(e.expiresAt*1e3).toISOString():void 0,credentialSubject:{id:s,...r},credentialSchema:{id:o.schemaUri,type:"JsonSchema"},credentialStatus:{id:R,type:"SolanaAccountStatus2025",statusPurpose:"revocation"},relatedResource:c?.includeRelatedResource?[{id:e.subjectDataUri,digestMultibase:`mEi${on(e.subjectDataHash)}`}]:void 0,proof:{type:"DataIntegrityProof",created:new Date(e.issuedAt*1e3).toISOString(),verificationMethod:D,cryptosuite:"eddsa-rdfc-2022",proofPurpose:"assertionMethod",proofValue:on(e.signature)}}}static buildAgentIdentitySubject(e){return e}issueX402AgentCredential(e){let t=Math.floor(Date.now()/1e3),o={agentId:e.agentId,owner:e.owner,name:e.name,capabilities:e.capabilities||[],serviceEndpoint:e.serviceEndpoint,frameworkOrigin:e.frameworkOrigin,x402Enabled:true,x402PaymentAddress:e.x402PaymentAddress,x402AcceptedTokens:e.x402AcceptedTokens,x402PricePerCall:e.x402PricePerCall,registeredAt:t,verifiedAt:t,type:"external-x402-agent",verificationResponseTimeMs:e.verificationResponseTimeMs},r=this.generateCredentialId("AgentIdentity",e.agentAddress),c=this.hashSubjectData(o),i={template:"x402-agent-identity-template",subject:e.agentAddress,issuer:this.programId,credentialId:r,subjectDataHash:c,subjectDataUri:`data:application/json;base64,${Buffer.from(JSON.stringify(o)).toString("base64")}`,status:"Active",signature:c,issuedAt:t},d={authority:this.programId,name:"x402 Agent Identity",kind:"AgentIdentity",schemaUri:"https://ghostspeak.io/schemas/x402-agent-identity-v1.json",description:"Verifiable credential for x402-compatible AI agents registered with GhostSpeak",isActive:true,totalIssued:1,createdAt:t},s={credentialType:d.authority,name:"x402 Agent Identity",imageUri:"https://ghostspeak.io/assets/credential-badge-x402.png",issuer:this.programId,isActive:true,totalIssued:1,createdAt:t},A=this.exportAsW3CCredential(i,s,d,o,{network:e.network||"devnet",includeRelatedResource:true});return {credentialId:r,credential:i,w3cCredential:A,subjectData:o}}exportCredentialToJSON(e,t,o){let r={credentialType:"x402-agent",name:e.credentialId.includes("agentidentity")?"Agent Identity":"Custom",imageUri:"https://ghostspeak.io/assets/credential-badge.png",issuer:e.issuer,isActive:true,totalIssued:1,createdAt:e.issuedAt},c={authority:e.issuer,name:"GhostSpeak Credential",kind:"AgentIdentity",schemaUri:"https://ghostspeak.io/schemas/credential-v1.json",description:"GhostSpeak verifiable credential",isActive:true,totalIssued:1,createdAt:e.issuedAt},i=this.exportAsW3CCredential(e,r,c,t,{network:o?.network||"devnet",includeRelatedResource:true});return o?.pretty?JSON.stringify(i,null,2):JSON.stringify(i)}};var Ru=class{constructor(e){this.config=e;this.credentialModule=new cn(e.programId),e.crossmint&&(this.crossmintClient=new Eu(e.crossmint));}credentialModule;crossmintClient;async issueAgentIdentityCredential(e){let t=cn.buildAgentIdentitySubject({agentId:e.agentId,owner:e.owner,name:e.name,capabilities:e.capabilities,serviceEndpoint:e.serviceEndpoint,frameworkOrigin:e.frameworkOrigin,x402Enabled:e.x402Enabled,registeredAt:e.registeredAt,verifiedAt:e.verifiedAt}),o=this.credentialModule.generateCredentialId("AgentIdentity",e.owner),r=this.credentialModule.hashSubjectData(t),c={template:"11111111111111111111111111111111",subject:e.owner,issuer:e.owner,credentialId:o,subjectDataHash:r,subjectDataUri:`ipfs://placeholder/${o}`,status:"Active",signature:e.signature,issuedAt:Math.floor(Date.now()/1e3),expiresAt:void 0,revokedAt:void 0,crossmintCredentialId:void 0},i={authority:"11111111111111111111111111111111",name:"AgentIdentity",kind:"AgentIdentity",schemaUri:"https://ghostspeak.io/schemas/agent-identity.json",description:"Verified AI agent identity on GhostSpeak Protocol",isActive:true,totalIssued:1,createdAt:Math.floor(Date.now()/1e3)},d={credentialType:"11111111111111111111111111111111",name:"GhostSpeak Agent Identity",imageUri:"https://www.ghostspeak.io/assets/credential-agent.png",issuer:e.owner,isActive:true,totalIssued:1,createdAt:Math.floor(Date.now()/1e3),crossmintTemplateId:this.config.crossmintTemplates?.agentIdentity},s=this.credentialModule.exportAsW3CCredential(c,d,i,t),A={solanaCredential:{credentialId:o},w3cCredential:s};if(e.syncToCrossmint&&this.crossmintClient&&e.recipientEmail)if(!d.crossmintTemplateId)A.crossmintSync={status:"failed",error:"No template ID configured"};else try{let y=await this.crossmintClient.issueCredential(d.crossmintTemplateId,e.recipientEmail,t);A.crossmintSync={status:"synced",credentialId:y.credentialId,chain:this.config.crossmint?.chain};}catch(y){A.crossmintSync={status:"failed",error:y instanceof Error?y.message:"Unknown error"};}return A}};var nle="https://facilitator.payai.network",rle=3e4,ole={attempts:3,delayMs:1e3};function ile(n){return n.status===402}async function cle(n){let e=await n.text();try{let o=JSON.parse(e);if(o.accepts&&Array.isArray(o.accepts))return o.accepts;if(o.paymentRequirements&&Array.isArray(o.paymentRequirements))return o.paymentRequirements;if(o.scheme&&o.payTo)return [o]}catch{}let t=n.headers.get("x-payment-required");if(t)try{return JSON.parse(t)}catch{}return []}var bu=class extends EventEmitter{config;localRecords=[];constructor(e){super(),this.config={facilitatorUrl:e.facilitatorUrl??nle,rpcUrl:e.rpcUrl,wallet:e.wallet,timeout:e.timeout??rle,retry:e.retry??ole};}async fetch(e,t){this.emit("request:started",e);let o=Date.now();try{let r=await this.fetchWithTimeout(e,t);if(ile(r)){let i=await cle(r);if(this.emit("payment:required",i),i.length===0)throw new Error("Payment required but no payment options provided");let d=this.selectPaymentOption(i);if(!d)throw new Error("No compatible payment option found");r=await this.makePaymentAndRetry(e,t??{},d);}let c=Date.now()-o;return this.emit("request:completed",e,r.ok,c),r}catch(r){let c=Date.now()-o;throw this.emit("request:completed",e,false,c),r instanceof Error&&this.emit("payment:failed",r),r}}async verifyPayment(e,t){return (await this.fetchWithTimeout(`${this.config.facilitatorUrl}/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentHeader:e,paymentRequirements:t})})).json()}async settlePayment(e,t){return (await this.fetchWithTimeout(`${this.config.facilitatorUrl}/settle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentHeader:e,paymentRequirements:t})})).json()}async listResources(e){let t=new URLSearchParams;return e?.network&&t.set("network",e.network),e?.capability&&t.set("capability",e.capability),e?.maxPrice&&t.set("maxPrice",e.maxPrice.toString()),(await this.fetchWithTimeout(`${this.config.facilitatorUrl}/list?${t.toString()}`)).json()}getLocalReputationRecords(){return [...this.localRecords]}clearLocalReputationRecords(){this.localRecords.length=0;}selectPaymentOption(e){let t=e.find(o=>o.network==="solana");return t||(e[0]??null)}async makePaymentAndRetry(e,t,o){this.emit("payment:started",o);let r=await this.createPaymentHeader(o),c=await this.verifyPayment(r,o);if(!c.valid)throw new Error(`Payment verification failed: ${c.error??"Unknown error"}`);let i=await this.settlePayment(r,o);if(!i.success)throw new Error(`Payment settlement failed: ${i.error??"Unknown error"}`);this.emit("payment:completed",{success:true,transactionSignature:i.transaction,paymentId:`pay_${Date.now()}`});let d=Date.now(),s=await this.fetchWithTimeout(e,{...t,headers:{...t.headers,"X-Payment":r,"X-Payment-Signature":i.transaction??""}}),A=Date.now()-d;return i.transaction&&this.localRecords.push({agentAddress:o.payTo,paymentSignature:i.transaction,amount:BigInt(o.maxAmountRequired),success:s.ok,responseTimeMs:A,payerAddress:this.config.wallet?.publicKey??"unknown",timestamp:new Date,network:o.network}),s}async createPaymentHeader(e){if(!this.config.wallet)throw new Error("Wallet not configured for payments");let t={version:"1.0",scheme:e.scheme,network:e.network,payer:this.config.wallet.publicKey,payTo:e.payTo,amount:e.maxAmountRequired,asset:e.asset,resource:e.resource,nonce:Date.now().toString(),signature:`mock_sig_${Date.now()}`};return Buffer.from(JSON.stringify(t)).toString("base64")}async fetchWithTimeout(e,t){let o=new AbortController,r=setTimeout(()=>o.abort(),this.config.timeout);try{return await fetch(e,{...t,signal:o.signal})}finally{clearTimeout(r);}}};var v={MAX_REPUTATION_SCORE:1e4,MIN_REPUTATION_FOR_SLASH:1e3,REPUTATION_DECAY_RATE_BPS:10,BRONZE_TIER_THRESHOLD:2e3,SILVER_TIER_THRESHOLD:5e3,GOLD_TIER_THRESHOLD:7500,PLATINUM_TIER_THRESHOLD:9e3,MAX_REPUTATION_CATEGORIES:10};var Iu=class{fraudPatterns=[];constructor(){this.initializeFraudPatterns();}initializeFraudPatterns(){this.fraudPatterns=[{patternId:"sudden_spike",description:"Sudden spike in reputation without corresponding activity",riskScore:80,detect:e=>{if(e.performanceHistory.length<2)return false;let t=e.performanceHistory[e.performanceHistory.length-1],o=e.performanceHistory[e.performanceHistory.length-2];return t.score-o.score>2e3&&t.jobsCompleted===o.jobsCompleted}},{patternId:"perfect_scores_only",description:"All jobs have perfect scores (potential manipulation)",riskScore:60,detect:e=>{let t=e.performanceHistory.slice(-10);return t.length>=5&&t.every(o=>o.avgQuality===100)}},{patternId:"rapid_category_switching",description:"Rapid switching between unrelated categories",riskScore:40,detect:e=>{if(e.categoryReputations.length<5)return false;let t=e.categoryReputations.sort((r,c)=>c.lastActivity-r.lastActivity).slice(0,5);return (Date.now()-t[4].lastActivity)/(1e3*60*60*24)<7}},{patternId:"dispute_pattern",description:"High dispute rate with suspicious resolution pattern",riskScore:70,detect:e=>{if(e.totalJobsCompleted<10)return false;let t=e.disputesAgainst/e.totalJobsCompleted,o=e.disputesResolved/Math.max(1,e.disputesAgainst);return t>.3&&o>.9}},{patternId:"time_manipulation",description:"Completion times significantly below expected",riskScore:50,detect:(e,t)=>t.actualDuration<t.expectedDuration*.1}];}calculateReputation(e,t){let o=this.applyTimeDecay(e),r=this.calculateWeightedScore(o.factors,t),c=this.updateCategoryReputation(o.categoryReputations,t,r),i=this.calculateOverallScore(c.categories),d=this.getTierFromScore(i),s=this.checkBadgeAchievements(o,t,i),A=this.detectFraud(o,t);return {overallScore:i,jobScore:r,categoryScore:c.categoryScore,tier:d,newBadges:s,fraudDetected:A.detected,fraudRiskScore:A.riskScore}}applyTimeDecay(e){let t=Date.now()/1e3,o=(t-e.lastUpdated)/86400;if(o<=0)return e;let r=v.REPUTATION_DECAY_RATE_BPS*o,c=Math.max(0,1e4-r)/1e4,i=Math.floor(e.overallScore*c),d=e.categoryReputations.map(s=>{let A=(t-s.lastActivity)/86400,y=v.REPUTATION_DECAY_RATE_BPS*A,R=Math.max(0,1e4-y)/1e4;return {...s,score:Math.floor(s.score*R)}});return {...e,overallScore:i,categoryReputations:d}}calculateWeightedScore(e,t){if(e.completionWeight+e.qualityWeight+e.timelinessWeight+e.satisfactionWeight+e.disputeWeight!==100)throw new Error("Reputation factors must sum to 100");let r=t.completed?v.MAX_REPUTATION_SCORE:0,c=t.qualityRating*v.MAX_REPUTATION_SCORE/100,i=this.calculateTimelinessScore(t.expectedDuration,t.actualDuration),d=t.clientSatisfaction*v.MAX_REPUTATION_SCORE/100,s=this.calculateDisputeScore(t),A=(r*e.completionWeight+c*e.qualityWeight+i*e.timelinessWeight+d*e.satisfactionWeight+s*e.disputeWeight)/100;return Math.min(A,v.MAX_REPUTATION_SCORE)}calculateTimelinessScore(e,t){if(t<=e)return v.MAX_REPUTATION_SCORE;let o=(t-e)*1e4/e;return o>5e3?0:v.MAX_REPUTATION_SCORE-v.MAX_REPUTATION_SCORE*o/1e4}calculateDisputeScore(e){return e.hadDispute?e.disputeResolvedFavorably?v.MAX_REPUTATION_SCORE/2:0:v.MAX_REPUTATION_SCORE}updateCategoryReputation(e,t,o){let r=e.findIndex(c=>c.category===t.category);if(r!==-1){let c=e[r],i={...c,completedJobs:c.completedJobs+1,qualitySum:c.qualitySum+t.qualityRating,qualityCount:c.qualityCount+1,totalEarnings:c.totalEarnings+t.paymentAmount,lastActivity:Date.now()/1e3,score:Math.floor((c.score*7+o*3)/10),avgCompletionTime:Math.floor((c.avgCompletionTime*c.completedJobs+t.actualDuration)/(c.completedJobs+1))},d=[...e];return d[r]=i,{categories:d,categoryScore:i.score}}else {if(e.length>=v.MAX_REPUTATION_CATEGORIES)throw new Error("Maximum reputation categories reached");let c={category:t.category,score:o,completedJobs:1,avgCompletionTime:t.actualDuration,qualitySum:t.qualityRating,qualityCount:1,lastActivity:Date.now()/1e3,totalEarnings:t.paymentAmount};return {categories:[...e,c],categoryScore:o}}}calculateOverallScore(e){if(e.length===0)return 5e3;let t=0,o=0;for(let r of e){let c=r.completedJobs;t+=r.score*c,o+=c;}return o>0?Math.floor(t/o):5e3}getTierFromScore(e){return e>=v.PLATINUM_TIER_THRESHOLD?"Platinum":e>=v.GOLD_TIER_THRESHOLD?"Gold":e>=v.SILVER_TIER_THRESHOLD?"Silver":e>=v.BRONZE_TIER_THRESHOLD?"Bronze":"None"}checkBadgeAchievements(e,t,o){let r=[],c=new Set(e.badges.map(d=>d.badgeType)),i=e.totalJobsCompleted+(t.completed?1:0);return !c.has("FirstJob")&&i>=1&&r.push("FirstJob"),!c.has("TenJobs")&&i>=10&&r.push("TenJobs"),!c.has("HundredJobs")&&i>=100&&r.push("HundredJobs"),!c.has("ThousandJobs")&&i>=1e3&&r.push("ThousandJobs"),!c.has("PerfectRating")&&o>=9500&&r.push("PerfectRating"),!c.has("QuickResponder")&&e.avgResponseTime>0&&e.avgResponseTime<3600&&r.push("QuickResponder"),!c.has("DisputeResolver")&&e.disputesResolved>=5&&r.push("DisputeResolver"),c.has("CategoryExpert")||e.categoryReputations.some(s=>s.score>=9e3)&&r.push("CategoryExpert"),!c.has("CrossCategoryMaster")&&e.categoryReputations.length>=5&&r.push("CrossCategoryMaster"),r}detectFraud(e,t){let o=0,r=[];for(let i of this.fraudPatterns)i.detect(e,t)&&(o+=i.riskScore,r.push(i.patternId));let c=Math.min(100,o);return {detected:c>=50,riskScore:c,patterns:r}}createPerformanceSnapshot(e,t){let o=e.categoryReputations.length>0?e.categoryReputations.reduce((r,c)=>r+(c.qualityCount>0?c.qualitySum/c.qualityCount:0),0)/e.categoryReputations.length:0;return {timestamp:Date.now()/1e3,score:t,jobsCompleted:e.totalJobsCompleted,avgQuality:Math.floor(o)}}calculateSlashAmount(e,t){if(t>5e3)throw new Error("Slash percentage cannot exceed 50%");if(e<v.MIN_REPUTATION_FOR_SLASH)throw new Error("Reputation too low to slash");let o=Math.floor(e*t/1e4);return {newScore:Math.max(0,e-o),slashAmount:o}}calculateStakingBonus(e){return Math.min(500,Math.floor(e/1e3))}};XT();var vu=class extends z{calculator;tagEngine;constructor(e){super(e),this.calculator=new Iu,this.tagEngine=new sn;}calculateReputationChange(e,t){return this.calculator.calculateReputation(e,t)}getTierName(e){switch(e){case "None":return "Unranked";case "Bronze":return "Bronze";case "Silver":return "Silver";case "Gold":return "Gold";case "Platinum":return "Platinum";default:return "Unknown"}}getTierFromScore(e){return e>=v.PLATINUM_TIER_THRESHOLD?"Platinum":e>=v.GOLD_TIER_THRESHOLD?"Gold":e>=v.SILVER_TIER_THRESHOLD?"Silver":e>=v.BRONZE_TIER_THRESHOLD?"Bronze":"None"}getBadgeName(e){switch(e){case "FirstJob":return "First Job";case "TenJobs":return "10 Jobs";case "HundredJobs":return "100 Jobs";case "ThousandJobs":return "1000 Jobs";case "PerfectRating":return "Perfect Rating";case "QuickResponder":return "Quick Responder";case "DisputeResolver":return "Dispute Resolver";case "CategoryExpert":return "Category Expert";case "CrossCategoryMaster":return "Cross-Category Master";default:return "Unknown Badge"}}calculateApyBoost(e){return Math.floor(e/1e3)*50}getTierColor(e){switch(e){case "Platinum":return "#E5E4E2";case "Gold":return "#FFD700";case "Silver":return "#C0C0C0";case "Bronze":return "#CD7F32";default:return "#808080"}}createDefaultReputationData(e){return {agent:e,overallScore:5e3,totalJobsCompleted:0,totalJobsFailed:0,avgResponseTime:0,disputesAgainst:0,disputesResolved:0,lastUpdated:Math.floor(Date.now()/1e3),categoryReputations:[],badges:[],performanceHistory:[],factors:{completionWeight:25,qualityWeight:25,timelinessWeight:20,satisfactionWeight:20,disputeWeight:10}}}qualifiesForTier(e,t){switch(t){case "Platinum":return e>=v.PLATINUM_TIER_THRESHOLD;case "Gold":return e>=v.GOLD_TIER_THRESHOLD;case "Silver":return e>=v.SILVER_TIER_THRESHOLD;case "Bronze":return e>=v.BRONZE_TIER_THRESHOLD;default:return true}}pointsToNextTier(e){switch(this.getTierFromScore(e)){case "None":return {nextTier:"Bronze",pointsNeeded:v.BRONZE_TIER_THRESHOLD-e};case "Bronze":return {nextTier:"Silver",pointsNeeded:v.SILVER_TIER_THRESHOLD-e};case "Silver":return {nextTier:"Gold",pointsNeeded:v.GOLD_TIER_THRESHOLD-e};case "Gold":return {nextTier:"Platinum",pointsNeeded:v.PLATINUM_TIER_THRESHOLD-e};case "Platinum":return null;default:return null}}recordPayAIPayment(e,t){let o=this.payAIRecordToJobPerformance(e);return this.calculateReputationChange(t,o)}payAIRecordToJobPerformance(e){let t=this.estimateQualityFromResponseTime(e.responseTimeMs),o=this.estimateExpectedDuration(e.amount);return {completed:e.success,qualityRating:t,expectedDuration:o,actualDuration:Math.ceil(e.responseTimeMs/1e3),clientSatisfaction:e.success?t:20,hadDispute:false,disputeResolvedFavorably:false,category:this.categorizeFromNetwork(e.network),paymentAmount:Number(e.amount)/1e6}}estimateQualityFromResponseTime(e){return e<=500?100:e<=2e3?Math.round(90-(e-500)/1500*20):e<=1e4?Math.round(70-(e-2e3)/8e3*30):Math.max(20,Math.round(40-(e-1e4)/5e4*20))}estimateExpectedDuration(e){let t=Number(e)/1e6;return Math.max(2,Math.ceil(2+t*10))}categorizeFromNetwork(e){switch(e){case "solana":return "ai-services-solana";case "base":return "ai-services-base";case "ethereum":return "ai-services-ethereum";default:return "ai-services"}}createPayAIPerformanceSnapshot(e,t){return {timestamp:e.timestamp.getTime(),paymentId:e.paymentSignature,network:e.network,amount:e.amount.toString(),success:e.success,responseTimeMs:e.responseTimeMs,reputationChange:t.jobScore,newScore:t.overallScore,tier:t.tier}}async calculateTagsForAgent(e){return this.tagEngine.calculateTags(e)}getTagsByCategory(e,t){return this.tagEngine.filterTags(e,{category:t})}hasTag(e,t){return e.some(o=>o.tagName===t)}getTagConfidence(e,t){return e.find(r=>r.tagName===t)?.confidence}filterTags(e,t){return this.tagEngine.filterTags(e,t)}applyTagDecay(e,t){return this.tagEngine.applyTagDecay(e,t)}mergeTags(e,t){return this.tagEngine.mergeTags(e,t)}categorizeTags(e){return this.tagEngine.categorizeTags(e)}getTopTags(e,t){return this.tagEngine.getTopTags(e,t)}sortTagsByConfidence(e){return this.tagEngine.sortByConfidence(e)}sortTagsByEvidence(e){return this.tagEngine.sortByEvidence(e)}sortTagsByRecent(e){return this.tagEngine.sortByRecent(e)}getConfidenceLevel(e){return this.tagEngine.getConfidenceLevel(e)}validateTagName(e){return this.tagEngine.validateTagName(e)}validateConfidence(e){return this.tagEngine.validateConfidence(e)}convertMetricsForTagging(e){let t=e.responseTimeCount>0n?Number(e.totalResponseTime/e.responseTimeCount):0,o=e.successfulPayments+e.failedPayments,r=o>0n?Number(e.successfulPayments*10000n/o):0,c=e.totalRatingsCount>0?Math.floor(e.totalRating*100/(e.totalRatingsCount*5)):0,i=e.totalDisputes>0?Math.floor(e.disputesResolved*1e4/e.totalDisputes):1e4;return {successfulPayments:e.successfulPayments,failedPayments:e.failedPayments,totalResponseTime:e.totalResponseTime,responseTimeCount:e.responseTimeCount,totalDisputes:e.totalDisputes,disputesResolved:e.disputesResolved,totalRating:e.totalRating,totalRatingsCount:e.totalRatingsCount,createdAt:e.createdAt,updatedAt:e.updatedAt,avgResponseTime:t,successRate:r,avgRating:c,disputeResolutionRate:i}}};var Mu=class extends z{constructor(e){super(e);}async create(e,t){let o=t.network||"devnet",r=he(o,t.controller);Cu(r);let[c]=await hu(this.programId,t.controller),i=async()=>this.buildCreateDidInstruction(c,t.controller,r,t.verificationMethods||[],t.serviceEndpoints||[]);return this.execute("createDidDocument",i,[e])}async update(e,t){let o=async()=>this.buildUpdateDidInstruction(t.didDocument,e.address,t.addVerificationMethod||null,t.removeVerificationMethodId||null,t.addServiceEndpoint||null,t.removeServiceEndpointId||null);return this.execute("updateDidDocument",o,[e])}async deactivate(e,t){let o=async()=>this.buildDeactivateDidInstruction(t.didDocument,e.address);return this.execute("deactivateDidDocument",o,[e])}async resolve(e){let t;if(typeof e=="string"&&e.startsWith("did:sol:")){let{identifier:r}=d0(e);t=address(r);}else t=typeof e=="string"?address(e):e;let[o]=await hu(this.programId,t);return this.getAccount(o,"getDidDocumentDecoder")}async exportW3C(e,t=true){let o=await this.resolve(e);return o?p0(o,t):null}async getW3CDocument(e){let t=await this.resolve(e);return t?QT(t):null}async deriveDidPda(e){return hu(this.programId,e)}generateDid(e,t="devnet"){return he(t,e)}validateDid(e){return Cu(e),true}async isActive(e){let t=await this.resolve(e);return t?A0(t):false}buildCreateDidInstruction(e,t,o,r,c){throw new Error("DID instructions are not yet generated. Please run: bun run generate:client after adding DID instructions to the program.")}buildUpdateDidInstruction(e,t,o,r,c,i){throw new Error("DID instructions are not yet generated. Please run: bun run generate:client after adding DID instructions to the program.")}buildDeactivateDidInstruction(e,t){throw new Error("DID instructions are not yet generated. Please run: bun run generate:client after adding DID instructions to the program.")}static createVerificationMethod=u0;static createServiceEndpoint=g0};function T0(n,e,t){if(t||e==="Public")return {exactScore:n,tier:an(n),scoreRange:dn(n)};switch(e){case "TierOnly":return {tier:an(n)};case "RangeOnly":return {scoreRange:dn(n)};case "Confidential":return {};case "Custom":return {tier:an(n),scoreRange:dn(n)};default:return {}}}function an(n){return n>=Ee.TIER_THRESHOLDS.PLATINUM?"Platinum":n>=Ee.TIER_THRESHOLDS.GOLD?"Gold":n>=Ee.TIER_THRESHOLDS.SILVER?"Silver":n>=Ee.TIER_THRESHOLDS.BRONZE?"Bronze":"None"}function dn(n){let e=Ee.SCORE_RANGES;return n>=e.VERY_HIGH.min?"VeryHigh":n>=e.HIGH.min?"High":n>=e.MEDIUM.min?"Medium":n>=e.LOW.min?"Low":"VeryLow"}function f0(n,e,t){return n===t?true:e.authorizedViewers.includes(n)}function S0(n,e,t){let o={agent:n.agent},r=c=>t||c==="Public";if(r(e.showScore)&&(o.exactScore=n.overallScore),r(e.showJobsCompleted)&&(o.totalJobsCompleted=n.totalJobsCompleted),r(e.showSuccessRate)){let c=n.totalJobsCompleted+n.totalJobsFailed;o.successRate=c>0?n.totalJobsCompleted/c*100:0;}return r(e.showResponseTime)&&(o.avgResponseTime=n.avgResponseTime),r(e.showDisputes)&&(o.disputes={total:n.disputesAgainst,resolved:n.disputesResolved}),r(e.showEarnings)&&n.totalEarnings!==void 0&&(o.totalEarnings=n.totalEarnings),r(e.showRatings)&&n.avgRating!==void 0&&(o.avgRating=n.avgRating),r(e.showBadges)&&n.badges!==void 0&&(o.badges=n.badges),o.hasFullAccess=t,o}function un(n){switch(n){case "Public":return {showScore:"Public",showJobsCompleted:"Public",showSuccessRate:"Public",showResponseTime:"Public",showDisputes:"Public",showEarnings:"Public",showRatings:"Public",showBadges:"Public"};case "TierOnly":case "RangeOnly":return {showScore:"Private",showJobsCompleted:"Private",showSuccessRate:"Private",showResponseTime:"Private",showDisputes:"Private",showEarnings:"Private",showRatings:"Private",showBadges:"Public"};case "Confidential":return {showScore:"ZKProof",showJobsCompleted:"ZKProof",showSuccessRate:"ZKProof",showResponseTime:"ZKProof",showDisputes:"ZKProof",showEarnings:"ZKProof",showRatings:"ZKProof",showBadges:"ZKProof"};case "Custom":default:return {showScore:"Private",showJobsCompleted:"Public",showSuccessRate:"Public",showResponseTime:"Public",showDisputes:"Private",showEarnings:"Private",showRatings:"Public",showBadges:"Public"}}}function x0(n){let e=[];return n.authorizedViewers.length>Ee.MAX_AUTHORIZED_VIEWERS&&e.push(`Too many authorized viewers (max: ${Ee.MAX_AUTHORIZED_VIEWERS})`),n.mode==="Public"&&Object.values(n.metricVisibility).some(o=>o!=="Public")&&e.push("Public mode cannot have private metrics"),{valid:e.length===0,errors:e}}var ku=class extends z{constructor(e){super(e);}async initializePrivacy(e,t){let o=t.mode??"Public";t.metricVisibility??un(o);let c=async()=>({programAddress:this.programId,accounts:[],data:new Uint8Array([0])});return this.execute("initializePrivacy",c,[e])}async updatePrivacyMode(e,t){let o=async()=>({programAddress:this.programId,accounts:[],data:new Uint8Array([1])});return this.execute("updatePrivacyMode",o,[e])}async setMetricVisibility(e,t){let o=async()=>({programAddress:this.programId,accounts:[],data:new Uint8Array([2])});return this.execute("setMetricVisibility",o,[e])}async grantAccess(e,t){let o=async()=>({programAddress:this.programId,accounts:[],data:new Uint8Array([3])});return this.execute("grantAccess",o,[e])}async revokeAccess(e,t){let o=async()=>({programAddress:this.programId,accounts:[],data:new Uint8Array([4])});return this.execute("revokeAccess",o,[e])}async applyPreset(e,t){let{preset:o}=t;return await this.updatePrivacyMode(e,{agentAddress:t.agentAddress,mode:o.mode}),this.setMetricVisibility(e,{agentAddress:t.agentAddress,metricVisibility:o.metricVisibility})}async getPrivacySettings(e){return {agent:e,mode:"Public",metricVisibility:un("Public"),authorizedViewers:[],autoGrantClients:false,updatedAt:Math.floor(Date.now()/1e3)}}async getVisibleReputation(e,t){let o=await this.getPrivacySettings(e);o||(o={agent:e,mode:"Public",metricVisibility:un("Public"),authorizedViewers:[],autoGrantClients:false,updatedAt:Math.floor(Date.now()/1e3)});let r=f0(t,o,e),c={agent:e,overallScore:7500,totalJobsCompleted:100,totalJobsFailed:5,avgResponseTime:250,disputesAgainst:2,disputesResolved:2,totalEarnings:5e4,avgRating:4.5,badges:["FirstJob","TenJobs","QuickResponder"]},i=T0(c.overallScore,o.mode,r);return {...S0(c,o.metricVisibility,r),privacyMode:o.mode,...i,hasFullAccess:r}}validateSettings(e){return x0(e)}getAvailablePresets(){return GT}getDefaultVisibility(e){return un(e)}getTier(e){return an(e)}getRange(e){return dn(e)}async derivePrivacyPda(e){let{getProgramDerivedAddress:t,getAddressEncoder:o}=await import('@solana/addresses'),c=o().encode(e),[i]=await t({programAddress:this.programId,seeds:[new TextEncoder().encode("privacy_settings"),c]});return i}};var gle="GhostSpeak Reputation Authorization";function D0(n){let e=[];e.push(Buffer.from(gle,"utf8"));let t=pt.decode(n.agentAddress);e.push(Buffer.from(t));let o=pt.decode(n.authorizedSource);e.push(Buffer.from(o));let r=Buffer.allocUnsafe(8);r.writeBigUInt64BE(BigInt(n.indexLimit)),e.push(r);let c=Buffer.allocUnsafe(8);return c.writeBigUInt64BE(BigInt(n.expiresAt)),e.push(c),e.push(Buffer.from(n.network,"utf8")),n.nonce&&e.push(Buffer.from(n.nonce,"utf8")),Buffer.concat(e)}async function Ale(n,e){let t=e.publicKey.toBase58();if(t!==n.agentAddress)throw new Error(`Keypair public key ${t} does not match agent address ${n.agentAddress}`);let o=D0(n);return (await import('tweetnacl')).sign.detached(o,e.secretKey)}async function P0(n){try{let e={agentAddress:n.agentAddress,authorizedSource:n.authorizedSource,indexLimit:n.indexLimit,expiresAt:n.expiresAt,network:n.network,nonce:n.nonce},t=D0(e),o=await import('tweetnacl'),r=pt.decode(n.agentAddress);return o.sign.detached.verify(t,n.signature,r)}catch(e){return console.error("[Auth Signature] Verification failed:",e),false}}async function E0(n,e){let t=address(e.publicKey.toBase58()),o=Math.floor(Date.now()/1e3),r=n.expiresAt||o+(n.expiresIn||720*60*60),c=n.indexLimit||1e3,i=n.network||"devnet",d=n.nonce!==void 0?n.nonce:"default",s={agentAddress:t,authorizedSource:n.authorizedSource,indexLimit:c,expiresAt:r,network:i,nonce:d},A=await Ale(s,e);return {agentAddress:t,authorizedSource:n.authorizedSource,indexLimit:c,expiresAt:r,network:i,signature:A,nonce:d,metadata:n.metadata}}function ZT(n){return {agentAddress:n.agentAddress,authorizedSource:n.authorizedSource,indexLimit:n.indexLimit,expiresAt:n.expiresAt,network:n.network,signature:pt.encode(n.signature),nonce:n.nonce,metadata:n.metadata}}function h0(n){return {agentAddress:n.agentAddress,authorizedSource:n.authorizedSource,indexLimit:n.indexLimit,expiresAt:n.expiresAt,network:n.network,signature:pt.decode(n.signature),nonce:n.nonce,metadata:n.metadata}}async function C0(authorization){let serialized=ZT(authorization),json=JSON.stringify(serialized),encoder=new TextEncoder,data=encoder.encode(json),crypto;if(globalThis.crypto)crypto=globalThis.crypto;else {let nodeCrypto=eval("require")("crypto");crypto=nodeCrypto.webcrypto;}let hashBuffer=await crypto.subtle.digest("SHA-256",data),hashArray=new Uint8Array(hashBuffer);return pt.encode(hashArray)}function R0(n,e){return (e||Math.floor(Date.now()/1e3))>=n.expiresAt}function b0(n,e){return e>=n.indexLimit}var ple=2000000n,wu=class extends z{constructor(e){super(e);}async createAuthorization(e,t){return await E0(e,t)}async storeAuthorizationOnChain(e,t,o){let r=this.calculateStorageFee(e,o),c=o?.feePayedByAgent??true;console.log(`\u{1F4B0} On-chain storage cost: ${Number(r)/1e9} SOL`),console.log(` Fee payer: ${c?"Agent":"Facilitator"}`);let{getCreateAgentAuthorizationInstructionAsync:i}=await Promise.resolve().then(()=>(Rm(),iM)),{getProgramDerivedAddress:d,getBytesEncoder:s,getAddressEncoder:A,getUtf8Encoder:y}=await import('@solana/kit'),R=e.nonce??"default",[D]=await d({programAddress:this.getProgramId(),seeds:[s().encode(new Uint8Array([97,103,101,110,116,95,97,117,116,104])),A().encode(e.agentAddress),A().encode(e.authorizedSource),y().encode(R)]});return await this.execute("createAgentAuthorization",async()=>await i({agent:e.agentAddress,authorization:D,authority:t,authorizedSource:e.authorizedSource,indexLimit:BigInt(e.indexLimit),expiresAt:BigInt(e.expiresAt),network:e.network==="mainnet-beta"?0:e.network==="devnet"?1:2,signature:e.signature,nonce:R}),[t])}async verifySignature(e){return P0(e)}getAuthorizationStatus(e,t){let o=Math.floor(Date.now()/1e3),r=t??0;return R0(e,o)?{status:"expired",isValid:false,remainingUses:0,reason:"Authorization has expired"}:b0(e,r)?{status:"exhausted",isValid:false,remainingUses:0,reason:"Index limit reached"}:{status:"active",isValid:true,remainingUses:e.indexLimit-r}}async fetchAuthorization(e,t,o){throw new Error("On-chain fetch not yet implemented - pending Codama generation")}async updateReputationWithAuth(e,t,o,r,c,i){if(!await this.verifySignature(e))throw new Error("Invalid authorization signature");let s=this.getAuthorizationStatus(e);if(!s.isValid)throw new Error(`Authorization is ${s.status}: ${s.reason}`);let{getUpdateReputationWithAuthInstructionAsync:A}=await Promise.resolve().then(()=>(PT(),Vw));return await this.execute("updateReputationWithAuth",async()=>await A({agent:e.agentAddress,authorizedSource:i,usageRecord:r,reputationChange:BigInt(t),transactionSignature:o,metadata:c?JSON.stringify(c):null,nonce:e.nonce??null}),[i])}async revokeAuthorization(e,t,o,r){let{getRevokeAuthorizationInstruction:c}=await Promise.resolve().then(()=>(Ay(),Lk));return await this.execute("revokeAuthorization",()=>c({agent:e,authorization:t,authority:r,nonce:o??null}),[r])}async listAuthorizations(e){throw new Error("Authorization listing not yet implemented - pending Codama generation")}serializeAuthorization(e){return ZT(e)}deserializeAuthorization(e){return h0(e)}async getAuthorizationId(e){return C0(e)}async createPayAIAuthorization(e,t,o){let r={authorizedSource:e,indexLimit:1e3,expiresIn:2592e3,network:"devnet",...o};return this.createAuthorization(r,t)}calculateStorageFee(e,t){if(t?.storageFee!==void 0)return t.storageFee;if(t?.customFees){let o=Math.floor(Date.now()/1e3),r=e.expiresAt-o,c=Object.keys(t.customFees).map(Number).sort((d,s)=>d-s);for(let d of c)if(r<=d)return t.customFees[d];let i=c[c.length-1];if(i&&t.customFees[i])return t.customFees[i]}return ple}async estimateStorageCost(e,t){let o=Math.floor(Date.now()/1e3),r={agentAddress:"11111111111111111111111111111111",authorizedSource:e.authorizedSource,indexLimit:e.indexLimit??1e3,expiresAt:e.expiresAt??o+(e.expiresIn??720*60*60),network:e.network??"devnet",signature:new Uint8Array(64),nonce:e.nonce},c=this.calculateStorageFee(r,t);return Number(c)/1e9}};te();var Uu=class extends z{async initializeStakingConfig(e){let t=await W1({authority:e.authority,minStake:e.minStake,treasury:e.treasury},{programAddress:this.programId});return this.execute("initializeStakingConfig",()=>t,[e.authority])}async stake(e){let t=await Py({ownerTokenAccount:e.agentTokenAccount,stakingVault:e.stakingVault,stakingConfig:e.stakingConfig,ghostMint:e.ghostMint,owner:e.agentOwner,amount:e.amount,lockDuration:e.lockDuration},{programAddress:this.programId});return this.execute("stakeGhost",()=>t,[e.agentOwner])}async unstake(e){let t=await wy({stakingAccount:e.stakingAccount,stakingVault:e.stakingVault,ownerTokenAccount:e.agentTokenAccount,owner:e.agentOwner},{programAddress:this.programId});return this.execute("unstakeGhost",()=>t,[e.agentOwner])}async getStakingAccount(e){try{return await this.getAccount(e,"getStakingAccountDecoder")}catch(t){return console.error("Error fetching staking account:",t),null}}async getStakingConfig(e){try{return await this.getAccount(e,"getStakingConfigDecoder")}catch(t){return console.error("Error fetching staking config:",t),null}}};Hg();var ef=class{config;constructor(e){this.config={programId:u,commitment:"confirmed",cluster:"devnet",rpcEndpoint:e?.rpcEndpoint??this.getDefaultRpcEndpoint(e?.cluster??"devnet"),...e,rpc:e?.rpc??{}};}get agents(){return new tn(this.config)}get governanceModule(){return new nn(this.config)}get multisigModule(){return new rn(this.config)}agent(){return new tf(this.config)}payai(){return new bu({rpcUrl:this.config.rpcEndpoint,facilitatorUrl:this.config.payai?.facilitatorUrl,timeout:this.config.transactionTimeout,retry:this.config.retryConfig&&{attempts:this.config.retryConfig.maxRetries??3,delayMs:this.config.retryConfig.baseDelay??1e3}})}reputation(){return new vu(this.config)}tagEngine(){let{ReputationTagEngine:e}=(XT(),lf(m0));return new e}reputationAggregator(){let{MultiSourceAggregator:e}=(v0(),lf(I0));return new e}privacy(){return new ku(this.config)}governance(){return new nf(this.config)}multisig(){return new cf(this.config)}credentials(){return new Ru({programId:this.config.programId,crossmint:this.config.credentials?.crossmintApiKey?{apiKey:this.config.credentials.crossmintApiKey,environment:this.config.credentials.crossmintEnvironment,chain:this.config.credentials.crossmintChain}:void 0,crossmintTemplates:this.config.credentials?.templates})}did(){return new Mu(this.config)}get authorization(){return new wu(this.config)}get staking(){return new Uu(this.config)}enableDevMode(){return console.log("\u{1F6E0}\uFE0F Development mode enabled"),console.log(" - Transaction simulation before sending"),console.log(" - Cost estimates for all operations"),console.log(" - Enhanced error messages"),this.config={...this.config},this}useNetwork(e){return this.config.cluster=e,this.config.rpcEndpoint=this.getDefaultRpcEndpoint(e),this}useRpc(e,t){return this.config.rpcEndpoint=e,this.config.wsEndpoint=t,this}getDefaultRpcEndpoint(e){switch(e){case "mainnet-beta":return "https://api.mainnet-beta.solana.com";case "devnet":return "https://api.devnet.solana.com";case "testnet":return "https://api.testnet.solana.com";case "localnet":return "http://localhost:8899";default:return "https://api.devnet.solana.com"}}},tf=class{module;params={};constructor(e){this.module=new tn(e);}create(e){return this.params={...this.params,agentType:0,metadataUri:JSON.stringify(e),agentId:e.name.toLowerCase().replace(/\s+/g,"-"),name:e.name,description:e.description||""},this}withDescription(e){return this.params.description=e,this}withType(e){return this.params.agentType=e,this}withIPFS(){return this.params.forceIPFS=true,this}compressed(){return this.params.compressed=true,this}debug(){return this.module.debug(),this}withSigner(e){return this.params.signer=e,this}validateParams(){if(!this.params.signer)throw new Error("Agent builder requires a signer. Call with signer first.");if(!this.params.metadataUri)throw new Error("Agent builder requires metadata. Call create() first.");if(!this.params.agentId)throw new Error("Agent builder requires agent ID. Call create() first.");this.params.agentType??=0;}async getCost(){return this.validateParams(),this.module.getCost("registerAgent",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async simulate(){let e=()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array});return this.validateParams(),this.module.simulateInstruction("registerAgent",e,[this.params.signer])}async explain(){return this.validateParams(),this.module.explain("registerAgent",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams(),this.params.compressed&&console.log("Creating compressed agent (5000x cheaper)...");let e=await this.module.register(this.params.signer,{agentType:this.params.agentType,name:this.params.name,description:this.params.description,metadataUri:this.params.metadataUri,agentId:this.params.agentId});return {address:await this.deriveAgentAddress(this.params.agentId,this.params.signer),signature:e}}async deriveAgentAddress(e,t){let{deriveAgentPda:o}=await Promise.resolve().then(()=>(Pu(),Du)),[r]=await o({programAddress:this.module.getProgramId(),owner:t.address,agentId:e});return r}},nf=class{module;params={};constructor(e){this.module=new nn(e);}proposal(){return new rf(this.module,this.params)}query(){return new of(this.module)}debug(){return this.module.debug(),this}withSigner(e){return this.params.signer=e,this}},rf=class{constructor(e,t){this.module=e;this.builderParams=t;this.params.signer=t.signer;}params={};create(e){return this.params.title=e.title,this.params.description=e.description,this}type(e){return this.params.proposalType=e,this}votingDuration(e){return this.params.votingDuration=e,this}executionDelay(e){return this.params.executionDelay=e,this}validateParams(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.title)throw new Error("Title required");if(!this.params.description)throw new Error("Description required");if(!this.params.proposalType)throw new Error("Proposal type required");if(!this.params.votingDuration)throw new Error("Voting duration required")}async execute(){this.validateParams();let e=await this.module.createProposal({signer:this.params.signer,title:this.params.title,description:this.params.description,proposalType:this.params.proposalType,votingDuration:this.params.votingDuration,executionDelay:this.params.executionDelay});return {address:`proposal_${this.params.signer.address}_${this.params.title}`,signature:e}}withSigner(e){return this.params.signer=e,this}},of=class{constructor(e){this.module=e;}async activeProposals(){return this.module.getActiveProposals()}async proposalsByProposer(e){return this.module.getProposalsByProposer(e)}async proposalsByStatus(e){return this.module.getProposalsByStatus(e)}},cf=class{module;params={};constructor(e){this.module=new rn(e);}create(){return new sf(this.module,this.params)}proposal(){return new af(this.module,this.params)}approve(){return new df(this.module,this.params)}executeProposal(){return new uf(this.module,this.params)}withSigner(e){return this.params.signer=e,this}debug(){return this.module.debug(),this}},sf=class{constructor(e,t){this.module=e;this.builderParams=t;this.params.signer=t.signer;}params={};withId(e){return this.params.multisigId=e,this}threshold(e){return this.params.threshold=e,this}signers(e){return this.params.signers=e,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.multisigId)throw new Error("Multisig ID required");if(!this.params.threshold)throw new Error("Threshold required");if(!this.params.signers)throw new Error("Signers required");return {signature:await this.module.createMultisig({owner:this.params.signer,multisigId:this.params.multisigId,threshold:this.params.threshold,signers:this.params.signers})}}withSigner(e){return this.params.signer=e,this}},af=class{constructor(e,t){this.module=e;this.builderParams=t;this.params.signer=t.signer;}params={};forMultisig(e){return this.params.multisigAddress=e,this}title(e){return this.params.title=e,this}description(e){return this.params.description=e,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.title)throw new Error("Title required");if(!this.params.description)throw new Error("Description required");return {signature:await this.module.createProposal({multisigAddress:this.params.multisigAddress,title:this.params.title,description:this.params.description,proposalType:7,executionParams:{instructions:[],executionDelay:0n,executionConditions:[],cancellable:true,autoExecute:true,executionAuthority:this.params.signer.address},proposalId:BigInt(Date.now()),proposer:this.params.signer})}}withSigner(e){return this.params.signer=e,this}},df=class{constructor(e,t){this.module=e;this.builderParams=t;this.params.signer=t.signer;}params={};proposal(e){return this.params.proposalAddress=e,this}vote(e){return this.params.voteChoice=e,this}reason(e){return this.params.reasoning=e,this}tokenAccount(e){return this.params.tokenAccount=e,this}async execute(){throw this.params.signer?this.params.proposalAddress?new Error("Multisig approval: Use protocol_config instructions for voting (approveProposal removed)"):new Error("Proposal address required"):new Error("Signer required")}withSigner(e){return this.params.signer=e,this}},uf=class{constructor(e,t){this.module=e;this.builderParams=t;this.params.signer=t.signer;}params={};proposal(e){return this.params.proposalAddress=e,this}target(e){return this.params.targetProgram=e,this}async execute(){if(!this.params.signer)throw new Error("Signer required");if(!this.params.proposalAddress)throw new Error("Proposal address required");if(!this.params.targetProgram)throw new Error("Target program required");return {signature:await this.module.executeProposal({proposalAddress:this.params.proposalAddress,executor:this.params.signer,targetProgram:this.params.targetProgram})}}withSigner(e){return this.params.signer=e,this}};function lle(n){return BigInt(Math.round(n*1e9))}var lt=class extends Error{code;context;solution;instruction;constructor(e,t,o={},r,c){super(t),this.name="GhostSpeakError",this.code=e,this.context=o,this.solution=r,this.instruction=c;}toString(){let e=`${this.name} [${this.code}]: ${this.message}`;return Object.keys(this.context).length>0&&(e+=`
5
+ Context: ${JSON.stringify(this.context,null,2)}`),this.solution&&(e+=`
6
6
 
7
- \u{1F4A1} Solution: ${this.solution}`),this.instruction&&(t+=`
7
+ \u{1F4A1} Solution: ${this.solution}`),this.instruction&&(e+=`
8
8
 
9
- \u{1F4D6} Learn more: ${this.instruction}`),t}toSDKError(){return {code:this.code,message:this.message,context:this.context,solution:this.solution,instruction:this.instruction}}},Vv=class extends Xn{constructor(t,r){super("NETWORK_ERROR",`Failed to connect to RPC endpoint: ${t}`,{endpoint:t,originalError:r?.message},"Check your internet connection and verify the RPC endpoint is correct. Try using a different RPC provider.");}},Hv=class extends Xn{constructor(t,r,o){let n=Number(t)/1e9,s=Number(r)/1e9,c=n-s;super("INSUFFICIENT_BALANCE",`Insufficient balance: need ${n} SOL but only have ${s} SOL`,{required:t.toString(),available:r.toString(),address:o,requiredSOL:n,availableSOL:s,neededSOL:c},`You need ${c.toFixed(4)} more SOL. Try:
10
- 1. Request devnet SOL: solana airdrop ${Math.ceil(c)} ${o}
11
- 2. Or use: await ghostspeak.fund("${o}", ${Math.ceil(c)})`);}};var Jv=class extends Xn{constructor(t,r={}){super("INVALID_INPUT",t,r,"Check input parameters and ensure they meet the required format and constraints"),this.name="ValidationError";}};export{Xn as GhostSpeakError,Hv as InsufficientBalanceError,Vv as NetworkError,Jv as ValidationError,bv as default,hvt as sol};//# sourceMappingURL=core-minimal.js.map
9
+ \u{1F4D6} Learn more: ${this.instruction}`),e}toSDKError(){return {code:this.code,message:this.message,context:this.context,solution:this.solution,instruction:this.instruction}}},gf=class extends lt{constructor(e,t){super("NETWORK_ERROR",`Failed to connect to RPC endpoint: ${e}`,{endpoint:e,originalError:t?.message},"Check your internet connection and verify the RPC endpoint is correct. Try using a different RPC provider.");}},Af=class extends lt{constructor(e,t,o){let r=Number(e)/1e9,c=Number(t)/1e9,i=r-c;super("INSUFFICIENT_BALANCE",`Insufficient balance: need ${r} SOL but only have ${c} SOL`,{required:e.toString(),available:t.toString(),address:o,requiredSOL:r,availableSOL:c,neededSOL:i},`You need ${i.toFixed(4)} more SOL. Try:
10
+ 1. Request devnet SOL: solana airdrop ${Math.ceil(i)} ${o}
11
+ 2. Or use: await ghostspeak.fund("${o}", ${Math.ceil(i)})`);}};var pf=class extends lt{constructor(e,t={}){super("INVALID_INPUT",e,t,"Check input parameters and ensure they meet the required format and constraints"),this.name="ValidationError";}};export{lt as GhostSpeakError,Af as InsufficientBalanceError,gf as NetworkError,pf as ValidationError,ef as default,lle as sol};//# sourceMappingURL=core-minimal.js.map
12
12
  //# sourceMappingURL=core-minimal.js.map