{"matchId":"51456963","creationMatch":"match","runtimeMatch":"match","verifiedAt":"2026-09-21T22:41:36Z","creationBytecode":{"onchainBytecode":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516153726100f95f395f81816132a9015281816132d2015261346101526153725ff3fe6080604052600436106101c2575f3560e01c80630345bdbe146101cd57806303c1288e146101ee57806308c732591461020d5780630bf5d35e14610237578063197f84f81461024a5780631becc420146102695780633d9d38671461027d5780633f4ba83a146102ab578063485cc955146102bf5780634f1ef286146102de57806352d1902d146102f1578063586097541461030557806359659e90146103245780635c975abb1461033857806360db28731461035c5780636c8bcb6a1461038857806375151b63146103a7578063760d0f9d146103c6578063770b69f6146103e55780637b0eb57d146104045780637f1a9904146104235780638322fff2146104505780638456cb5914610477578063886e89a51461048b578063922b8e221461049f57806395e12d61146104be578063a222dbbd146104dd578063a5116d9314610509578063a58dcc9514610529578063a783b50814610548578063ad3cb1cc1461055c578063ade78a1214610599578063b0b15c11146105b8578063b69fd599146105d7578063c8d9b28614610603578063c93d2b1d14610622578063cd00c53814610641578063de9d008d14610660578063e8d1f00f1461067f575f5ffd5b366101c957005b5f5ffd5b3480156101d8575f5ffd5b506101ec6101e7366004613de7565b61069e565b005b3480156101f9575f5ffd5b506101ec610208366004613e6c565b610996565b348015610218575f5ffd5b50610221610cd7565b60405161022e9190613f08565b60405180910390f35b6101ec610245366004613f1c565b610cf1565b348015610255575f5ffd5b506101ec610264366004613e6c565b61100e565b348015610274575f5ffd5b50610221611476565b348015610288575f5ffd5b5061029d5f5160206152e65f395f51905f5281565b60405190815260200161022e565b3480156102b6575f5ffd5b506101ec611493565b3480156102ca575f5ffd5b506101ec6102d9366004613f4e565b6114fc565b6101ec6102ec366004613f99565b6115f4565b3480156102fc575f5ffd5b5061029d611613565b348015610310575f5ffd5b506101ec61031f36600461405c565b61162e565b34801561032f575f5ffd5b5061022161182d565b348015610343575f5ffd5b5061034c611837565b604051901515815260200161022e565b348015610367575f5ffd5b5061037b610376366004614086565b61184b565b60405161022e91906140a6565b348015610393575f5ffd5b506102216103a23660046140f1565b611943565b3480156103b2575f5ffd5b5061034c6103c13660046140f1565b6119ec565b3480156103d1575f5ffd5b506101ec6103e036600461410c565b611a05565b3480156103f0575f5ffd5b506101ec6103ff366004614123565b611a84565b34801561040f575f5ffd5b506101ec61041e366004614123565b611ccb565b34801561042e575f5ffd5b5061044261043d366004613f1c565b611da9565b60405161022e92919061418d565b34801561045b575f5ffd5b5061022173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b348015610482575f5ffd5b506101ec611f01565b348015610496575f5ffd5b5061029d611f68565b3480156104aa575f5ffd5b506102216104b93660046140f1565b611f7e565b3480156104c9575f5ffd5b506101ec6104d83660046141a6565b611fac565b3480156104e8575f5ffd5b506104fc6104f736600461405c565b6122dd565b60405161022e9190614224565b348015610514575f5ffd5b5061029d5f5160206152c65f395f51905f5281565b348015610534575f5ffd5b5061022161054336600461410c565b612405565b348015610553575f5ffd5b5061022161240f565b348015610567575f5ffd5b5061058c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161022e919061427d565b3480156105a4575f5ffd5b506101ec6105b3366004614123565b61242a565b3480156105c3575f5ffd5b5061034c6105d23660046140f1565b61267d565b3480156105e2575f5ffd5b506105eb60c881565b6040516001600160601b03909116815260200161022e565b34801561060e575f5ffd5b506101ec61061d3660046140f1565b612693565b34801561062d575f5ffd5b506101ec61063c36600461428f565b6127bf565b34801561064c575f5ffd5b506101ec61065b3660046140f1565b6128a1565b34801561066b575f5ffd5b506101ec61067a3660046140f1565b61299e565b34801561068a575f5ffd5b5061034c61069936600461405c565b612b57565b6106a6612b95565b6106ae612bdc565b6106b6610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016106f09291906142db565b602060405180830381865afa15801561070b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061072f91906142f2565b61074c57604051631695365560e21b815260040160405180910390fd5b5f610755612c02565b90506107618185612c26565b61077e57604051631359be9560e11b815260040160405180910390fd5b61078b6004820184612c26565b156107a95760405163c6486ddf60e01b815260040160405180910390fd5b60058101546001600160a01b0316806107d557604051630d35236760e21b815260040160405180910390fd5b6001600160a01b038085165f908152600684016020526040902054811690821663240028e882156108065782610808565b865b6040518263ffffffff1660e01b81526004016108249190613f08565b602060405180830381865afa15801561083f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086391906142f2565b61088057604051632e0fe39f60e21b815260040160405180910390fd5b604051634b69571760e11b81525f906001600160a01b038416906396d2ae2e906108ae908a90600401613f08565b602060405180830381865afa1580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0384169063b7ca418b9061091c908490600401613f08565b602060405180830381865afa158015610937573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b91906142f2565b61097857604051635c5a136560e11b815260040160405180910390fd5b6109858782888589612ccb565b50505050610991612f92565b505050565b61099e610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016109c99190613f08565b5f6040518083038186803b1580156109df575f5ffd5b505afa1580156109f1573d5f5f3e3d5ffd5b505050505f6109fe612c02565b9050858281141580610a105750808514155b15610a2e5760405163512509d360e11b815260040160405180910390fd5b5f5b81811015610c8b575f898983818110610a4b57610a4b61432c565b9050602002016020810190610a6091906140f1565b6001600160a01b031603610a8757604051635f5d339960e01b815260040160405180910390fd5b868682818110610a9957610a9961432c565b905060200201355f03610abf5760405163080fa92760e31b815260040160405180910390fd5b5f858583818110610ad257610ad261432c565b9050602002810190610ae49190614340565b610af29060208101906140f1565b6001600160a01b03161480610b4357505f858583818110610b1557610b1561432c565b9050602002810190610b279190614340565b610b389060408101906020016140f1565b6001600160a01b0316145b80610b8b575060c8858583818110610b5d57610b5d61432c565b9050602002810190610b6f9190614340565b610b80906060810190604001614372565b6001600160601b0316115b15610ba9576040516306b7c75960e31b815260040160405180910390fd5b848482818110610bbb57610bbb61432c565b9050602002810190610bcd9190614340565b836003015f8b8b85818110610be457610be461432c565b9050602002016020810190610bf991906140f1565b6001600160a01b03166001600160a01b031681526020019081526020015f205f898985818110610c2b57610c2b61432c565b9050602002013581526020019081526020015f208181610c4b91906144e2565b905050610c82898983818110610c6357610c6361432c565b9050602002016020810190610c7891906140f1565b6004850190612fa9565b50600101610a30565b507f38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622888888888888604051610cc596959493929190614631565b60405180910390a15050505050505050565b5f5f610ce1613101565b546001600160a01b031692915050565b610cf9612bdc565b5f5160206152c65f395f51905f52610d0f610cd7565b6001600160a01b03166391d1485482336040518363ffffffff1660e01b8152600401610d3c9291906142db565b602060405180830381865afa158015610d57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7b91906142f2565b610d97576040516282b42960e81b815260040160405180910390fd5b5f610da0612c02565b90506001600160a01b038516610dc957604051635f5d339960e01b815260040160405180910390fd5b825f03610de95760405163080fa92760e31b815260040160405180910390fd5b835f03610e095760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038086165f908152600383016020908152604080832087845290915290208054909116610e50576040516317b428a360e01b815260040160405180910390fd5b5f6001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610ee5576040516370a0823160e01b81526001600160a01b038816906370a0823190610ea1903090600401613f08565b602060405180830381865afa158015610ebc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ee0919061476c565b610ee7565b475b905085811015610f0a57604051631e9acf1760e31b815260040160405180910390fd5b5f610f16888888611da9565b91505034811115610f3a57604051636a639da560e01b815260040160405180910390fd5b82546001840154604051610fbf926001600160a01b039081169263b14d361d60e01b92610f88928e928e9291811691600160a01b9091046001600160601b03169060028c0190602401614801565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613125565b5085886001600160a01b03167fdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa89604051610ffc91815260200190565b60405180910390a35050505050505050565b611016612b95565b61101e612bdc565b611026610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016110609291906142db565b602060405180830381865afa15801561107b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109f91906142f2565b6110bc57604051631695365560e21b815260040160405180910390fd5b8483811415806110cc5750808214155b156110ea5760405163512509d360e11b815260040160405180910390fd5b5f6110f3612c02565b60058101549091506001600160a01b03168061112257604051630d35236760e21b815260040160405180910390fd5b5f5b838110156114625761115d8a8a838181106111415761114161432c565b905060200201602081019061115691906140f1565b8490612c26565b61117a57604051631359be9560e11b815260040160405180910390fd5b6111ae88888381811061118f5761118f61432c565b90506020020160208101906111a491906140f1565b6004850190612c26565b156111cc5760405163c6486ddf60e01b815260040160405180910390fd5b5f836006015f8a8a858181106111e4576111e461432c565b90506020020160208101906111f991906140f1565b6001600160a01b03908116825260208201929092526040015f205481169150831663240028e8821561122b5782611252565b8a8a8581811061123d5761123d61432c565b905060200201602081019061125291906140f1565b6040518263ffffffff1660e01b815260040161126e9190613f08565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad91906142f2565b6112ca57604051632e0fe39f60e21b815260040160405180910390fd5b5f836001600160a01b03166396d2ae2e8d8d868181106112ec576112ec61432c565b905060200201602081019061130191906140f1565b6040518263ffffffff1660e01b815260040161131d9190613f08565b602060405180830381865afa158015611338573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061135c9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0385169063b7ca418b9061138b908490600401613f08565b602060405180830381865afa1580156113a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ca91906142f2565b6113e757604051635c5a136560e11b815260040160405180910390fd5b6114588c8c858181106113fc576113fc61432c565b905060200201602081019061141191906140f1565b828c8c878181106114245761142461432c565b905060200201602081019061143991906140f1565b858c8c8981811061144c5761144c61432c565b90506020020135612ccb565b5050600101611124565b5050505061146e612f92565b505050505050565b5f5f611480612c02565b600201546001600160a01b031692915050565b61149b610cd7565b6001600160a01b0316635efcc07c336040518263ffffffff1660e01b81526004016114c69190613f08565b5f6040518083038186803b1580156114dc575f5ffd5b505afa1580156114ee573d5f5f3e3d5ffd5b505050506114fa6131ae565b565b5f611505613204565b805490915060ff600160401b82041615906001600160401b03165f8115801561152b5750825b90505f826001600160401b031660011480156115465750303b155b905081158015611554575080155b156115725760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561159b57845460ff60401b1916600160401b1785555b6115a58787613228565b83156115eb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6115fc61329e565b61160582613342565b61160f82826133a3565b5050565b5f61161c613456565b505f5160206153065f395f51905f5290565b611636612b95565b61163e610cd7565b6001600160a01b031663a47fbb2a336040518263ffffffff1660e01b81526004016116699190613f08565b5f6040518083038186803b15801561167f575f5ffd5b505afa158015611691573d5f5f3e3d5ffd5b505050505f61169e612c02565b90506001600160a01b0383166116c757604051635f5d339960e01b815260040160405180910390fd5b6116d46004820184612c26565b156116f25760405163c6486ddf60e01b815260040160405180910390fd5b60028101546001600160a01b031661171d576040516315bc61ef60e31b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038416016117bb5760028101546040515f916001600160a01b03169084908381818185875af1925050503d805f811461178e576040519150601f19603f3d011682016040523d82523d5f602084013e611793565b606091505b50509050806117b557604051633d2cec6f60e21b815260040160405180910390fd5b506117d7565b60028101546117d7906001600160a01b0385811691168461349f565b60028101546040516001600160a01b03858116927fb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a773981729899239261181c9290911690869061418d565b60405180910390a25061160f612f92565b5f5f610ce16134f7565b5f5f61184161351b565b5460ff1692915050565b60605f611856612c02565b90505f6118628261353f565b9050808510611884576040516392c4425960e01b815260040160405180910390fd5b8061188f8587614861565b11156118a25761189f8582614874565b93505b5f846001600160401b038111156118bb576118bb613f85565b6040519080825280602002602001820160405280156118e4578160200160208202803683370190505b5090505f5b85811015611937576119056118fe8289614861565b859061358d565b8282815181106119175761191761432c565b6001600160a01b03909216602092830291909101909101526001016118e9565b50925050505b92915050565b5f5f61194d612c02565b600501546001600160a01b031690508061197a57604051630d35236760e21b815260040160405180910390fd5b604051634b69571760e11b81526001600160a01b038216906396d2ae2e906119a6908690600401613f08565b602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190614311565b9392505050565b5f5f6119f6612c02565b90506119e56004820184612c26565b611a0d612bdc565b5f63c4d66de860e01b30604051602401611a279190613f08565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505f611a6683836135dc565b90505f611a71612c02565b9050611a7d8183612fa9565b5050505050565b611a8c610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b8152600401611ab79190613f08565b5f6040518083038186803b158015611acd575f5ffd5b505afa158015611adf573d5f5f3e3d5ffd5b508592505050818114611b055760405163512509d360e11b815260040160405180910390fd5b5f611b0e612c02565b90505f5b828110156115eb575f878783818110611b2d57611b2d61432c565b9050602002016020810190611b4291906140f1565b90505f868684818110611b5757611b5761432c565b9050602002016020810190611b6c91906140f1565b90506001600160a01b038216611b9557604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03811615801590611c1e5750816001600160a01b0316816001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c129190614311565b6001600160a01b031614155b15611c3c57604051633cf654ef60e01b815260040160405180910390fd5b6001600160a01b038083165f8181526006870160205260409081902054905191927f8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb620192611c8e92909116908590614887565b60405180910390a26001600160a01b039182165f908152600685016020526040902080546001600160a01b03191691909216179055600101611b12565b611cd5848461376e565b5f611cde612c02565b9050815f5b818110156115eb57611d008585838181106111415761114161432c565b611d1d57604051631359be9560e11b815260040160405180910390fd5b848482818110611d2f57611d2f61432c565b9050602002016020810190611d4491906140f1565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b8152600401611d719291906148a1565b5f604051808303815f87803b158015611d88575f5ffd5b505af1158015611d9a573d5f5f3e3d5ffd5b50505050806001019050611ce3565b5f5f5f611db4612c02565b90506001600160a01b038616611ddd57604051635f5d339960e01b815260040160405180910390fd5b835f03611dfd5760405163080fa92760e31b815260040160405180910390fd5b845f03611e1d5760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038087165f908152600383016020908152604080832088845290915290208054909116611e64576040516317b428a360e01b815260040160405180910390fd5b80546001820154604051630bbfe4bf60e41b81526001600160a01b039283169263bbfe4bf092611eb5928c928c9290811691600160a01b9091046001600160601b0316906002890190600401614801565b6040805180830381865afa158015611ecf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ef391906148b4565b935093505050935093915050565b611f09610cd7565b6001600160a01b031663bf4019ec336040518263ffffffff1660e01b8152600401611f349190613f08565b5f6040518083038186803b158015611f4a575f5ffd5b505afa158015611f5c573d5f5f3e3d5ffd5b505050506114fa61380f565b5f611f79611f74612c02565b61353f565b905090565b5f611f87612c02565b6001600160a01b039283165f9081526006919091016020526040902054909116919050565b611fb4612b95565b611fbc612bdc565b5f611fc5612c02565b9050611fd18185612c26565b611fee57604051631359be9560e11b815260040160405180910390fd5b815f5b818110156122d2575f85858381811061200c5761200c61432c565b905060200201602081019061202191906140f1565b90506120306004850182612c26565b1561204e5760405163c6486ddf60e01b815260040160405180910390fd5b6001600160a01b038082165f908152600686016020526040902054168061208857604051633bc9491b60e11b815260040160405180910390fd5b6040516370a0823160e01b81525f906001600160a01b038416906370a08231906120b6908c90600401613f08565b602060405180830381865afa1580156120d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f5919061476c565b905080156122c4576040516370a0823160e01b81525f906001600160a01b038416906370a082319061212b908d90600401613f08565b602060405180830381865afa158015612146573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216a919061476c565b604051635f9bb63d60e11b81529091506001600160a01b038b169063bf376c7a9061219b908790869060040161418d565b5f604051808303815f87803b1580156121b2575f5ffd5b505af11580156121c4573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a082318d6040518263ffffffff1660e01b81526004016121f69190613f08565b602060405180830381865afa158015612211573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612235919061476c565b61223f9190614874565b9050805f03612261576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b03168c6001600160a01b03167ffc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc69051486856040516122b9929190918252602082015260400190565b60405180910390a450505b836001019350505050611ff1565b505050610991612f92565b604080516080810182525f8082526020820181905291810182905260608082015290612307612c02565b6001600160a01b038581165f90815260038301602090815260408083208884528252918290208251608081018452815485168152600182015494851692810192909252600160a01b9093046001600160601b031691810191909152600282018054939450909260608401919061237c906143ad565b80601f01602080910402602001604051908101604052809291908181526020018280546123a8906143ad565b80156123f35780601f106123ca576101008083540402835291602001916123f3565b820191905f5260205f20905b8154815290600101906020018083116123d657829003601f168201915b50505050508152505091505092915050565b5f61193d82613855565b5f612418612c02565b600501546001600160a01b0316919050565b612432610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b815260040161245d9190613f08565b5f6040518083038186803b158015612473575f5ffd5b505afa158015612485573d5f5f3e3d5ffd5b505050505f612492612c02565b9050838281146124b55760405163512509d360e11b815260040160405180910390fd5b5f5b81811015612637575f8787838181106124d2576124d261432c565b90506020020160208101906124e791906140f1565b90506001600160a01b03811661251057604051635f5d339960e01b815260040160405180910390fd5b8585838181106125225761252261432c565b905060200201355f036125485760405163080fa92760e31b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120818888868181106125745761257461432c565b602090810292909201358352508101919091526040015f20546001600160a01b0316036125b4576040516317b428a360e01b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120908787858181106125e0576125e061432c565b602090810292909201358352508101919091526040015f90812080546001600160a01b0319168155600181018290559061261d6002830182613d6a565b5061262d90506004850182613860565b50506001016124b7565b507f1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b8686868660405161266d94939291906148e0565b60405180910390a1505050505050565b5f5f612687612c02565b90506119e58184612c26565b3361269c610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126d7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126fb9190614311565b6001600160a01b0316146127225760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612749576040516371b06ceb60e11b815260040160405180910390fd5b5f612752612c02565b60058101546040519192507fd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e9914313339051919191612794916001600160a01b0316908590614887565b60405180910390a160050180546001600160a01b0319166001600160a01b0392909216919091179055565b6127c9848461376e565b5f6127d2612c02565b90505f6127de8261353f565b9050808410612800576040516392c4425960e01b815260040160405180910390fd5b8061280b8486614861565b111561281e5761281b8482614874565b92505b5f5b838110156115eb5761283c6128358287614861565b849061358d565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b81526004016128699291906148a1565b5f604051808303815f87803b158015612880575f5ffd5b505af1158015612892573d5f5f3e3d5ffd5b50505050806001019050612820565b6128a9610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016128d49190613f08565b5f6040518083038186803b1580156128ea575f5ffd5b505afa1580156128fc573d5f5f3e3d5ffd5b505050505f612909612c02565b90506001600160a01b038216612932576040516332ff4e5f60e11b815260040160405180910390fd5b60028101546040517fadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc623891612973916001600160a01b03909116908590614887565b60405180910390a160020180546001600160a01b0319166001600160a01b0392909216919091179055565b336129a7610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a069190614311565b6001600160a01b031614612a2d5760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612a545760405163b4fa3fb360e01b815260040160405180910390fd5b5f612a5d6134f7565b5460408051635c60da1b60e01b815290516001600160a01b0390921692507fd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a918391635c60da1b9160048083019260209291908290030181865afa158015612ac7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aeb9190614311565b83604051612afa929190614887565b60405180910390a1604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690612b2e908590600401613f08565b5f604051808303815f87803b158015612b45575f5ffd5b505af115801561146e573d5f5f3e3d5ffd5b5f5f612b61612c02565b6001600160a01b038581165f9081526003909201602090815260408084208785529091529091205416151591505092915050565b5f5160206153265f395f51905f525c15612bc257604051633ee5aeb560e01b815260040160405180910390fd5b6114fa60015f5160206153265f395f51905f525b90613990565b612be4611837565b156114fa5760405163d93c066560e01b815260040160405180910390fd5b7fe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b10090565b5f5f612c3184613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612c5d5763f5a267f15f526004601cfd5b82612c6f5768fbb67fda52d4bfb8bf92505b80546001600160601b038116612cb25760019250838160601c0315612cc357600182015460601c8414612cc357600282015460601c8414612cc3575f9250612cc3565b81602052835f5260405f2054151592505b505092915050565b6001600160a01b038216612d7f576040516301a2dedf60e11b81526001600160a01b03861690630345bdbe90612d0990869088908690600401614906565b5f604051808303815f87803b158015612d20575f5ffd5b505af1158015612d32573d5f5f3e3d5ffd5b50505050826001600160a01b0316846001600160a01b0316866001600160a01b03165f5160206153465f395f51905f5284604051612d7291815260200190565b60405180910390a4611a7d565b6040516370a0823160e01b81525f906001600160a01b038416906370a0823190612dad908890600401613f08565b602060405180830381865afa158015612dc8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dec919061476c565b6040516301a2dedf60e11b81529091506001600160a01b03871690630345bdbe90612e1f90879089908790600401614906565b5f604051808303815f87803b158015612e36575f5ffd5b505af1158015612e48573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a08231886040518263ffffffff1660e01b8152600401612e7a9190613f08565b602060405180830381865afa158015612e95573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eb9919061476c565b612ec39190614874565b9050805f03612ee5576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b0316886001600160a01b03167ff731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f8158685604051612f3d929190918252602082015260400190565b60405180910390a4836001600160a01b0316866001600160a01b0316886001600160a01b03165f5160206153465f395f51905f5284604051612f8191815260200190565b60405180910390a450505050505050565b6114fa5f5f5160206153265f395f51905f52612bd6565b5f5f612fb484613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612fe05763f5a267f15f526004601cfd5b82612ff25768fbb67fda52d4bfb8bf92505b80546001600160601b03811682602052806130b4578160601c80613020578560601b845560019450506130f8565b85810361302d57506130f8565b600184015460601c8061304e578660601b60018601556001955050506130f8565b86810361305c5750506130f8565b600285015460601c8061307e578760601b6002870155600196505050506130f8565b87810361308d575050506130f8565b5f928352604080842060019055918352818320600290558252902060039055506007908117905b845f5260405f2080546130f657600191821c8083018255919450816130e2578560601b6003178455506130f8565b8560601b82850155826002018455506130f8565b505b50505092915050565b7fa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f50090565b6060306001600160a01b0384160361317b5760405162461bcd60e51b81526020600482015260146024820152733232b632b3b0ba32b1b0b636103a379039b2b63360611b60448201526064015b60405180910390fd5b5f5f835160208501865af43d6040519250808352805f602085013e8201602001604052806131a7573d82fd5b5092915050565b6131b66139aa565b5f6131bf61351b565b805460ff1916815590507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516131f99190613f08565b60405180910390a150565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b6132306139cf565b613239826139f4565b613241613a30565b5f61324a6134f7565b9050813060405161325a90613da1565b613265929190614887565b604051809103905ff08015801561327e573d5f5f3e3d5ffd5b5081546001600160a01b0319166001600160a01b03919091161790555050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061332457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166133185f5160206153065f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156114fa5760405163703e46dd60e11b815260040160405180910390fd5b5f61334b613101565b8054604051634766d28760e01b81529192506001600160a01b031690634766d2879061337b903390600401613f08565b5f6040518083038186803b158015613391575f5ffd5b505afa15801561146e573d5f5f3e3d5ffd5b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156133fd575060408051601f3d908101601f191682019092526133fa9181019061476c565b60015b61341c5781604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f52811461344c57604051632a87526960e21b815260048101829052602401613172565b6109918383613a40565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114fa5760405163703e46dd60e11b815260040160405180910390fd5b61099183846001600160a01b031663a9059cbb85856040516024016134c592919061418d565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613a95565b7f644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae5820090565b7fcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f0330090565b5f5f61354a83613997565b905080548060a01b60a01c8060011c9350808260601c1517613585576001935083830154156135855760029350838301541561358557600393505b505050919050565b5f5f61359884613997565b90508281015460601c915068fbb67fda52d4bfb8bf821415820291506135bd8461353f565b83106131a757604051634e23d03560e01b815260040160405180910390fd5b5f5f6135e784612405565b90505f61366c604051806020016135fd90613dae565b601f1982820381018352601f9091011660405261361861182d565b604080516001600160a01b039092166020830152818101525f606082015260800160408051601f19818403018152908290526136579291602001614941565b60405160208183030381529060405286613afe565b8451909150156136f1575f816001600160a01b03168560405161368f9190614955565b5f604051808303815f865af19150503d805f81146136c8576040519150601f19603f3d011682016040523d82523d5f602084013e6136cd565b606091505b50509050806136ef57604051630337323560e31b815260040160405180910390fd5b505b806001600160a01b0316826001600160a01b0316146137235760405163169c822160e01b815260040160405180910390fd5b806001600160a01b03167f5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e8660405161375e91815260200190565b60405180910390a2949350505050565b5f613777612c02565b9050815f5b81811015611a7d5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8585838181106137ab576137ab61432c565b90506020020160208101906137c091906140f1565b6001600160a01b0316141580156137e957506137e785858381811061118f5761118f61432c565b155b15613807576040516318e9b75d60e01b815260040160405180910390fd5b60010161377c565b613817612bdc565b5f61382061351b565b805460ff1916600117815590507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131ec3390565b5f61193d8230613b0a565b5f5f61386b84613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be1983016138975763f5a267f15f526004601cfd5b826138a95768fbb67fda52d4bfb8bf92505b80546001600160601b038116806139235760019350848260601c036138e15760018301805484556002840180549091555f90556130f8565b84600184015460601c036139025760028301805460018501555f90556130f8565b84600284015460601c0361391b575f60028401556130f8565b5f93506130f8565b82602052845f5260405f2080548061393c5750506130f8565b60018360011c03925082600182031461396c578285015460601c8060601b60018303870155805f52508060405f20555b5083546001600160601b031916600192831b1782179093555f909255509392505050565b80825d5050565b63978aab926004525f9081526024902090565b6139b2611837565b6114fa57604051638dfc202b60e01b815260040160405180910390fd5b6139d7613b61565b6114fa57604051631afcd79f60e31b815260040160405180910390fd5b6139fc6139cf565b5f613a05613101565b80546001600160a01b0319166001600160a01b0384161781559050613a28613b7a565b61160f613b82565b613a386139cf565b6114fa613b82565b613a4982613b9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115613a8d576109918282613bf8565b61160f613c6a565b5f5f60205f8451602086015f885af180613ab4576040513d5f823e3d81fd5b50505f513d91508115613acb578060011415613ad8565b6001600160a01b0384163b155b15613af85783604051635274afe760e01b81526004016131729190613f08565b50505050565b5f6119e55f8484613c89565b5f604051825f5260ff600b53836020527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6040526055600b20601452806040525061d6945f52600160345350506017601e20919050565b5f613b6a613204565b54600160401b900460ff16919050565b6114fa6139cf565b613b8a6139cf565b5f613b9361351b565b805460ff1916905550565b806001600160a01b03163b5f03613bca5780604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051613c149190614955565b5f60405180830381855af49150503d805f8114613c4c576040519150601f19603f3d011682016040523d82523d5f602084013e613c51565b606091505b5091509150613c61858383613cf2565b95945050505050565b34156114fa5760405163b398979f60e01b815260040160405180910390fd5b5f6f67363d3d37363d34f03d5260086018f35f52816010805ff580613cb55763301164255f526004601cfd5b8060145261d6945f5260016034536017601e2091505f5f85516020870188855af1823b02613cea5763301164255f526004601cfd5b509392505050565b606082613d0757613d0282613d3e565b6119e5565b8151158015613d1e57506001600160a01b0384163b155b156131a75783604051639996b31560e01b81526004016131729190613f08565b805115613d4e5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b508054613d76906143ad565b5f825580601f10613d85575050565b601f0160209004905f5260205f2090810190613d679190613dbb565b61041c8061496183390190565b61054980614d7d83390190565b5b80821115613dcf575f8155600101613dbc565b5090565b6001600160a01b0381168114613d67575f5ffd5b5f5f5f60608486031215613df9575f5ffd5b8335613e0481613dd3565b92506020840135613e1481613dd3565b929592945050506040919091013590565b5f5f83601f840112613e35575f5ffd5b5081356001600160401b03811115613e4b575f5ffd5b6020830191508360208260051b8501011115613e65575f5ffd5b9250929050565b5f5f5f5f5f5f60608789031215613e81575f5ffd5b86356001600160401b03811115613e96575f5ffd5b613ea289828a01613e25565b90975095505060208701356001600160401b03811115613ec0575f5ffd5b613ecc89828a01613e25565b90955093505060408701356001600160401b03811115613eea575f5ffd5b613ef689828a01613e25565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b5f5f5f60608486031215613f2e575f5ffd5b8335613f3981613dd3565b95602085013595506040909401359392505050565b5f5f60408385031215613f5f575f5ffd5b8235613f6a81613dd3565b91506020830135613f7a81613dd3565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215613faa575f5ffd5b8235613fb581613dd3565b915060208301356001600160401b03811115613fcf575f5ffd5b8301601f81018513613fdf575f5ffd5b80356001600160401b03811115613ff857613ff8613f85565b604051601f8201601f19908116603f011681016001600160401b038111828210171561402657614026613f85565b60405281815282820160200187101561403d575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f6040838503121561406d575f5ffd5b823561407881613dd3565b946020939093013593505050565b5f5f60408385031215614097575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156140e65783516001600160a01b03168352602093840193909201916001016140bf565b509095945050505050565b5f60208284031215614101575f5ffd5b81356119e581613dd3565b5f6020828403121561411c575f5ffd5b5035919050565b5f5f5f5f60408587031215614136575f5ffd5b84356001600160401b0381111561414b575f5ffd5b61415787828801613e25565b90955093505060208501356001600160401b03811115614175575f5ffd5b61418187828801613e25565b95989497509550505050565b6001600160a01b03929092168252602082015260400190565b5f5f5f604084860312156141b8575f5ffd5b83356141c381613dd3565b925060208401356001600160401b038111156141dd575f5ffd5b6141e986828701613e25565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602080825282516001600160a01b039081168383015290830151166040808301919091528201516001600160601b03166060808301919091528201516080808301525f9061427560a08401826141f6565b949350505050565b602081525f6119e560208301846141f6565b5f5f5f5f606085870312156142a2575f5ffd5b84356001600160401b038111156142b7575f5ffd5b6142c387828801613e25565b90989097506020870135966040013595509350505050565b9182526001600160a01b0316602082015260400190565b5f60208284031215614302575f5ffd5b815180151581146119e5575f5ffd5b5f60208284031215614321575f5ffd5b81516119e581613dd3565b634e487b7160e01b5f52603260045260245ffd5b5f8235607e19833603018112614354575f5ffd5b9190910192915050565b6001600160601b0381168114613d67575f5ffd5b5f60208284031215614382575f5ffd5b81356119e58161435e565b80546001600160a01b0319166001600160a01b0392909216919091179055565b600181811c908216806143c157607f821691505b6020821081036143df57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561099157805f5260205f20601f840160051c8101602085101561440a5750805b601f840160051c820191505b81811015611a7d575f8155600101614416565b6001600160401b0383111561444057614440613f85565b6144548361444e83546143ad565b836143e5565b5f601f841160018114614485575f851561446e5750838201355b5f19600387901b1c1916600186901b178355611a7d565b5f83815260208120601f198716915b828110156144b45786850135825560209485019460019092019101614494565b50868210156144d0575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81356144ed81613dd3565b6144f7818361438d565b5060018101602083013561450a81613dd3565b614514818361438d565b5060408301356145238161435e565b81546001600160a01b031660a09190911b6001600160a01b031916179055606082013536839003601e19018112614558575f5ffd5b820180356001600160401b0381111561456f575f5ffd5b602082019150803603821315614583575f5ffd5b613af8818360028601614429565b8183526020830192505f815f5b848110156145cf5781356145b181613dd3565b6001600160a01b03168652602095860195919091019060010161459e565b5093949350505050565b8183525f6001600160fb1b038311156145f0575f5ffd5b8260051b80836020870137939093016020019392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b606081525f61464460608301888a614591565b82810360208401526146578187896145d9565b83810360408501528481529050602080820190600586901b830101865f36829003607e19015b8882101561475a57858403601f19018552823581811261469b575f5ffd5b8a0180356146a881613dd3565b6001600160a01b0316855260208101356146c181613dd3565b6001600160a01b0316602086015260408101356146dd8161435e565b6001600160601b03166040860152606081013536829003601e19018112614702575f5ffd5b016020810190356001600160401b0381111561471c575f5ffd5b80360382131561472a575f5ffd5b6080606087015261473f608087018284614609565b9550505060208301925060208501945060018201915061467d565b50919c9b505050505050505050505050565b5f6020828403121561477c575f5ffd5b5051919050565b5f815461478f816143ad565b8085526001821680156147a957600181146147c5576130f8565b60ff1983166020870152602082151560051b87010193506130f8565b845f5260205f205f5b838110156147f05781546020828a0101526001820191506020810190506147ce565b870160200194505050505092915050565b6001600160a01b03868116825260208201869052841660408201526001600160601b038316606082015260a0608082018190525f9061484290830184614783565b979650505050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561193d5761193d61484d565b8181038181111561193d5761193d61484d565b6001600160a01b0392831681529116602082015260400190565b602081525f614275602083018486614591565b5f5f604083850312156148c5575f5ffd5b82516148d081613dd3565b6020939093015192949293505050565b604081525f6148f3604083018688614591565b82810360208401526148428185876145d9565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f81518060208401855e5f93019283525090919050565b5f61427561494f838661492a565b8461492a565b5f6119e5828461492a56fe608060405234801561000f575f5ffd5b5060405161041c38038061041c83398101604081905261002e9161015a565b806001600160a01b038116610061575f604051631e4fbdf760e01b8152600401610058919061018b565b60405180910390fd5b61006a8161007b565b50610074826100ca565b505061019f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b5f036100f6578060405163211eb15960e21b8152600401610058919061018b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b80516001600160a01b0381168114610155575f5ffd5b919050565b5f5f6040838503121561016b575f5ffd5b6101748361013f565b91506101826020840161013f565b90509250929050565b6001600160a01b0391909116815260200190565b610270806101ac5f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c80633659cfe6146100595780635c60da1b1461006e578063715018a6146100915780638da5cb5b14610099578063f2fde38b146100a1575b5f5ffd5b61006c610067366004610222565b6100b4565b005b6001546001600160a01b03165b604051610088919061024f565b60405180910390f35b61006c6100c8565b61007b6100db565b61006c6100af366004610222565b6100e9565b6100bc61012c565b6100c58161015e565b50565b6100d061012c565b6100d95f6101d3565b565b5f546001600160a01b031690565b6100f161012c565b6001600160a01b038116610123575f604051631e4fbdf760e01b815260040161011a919061024f565b60405180910390fd5b6100c5816101d3565b336101356100db565b6001600160a01b0316146100d9573360405163118cdaa760e01b815260040161011a919061024f565b806001600160a01b03163b5f0361018a578060405163211eb15960e21b815260040161011a919061024f565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610232575f5ffd5b81356001600160a01b0381168114610248575f5ffd5b9392505050565b6001600160a01b039190911681526020019056fea164736f6c634300081c000a60a06040526040516105493803806105498339810160408190526100229161033d565b61002c828261003e565b506001600160a01b0316608052610442565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e491906103ff565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610418565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906103ff565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610418565b60605f5f846001600160a01b031684604051610217919061042c565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610418565b50805b9392505050565b8051156102f55780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b0381168114610324575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561034e575f5ffd5b6103578361030e565b60208401519092506001600160401b03811115610372575f5ffd5b8301601f81018513610382575f5ffd5b80516001600160401b0381111561039b5761039b610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103c9576103c9610329565b6040528181528282016020018710156103e0575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f6020828403121561040f575f5ffd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160f26104575f395f601d015260f25ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f5f375f5f365f845af43d5f5f3e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f5ffd5b81516001600160a01b038116811460de575f5ffd5b939250505056fea164736f6c634300081c000a832251a720f920327ebb0030fe996a27a683ebfc8003fe770d2131d205e231828b9348858251a55a2d12c35d356747690c724366409d6da2251f3fe26718d41d360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0093ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cba164736f6c634300081c000a","recompiledBytecode":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516153726100f95f395f81816132a9015281816132d2015261346101526153725ff3fe6080604052600436106101c2575f3560e01c80630345bdbe146101cd57806303c1288e146101ee57806308c732591461020d5780630bf5d35e14610237578063197f84f81461024a5780631becc420146102695780633d9d38671461027d5780633f4ba83a146102ab578063485cc955146102bf5780634f1ef286146102de57806352d1902d146102f1578063586097541461030557806359659e90146103245780635c975abb1461033857806360db28731461035c5780636c8bcb6a1461038857806375151b63146103a7578063760d0f9d146103c6578063770b69f6146103e55780637b0eb57d146104045780637f1a9904146104235780638322fff2146104505780638456cb5914610477578063886e89a51461048b578063922b8e221461049f57806395e12d61146104be578063a222dbbd146104dd578063a5116d9314610509578063a58dcc9514610529578063a783b50814610548578063ad3cb1cc1461055c578063ade78a1214610599578063b0b15c11146105b8578063b69fd599146105d7578063c8d9b28614610603578063c93d2b1d14610622578063cd00c53814610641578063de9d008d14610660578063e8d1f00f1461067f575f5ffd5b366101c957005b5f5ffd5b3480156101d8575f5ffd5b506101ec6101e7366004613de7565b61069e565b005b3480156101f9575f5ffd5b506101ec610208366004613e6c565b610996565b348015610218575f5ffd5b50610221610cd7565b60405161022e9190613f08565b60405180910390f35b6101ec610245366004613f1c565b610cf1565b348015610255575f5ffd5b506101ec610264366004613e6c565b61100e565b348015610274575f5ffd5b50610221611476565b348015610288575f5ffd5b5061029d5f5160206152e65f395f51905f5281565b60405190815260200161022e565b3480156102b6575f5ffd5b506101ec611493565b3480156102ca575f5ffd5b506101ec6102d9366004613f4e565b6114fc565b6101ec6102ec366004613f99565b6115f4565b3480156102fc575f5ffd5b5061029d611613565b348015610310575f5ffd5b506101ec61031f36600461405c565b61162e565b34801561032f575f5ffd5b5061022161182d565b348015610343575f5ffd5b5061034c611837565b604051901515815260200161022e565b348015610367575f5ffd5b5061037b610376366004614086565b61184b565b60405161022e91906140a6565b348015610393575f5ffd5b506102216103a23660046140f1565b611943565b3480156103b2575f5ffd5b5061034c6103c13660046140f1565b6119ec565b3480156103d1575f5ffd5b506101ec6103e036600461410c565b611a05565b3480156103f0575f5ffd5b506101ec6103ff366004614123565b611a84565b34801561040f575f5ffd5b506101ec61041e366004614123565b611ccb565b34801561042e575f5ffd5b5061044261043d366004613f1c565b611da9565b60405161022e92919061418d565b34801561045b575f5ffd5b5061022173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b348015610482575f5ffd5b506101ec611f01565b348015610496575f5ffd5b5061029d611f68565b3480156104aa575f5ffd5b506102216104b93660046140f1565b611f7e565b3480156104c9575f5ffd5b506101ec6104d83660046141a6565b611fac565b3480156104e8575f5ffd5b506104fc6104f736600461405c565b6122dd565b60405161022e9190614224565b348015610514575f5ffd5b5061029d5f5160206152c65f395f51905f5281565b348015610534575f5ffd5b5061022161054336600461410c565b612405565b348015610553575f5ffd5b5061022161240f565b348015610567575f5ffd5b5061058c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161022e919061427d565b3480156105a4575f5ffd5b506101ec6105b3366004614123565b61242a565b3480156105c3575f5ffd5b5061034c6105d23660046140f1565b61267d565b3480156105e2575f5ffd5b506105eb60c881565b6040516001600160601b03909116815260200161022e565b34801561060e575f5ffd5b506101ec61061d3660046140f1565b612693565b34801561062d575f5ffd5b506101ec61063c36600461428f565b6127bf565b34801561064c575f5ffd5b506101ec61065b3660046140f1565b6128a1565b34801561066b575f5ffd5b506101ec61067a3660046140f1565b61299e565b34801561068a575f5ffd5b5061034c61069936600461405c565b612b57565b6106a6612b95565b6106ae612bdc565b6106b6610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016106f09291906142db565b602060405180830381865afa15801561070b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061072f91906142f2565b61074c57604051631695365560e21b815260040160405180910390fd5b5f610755612c02565b90506107618185612c26565b61077e57604051631359be9560e11b815260040160405180910390fd5b61078b6004820184612c26565b156107a95760405163c6486ddf60e01b815260040160405180910390fd5b60058101546001600160a01b0316806107d557604051630d35236760e21b815260040160405180910390fd5b6001600160a01b038085165f908152600684016020526040902054811690821663240028e882156108065782610808565b865b6040518263ffffffff1660e01b81526004016108249190613f08565b602060405180830381865afa15801561083f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086391906142f2565b61088057604051632e0fe39f60e21b815260040160405180910390fd5b604051634b69571760e11b81525f906001600160a01b038416906396d2ae2e906108ae908a90600401613f08565b602060405180830381865afa1580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0384169063b7ca418b9061091c908490600401613f08565b602060405180830381865afa158015610937573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b91906142f2565b61097857604051635c5a136560e11b815260040160405180910390fd5b6109858782888589612ccb565b50505050610991612f92565b505050565b61099e610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016109c99190613f08565b5f6040518083038186803b1580156109df575f5ffd5b505afa1580156109f1573d5f5f3e3d5ffd5b505050505f6109fe612c02565b9050858281141580610a105750808514155b15610a2e5760405163512509d360e11b815260040160405180910390fd5b5f5b81811015610c8b575f898983818110610a4b57610a4b61432c565b9050602002016020810190610a6091906140f1565b6001600160a01b031603610a8757604051635f5d339960e01b815260040160405180910390fd5b868682818110610a9957610a9961432c565b905060200201355f03610abf5760405163080fa92760e31b815260040160405180910390fd5b5f858583818110610ad257610ad261432c565b9050602002810190610ae49190614340565b610af29060208101906140f1565b6001600160a01b03161480610b4357505f858583818110610b1557610b1561432c565b9050602002810190610b279190614340565b610b389060408101906020016140f1565b6001600160a01b0316145b80610b8b575060c8858583818110610b5d57610b5d61432c565b9050602002810190610b6f9190614340565b610b80906060810190604001614372565b6001600160601b0316115b15610ba9576040516306b7c75960e31b815260040160405180910390fd5b848482818110610bbb57610bbb61432c565b9050602002810190610bcd9190614340565b836003015f8b8b85818110610be457610be461432c565b9050602002016020810190610bf991906140f1565b6001600160a01b03166001600160a01b031681526020019081526020015f205f898985818110610c2b57610c2b61432c565b9050602002013581526020019081526020015f208181610c4b91906144e2565b905050610c82898983818110610c6357610c6361432c565b9050602002016020810190610c7891906140f1565b6004850190612fa9565b50600101610a30565b507f38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622888888888888604051610cc596959493929190614631565b60405180910390a15050505050505050565b5f5f610ce1613101565b546001600160a01b031692915050565b610cf9612bdc565b5f5160206152c65f395f51905f52610d0f610cd7565b6001600160a01b03166391d1485482336040518363ffffffff1660e01b8152600401610d3c9291906142db565b602060405180830381865afa158015610d57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7b91906142f2565b610d97576040516282b42960e81b815260040160405180910390fd5b5f610da0612c02565b90506001600160a01b038516610dc957604051635f5d339960e01b815260040160405180910390fd5b825f03610de95760405163080fa92760e31b815260040160405180910390fd5b835f03610e095760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038086165f908152600383016020908152604080832087845290915290208054909116610e50576040516317b428a360e01b815260040160405180910390fd5b5f6001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610ee5576040516370a0823160e01b81526001600160a01b038816906370a0823190610ea1903090600401613f08565b602060405180830381865afa158015610ebc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ee0919061476c565b610ee7565b475b905085811015610f0a57604051631e9acf1760e31b815260040160405180910390fd5b5f610f16888888611da9565b91505034811115610f3a57604051636a639da560e01b815260040160405180910390fd5b82546001840154604051610fbf926001600160a01b039081169263b14d361d60e01b92610f88928e928e9291811691600160a01b9091046001600160601b03169060028c0190602401614801565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613125565b5085886001600160a01b03167fdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa89604051610ffc91815260200190565b60405180910390a35050505050505050565b611016612b95565b61101e612bdc565b611026610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016110609291906142db565b602060405180830381865afa15801561107b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109f91906142f2565b6110bc57604051631695365560e21b815260040160405180910390fd5b8483811415806110cc5750808214155b156110ea5760405163512509d360e11b815260040160405180910390fd5b5f6110f3612c02565b60058101549091506001600160a01b03168061112257604051630d35236760e21b815260040160405180910390fd5b5f5b838110156114625761115d8a8a838181106111415761114161432c565b905060200201602081019061115691906140f1565b8490612c26565b61117a57604051631359be9560e11b815260040160405180910390fd5b6111ae88888381811061118f5761118f61432c565b90506020020160208101906111a491906140f1565b6004850190612c26565b156111cc5760405163c6486ddf60e01b815260040160405180910390fd5b5f836006015f8a8a858181106111e4576111e461432c565b90506020020160208101906111f991906140f1565b6001600160a01b03908116825260208201929092526040015f205481169150831663240028e8821561122b5782611252565b8a8a8581811061123d5761123d61432c565b905060200201602081019061125291906140f1565b6040518263ffffffff1660e01b815260040161126e9190613f08565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad91906142f2565b6112ca57604051632e0fe39f60e21b815260040160405180910390fd5b5f836001600160a01b03166396d2ae2e8d8d868181106112ec576112ec61432c565b905060200201602081019061130191906140f1565b6040518263ffffffff1660e01b815260040161131d9190613f08565b602060405180830381865afa158015611338573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061135c9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0385169063b7ca418b9061138b908490600401613f08565b602060405180830381865afa1580156113a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ca91906142f2565b6113e757604051635c5a136560e11b815260040160405180910390fd5b6114588c8c858181106113fc576113fc61432c565b905060200201602081019061141191906140f1565b828c8c878181106114245761142461432c565b905060200201602081019061143991906140f1565b858c8c8981811061144c5761144c61432c565b90506020020135612ccb565b5050600101611124565b5050505061146e612f92565b505050505050565b5f5f611480612c02565b600201546001600160a01b031692915050565b61149b610cd7565b6001600160a01b0316635efcc07c336040518263ffffffff1660e01b81526004016114c69190613f08565b5f6040518083038186803b1580156114dc575f5ffd5b505afa1580156114ee573d5f5f3e3d5ffd5b505050506114fa6131ae565b565b5f611505613204565b805490915060ff600160401b82041615906001600160401b03165f8115801561152b5750825b90505f826001600160401b031660011480156115465750303b155b905081158015611554575080155b156115725760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561159b57845460ff60401b1916600160401b1785555b6115a58787613228565b83156115eb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6115fc61329e565b61160582613342565b61160f82826133a3565b5050565b5f61161c613456565b505f5160206153065f395f51905f5290565b611636612b95565b61163e610cd7565b6001600160a01b031663a47fbb2a336040518263ffffffff1660e01b81526004016116699190613f08565b5f6040518083038186803b15801561167f575f5ffd5b505afa158015611691573d5f5f3e3d5ffd5b505050505f61169e612c02565b90506001600160a01b0383166116c757604051635f5d339960e01b815260040160405180910390fd5b6116d46004820184612c26565b156116f25760405163c6486ddf60e01b815260040160405180910390fd5b60028101546001600160a01b031661171d576040516315bc61ef60e31b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038416016117bb5760028101546040515f916001600160a01b03169084908381818185875af1925050503d805f811461178e576040519150601f19603f3d011682016040523d82523d5f602084013e611793565b606091505b50509050806117b557604051633d2cec6f60e21b815260040160405180910390fd5b506117d7565b60028101546117d7906001600160a01b0385811691168461349f565b60028101546040516001600160a01b03858116927fb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a773981729899239261181c9290911690869061418d565b60405180910390a25061160f612f92565b5f5f610ce16134f7565b5f5f61184161351b565b5460ff1692915050565b60605f611856612c02565b90505f6118628261353f565b9050808510611884576040516392c4425960e01b815260040160405180910390fd5b8061188f8587614861565b11156118a25761189f8582614874565b93505b5f846001600160401b038111156118bb576118bb613f85565b6040519080825280602002602001820160405280156118e4578160200160208202803683370190505b5090505f5b85811015611937576119056118fe8289614861565b859061358d565b8282815181106119175761191761432c565b6001600160a01b03909216602092830291909101909101526001016118e9565b50925050505b92915050565b5f5f61194d612c02565b600501546001600160a01b031690508061197a57604051630d35236760e21b815260040160405180910390fd5b604051634b69571760e11b81526001600160a01b038216906396d2ae2e906119a6908690600401613f08565b602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190614311565b9392505050565b5f5f6119f6612c02565b90506119e56004820184612c26565b611a0d612bdc565b5f63c4d66de860e01b30604051602401611a279190613f08565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505f611a6683836135dc565b90505f611a71612c02565b9050611a7d8183612fa9565b5050505050565b611a8c610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b8152600401611ab79190613f08565b5f6040518083038186803b158015611acd575f5ffd5b505afa158015611adf573d5f5f3e3d5ffd5b508592505050818114611b055760405163512509d360e11b815260040160405180910390fd5b5f611b0e612c02565b90505f5b828110156115eb575f878783818110611b2d57611b2d61432c565b9050602002016020810190611b4291906140f1565b90505f868684818110611b5757611b5761432c565b9050602002016020810190611b6c91906140f1565b90506001600160a01b038216611b9557604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03811615801590611c1e5750816001600160a01b0316816001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c129190614311565b6001600160a01b031614155b15611c3c57604051633cf654ef60e01b815260040160405180910390fd5b6001600160a01b038083165f8181526006870160205260409081902054905191927f8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb620192611c8e92909116908590614887565b60405180910390a26001600160a01b039182165f908152600685016020526040902080546001600160a01b03191691909216179055600101611b12565b611cd5848461376e565b5f611cde612c02565b9050815f5b818110156115eb57611d008585838181106111415761114161432c565b611d1d57604051631359be9560e11b815260040160405180910390fd5b848482818110611d2f57611d2f61432c565b9050602002016020810190611d4491906140f1565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b8152600401611d719291906148a1565b5f604051808303815f87803b158015611d88575f5ffd5b505af1158015611d9a573d5f5f3e3d5ffd5b50505050806001019050611ce3565b5f5f5f611db4612c02565b90506001600160a01b038616611ddd57604051635f5d339960e01b815260040160405180910390fd5b835f03611dfd5760405163080fa92760e31b815260040160405180910390fd5b845f03611e1d5760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038087165f908152600383016020908152604080832088845290915290208054909116611e64576040516317b428a360e01b815260040160405180910390fd5b80546001820154604051630bbfe4bf60e41b81526001600160a01b039283169263bbfe4bf092611eb5928c928c9290811691600160a01b9091046001600160601b0316906002890190600401614801565b6040805180830381865afa158015611ecf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ef391906148b4565b935093505050935093915050565b611f09610cd7565b6001600160a01b031663bf4019ec336040518263ffffffff1660e01b8152600401611f349190613f08565b5f6040518083038186803b158015611f4a575f5ffd5b505afa158015611f5c573d5f5f3e3d5ffd5b505050506114fa61380f565b5f611f79611f74612c02565b61353f565b905090565b5f611f87612c02565b6001600160a01b039283165f9081526006919091016020526040902054909116919050565b611fb4612b95565b611fbc612bdc565b5f611fc5612c02565b9050611fd18185612c26565b611fee57604051631359be9560e11b815260040160405180910390fd5b815f5b818110156122d2575f85858381811061200c5761200c61432c565b905060200201602081019061202191906140f1565b90506120306004850182612c26565b1561204e5760405163c6486ddf60e01b815260040160405180910390fd5b6001600160a01b038082165f908152600686016020526040902054168061208857604051633bc9491b60e11b815260040160405180910390fd5b6040516370a0823160e01b81525f906001600160a01b038416906370a08231906120b6908c90600401613f08565b602060405180830381865afa1580156120d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f5919061476c565b905080156122c4576040516370a0823160e01b81525f906001600160a01b038416906370a082319061212b908d90600401613f08565b602060405180830381865afa158015612146573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216a919061476c565b604051635f9bb63d60e11b81529091506001600160a01b038b169063bf376c7a9061219b908790869060040161418d565b5f604051808303815f87803b1580156121b2575f5ffd5b505af11580156121c4573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a082318d6040518263ffffffff1660e01b81526004016121f69190613f08565b602060405180830381865afa158015612211573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612235919061476c565b61223f9190614874565b9050805f03612261576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b03168c6001600160a01b03167ffc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc69051486856040516122b9929190918252602082015260400190565b60405180910390a450505b836001019350505050611ff1565b505050610991612f92565b604080516080810182525f8082526020820181905291810182905260608082015290612307612c02565b6001600160a01b038581165f90815260038301602090815260408083208884528252918290208251608081018452815485168152600182015494851692810192909252600160a01b9093046001600160601b031691810191909152600282018054939450909260608401919061237c906143ad565b80601f01602080910402602001604051908101604052809291908181526020018280546123a8906143ad565b80156123f35780601f106123ca576101008083540402835291602001916123f3565b820191905f5260205f20905b8154815290600101906020018083116123d657829003601f168201915b50505050508152505091505092915050565b5f61193d82613855565b5f612418612c02565b600501546001600160a01b0316919050565b612432610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b815260040161245d9190613f08565b5f6040518083038186803b158015612473575f5ffd5b505afa158015612485573d5f5f3e3d5ffd5b505050505f612492612c02565b9050838281146124b55760405163512509d360e11b815260040160405180910390fd5b5f5b81811015612637575f8787838181106124d2576124d261432c565b90506020020160208101906124e791906140f1565b90506001600160a01b03811661251057604051635f5d339960e01b815260040160405180910390fd5b8585838181106125225761252261432c565b905060200201355f036125485760405163080fa92760e31b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120818888868181106125745761257461432c565b602090810292909201358352508101919091526040015f20546001600160a01b0316036125b4576040516317b428a360e01b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120908787858181106125e0576125e061432c565b602090810292909201358352508101919091526040015f90812080546001600160a01b0319168155600181018290559061261d6002830182613d6a565b5061262d90506004850182613860565b50506001016124b7565b507f1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b8686868660405161266d94939291906148e0565b60405180910390a1505050505050565b5f5f612687612c02565b90506119e58184612c26565b3361269c610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126d7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126fb9190614311565b6001600160a01b0316146127225760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612749576040516371b06ceb60e11b815260040160405180910390fd5b5f612752612c02565b60058101546040519192507fd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e9914313339051919191612794916001600160a01b0316908590614887565b60405180910390a160050180546001600160a01b0319166001600160a01b0392909216919091179055565b6127c9848461376e565b5f6127d2612c02565b90505f6127de8261353f565b9050808410612800576040516392c4425960e01b815260040160405180910390fd5b8061280b8486614861565b111561281e5761281b8482614874565b92505b5f5b838110156115eb5761283c6128358287614861565b849061358d565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b81526004016128699291906148a1565b5f604051808303815f87803b158015612880575f5ffd5b505af1158015612892573d5f5f3e3d5ffd5b50505050806001019050612820565b6128a9610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016128d49190613f08565b5f6040518083038186803b1580156128ea575f5ffd5b505afa1580156128fc573d5f5f3e3d5ffd5b505050505f612909612c02565b90506001600160a01b038216612932576040516332ff4e5f60e11b815260040160405180910390fd5b60028101546040517fadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc623891612973916001600160a01b03909116908590614887565b60405180910390a160020180546001600160a01b0319166001600160a01b0392909216919091179055565b336129a7610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a069190614311565b6001600160a01b031614612a2d5760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612a545760405163b4fa3fb360e01b815260040160405180910390fd5b5f612a5d6134f7565b5460408051635c60da1b60e01b815290516001600160a01b0390921692507fd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a918391635c60da1b9160048083019260209291908290030181865afa158015612ac7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aeb9190614311565b83604051612afa929190614887565b60405180910390a1604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690612b2e908590600401613f08565b5f604051808303815f87803b158015612b45575f5ffd5b505af115801561146e573d5f5f3e3d5ffd5b5f5f612b61612c02565b6001600160a01b038581165f9081526003909201602090815260408084208785529091529091205416151591505092915050565b5f5160206153265f395f51905f525c15612bc257604051633ee5aeb560e01b815260040160405180910390fd5b6114fa60015f5160206153265f395f51905f525b90613990565b612be4611837565b156114fa5760405163d93c066560e01b815260040160405180910390fd5b7fe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b10090565b5f5f612c3184613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612c5d5763f5a267f15f526004601cfd5b82612c6f5768fbb67fda52d4bfb8bf92505b80546001600160601b038116612cb25760019250838160601c0315612cc357600182015460601c8414612cc357600282015460601c8414612cc3575f9250612cc3565b81602052835f5260405f2054151592505b505092915050565b6001600160a01b038216612d7f576040516301a2dedf60e11b81526001600160a01b03861690630345bdbe90612d0990869088908690600401614906565b5f604051808303815f87803b158015612d20575f5ffd5b505af1158015612d32573d5f5f3e3d5ffd5b50505050826001600160a01b0316846001600160a01b0316866001600160a01b03165f5160206153465f395f51905f5284604051612d7291815260200190565b60405180910390a4611a7d565b6040516370a0823160e01b81525f906001600160a01b038416906370a0823190612dad908890600401613f08565b602060405180830381865afa158015612dc8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dec919061476c565b6040516301a2dedf60e11b81529091506001600160a01b03871690630345bdbe90612e1f90879089908790600401614906565b5f604051808303815f87803b158015612e36575f5ffd5b505af1158015612e48573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a08231886040518263ffffffff1660e01b8152600401612e7a9190613f08565b602060405180830381865afa158015612e95573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eb9919061476c565b612ec39190614874565b9050805f03612ee5576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b0316886001600160a01b03167ff731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f8158685604051612f3d929190918252602082015260400190565b60405180910390a4836001600160a01b0316866001600160a01b0316886001600160a01b03165f5160206153465f395f51905f5284604051612f8191815260200190565b60405180910390a450505050505050565b6114fa5f5f5160206153265f395f51905f52612bd6565b5f5f612fb484613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612fe05763f5a267f15f526004601cfd5b82612ff25768fbb67fda52d4bfb8bf92505b80546001600160601b03811682602052806130b4578160601c80613020578560601b845560019450506130f8565b85810361302d57506130f8565b600184015460601c8061304e578660601b60018601556001955050506130f8565b86810361305c5750506130f8565b600285015460601c8061307e578760601b6002870155600196505050506130f8565b87810361308d575050506130f8565b5f928352604080842060019055918352818320600290558252902060039055506007908117905b845f5260405f2080546130f657600191821c8083018255919450816130e2578560601b6003178455506130f8565b8560601b82850155826002018455506130f8565b505b50505092915050565b7fa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f50090565b6060306001600160a01b0384160361317b5760405162461bcd60e51b81526020600482015260146024820152733232b632b3b0ba32b1b0b636103a379039b2b63360611b60448201526064015b60405180910390fd5b5f5f835160208501865af43d6040519250808352805f602085013e8201602001604052806131a7573d82fd5b5092915050565b6131b66139aa565b5f6131bf61351b565b805460ff1916815590507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516131f99190613f08565b60405180910390a150565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b6132306139cf565b613239826139f4565b613241613a30565b5f61324a6134f7565b9050813060405161325a90613da1565b613265929190614887565b604051809103905ff08015801561327e573d5f5f3e3d5ffd5b5081546001600160a01b0319166001600160a01b03919091161790555050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061332457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166133185f5160206153065f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156114fa5760405163703e46dd60e11b815260040160405180910390fd5b5f61334b613101565b8054604051634766d28760e01b81529192506001600160a01b031690634766d2879061337b903390600401613f08565b5f6040518083038186803b158015613391575f5ffd5b505afa15801561146e573d5f5f3e3d5ffd5b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156133fd575060408051601f3d908101601f191682019092526133fa9181019061476c565b60015b61341c5781604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f52811461344c57604051632a87526960e21b815260048101829052602401613172565b6109918383613a40565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114fa5760405163703e46dd60e11b815260040160405180910390fd5b61099183846001600160a01b031663a9059cbb85856040516024016134c592919061418d565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613a95565b7f644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae5820090565b7fcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f0330090565b5f5f61354a83613997565b905080548060a01b60a01c8060011c9350808260601c1517613585576001935083830154156135855760029350838301541561358557600393505b505050919050565b5f5f61359884613997565b90508281015460601c915068fbb67fda52d4bfb8bf821415820291506135bd8461353f565b83106131a757604051634e23d03560e01b815260040160405180910390fd5b5f5f6135e784612405565b90505f61366c604051806020016135fd90613dae565b601f1982820381018352601f9091011660405261361861182d565b604080516001600160a01b039092166020830152818101525f606082015260800160408051601f19818403018152908290526136579291602001614941565b60405160208183030381529060405286613afe565b8451909150156136f1575f816001600160a01b03168560405161368f9190614955565b5f604051808303815f865af19150503d805f81146136c8576040519150601f19603f3d011682016040523d82523d5f602084013e6136cd565b606091505b50509050806136ef57604051630337323560e31b815260040160405180910390fd5b505b806001600160a01b0316826001600160a01b0316146137235760405163169c822160e01b815260040160405180910390fd5b806001600160a01b03167f5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e8660405161375e91815260200190565b60405180910390a2949350505050565b5f613777612c02565b9050815f5b81811015611a7d5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8585838181106137ab576137ab61432c565b90506020020160208101906137c091906140f1565b6001600160a01b0316141580156137e957506137e785858381811061118f5761118f61432c565b155b15613807576040516318e9b75d60e01b815260040160405180910390fd5b60010161377c565b613817612bdc565b5f61382061351b565b805460ff1916600117815590507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131ec3390565b5f61193d8230613b0a565b5f5f61386b84613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be1983016138975763f5a267f15f526004601cfd5b826138a95768fbb67fda52d4bfb8bf92505b80546001600160601b038116806139235760019350848260601c036138e15760018301805484556002840180549091555f90556130f8565b84600184015460601c036139025760028301805460018501555f90556130f8565b84600284015460601c0361391b575f60028401556130f8565b5f93506130f8565b82602052845f5260405f2080548061393c5750506130f8565b60018360011c03925082600182031461396c578285015460601c8060601b60018303870155805f52508060405f20555b5083546001600160601b031916600192831b1782179093555f909255509392505050565b80825d5050565b63978aab926004525f9081526024902090565b6139b2611837565b6114fa57604051638dfc202b60e01b815260040160405180910390fd5b6139d7613b61565b6114fa57604051631afcd79f60e31b815260040160405180910390fd5b6139fc6139cf565b5f613a05613101565b80546001600160a01b0319166001600160a01b0384161781559050613a28613b7a565b61160f613b82565b613a386139cf565b6114fa613b82565b613a4982613b9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115613a8d576109918282613bf8565b61160f613c6a565b5f5f60205f8451602086015f885af180613ab4576040513d5f823e3d81fd5b50505f513d91508115613acb578060011415613ad8565b6001600160a01b0384163b155b15613af85783604051635274afe760e01b81526004016131729190613f08565b50505050565b5f6119e55f8484613c89565b5f604051825f5260ff600b53836020527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6040526055600b20601452806040525061d6945f52600160345350506017601e20919050565b5f613b6a613204565b54600160401b900460ff16919050565b6114fa6139cf565b613b8a6139cf565b5f613b9361351b565b805460ff1916905550565b806001600160a01b03163b5f03613bca5780604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051613c149190614955565b5f60405180830381855af49150503d805f8114613c4c576040519150601f19603f3d011682016040523d82523d5f602084013e613c51565b606091505b5091509150613c61858383613cf2565b95945050505050565b34156114fa5760405163b398979f60e01b815260040160405180910390fd5b5f6f67363d3d37363d34f03d5260086018f35f52816010805ff580613cb55763301164255f526004601cfd5b8060145261d6945f5260016034536017601e2091505f5f85516020870188855af1823b02613cea5763301164255f526004601cfd5b509392505050565b606082613d0757613d0282613d3e565b6119e5565b8151158015613d1e57506001600160a01b0384163b155b156131a75783604051639996b31560e01b81526004016131729190613f08565b805115613d4e5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b508054613d76906143ad565b5f825580601f10613d85575050565b601f0160209004905f5260205f2090810190613d679190613dbb565b61041c8061496183390190565b61054980614d7d83390190565b5b80821115613dcf575f8155600101613dbc565b5090565b6001600160a01b0381168114613d67575f5ffd5b5f5f5f60608486031215613df9575f5ffd5b8335613e0481613dd3565b92506020840135613e1481613dd3565b929592945050506040919091013590565b5f5f83601f840112613e35575f5ffd5b5081356001600160401b03811115613e4b575f5ffd5b6020830191508360208260051b8501011115613e65575f5ffd5b9250929050565b5f5f5f5f5f5f60608789031215613e81575f5ffd5b86356001600160401b03811115613e96575f5ffd5b613ea289828a01613e25565b90975095505060208701356001600160401b03811115613ec0575f5ffd5b613ecc89828a01613e25565b90955093505060408701356001600160401b03811115613eea575f5ffd5b613ef689828a01613e25565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b5f5f5f60608486031215613f2e575f5ffd5b8335613f3981613dd3565b95602085013595506040909401359392505050565b5f5f60408385031215613f5f575f5ffd5b8235613f6a81613dd3565b91506020830135613f7a81613dd3565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215613faa575f5ffd5b8235613fb581613dd3565b915060208301356001600160401b03811115613fcf575f5ffd5b8301601f81018513613fdf575f5ffd5b80356001600160401b03811115613ff857613ff8613f85565b604051601f8201601f19908116603f011681016001600160401b038111828210171561402657614026613f85565b60405281815282820160200187101561403d575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f6040838503121561406d575f5ffd5b823561407881613dd3565b946020939093013593505050565b5f5f60408385031215614097575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156140e65783516001600160a01b03168352602093840193909201916001016140bf565b509095945050505050565b5f60208284031215614101575f5ffd5b81356119e581613dd3565b5f6020828403121561411c575f5ffd5b5035919050565b5f5f5f5f60408587031215614136575f5ffd5b84356001600160401b0381111561414b575f5ffd5b61415787828801613e25565b90955093505060208501356001600160401b03811115614175575f5ffd5b61418187828801613e25565b95989497509550505050565b6001600160a01b03929092168252602082015260400190565b5f5f5f604084860312156141b8575f5ffd5b83356141c381613dd3565b925060208401356001600160401b038111156141dd575f5ffd5b6141e986828701613e25565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602080825282516001600160a01b039081168383015290830151166040808301919091528201516001600160601b03166060808301919091528201516080808301525f9061427560a08401826141f6565b949350505050565b602081525f6119e560208301846141f6565b5f5f5f5f606085870312156142a2575f5ffd5b84356001600160401b038111156142b7575f5ffd5b6142c387828801613e25565b90989097506020870135966040013595509350505050565b9182526001600160a01b0316602082015260400190565b5f60208284031215614302575f5ffd5b815180151581146119e5575f5ffd5b5f60208284031215614321575f5ffd5b81516119e581613dd3565b634e487b7160e01b5f52603260045260245ffd5b5f8235607e19833603018112614354575f5ffd5b9190910192915050565b6001600160601b0381168114613d67575f5ffd5b5f60208284031215614382575f5ffd5b81356119e58161435e565b80546001600160a01b0319166001600160a01b0392909216919091179055565b600181811c908216806143c157607f821691505b6020821081036143df57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561099157805f5260205f20601f840160051c8101602085101561440a5750805b601f840160051c820191505b81811015611a7d575f8155600101614416565b6001600160401b0383111561444057614440613f85565b6144548361444e83546143ad565b836143e5565b5f601f841160018114614485575f851561446e5750838201355b5f19600387901b1c1916600186901b178355611a7d565b5f83815260208120601f198716915b828110156144b45786850135825560209485019460019092019101614494565b50868210156144d0575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81356144ed81613dd3565b6144f7818361438d565b5060018101602083013561450a81613dd3565b614514818361438d565b5060408301356145238161435e565b81546001600160a01b031660a09190911b6001600160a01b031916179055606082013536839003601e19018112614558575f5ffd5b820180356001600160401b0381111561456f575f5ffd5b602082019150803603821315614583575f5ffd5b613af8818360028601614429565b8183526020830192505f815f5b848110156145cf5781356145b181613dd3565b6001600160a01b03168652602095860195919091019060010161459e565b5093949350505050565b8183525f6001600160fb1b038311156145f0575f5ffd5b8260051b80836020870137939093016020019392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b606081525f61464460608301888a614591565b82810360208401526146578187896145d9565b83810360408501528481529050602080820190600586901b830101865f36829003607e19015b8882101561475a57858403601f19018552823581811261469b575f5ffd5b8a0180356146a881613dd3565b6001600160a01b0316855260208101356146c181613dd3565b6001600160a01b0316602086015260408101356146dd8161435e565b6001600160601b03166040860152606081013536829003601e19018112614702575f5ffd5b016020810190356001600160401b0381111561471c575f5ffd5b80360382131561472a575f5ffd5b6080606087015261473f608087018284614609565b9550505060208301925060208501945060018201915061467d565b50919c9b505050505050505050505050565b5f6020828403121561477c575f5ffd5b5051919050565b5f815461478f816143ad565b8085526001821680156147a957600181146147c5576130f8565b60ff1983166020870152602082151560051b87010193506130f8565b845f5260205f205f5b838110156147f05781546020828a0101526001820191506020810190506147ce565b870160200194505050505092915050565b6001600160a01b03868116825260208201869052841660408201526001600160601b038316606082015260a0608082018190525f9061484290830184614783565b979650505050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561193d5761193d61484d565b8181038181111561193d5761193d61484d565b6001600160a01b0392831681529116602082015260400190565b602081525f614275602083018486614591565b5f5f604083850312156148c5575f5ffd5b82516148d081613dd3565b6020939093015192949293505050565b604081525f6148f3604083018688614591565b82810360208401526148428185876145d9565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f81518060208401855e5f93019283525090919050565b5f61427561494f838661492a565b8461492a565b5f6119e5828461492a56fe608060405234801561000f575f5ffd5b5060405161041c38038061041c83398101604081905261002e9161015a565b806001600160a01b038116610061575f604051631e4fbdf760e01b8152600401610058919061018b565b60405180910390fd5b61006a8161007b565b50610074826100ca565b505061019f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b5f036100f6578060405163211eb15960e21b8152600401610058919061018b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b80516001600160a01b0381168114610155575f5ffd5b919050565b5f5f6040838503121561016b575f5ffd5b6101748361013f565b91506101826020840161013f565b90509250929050565b6001600160a01b0391909116815260200190565b610270806101ac5f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c80633659cfe6146100595780635c60da1b1461006e578063715018a6146100915780638da5cb5b14610099578063f2fde38b146100a1575b5f5ffd5b61006c610067366004610222565b6100b4565b005b6001546001600160a01b03165b604051610088919061024f565b60405180910390f35b61006c6100c8565b61007b6100db565b61006c6100af366004610222565b6100e9565b6100bc61012c565b6100c58161015e565b50565b6100d061012c565b6100d95f6101d3565b565b5f546001600160a01b031690565b6100f161012c565b6001600160a01b038116610123575f604051631e4fbdf760e01b815260040161011a919061024f565b60405180910390fd5b6100c5816101d3565b336101356100db565b6001600160a01b0316146100d9573360405163118cdaa760e01b815260040161011a919061024f565b806001600160a01b03163b5f0361018a578060405163211eb15960e21b815260040161011a919061024f565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610232575f5ffd5b81356001600160a01b0381168114610248575f5ffd5b9392505050565b6001600160a01b039190911681526020019056fea164736f6c634300081c000a60a06040526040516105493803806105498339810160408190526100229161033d565b61002c828261003e565b506001600160a01b0316608052610442565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e491906103ff565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610418565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906103ff565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610418565b60605f5f846001600160a01b031684604051610217919061042c565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610418565b50805b9392505050565b8051156102f55780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b0381168114610324575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561034e575f5ffd5b6103578361030e565b60208401519092506001600160401b03811115610372575f5ffd5b8301601f81018513610382575f5ffd5b80516001600160401b0381111561039b5761039b610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103c9576103c9610329565b6040528181528282016020018710156103e0575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f6020828403121561040f575f5ffd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160f26104575f395f601d015260f25ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f5f375f5f365f845af43d5f5f3e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f5ffd5b81516001600160a01b038116811460de575f5ffd5b939250505056fea164736f6c634300081c000a832251a720f920327ebb0030fe996a27a683ebfc8003fe770d2131d205e231828b9348858251a55a2d12c35d356747690c724366409d6da2251f3fe26718d41d360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0093ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cba164736f6c634300081c000a","sourceMap":"932:46727:39:-:0;;;1171:4:1;1128:48;;11121:53:39;;;;;;;;;-1:-1:-1;11145:22:39;:20;:22::i;:::-;932:46727;;7711:422:0;8870:21;7900:15;;;;;;;7896:76;;;7938:23;;-1:-1:-1;;;7938:23:0;;;;;;;;;;;7896:76;7985:14;;-1:-1:-1;;;;;7985:14:0;;;:34;7981:146;;8035:33;;-1:-1:-1;;;;;;8035:33:0;-1:-1:-1;;;;;8035:33:0;;;;;8087:29;;158:50:43;;;8087:29:0;;146:2:43;131:18;8087:29:0;;;;;;;7981:146;7760:373;7711:422::o;14:200:43:-;932:46727:39;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{},"transformations":[],"transformationValues":{}},"runtimeBytecode":{"onchainBytecode":"0x6080604052600436106101c2575f3560e01c80630345bdbe146101cd57806303c1288e146101ee57806308c732591461020d5780630bf5d35e14610237578063197f84f81461024a5780631becc420146102695780633d9d38671461027d5780633f4ba83a146102ab578063485cc955146102bf5780634f1ef286146102de57806352d1902d146102f1578063586097541461030557806359659e90146103245780635c975abb1461033857806360db28731461035c5780636c8bcb6a1461038857806375151b63146103a7578063760d0f9d146103c6578063770b69f6146103e55780637b0eb57d146104045780637f1a9904146104235780638322fff2146104505780638456cb5914610477578063886e89a51461048b578063922b8e221461049f57806395e12d61146104be578063a222dbbd146104dd578063a5116d9314610509578063a58dcc9514610529578063a783b50814610548578063ad3cb1cc1461055c578063ade78a1214610599578063b0b15c11146105b8578063b69fd599146105d7578063c8d9b28614610603578063c93d2b1d14610622578063cd00c53814610641578063de9d008d14610660578063e8d1f00f1461067f575f5ffd5b366101c957005b5f5ffd5b3480156101d8575f5ffd5b506101ec6101e7366004613de7565b61069e565b005b3480156101f9575f5ffd5b506101ec610208366004613e6c565b610996565b348015610218575f5ffd5b50610221610cd7565b60405161022e9190613f08565b60405180910390f35b6101ec610245366004613f1c565b610cf1565b348015610255575f5ffd5b506101ec610264366004613e6c565b61100e565b348015610274575f5ffd5b50610221611476565b348015610288575f5ffd5b5061029d5f5160206152e65f395f51905f5281565b60405190815260200161022e565b3480156102b6575f5ffd5b506101ec611493565b3480156102ca575f5ffd5b506101ec6102d9366004613f4e565b6114fc565b6101ec6102ec366004613f99565b6115f4565b3480156102fc575f5ffd5b5061029d611613565b348015610310575f5ffd5b506101ec61031f36600461405c565b61162e565b34801561032f575f5ffd5b5061022161182d565b348015610343575f5ffd5b5061034c611837565b604051901515815260200161022e565b348015610367575f5ffd5b5061037b610376366004614086565b61184b565b60405161022e91906140a6565b348015610393575f5ffd5b506102216103a23660046140f1565b611943565b3480156103b2575f5ffd5b5061034c6103c13660046140f1565b6119ec565b3480156103d1575f5ffd5b506101ec6103e036600461410c565b611a05565b3480156103f0575f5ffd5b506101ec6103ff366004614123565b611a84565b34801561040f575f5ffd5b506101ec61041e366004614123565b611ccb565b34801561042e575f5ffd5b5061044261043d366004613f1c565b611da9565b60405161022e92919061418d565b34801561045b575f5ffd5b5061022173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b348015610482575f5ffd5b506101ec611f01565b348015610496575f5ffd5b5061029d611f68565b3480156104aa575f5ffd5b506102216104b93660046140f1565b611f7e565b3480156104c9575f5ffd5b506101ec6104d83660046141a6565b611fac565b3480156104e8575f5ffd5b506104fc6104f736600461405c565b6122dd565b60405161022e9190614224565b348015610514575f5ffd5b5061029d5f5160206152c65f395f51905f5281565b348015610534575f5ffd5b5061022161054336600461410c565b612405565b348015610553575f5ffd5b5061022161240f565b348015610567575f5ffd5b5061058c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161022e919061427d565b3480156105a4575f5ffd5b506101ec6105b3366004614123565b61242a565b3480156105c3575f5ffd5b5061034c6105d23660046140f1565b61267d565b3480156105e2575f5ffd5b506105eb60c881565b6040516001600160601b03909116815260200161022e565b34801561060e575f5ffd5b506101ec61061d3660046140f1565b612693565b34801561062d575f5ffd5b506101ec61063c36600461428f565b6127bf565b34801561064c575f5ffd5b506101ec61065b3660046140f1565b6128a1565b34801561066b575f5ffd5b506101ec61067a3660046140f1565b61299e565b34801561068a575f5ffd5b5061034c61069936600461405c565b612b57565b6106a6612b95565b6106ae612bdc565b6106b6610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016106f09291906142db565b602060405180830381865afa15801561070b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061072f91906142f2565b61074c57604051631695365560e21b815260040160405180910390fd5b5f610755612c02565b90506107618185612c26565b61077e57604051631359be9560e11b815260040160405180910390fd5b61078b6004820184612c26565b156107a95760405163c6486ddf60e01b815260040160405180910390fd5b60058101546001600160a01b0316806107d557604051630d35236760e21b815260040160405180910390fd5b6001600160a01b038085165f908152600684016020526040902054811690821663240028e882156108065782610808565b865b6040518263ffffffff1660e01b81526004016108249190613f08565b602060405180830381865afa15801561083f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086391906142f2565b61088057604051632e0fe39f60e21b815260040160405180910390fd5b604051634b69571760e11b81525f906001600160a01b038416906396d2ae2e906108ae908a90600401613f08565b602060405180830381865afa1580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0384169063b7ca418b9061091c908490600401613f08565b602060405180830381865afa158015610937573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b91906142f2565b61097857604051635c5a136560e11b815260040160405180910390fd5b6109858782888589612ccb565b50505050610991612f92565b505050565b61099e610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016109c99190613f08565b5f6040518083038186803b1580156109df575f5ffd5b505afa1580156109f1573d5f5f3e3d5ffd5b505050505f6109fe612c02565b9050858281141580610a105750808514155b15610a2e5760405163512509d360e11b815260040160405180910390fd5b5f5b81811015610c8b575f898983818110610a4b57610a4b61432c565b9050602002016020810190610a6091906140f1565b6001600160a01b031603610a8757604051635f5d339960e01b815260040160405180910390fd5b868682818110610a9957610a9961432c565b905060200201355f03610abf5760405163080fa92760e31b815260040160405180910390fd5b5f858583818110610ad257610ad261432c565b9050602002810190610ae49190614340565b610af29060208101906140f1565b6001600160a01b03161480610b4357505f858583818110610b1557610b1561432c565b9050602002810190610b279190614340565b610b389060408101906020016140f1565b6001600160a01b0316145b80610b8b575060c8858583818110610b5d57610b5d61432c565b9050602002810190610b6f9190614340565b610b80906060810190604001614372565b6001600160601b0316115b15610ba9576040516306b7c75960e31b815260040160405180910390fd5b848482818110610bbb57610bbb61432c565b9050602002810190610bcd9190614340565b836003015f8b8b85818110610be457610be461432c565b9050602002016020810190610bf991906140f1565b6001600160a01b03166001600160a01b031681526020019081526020015f205f898985818110610c2b57610c2b61432c565b9050602002013581526020019081526020015f208181610c4b91906144e2565b905050610c82898983818110610c6357610c6361432c565b9050602002016020810190610c7891906140f1565b6004850190612fa9565b50600101610a30565b507f38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622888888888888604051610cc596959493929190614631565b60405180910390a15050505050505050565b5f5f610ce1613101565b546001600160a01b031692915050565b610cf9612bdc565b5f5160206152c65f395f51905f52610d0f610cd7565b6001600160a01b03166391d1485482336040518363ffffffff1660e01b8152600401610d3c9291906142db565b602060405180830381865afa158015610d57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7b91906142f2565b610d97576040516282b42960e81b815260040160405180910390fd5b5f610da0612c02565b90506001600160a01b038516610dc957604051635f5d339960e01b815260040160405180910390fd5b825f03610de95760405163080fa92760e31b815260040160405180910390fd5b835f03610e095760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038086165f908152600383016020908152604080832087845290915290208054909116610e50576040516317b428a360e01b815260040160405180910390fd5b5f6001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610ee5576040516370a0823160e01b81526001600160a01b038816906370a0823190610ea1903090600401613f08565b602060405180830381865afa158015610ebc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ee0919061476c565b610ee7565b475b905085811015610f0a57604051631e9acf1760e31b815260040160405180910390fd5b5f610f16888888611da9565b91505034811115610f3a57604051636a639da560e01b815260040160405180910390fd5b82546001840154604051610fbf926001600160a01b039081169263b14d361d60e01b92610f88928e928e9291811691600160a01b9091046001600160601b03169060028c0190602401614801565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613125565b5085886001600160a01b03167fdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa89604051610ffc91815260200190565b60405180910390a35050505050505050565b611016612b95565b61101e612bdc565b611026610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016110609291906142db565b602060405180830381865afa15801561107b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109f91906142f2565b6110bc57604051631695365560e21b815260040160405180910390fd5b8483811415806110cc5750808214155b156110ea5760405163512509d360e11b815260040160405180910390fd5b5f6110f3612c02565b60058101549091506001600160a01b03168061112257604051630d35236760e21b815260040160405180910390fd5b5f5b838110156114625761115d8a8a838181106111415761114161432c565b905060200201602081019061115691906140f1565b8490612c26565b61117a57604051631359be9560e11b815260040160405180910390fd5b6111ae88888381811061118f5761118f61432c565b90506020020160208101906111a491906140f1565b6004850190612c26565b156111cc5760405163c6486ddf60e01b815260040160405180910390fd5b5f836006015f8a8a858181106111e4576111e461432c565b90506020020160208101906111f991906140f1565b6001600160a01b03908116825260208201929092526040015f205481169150831663240028e8821561122b5782611252565b8a8a8581811061123d5761123d61432c565b905060200201602081019061125291906140f1565b6040518263ffffffff1660e01b815260040161126e9190613f08565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad91906142f2565b6112ca57604051632e0fe39f60e21b815260040160405180910390fd5b5f836001600160a01b03166396d2ae2e8d8d868181106112ec576112ec61432c565b905060200201602081019061130191906140f1565b6040518263ffffffff1660e01b815260040161131d9190613f08565b602060405180830381865afa158015611338573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061135c9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0385169063b7ca418b9061138b908490600401613f08565b602060405180830381865afa1580156113a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ca91906142f2565b6113e757604051635c5a136560e11b815260040160405180910390fd5b6114588c8c858181106113fc576113fc61432c565b905060200201602081019061141191906140f1565b828c8c878181106114245761142461432c565b905060200201602081019061143991906140f1565b858c8c8981811061144c5761144c61432c565b90506020020135612ccb565b5050600101611124565b5050505061146e612f92565b505050505050565b5f5f611480612c02565b600201546001600160a01b031692915050565b61149b610cd7565b6001600160a01b0316635efcc07c336040518263ffffffff1660e01b81526004016114c69190613f08565b5f6040518083038186803b1580156114dc575f5ffd5b505afa1580156114ee573d5f5f3e3d5ffd5b505050506114fa6131ae565b565b5f611505613204565b805490915060ff600160401b82041615906001600160401b03165f8115801561152b5750825b90505f826001600160401b031660011480156115465750303b155b905081158015611554575080155b156115725760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561159b57845460ff60401b1916600160401b1785555b6115a58787613228565b83156115eb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6115fc61329e565b61160582613342565b61160f82826133a3565b5050565b5f61161c613456565b505f5160206153065f395f51905f5290565b611636612b95565b61163e610cd7565b6001600160a01b031663a47fbb2a336040518263ffffffff1660e01b81526004016116699190613f08565b5f6040518083038186803b15801561167f575f5ffd5b505afa158015611691573d5f5f3e3d5ffd5b505050505f61169e612c02565b90506001600160a01b0383166116c757604051635f5d339960e01b815260040160405180910390fd5b6116d46004820184612c26565b156116f25760405163c6486ddf60e01b815260040160405180910390fd5b60028101546001600160a01b031661171d576040516315bc61ef60e31b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038416016117bb5760028101546040515f916001600160a01b03169084908381818185875af1925050503d805f811461178e576040519150601f19603f3d011682016040523d82523d5f602084013e611793565b606091505b50509050806117b557604051633d2cec6f60e21b815260040160405180910390fd5b506117d7565b60028101546117d7906001600160a01b0385811691168461349f565b60028101546040516001600160a01b03858116927fb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a773981729899239261181c9290911690869061418d565b60405180910390a25061160f612f92565b5f5f610ce16134f7565b5f5f61184161351b565b5460ff1692915050565b60605f611856612c02565b90505f6118628261353f565b9050808510611884576040516392c4425960e01b815260040160405180910390fd5b8061188f8587614861565b11156118a25761189f8582614874565b93505b5f846001600160401b038111156118bb576118bb613f85565b6040519080825280602002602001820160405280156118e4578160200160208202803683370190505b5090505f5b85811015611937576119056118fe8289614861565b859061358d565b8282815181106119175761191761432c565b6001600160a01b03909216602092830291909101909101526001016118e9565b50925050505b92915050565b5f5f61194d612c02565b600501546001600160a01b031690508061197a57604051630d35236760e21b815260040160405180910390fd5b604051634b69571760e11b81526001600160a01b038216906396d2ae2e906119a6908690600401613f08565b602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190614311565b9392505050565b5f5f6119f6612c02565b90506119e56004820184612c26565b611a0d612bdc565b5f63c4d66de860e01b30604051602401611a279190613f08565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505f611a6683836135dc565b90505f611a71612c02565b9050611a7d8183612fa9565b5050505050565b611a8c610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b8152600401611ab79190613f08565b5f6040518083038186803b158015611acd575f5ffd5b505afa158015611adf573d5f5f3e3d5ffd5b508592505050818114611b055760405163512509d360e11b815260040160405180910390fd5b5f611b0e612c02565b90505f5b828110156115eb575f878783818110611b2d57611b2d61432c565b9050602002016020810190611b4291906140f1565b90505f868684818110611b5757611b5761432c565b9050602002016020810190611b6c91906140f1565b90506001600160a01b038216611b9557604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03811615801590611c1e5750816001600160a01b0316816001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c129190614311565b6001600160a01b031614155b15611c3c57604051633cf654ef60e01b815260040160405180910390fd5b6001600160a01b038083165f8181526006870160205260409081902054905191927f8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb620192611c8e92909116908590614887565b60405180910390a26001600160a01b039182165f908152600685016020526040902080546001600160a01b03191691909216179055600101611b12565b611cd5848461376e565b5f611cde612c02565b9050815f5b818110156115eb57611d008585838181106111415761114161432c565b611d1d57604051631359be9560e11b815260040160405180910390fd5b848482818110611d2f57611d2f61432c565b9050602002016020810190611d4491906140f1565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b8152600401611d719291906148a1565b5f604051808303815f87803b158015611d88575f5ffd5b505af1158015611d9a573d5f5f3e3d5ffd5b50505050806001019050611ce3565b5f5f5f611db4612c02565b90506001600160a01b038616611ddd57604051635f5d339960e01b815260040160405180910390fd5b835f03611dfd5760405163080fa92760e31b815260040160405180910390fd5b845f03611e1d5760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038087165f908152600383016020908152604080832088845290915290208054909116611e64576040516317b428a360e01b815260040160405180910390fd5b80546001820154604051630bbfe4bf60e41b81526001600160a01b039283169263bbfe4bf092611eb5928c928c9290811691600160a01b9091046001600160601b0316906002890190600401614801565b6040805180830381865afa158015611ecf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ef391906148b4565b935093505050935093915050565b611f09610cd7565b6001600160a01b031663bf4019ec336040518263ffffffff1660e01b8152600401611f349190613f08565b5f6040518083038186803b158015611f4a575f5ffd5b505afa158015611f5c573d5f5f3e3d5ffd5b505050506114fa61380f565b5f611f79611f74612c02565b61353f565b905090565b5f611f87612c02565b6001600160a01b039283165f9081526006919091016020526040902054909116919050565b611fb4612b95565b611fbc612bdc565b5f611fc5612c02565b9050611fd18185612c26565b611fee57604051631359be9560e11b815260040160405180910390fd5b815f5b818110156122d2575f85858381811061200c5761200c61432c565b905060200201602081019061202191906140f1565b90506120306004850182612c26565b1561204e5760405163c6486ddf60e01b815260040160405180910390fd5b6001600160a01b038082165f908152600686016020526040902054168061208857604051633bc9491b60e11b815260040160405180910390fd5b6040516370a0823160e01b81525f906001600160a01b038416906370a08231906120b6908c90600401613f08565b602060405180830381865afa1580156120d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f5919061476c565b905080156122c4576040516370a0823160e01b81525f906001600160a01b038416906370a082319061212b908d90600401613f08565b602060405180830381865afa158015612146573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216a919061476c565b604051635f9bb63d60e11b81529091506001600160a01b038b169063bf376c7a9061219b908790869060040161418d565b5f604051808303815f87803b1580156121b2575f5ffd5b505af11580156121c4573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a082318d6040518263ffffffff1660e01b81526004016121f69190613f08565b602060405180830381865afa158015612211573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612235919061476c565b61223f9190614874565b9050805f03612261576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b03168c6001600160a01b03167ffc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc69051486856040516122b9929190918252602082015260400190565b60405180910390a450505b836001019350505050611ff1565b505050610991612f92565b604080516080810182525f8082526020820181905291810182905260608082015290612307612c02565b6001600160a01b038581165f90815260038301602090815260408083208884528252918290208251608081018452815485168152600182015494851692810192909252600160a01b9093046001600160601b031691810191909152600282018054939450909260608401919061237c906143ad565b80601f01602080910402602001604051908101604052809291908181526020018280546123a8906143ad565b80156123f35780601f106123ca576101008083540402835291602001916123f3565b820191905f5260205f20905b8154815290600101906020018083116123d657829003601f168201915b50505050508152505091505092915050565b5f61193d82613855565b5f612418612c02565b600501546001600160a01b0316919050565b612432610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b815260040161245d9190613f08565b5f6040518083038186803b158015612473575f5ffd5b505afa158015612485573d5f5f3e3d5ffd5b505050505f612492612c02565b9050838281146124b55760405163512509d360e11b815260040160405180910390fd5b5f5b81811015612637575f8787838181106124d2576124d261432c565b90506020020160208101906124e791906140f1565b90506001600160a01b03811661251057604051635f5d339960e01b815260040160405180910390fd5b8585838181106125225761252261432c565b905060200201355f036125485760405163080fa92760e31b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120818888868181106125745761257461432c565b602090810292909201358352508101919091526040015f20546001600160a01b0316036125b4576040516317b428a360e01b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120908787858181106125e0576125e061432c565b602090810292909201358352508101919091526040015f90812080546001600160a01b0319168155600181018290559061261d6002830182613d6a565b5061262d90506004850182613860565b50506001016124b7565b507f1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b8686868660405161266d94939291906148e0565b60405180910390a1505050505050565b5f5f612687612c02565b90506119e58184612c26565b3361269c610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126d7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126fb9190614311565b6001600160a01b0316146127225760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612749576040516371b06ceb60e11b815260040160405180910390fd5b5f612752612c02565b60058101546040519192507fd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e9914313339051919191612794916001600160a01b0316908590614887565b60405180910390a160050180546001600160a01b0319166001600160a01b0392909216919091179055565b6127c9848461376e565b5f6127d2612c02565b90505f6127de8261353f565b9050808410612800576040516392c4425960e01b815260040160405180910390fd5b8061280b8486614861565b111561281e5761281b8482614874565b92505b5f5b838110156115eb5761283c6128358287614861565b849061358d565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b81526004016128699291906148a1565b5f604051808303815f87803b158015612880575f5ffd5b505af1158015612892573d5f5f3e3d5ffd5b50505050806001019050612820565b6128a9610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016128d49190613f08565b5f6040518083038186803b1580156128ea575f5ffd5b505afa1580156128fc573d5f5f3e3d5ffd5b505050505f612909612c02565b90506001600160a01b038216612932576040516332ff4e5f60e11b815260040160405180910390fd5b60028101546040517fadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc623891612973916001600160a01b03909116908590614887565b60405180910390a160020180546001600160a01b0319166001600160a01b0392909216919091179055565b336129a7610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a069190614311565b6001600160a01b031614612a2d5760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612a545760405163b4fa3fb360e01b815260040160405180910390fd5b5f612a5d6134f7565b5460408051635c60da1b60e01b815290516001600160a01b0390921692507fd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a918391635c60da1b9160048083019260209291908290030181865afa158015612ac7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aeb9190614311565b83604051612afa929190614887565b60405180910390a1604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690612b2e908590600401613f08565b5f604051808303815f87803b158015612b45575f5ffd5b505af115801561146e573d5f5f3e3d5ffd5b5f5f612b61612c02565b6001600160a01b038581165f9081526003909201602090815260408084208785529091529091205416151591505092915050565b5f5160206153265f395f51905f525c15612bc257604051633ee5aeb560e01b815260040160405180910390fd5b6114fa60015f5160206153265f395f51905f525b90613990565b612be4611837565b156114fa5760405163d93c066560e01b815260040160405180910390fd5b7fe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b10090565b5f5f612c3184613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612c5d5763f5a267f15f526004601cfd5b82612c6f5768fbb67fda52d4bfb8bf92505b80546001600160601b038116612cb25760019250838160601c0315612cc357600182015460601c8414612cc357600282015460601c8414612cc3575f9250612cc3565b81602052835f5260405f2054151592505b505092915050565b6001600160a01b038216612d7f576040516301a2dedf60e11b81526001600160a01b03861690630345bdbe90612d0990869088908690600401614906565b5f604051808303815f87803b158015612d20575f5ffd5b505af1158015612d32573d5f5f3e3d5ffd5b50505050826001600160a01b0316846001600160a01b0316866001600160a01b03165f5160206153465f395f51905f5284604051612d7291815260200190565b60405180910390a4611a7d565b6040516370a0823160e01b81525f906001600160a01b038416906370a0823190612dad908890600401613f08565b602060405180830381865afa158015612dc8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dec919061476c565b6040516301a2dedf60e11b81529091506001600160a01b03871690630345bdbe90612e1f90879089908790600401614906565b5f604051808303815f87803b158015612e36575f5ffd5b505af1158015612e48573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a08231886040518263ffffffff1660e01b8152600401612e7a9190613f08565b602060405180830381865afa158015612e95573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eb9919061476c565b612ec39190614874565b9050805f03612ee5576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b0316886001600160a01b03167ff731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f8158685604051612f3d929190918252602082015260400190565b60405180910390a4836001600160a01b0316866001600160a01b0316886001600160a01b03165f5160206153465f395f51905f5284604051612f8191815260200190565b60405180910390a450505050505050565b6114fa5f5f5160206153265f395f51905f52612bd6565b5f5f612fb484613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612fe05763f5a267f15f526004601cfd5b82612ff25768fbb67fda52d4bfb8bf92505b80546001600160601b03811682602052806130b4578160601c80613020578560601b845560019450506130f8565b85810361302d57506130f8565b600184015460601c8061304e578660601b60018601556001955050506130f8565b86810361305c5750506130f8565b600285015460601c8061307e578760601b6002870155600196505050506130f8565b87810361308d575050506130f8565b5f928352604080842060019055918352818320600290558252902060039055506007908117905b845f5260405f2080546130f657600191821c8083018255919450816130e2578560601b6003178455506130f8565b8560601b82850155826002018455506130f8565b505b50505092915050565b7fa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f50090565b6060306001600160a01b0384160361317b5760405162461bcd60e51b81526020600482015260146024820152733232b632b3b0ba32b1b0b636103a379039b2b63360611b60448201526064015b60405180910390fd5b5f5f835160208501865af43d6040519250808352805f602085013e8201602001604052806131a7573d82fd5b5092915050565b6131b66139aa565b5f6131bf61351b565b805460ff1916815590507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516131f99190613f08565b60405180910390a150565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b6132306139cf565b613239826139f4565b613241613a30565b5f61324a6134f7565b9050813060405161325a90613da1565b613265929190614887565b604051809103905ff08015801561327e573d5f5f3e3d5ffd5b5081546001600160a01b0319166001600160a01b03919091161790555050565b306001600160a01b037f0000000000000000000000000681a8bb55f509c5952063163a1dda710084b80c16148061332457507f0000000000000000000000000681a8bb55f509c5952063163a1dda710084b80c6001600160a01b03166133185f5160206153065f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156114fa5760405163703e46dd60e11b815260040160405180910390fd5b5f61334b613101565b8054604051634766d28760e01b81529192506001600160a01b031690634766d2879061337b903390600401613f08565b5f6040518083038186803b158015613391575f5ffd5b505afa15801561146e573d5f5f3e3d5ffd5b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156133fd575060408051601f3d908101601f191682019092526133fa9181019061476c565b60015b61341c5781604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f52811461344c57604051632a87526960e21b815260048101829052602401613172565b6109918383613a40565b306001600160a01b037f0000000000000000000000000681a8bb55f509c5952063163a1dda710084b80c16146114fa5760405163703e46dd60e11b815260040160405180910390fd5b61099183846001600160a01b031663a9059cbb85856040516024016134c592919061418d565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613a95565b7f644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae5820090565b7fcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f0330090565b5f5f61354a83613997565b905080548060a01b60a01c8060011c9350808260601c1517613585576001935083830154156135855760029350838301541561358557600393505b505050919050565b5f5f61359884613997565b90508281015460601c915068fbb67fda52d4bfb8bf821415820291506135bd8461353f565b83106131a757604051634e23d03560e01b815260040160405180910390fd5b5f5f6135e784612405565b90505f61366c604051806020016135fd90613dae565b601f1982820381018352601f9091011660405261361861182d565b604080516001600160a01b039092166020830152818101525f606082015260800160408051601f19818403018152908290526136579291602001614941565b60405160208183030381529060405286613afe565b8451909150156136f1575f816001600160a01b03168560405161368f9190614955565b5f604051808303815f865af19150503d805f81146136c8576040519150601f19603f3d011682016040523d82523d5f602084013e6136cd565b606091505b50509050806136ef57604051630337323560e31b815260040160405180910390fd5b505b806001600160a01b0316826001600160a01b0316146137235760405163169c822160e01b815260040160405180910390fd5b806001600160a01b03167f5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e8660405161375e91815260200190565b60405180910390a2949350505050565b5f613777612c02565b9050815f5b81811015611a7d5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8585838181106137ab576137ab61432c565b90506020020160208101906137c091906140f1565b6001600160a01b0316141580156137e957506137e785858381811061118f5761118f61432c565b155b15613807576040516318e9b75d60e01b815260040160405180910390fd5b60010161377c565b613817612bdc565b5f61382061351b565b805460ff1916600117815590507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131ec3390565b5f61193d8230613b0a565b5f5f61386b84613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be1983016138975763f5a267f15f526004601cfd5b826138a95768fbb67fda52d4bfb8bf92505b80546001600160601b038116806139235760019350848260601c036138e15760018301805484556002840180549091555f90556130f8565b84600184015460601c036139025760028301805460018501555f90556130f8565b84600284015460601c0361391b575f60028401556130f8565b5f93506130f8565b82602052845f5260405f2080548061393c5750506130f8565b60018360011c03925082600182031461396c578285015460601c8060601b60018303870155805f52508060405f20555b5083546001600160601b031916600192831b1782179093555f909255509392505050565b80825d5050565b63978aab926004525f9081526024902090565b6139b2611837565b6114fa57604051638dfc202b60e01b815260040160405180910390fd5b6139d7613b61565b6114fa57604051631afcd79f60e31b815260040160405180910390fd5b6139fc6139cf565b5f613a05613101565b80546001600160a01b0319166001600160a01b0384161781559050613a28613b7a565b61160f613b82565b613a386139cf565b6114fa613b82565b613a4982613b9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115613a8d576109918282613bf8565b61160f613c6a565b5f5f60205f8451602086015f885af180613ab4576040513d5f823e3d81fd5b50505f513d91508115613acb578060011415613ad8565b6001600160a01b0384163b155b15613af85783604051635274afe760e01b81526004016131729190613f08565b50505050565b5f6119e55f8484613c89565b5f604051825f5260ff600b53836020527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6040526055600b20601452806040525061d6945f52600160345350506017601e20919050565b5f613b6a613204565b54600160401b900460ff16919050565b6114fa6139cf565b613b8a6139cf565b5f613b9361351b565b805460ff1916905550565b806001600160a01b03163b5f03613bca5780604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051613c149190614955565b5f60405180830381855af49150503d805f8114613c4c576040519150601f19603f3d011682016040523d82523d5f602084013e613c51565b606091505b5091509150613c61858383613cf2565b95945050505050565b34156114fa5760405163b398979f60e01b815260040160405180910390fd5b5f6f67363d3d37363d34f03d5260086018f35f52816010805ff580613cb55763301164255f526004601cfd5b8060145261d6945f5260016034536017601e2091505f5f85516020870188855af1823b02613cea5763301164255f526004601cfd5b509392505050565b606082613d0757613d0282613d3e565b6119e5565b8151158015613d1e57506001600160a01b0384163b155b156131a75783604051639996b31560e01b81526004016131729190613f08565b805115613d4e5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b508054613d76906143ad565b5f825580601f10613d85575050565b601f0160209004905f5260205f2090810190613d679190613dbb565b61041c8061496183390190565b61054980614d7d83390190565b5b80821115613dcf575f8155600101613dbc565b5090565b6001600160a01b0381168114613d67575f5ffd5b5f5f5f60608486031215613df9575f5ffd5b8335613e0481613dd3565b92506020840135613e1481613dd3565b929592945050506040919091013590565b5f5f83601f840112613e35575f5ffd5b5081356001600160401b03811115613e4b575f5ffd5b6020830191508360208260051b8501011115613e65575f5ffd5b9250929050565b5f5f5f5f5f5f60608789031215613e81575f5ffd5b86356001600160401b03811115613e96575f5ffd5b613ea289828a01613e25565b90975095505060208701356001600160401b03811115613ec0575f5ffd5b613ecc89828a01613e25565b90955093505060408701356001600160401b03811115613eea575f5ffd5b613ef689828a01613e25565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b5f5f5f60608486031215613f2e575f5ffd5b8335613f3981613dd3565b95602085013595506040909401359392505050565b5f5f60408385031215613f5f575f5ffd5b8235613f6a81613dd3565b91506020830135613f7a81613dd3565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215613faa575f5ffd5b8235613fb581613dd3565b915060208301356001600160401b03811115613fcf575f5ffd5b8301601f81018513613fdf575f5ffd5b80356001600160401b03811115613ff857613ff8613f85565b604051601f8201601f19908116603f011681016001600160401b038111828210171561402657614026613f85565b60405281815282820160200187101561403d575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f6040838503121561406d575f5ffd5b823561407881613dd3565b946020939093013593505050565b5f5f60408385031215614097575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156140e65783516001600160a01b03168352602093840193909201916001016140bf565b509095945050505050565b5f60208284031215614101575f5ffd5b81356119e581613dd3565b5f6020828403121561411c575f5ffd5b5035919050565b5f5f5f5f60408587031215614136575f5ffd5b84356001600160401b0381111561414b575f5ffd5b61415787828801613e25565b90955093505060208501356001600160401b03811115614175575f5ffd5b61418187828801613e25565b95989497509550505050565b6001600160a01b03929092168252602082015260400190565b5f5f5f604084860312156141b8575f5ffd5b83356141c381613dd3565b925060208401356001600160401b038111156141dd575f5ffd5b6141e986828701613e25565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602080825282516001600160a01b039081168383015290830151166040808301919091528201516001600160601b03166060808301919091528201516080808301525f9061427560a08401826141f6565b949350505050565b602081525f6119e560208301846141f6565b5f5f5f5f606085870312156142a2575f5ffd5b84356001600160401b038111156142b7575f5ffd5b6142c387828801613e25565b90989097506020870135966040013595509350505050565b9182526001600160a01b0316602082015260400190565b5f60208284031215614302575f5ffd5b815180151581146119e5575f5ffd5b5f60208284031215614321575f5ffd5b81516119e581613dd3565b634e487b7160e01b5f52603260045260245ffd5b5f8235607e19833603018112614354575f5ffd5b9190910192915050565b6001600160601b0381168114613d67575f5ffd5b5f60208284031215614382575f5ffd5b81356119e58161435e565b80546001600160a01b0319166001600160a01b0392909216919091179055565b600181811c908216806143c157607f821691505b6020821081036143df57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561099157805f5260205f20601f840160051c8101602085101561440a5750805b601f840160051c820191505b81811015611a7d575f8155600101614416565b6001600160401b0383111561444057614440613f85565b6144548361444e83546143ad565b836143e5565b5f601f841160018114614485575f851561446e5750838201355b5f19600387901b1c1916600186901b178355611a7d565b5f83815260208120601f198716915b828110156144b45786850135825560209485019460019092019101614494565b50868210156144d0575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81356144ed81613dd3565b6144f7818361438d565b5060018101602083013561450a81613dd3565b614514818361438d565b5060408301356145238161435e565b81546001600160a01b031660a09190911b6001600160a01b031916179055606082013536839003601e19018112614558575f5ffd5b820180356001600160401b0381111561456f575f5ffd5b602082019150803603821315614583575f5ffd5b613af8818360028601614429565b8183526020830192505f815f5b848110156145cf5781356145b181613dd3565b6001600160a01b03168652602095860195919091019060010161459e565b5093949350505050565b8183525f6001600160fb1b038311156145f0575f5ffd5b8260051b80836020870137939093016020019392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b606081525f61464460608301888a614591565b82810360208401526146578187896145d9565b83810360408501528481529050602080820190600586901b830101865f36829003607e19015b8882101561475a57858403601f19018552823581811261469b575f5ffd5b8a0180356146a881613dd3565b6001600160a01b0316855260208101356146c181613dd3565b6001600160a01b0316602086015260408101356146dd8161435e565b6001600160601b03166040860152606081013536829003601e19018112614702575f5ffd5b016020810190356001600160401b0381111561471c575f5ffd5b80360382131561472a575f5ffd5b6080606087015261473f608087018284614609565b9550505060208301925060208501945060018201915061467d565b50919c9b505050505050505050505050565b5f6020828403121561477c575f5ffd5b5051919050565b5f815461478f816143ad565b8085526001821680156147a957600181146147c5576130f8565b60ff1983166020870152602082151560051b87010193506130f8565b845f5260205f205f5b838110156147f05781546020828a0101526001820191506020810190506147ce565b870160200194505050505092915050565b6001600160a01b03868116825260208201869052841660408201526001600160601b038316606082015260a0608082018190525f9061484290830184614783565b979650505050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561193d5761193d61484d565b8181038181111561193d5761193d61484d565b6001600160a01b0392831681529116602082015260400190565b602081525f614275602083018486614591565b5f5f604083850312156148c5575f5ffd5b82516148d081613dd3565b6020939093015192949293505050565b604081525f6148f3604083018688614591565b82810360208401526148428185876145d9565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f81518060208401855e5f93019283525090919050565b5f61427561494f838661492a565b8461492a565b5f6119e5828461492a56fe608060405234801561000f575f5ffd5b5060405161041c38038061041c83398101604081905261002e9161015a565b806001600160a01b038116610061575f604051631e4fbdf760e01b8152600401610058919061018b565b60405180910390fd5b61006a8161007b565b50610074826100ca565b505061019f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b5f036100f6578060405163211eb15960e21b8152600401610058919061018b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b80516001600160a01b0381168114610155575f5ffd5b919050565b5f5f6040838503121561016b575f5ffd5b6101748361013f565b91506101826020840161013f565b90509250929050565b6001600160a01b0391909116815260200190565b610270806101ac5f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c80633659cfe6146100595780635c60da1b1461006e578063715018a6146100915780638da5cb5b14610099578063f2fde38b146100a1575b5f5ffd5b61006c610067366004610222565b6100b4565b005b6001546001600160a01b03165b604051610088919061024f565b60405180910390f35b61006c6100c8565b61007b6100db565b61006c6100af366004610222565b6100e9565b6100bc61012c565b6100c58161015e565b50565b6100d061012c565b6100d95f6101d3565b565b5f546001600160a01b031690565b6100f161012c565b6001600160a01b038116610123575f604051631e4fbdf760e01b815260040161011a919061024f565b60405180910390fd5b6100c5816101d3565b336101356100db565b6001600160a01b0316146100d9573360405163118cdaa760e01b815260040161011a919061024f565b806001600160a01b03163b5f0361018a578060405163211eb15960e21b815260040161011a919061024f565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610232575f5ffd5b81356001600160a01b0381168114610248575f5ffd5b9392505050565b6001600160a01b039190911681526020019056fea164736f6c634300081c000a60a06040526040516105493803806105498339810160408190526100229161033d565b61002c828261003e565b506001600160a01b0316608052610442565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e491906103ff565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610418565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906103ff565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610418565b60605f5f846001600160a01b031684604051610217919061042c565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610418565b50805b9392505050565b8051156102f55780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b0381168114610324575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561034e575f5ffd5b6103578361030e565b60208401519092506001600160401b03811115610372575f5ffd5b8301601f81018513610382575f5ffd5b80516001600160401b0381111561039b5761039b610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103c9576103c9610329565b6040528181528282016020018710156103e0575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f6020828403121561040f575f5ffd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160f26104575f395f601d015260f25ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f5f375f5f365f845af43d5f5f3e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f5ffd5b81516001600160a01b038116811460de575f5ffd5b939250505056fea164736f6c634300081c000a832251a720f920327ebb0030fe996a27a683ebfc8003fe770d2131d205e231828b9348858251a55a2d12c35d356747690c724366409d6da2251f3fe26718d41d360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0093ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cba164736f6c634300081c000a","recompiledBytecode":"0x6080604052600436106101c2575f3560e01c80630345bdbe146101cd57806303c1288e146101ee57806308c732591461020d5780630bf5d35e14610237578063197f84f81461024a5780631becc420146102695780633d9d38671461027d5780633f4ba83a146102ab578063485cc955146102bf5780634f1ef286146102de57806352d1902d146102f1578063586097541461030557806359659e90146103245780635c975abb1461033857806360db28731461035c5780636c8bcb6a1461038857806375151b63146103a7578063760d0f9d146103c6578063770b69f6146103e55780637b0eb57d146104045780637f1a9904146104235780638322fff2146104505780638456cb5914610477578063886e89a51461048b578063922b8e221461049f57806395e12d61146104be578063a222dbbd146104dd578063a5116d9314610509578063a58dcc9514610529578063a783b50814610548578063ad3cb1cc1461055c578063ade78a1214610599578063b0b15c11146105b8578063b69fd599146105d7578063c8d9b28614610603578063c93d2b1d14610622578063cd00c53814610641578063de9d008d14610660578063e8d1f00f1461067f575f5ffd5b366101c957005b5f5ffd5b3480156101d8575f5ffd5b506101ec6101e7366004613de7565b61069e565b005b3480156101f9575f5ffd5b506101ec610208366004613e6c565b610996565b348015610218575f5ffd5b50610221610cd7565b60405161022e9190613f08565b60405180910390f35b6101ec610245366004613f1c565b610cf1565b348015610255575f5ffd5b506101ec610264366004613e6c565b61100e565b348015610274575f5ffd5b50610221611476565b348015610288575f5ffd5b5061029d5f5160206152e65f395f51905f5281565b60405190815260200161022e565b3480156102b6575f5ffd5b506101ec611493565b3480156102ca575f5ffd5b506101ec6102d9366004613f4e565b6114fc565b6101ec6102ec366004613f99565b6115f4565b3480156102fc575f5ffd5b5061029d611613565b348015610310575f5ffd5b506101ec61031f36600461405c565b61162e565b34801561032f575f5ffd5b5061022161182d565b348015610343575f5ffd5b5061034c611837565b604051901515815260200161022e565b348015610367575f5ffd5b5061037b610376366004614086565b61184b565b60405161022e91906140a6565b348015610393575f5ffd5b506102216103a23660046140f1565b611943565b3480156103b2575f5ffd5b5061034c6103c13660046140f1565b6119ec565b3480156103d1575f5ffd5b506101ec6103e036600461410c565b611a05565b3480156103f0575f5ffd5b506101ec6103ff366004614123565b611a84565b34801561040f575f5ffd5b506101ec61041e366004614123565b611ccb565b34801561042e575f5ffd5b5061044261043d366004613f1c565b611da9565b60405161022e92919061418d565b34801561045b575f5ffd5b5061022173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b348015610482575f5ffd5b506101ec611f01565b348015610496575f5ffd5b5061029d611f68565b3480156104aa575f5ffd5b506102216104b93660046140f1565b611f7e565b3480156104c9575f5ffd5b506101ec6104d83660046141a6565b611fac565b3480156104e8575f5ffd5b506104fc6104f736600461405c565b6122dd565b60405161022e9190614224565b348015610514575f5ffd5b5061029d5f5160206152c65f395f51905f5281565b348015610534575f5ffd5b5061022161054336600461410c565b612405565b348015610553575f5ffd5b5061022161240f565b348015610567575f5ffd5b5061058c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161022e919061427d565b3480156105a4575f5ffd5b506101ec6105b3366004614123565b61242a565b3480156105c3575f5ffd5b5061034c6105d23660046140f1565b61267d565b3480156105e2575f5ffd5b506105eb60c881565b6040516001600160601b03909116815260200161022e565b34801561060e575f5ffd5b506101ec61061d3660046140f1565b612693565b34801561062d575f5ffd5b506101ec61063c36600461428f565b6127bf565b34801561064c575f5ffd5b506101ec61065b3660046140f1565b6128a1565b34801561066b575f5ffd5b506101ec61067a3660046140f1565b61299e565b34801561068a575f5ffd5b5061034c61069936600461405c565b612b57565b6106a6612b95565b6106ae612bdc565b6106b6610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016106f09291906142db565b602060405180830381865afa15801561070b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061072f91906142f2565b61074c57604051631695365560e21b815260040160405180910390fd5b5f610755612c02565b90506107618185612c26565b61077e57604051631359be9560e11b815260040160405180910390fd5b61078b6004820184612c26565b156107a95760405163c6486ddf60e01b815260040160405180910390fd5b60058101546001600160a01b0316806107d557604051630d35236760e21b815260040160405180910390fd5b6001600160a01b038085165f908152600684016020526040902054811690821663240028e882156108065782610808565b865b6040518263ffffffff1660e01b81526004016108249190613f08565b602060405180830381865afa15801561083f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086391906142f2565b61088057604051632e0fe39f60e21b815260040160405180910390fd5b604051634b69571760e11b81525f906001600160a01b038416906396d2ae2e906108ae908a90600401613f08565b602060405180830381865afa1580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0384169063b7ca418b9061091c908490600401613f08565b602060405180830381865afa158015610937573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b91906142f2565b61097857604051635c5a136560e11b815260040160405180910390fd5b6109858782888589612ccb565b50505050610991612f92565b505050565b61099e610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016109c99190613f08565b5f6040518083038186803b1580156109df575f5ffd5b505afa1580156109f1573d5f5f3e3d5ffd5b505050505f6109fe612c02565b9050858281141580610a105750808514155b15610a2e5760405163512509d360e11b815260040160405180910390fd5b5f5b81811015610c8b575f898983818110610a4b57610a4b61432c565b9050602002016020810190610a6091906140f1565b6001600160a01b031603610a8757604051635f5d339960e01b815260040160405180910390fd5b868682818110610a9957610a9961432c565b905060200201355f03610abf5760405163080fa92760e31b815260040160405180910390fd5b5f858583818110610ad257610ad261432c565b9050602002810190610ae49190614340565b610af29060208101906140f1565b6001600160a01b03161480610b4357505f858583818110610b1557610b1561432c565b9050602002810190610b279190614340565b610b389060408101906020016140f1565b6001600160a01b0316145b80610b8b575060c8858583818110610b5d57610b5d61432c565b9050602002810190610b6f9190614340565b610b80906060810190604001614372565b6001600160601b0316115b15610ba9576040516306b7c75960e31b815260040160405180910390fd5b848482818110610bbb57610bbb61432c565b9050602002810190610bcd9190614340565b836003015f8b8b85818110610be457610be461432c565b9050602002016020810190610bf991906140f1565b6001600160a01b03166001600160a01b031681526020019081526020015f205f898985818110610c2b57610c2b61432c565b9050602002013581526020019081526020015f208181610c4b91906144e2565b905050610c82898983818110610c6357610c6361432c565b9050602002016020810190610c7891906140f1565b6004850190612fa9565b50600101610a30565b507f38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622888888888888604051610cc596959493929190614631565b60405180910390a15050505050505050565b5f5f610ce1613101565b546001600160a01b031692915050565b610cf9612bdc565b5f5160206152c65f395f51905f52610d0f610cd7565b6001600160a01b03166391d1485482336040518363ffffffff1660e01b8152600401610d3c9291906142db565b602060405180830381865afa158015610d57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7b91906142f2565b610d97576040516282b42960e81b815260040160405180910390fd5b5f610da0612c02565b90506001600160a01b038516610dc957604051635f5d339960e01b815260040160405180910390fd5b825f03610de95760405163080fa92760e31b815260040160405180910390fd5b835f03610e095760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038086165f908152600383016020908152604080832087845290915290208054909116610e50576040516317b428a360e01b815260040160405180910390fd5b5f6001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610ee5576040516370a0823160e01b81526001600160a01b038816906370a0823190610ea1903090600401613f08565b602060405180830381865afa158015610ebc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ee0919061476c565b610ee7565b475b905085811015610f0a57604051631e9acf1760e31b815260040160405180910390fd5b5f610f16888888611da9565b91505034811115610f3a57604051636a639da560e01b815260040160405180910390fd5b82546001840154604051610fbf926001600160a01b039081169263b14d361d60e01b92610f88928e928e9291811691600160a01b9091046001600160601b03169060028c0190602401614801565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613125565b5085886001600160a01b03167fdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa89604051610ffc91815260200190565b60405180910390a35050505050505050565b611016612b95565b61101e612bdc565b611026610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016110609291906142db565b602060405180830381865afa15801561107b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109f91906142f2565b6110bc57604051631695365560e21b815260040160405180910390fd5b8483811415806110cc5750808214155b156110ea5760405163512509d360e11b815260040160405180910390fd5b5f6110f3612c02565b60058101549091506001600160a01b03168061112257604051630d35236760e21b815260040160405180910390fd5b5f5b838110156114625761115d8a8a838181106111415761114161432c565b905060200201602081019061115691906140f1565b8490612c26565b61117a57604051631359be9560e11b815260040160405180910390fd5b6111ae88888381811061118f5761118f61432c565b90506020020160208101906111a491906140f1565b6004850190612c26565b156111cc5760405163c6486ddf60e01b815260040160405180910390fd5b5f836006015f8a8a858181106111e4576111e461432c565b90506020020160208101906111f991906140f1565b6001600160a01b03908116825260208201929092526040015f205481169150831663240028e8821561122b5782611252565b8a8a8581811061123d5761123d61432c565b905060200201602081019061125291906140f1565b6040518263ffffffff1660e01b815260040161126e9190613f08565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad91906142f2565b6112ca57604051632e0fe39f60e21b815260040160405180910390fd5b5f836001600160a01b03166396d2ae2e8d8d868181106112ec576112ec61432c565b905060200201602081019061130191906140f1565b6040518263ffffffff1660e01b815260040161131d9190613f08565b602060405180830381865afa158015611338573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061135c9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0385169063b7ca418b9061138b908490600401613f08565b602060405180830381865afa1580156113a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ca91906142f2565b6113e757604051635c5a136560e11b815260040160405180910390fd5b6114588c8c858181106113fc576113fc61432c565b905060200201602081019061141191906140f1565b828c8c878181106114245761142461432c565b905060200201602081019061143991906140f1565b858c8c8981811061144c5761144c61432c565b90506020020135612ccb565b5050600101611124565b5050505061146e612f92565b505050505050565b5f5f611480612c02565b600201546001600160a01b031692915050565b61149b610cd7565b6001600160a01b0316635efcc07c336040518263ffffffff1660e01b81526004016114c69190613f08565b5f6040518083038186803b1580156114dc575f5ffd5b505afa1580156114ee573d5f5f3e3d5ffd5b505050506114fa6131ae565b565b5f611505613204565b805490915060ff600160401b82041615906001600160401b03165f8115801561152b5750825b90505f826001600160401b031660011480156115465750303b155b905081158015611554575080155b156115725760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561159b57845460ff60401b1916600160401b1785555b6115a58787613228565b83156115eb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6115fc61329e565b61160582613342565b61160f82826133a3565b5050565b5f61161c613456565b505f5160206153065f395f51905f5290565b611636612b95565b61163e610cd7565b6001600160a01b031663a47fbb2a336040518263ffffffff1660e01b81526004016116699190613f08565b5f6040518083038186803b15801561167f575f5ffd5b505afa158015611691573d5f5f3e3d5ffd5b505050505f61169e612c02565b90506001600160a01b0383166116c757604051635f5d339960e01b815260040160405180910390fd5b6116d46004820184612c26565b156116f25760405163c6486ddf60e01b815260040160405180910390fd5b60028101546001600160a01b031661171d576040516315bc61ef60e31b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038416016117bb5760028101546040515f916001600160a01b03169084908381818185875af1925050503d805f811461178e576040519150601f19603f3d011682016040523d82523d5f602084013e611793565b606091505b50509050806117b557604051633d2cec6f60e21b815260040160405180910390fd5b506117d7565b60028101546117d7906001600160a01b0385811691168461349f565b60028101546040516001600160a01b03858116927fb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a773981729899239261181c9290911690869061418d565b60405180910390a25061160f612f92565b5f5f610ce16134f7565b5f5f61184161351b565b5460ff1692915050565b60605f611856612c02565b90505f6118628261353f565b9050808510611884576040516392c4425960e01b815260040160405180910390fd5b8061188f8587614861565b11156118a25761189f8582614874565b93505b5f846001600160401b038111156118bb576118bb613f85565b6040519080825280602002602001820160405280156118e4578160200160208202803683370190505b5090505f5b85811015611937576119056118fe8289614861565b859061358d565b8282815181106119175761191761432c565b6001600160a01b03909216602092830291909101909101526001016118e9565b50925050505b92915050565b5f5f61194d612c02565b600501546001600160a01b031690508061197a57604051630d35236760e21b815260040160405180910390fd5b604051634b69571760e11b81526001600160a01b038216906396d2ae2e906119a6908690600401613f08565b602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190614311565b9392505050565b5f5f6119f6612c02565b90506119e56004820184612c26565b611a0d612bdc565b5f63c4d66de860e01b30604051602401611a279190613f08565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505f611a6683836135dc565b90505f611a71612c02565b9050611a7d8183612fa9565b5050505050565b611a8c610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b8152600401611ab79190613f08565b5f6040518083038186803b158015611acd575f5ffd5b505afa158015611adf573d5f5f3e3d5ffd5b508592505050818114611b055760405163512509d360e11b815260040160405180910390fd5b5f611b0e612c02565b90505f5b828110156115eb575f878783818110611b2d57611b2d61432c565b9050602002016020810190611b4291906140f1565b90505f868684818110611b5757611b5761432c565b9050602002016020810190611b6c91906140f1565b90506001600160a01b038216611b9557604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03811615801590611c1e5750816001600160a01b0316816001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c129190614311565b6001600160a01b031614155b15611c3c57604051633cf654ef60e01b815260040160405180910390fd5b6001600160a01b038083165f8181526006870160205260409081902054905191927f8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb620192611c8e92909116908590614887565b60405180910390a26001600160a01b039182165f908152600685016020526040902080546001600160a01b03191691909216179055600101611b12565b611cd5848461376e565b5f611cde612c02565b9050815f5b818110156115eb57611d008585838181106111415761114161432c565b611d1d57604051631359be9560e11b815260040160405180910390fd5b848482818110611d2f57611d2f61432c565b9050602002016020810190611d4491906140f1565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b8152600401611d719291906148a1565b5f604051808303815f87803b158015611d88575f5ffd5b505af1158015611d9a573d5f5f3e3d5ffd5b50505050806001019050611ce3565b5f5f5f611db4612c02565b90506001600160a01b038616611ddd57604051635f5d339960e01b815260040160405180910390fd5b835f03611dfd5760405163080fa92760e31b815260040160405180910390fd5b845f03611e1d5760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038087165f908152600383016020908152604080832088845290915290208054909116611e64576040516317b428a360e01b815260040160405180910390fd5b80546001820154604051630bbfe4bf60e41b81526001600160a01b039283169263bbfe4bf092611eb5928c928c9290811691600160a01b9091046001600160601b0316906002890190600401614801565b6040805180830381865afa158015611ecf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ef391906148b4565b935093505050935093915050565b611f09610cd7565b6001600160a01b031663bf4019ec336040518263ffffffff1660e01b8152600401611f349190613f08565b5f6040518083038186803b158015611f4a575f5ffd5b505afa158015611f5c573d5f5f3e3d5ffd5b505050506114fa61380f565b5f611f79611f74612c02565b61353f565b905090565b5f611f87612c02565b6001600160a01b039283165f9081526006919091016020526040902054909116919050565b611fb4612b95565b611fbc612bdc565b5f611fc5612c02565b9050611fd18185612c26565b611fee57604051631359be9560e11b815260040160405180910390fd5b815f5b818110156122d2575f85858381811061200c5761200c61432c565b905060200201602081019061202191906140f1565b90506120306004850182612c26565b1561204e5760405163c6486ddf60e01b815260040160405180910390fd5b6001600160a01b038082165f908152600686016020526040902054168061208857604051633bc9491b60e11b815260040160405180910390fd5b6040516370a0823160e01b81525f906001600160a01b038416906370a08231906120b6908c90600401613f08565b602060405180830381865afa1580156120d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f5919061476c565b905080156122c4576040516370a0823160e01b81525f906001600160a01b038416906370a082319061212b908d90600401613f08565b602060405180830381865afa158015612146573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216a919061476c565b604051635f9bb63d60e11b81529091506001600160a01b038b169063bf376c7a9061219b908790869060040161418d565b5f604051808303815f87803b1580156121b2575f5ffd5b505af11580156121c4573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a082318d6040518263ffffffff1660e01b81526004016121f69190613f08565b602060405180830381865afa158015612211573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612235919061476c565b61223f9190614874565b9050805f03612261576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b03168c6001600160a01b03167ffc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc69051486856040516122b9929190918252602082015260400190565b60405180910390a450505b836001019350505050611ff1565b505050610991612f92565b604080516080810182525f8082526020820181905291810182905260608082015290612307612c02565b6001600160a01b038581165f90815260038301602090815260408083208884528252918290208251608081018452815485168152600182015494851692810192909252600160a01b9093046001600160601b031691810191909152600282018054939450909260608401919061237c906143ad565b80601f01602080910402602001604051908101604052809291908181526020018280546123a8906143ad565b80156123f35780601f106123ca576101008083540402835291602001916123f3565b820191905f5260205f20905b8154815290600101906020018083116123d657829003601f168201915b50505050508152505091505092915050565b5f61193d82613855565b5f612418612c02565b600501546001600160a01b0316919050565b612432610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b815260040161245d9190613f08565b5f6040518083038186803b158015612473575f5ffd5b505afa158015612485573d5f5f3e3d5ffd5b505050505f612492612c02565b9050838281146124b55760405163512509d360e11b815260040160405180910390fd5b5f5b81811015612637575f8787838181106124d2576124d261432c565b90506020020160208101906124e791906140f1565b90506001600160a01b03811661251057604051635f5d339960e01b815260040160405180910390fd5b8585838181106125225761252261432c565b905060200201355f036125485760405163080fa92760e31b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120818888868181106125745761257461432c565b602090810292909201358352508101919091526040015f20546001600160a01b0316036125b4576040516317b428a360e01b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120908787858181106125e0576125e061432c565b602090810292909201358352508101919091526040015f90812080546001600160a01b0319168155600181018290559061261d6002830182613d6a565b5061262d90506004850182613860565b50506001016124b7565b507f1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b8686868660405161266d94939291906148e0565b60405180910390a1505050505050565b5f5f612687612c02565b90506119e58184612c26565b3361269c610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126d7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126fb9190614311565b6001600160a01b0316146127225760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612749576040516371b06ceb60e11b815260040160405180910390fd5b5f612752612c02565b60058101546040519192507fd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e9914313339051919191612794916001600160a01b0316908590614887565b60405180910390a160050180546001600160a01b0319166001600160a01b0392909216919091179055565b6127c9848461376e565b5f6127d2612c02565b90505f6127de8261353f565b9050808410612800576040516392c4425960e01b815260040160405180910390fd5b8061280b8486614861565b111561281e5761281b8482614874565b92505b5f5b838110156115eb5761283c6128358287614861565b849061358d565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b81526004016128699291906148a1565b5f604051808303815f87803b158015612880575f5ffd5b505af1158015612892573d5f5f3e3d5ffd5b50505050806001019050612820565b6128a9610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016128d49190613f08565b5f6040518083038186803b1580156128ea575f5ffd5b505afa1580156128fc573d5f5f3e3d5ffd5b505050505f612909612c02565b90506001600160a01b038216612932576040516332ff4e5f60e11b815260040160405180910390fd5b60028101546040517fadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc623891612973916001600160a01b03909116908590614887565b60405180910390a160020180546001600160a01b0319166001600160a01b0392909216919091179055565b336129a7610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a069190614311565b6001600160a01b031614612a2d5760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612a545760405163b4fa3fb360e01b815260040160405180910390fd5b5f612a5d6134f7565b5460408051635c60da1b60e01b815290516001600160a01b0390921692507fd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a918391635c60da1b9160048083019260209291908290030181865afa158015612ac7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aeb9190614311565b83604051612afa929190614887565b60405180910390a1604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690612b2e908590600401613f08565b5f604051808303815f87803b158015612b45575f5ffd5b505af115801561146e573d5f5f3e3d5ffd5b5f5f612b61612c02565b6001600160a01b038581165f9081526003909201602090815260408084208785529091529091205416151591505092915050565b5f5160206153265f395f51905f525c15612bc257604051633ee5aeb560e01b815260040160405180910390fd5b6114fa60015f5160206153265f395f51905f525b90613990565b612be4611837565b156114fa5760405163d93c066560e01b815260040160405180910390fd5b7fe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b10090565b5f5f612c3184613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612c5d5763f5a267f15f526004601cfd5b82612c6f5768fbb67fda52d4bfb8bf92505b80546001600160601b038116612cb25760019250838160601c0315612cc357600182015460601c8414612cc357600282015460601c8414612cc3575f9250612cc3565b81602052835f5260405f2054151592505b505092915050565b6001600160a01b038216612d7f576040516301a2dedf60e11b81526001600160a01b03861690630345bdbe90612d0990869088908690600401614906565b5f604051808303815f87803b158015612d20575f5ffd5b505af1158015612d32573d5f5f3e3d5ffd5b50505050826001600160a01b0316846001600160a01b0316866001600160a01b03165f5160206153465f395f51905f5284604051612d7291815260200190565b60405180910390a4611a7d565b6040516370a0823160e01b81525f906001600160a01b038416906370a0823190612dad908890600401613f08565b602060405180830381865afa158015612dc8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dec919061476c565b6040516301a2dedf60e11b81529091506001600160a01b03871690630345bdbe90612e1f90879089908790600401614906565b5f604051808303815f87803b158015612e36575f5ffd5b505af1158015612e48573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a08231886040518263ffffffff1660e01b8152600401612e7a9190613f08565b602060405180830381865afa158015612e95573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eb9919061476c565b612ec39190614874565b9050805f03612ee5576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b0316886001600160a01b03167ff731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f8158685604051612f3d929190918252602082015260400190565b60405180910390a4836001600160a01b0316866001600160a01b0316886001600160a01b03165f5160206153465f395f51905f5284604051612f8191815260200190565b60405180910390a450505050505050565b6114fa5f5f5160206153265f395f51905f52612bd6565b5f5f612fb484613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612fe05763f5a267f15f526004601cfd5b82612ff25768fbb67fda52d4bfb8bf92505b80546001600160601b03811682602052806130b4578160601c80613020578560601b845560019450506130f8565b85810361302d57506130f8565b600184015460601c8061304e578660601b60018601556001955050506130f8565b86810361305c5750506130f8565b600285015460601c8061307e578760601b6002870155600196505050506130f8565b87810361308d575050506130f8565b5f928352604080842060019055918352818320600290558252902060039055506007908117905b845f5260405f2080546130f657600191821c8083018255919450816130e2578560601b6003178455506130f8565b8560601b82850155826002018455506130f8565b505b50505092915050565b7fa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f50090565b6060306001600160a01b0384160361317b5760405162461bcd60e51b81526020600482015260146024820152733232b632b3b0ba32b1b0b636103a379039b2b63360611b60448201526064015b60405180910390fd5b5f5f835160208501865af43d6040519250808352805f602085013e8201602001604052806131a7573d82fd5b5092915050565b6131b66139aa565b5f6131bf61351b565b805460ff1916815590507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516131f99190613f08565b60405180910390a150565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b6132306139cf565b613239826139f4565b613241613a30565b5f61324a6134f7565b9050813060405161325a90613da1565b613265929190614887565b604051809103905ff08015801561327e573d5f5f3e3d5ffd5b5081546001600160a01b0319166001600160a01b03919091161790555050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061332457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166133185f5160206153065f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156114fa5760405163703e46dd60e11b815260040160405180910390fd5b5f61334b613101565b8054604051634766d28760e01b81529192506001600160a01b031690634766d2879061337b903390600401613f08565b5f6040518083038186803b158015613391575f5ffd5b505afa15801561146e573d5f5f3e3d5ffd5b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156133fd575060408051601f3d908101601f191682019092526133fa9181019061476c565b60015b61341c5781604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f52811461344c57604051632a87526960e21b815260048101829052602401613172565b6109918383613a40565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114fa5760405163703e46dd60e11b815260040160405180910390fd5b61099183846001600160a01b031663a9059cbb85856040516024016134c592919061418d565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613a95565b7f644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae5820090565b7fcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f0330090565b5f5f61354a83613997565b905080548060a01b60a01c8060011c9350808260601c1517613585576001935083830154156135855760029350838301541561358557600393505b505050919050565b5f5f61359884613997565b90508281015460601c915068fbb67fda52d4bfb8bf821415820291506135bd8461353f565b83106131a757604051634e23d03560e01b815260040160405180910390fd5b5f5f6135e784612405565b90505f61366c604051806020016135fd90613dae565b601f1982820381018352601f9091011660405261361861182d565b604080516001600160a01b039092166020830152818101525f606082015260800160408051601f19818403018152908290526136579291602001614941565b60405160208183030381529060405286613afe565b8451909150156136f1575f816001600160a01b03168560405161368f9190614955565b5f604051808303815f865af19150503d805f81146136c8576040519150601f19603f3d011682016040523d82523d5f602084013e6136cd565b606091505b50509050806136ef57604051630337323560e31b815260040160405180910390fd5b505b806001600160a01b0316826001600160a01b0316146137235760405163169c822160e01b815260040160405180910390fd5b806001600160a01b03167f5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e8660405161375e91815260200190565b60405180910390a2949350505050565b5f613777612c02565b9050815f5b81811015611a7d5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8585838181106137ab576137ab61432c565b90506020020160208101906137c091906140f1565b6001600160a01b0316141580156137e957506137e785858381811061118f5761118f61432c565b155b15613807576040516318e9b75d60e01b815260040160405180910390fd5b60010161377c565b613817612bdc565b5f61382061351b565b805460ff1916600117815590507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131ec3390565b5f61193d8230613b0a565b5f5f61386b84613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be1983016138975763f5a267f15f526004601cfd5b826138a95768fbb67fda52d4bfb8bf92505b80546001600160601b038116806139235760019350848260601c036138e15760018301805484556002840180549091555f90556130f8565b84600184015460601c036139025760028301805460018501555f90556130f8565b84600284015460601c0361391b575f60028401556130f8565b5f93506130f8565b82602052845f5260405f2080548061393c5750506130f8565b60018360011c03925082600182031461396c578285015460601c8060601b60018303870155805f52508060405f20555b5083546001600160601b031916600192831b1782179093555f909255509392505050565b80825d5050565b63978aab926004525f9081526024902090565b6139b2611837565b6114fa57604051638dfc202b60e01b815260040160405180910390fd5b6139d7613b61565b6114fa57604051631afcd79f60e31b815260040160405180910390fd5b6139fc6139cf565b5f613a05613101565b80546001600160a01b0319166001600160a01b0384161781559050613a28613b7a565b61160f613b82565b613a386139cf565b6114fa613b82565b613a4982613b9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115613a8d576109918282613bf8565b61160f613c6a565b5f5f60205f8451602086015f885af180613ab4576040513d5f823e3d81fd5b50505f513d91508115613acb578060011415613ad8565b6001600160a01b0384163b155b15613af85783604051635274afe760e01b81526004016131729190613f08565b50505050565b5f6119e55f8484613c89565b5f604051825f5260ff600b53836020527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6040526055600b20601452806040525061d6945f52600160345350506017601e20919050565b5f613b6a613204565b54600160401b900460ff16919050565b6114fa6139cf565b613b8a6139cf565b5f613b9361351b565b805460ff1916905550565b806001600160a01b03163b5f03613bca5780604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051613c149190614955565b5f60405180830381855af49150503d805f8114613c4c576040519150601f19603f3d011682016040523d82523d5f602084013e613c51565b606091505b5091509150613c61858383613cf2565b95945050505050565b34156114fa5760405163b398979f60e01b815260040160405180910390fd5b5f6f67363d3d37363d34f03d5260086018f35f52816010805ff580613cb55763301164255f526004601cfd5b8060145261d6945f5260016034536017601e2091505f5f85516020870188855af1823b02613cea5763301164255f526004601cfd5b509392505050565b606082613d0757613d0282613d3e565b6119e5565b8151158015613d1e57506001600160a01b0384163b155b156131a75783604051639996b31560e01b81526004016131729190613f08565b805115613d4e5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b508054613d76906143ad565b5f825580601f10613d85575050565b601f0160209004905f5260205f2090810190613d679190613dbb565b61041c8061496183390190565b61054980614d7d83390190565b5b80821115613dcf575f8155600101613dbc565b5090565b6001600160a01b0381168114613d67575f5ffd5b5f5f5f60608486031215613df9575f5ffd5b8335613e0481613dd3565b92506020840135613e1481613dd3565b929592945050506040919091013590565b5f5f83601f840112613e35575f5ffd5b5081356001600160401b03811115613e4b575f5ffd5b6020830191508360208260051b8501011115613e65575f5ffd5b9250929050565b5f5f5f5f5f5f60608789031215613e81575f5ffd5b86356001600160401b03811115613e96575f5ffd5b613ea289828a01613e25565b90975095505060208701356001600160401b03811115613ec0575f5ffd5b613ecc89828a01613e25565b90955093505060408701356001600160401b03811115613eea575f5ffd5b613ef689828a01613e25565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b5f5f5f60608486031215613f2e575f5ffd5b8335613f3981613dd3565b95602085013595506040909401359392505050565b5f5f60408385031215613f5f575f5ffd5b8235613f6a81613dd3565b91506020830135613f7a81613dd3565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215613faa575f5ffd5b8235613fb581613dd3565b915060208301356001600160401b03811115613fcf575f5ffd5b8301601f81018513613fdf575f5ffd5b80356001600160401b03811115613ff857613ff8613f85565b604051601f8201601f19908116603f011681016001600160401b038111828210171561402657614026613f85565b60405281815282820160200187101561403d575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f6040838503121561406d575f5ffd5b823561407881613dd3565b946020939093013593505050565b5f5f60408385031215614097575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156140e65783516001600160a01b03168352602093840193909201916001016140bf565b509095945050505050565b5f60208284031215614101575f5ffd5b81356119e581613dd3565b5f6020828403121561411c575f5ffd5b5035919050565b5f5f5f5f60408587031215614136575f5ffd5b84356001600160401b0381111561414b575f5ffd5b61415787828801613e25565b90955093505060208501356001600160401b03811115614175575f5ffd5b61418187828801613e25565b95989497509550505050565b6001600160a01b03929092168252602082015260400190565b5f5f5f604084860312156141b8575f5ffd5b83356141c381613dd3565b925060208401356001600160401b038111156141dd575f5ffd5b6141e986828701613e25565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602080825282516001600160a01b039081168383015290830151166040808301919091528201516001600160601b03166060808301919091528201516080808301525f9061427560a08401826141f6565b949350505050565b602081525f6119e560208301846141f6565b5f5f5f5f606085870312156142a2575f5ffd5b84356001600160401b038111156142b7575f5ffd5b6142c387828801613e25565b90989097506020870135966040013595509350505050565b9182526001600160a01b0316602082015260400190565b5f60208284031215614302575f5ffd5b815180151581146119e5575f5ffd5b5f60208284031215614321575f5ffd5b81516119e581613dd3565b634e487b7160e01b5f52603260045260245ffd5b5f8235607e19833603018112614354575f5ffd5b9190910192915050565b6001600160601b0381168114613d67575f5ffd5b5f60208284031215614382575f5ffd5b81356119e58161435e565b80546001600160a01b0319166001600160a01b0392909216919091179055565b600181811c908216806143c157607f821691505b6020821081036143df57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561099157805f5260205f20601f840160051c8101602085101561440a5750805b601f840160051c820191505b81811015611a7d575f8155600101614416565b6001600160401b0383111561444057614440613f85565b6144548361444e83546143ad565b836143e5565b5f601f841160018114614485575f851561446e5750838201355b5f19600387901b1c1916600186901b178355611a7d565b5f83815260208120601f198716915b828110156144b45786850135825560209485019460019092019101614494565b50868210156144d0575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81356144ed81613dd3565b6144f7818361438d565b5060018101602083013561450a81613dd3565b614514818361438d565b5060408301356145238161435e565b81546001600160a01b031660a09190911b6001600160a01b031916179055606082013536839003601e19018112614558575f5ffd5b820180356001600160401b0381111561456f575f5ffd5b602082019150803603821315614583575f5ffd5b613af8818360028601614429565b8183526020830192505f815f5b848110156145cf5781356145b181613dd3565b6001600160a01b03168652602095860195919091019060010161459e565b5093949350505050565b8183525f6001600160fb1b038311156145f0575f5ffd5b8260051b80836020870137939093016020019392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b606081525f61464460608301888a614591565b82810360208401526146578187896145d9565b83810360408501528481529050602080820190600586901b830101865f36829003607e19015b8882101561475a57858403601f19018552823581811261469b575f5ffd5b8a0180356146a881613dd3565b6001600160a01b0316855260208101356146c181613dd3565b6001600160a01b0316602086015260408101356146dd8161435e565b6001600160601b03166040860152606081013536829003601e19018112614702575f5ffd5b016020810190356001600160401b0381111561471c575f5ffd5b80360382131561472a575f5ffd5b6080606087015261473f608087018284614609565b9550505060208301925060208501945060018201915061467d565b50919c9b505050505050505050505050565b5f6020828403121561477c575f5ffd5b5051919050565b5f815461478f816143ad565b8085526001821680156147a957600181146147c5576130f8565b60ff1983166020870152602082151560051b87010193506130f8565b845f5260205f205f5b838110156147f05781546020828a0101526001820191506020810190506147ce565b870160200194505050505092915050565b6001600160a01b03868116825260208201869052841660408201526001600160601b038316606082015260a0608082018190525f9061484290830184614783565b979650505050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561193d5761193d61484d565b8181038181111561193d5761193d61484d565b6001600160a01b0392831681529116602082015260400190565b602081525f614275602083018486614591565b5f5f604083850312156148c5575f5ffd5b82516148d081613dd3565b6020939093015192949293505050565b604081525f6148f3604083018688614591565b82810360208401526148428185876145d9565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f81518060208401855e5f93019283525090919050565b5f61427561494f838661492a565b8461492a565b5f6119e5828461492a56fe608060405234801561000f575f5ffd5b5060405161041c38038061041c83398101604081905261002e9161015a565b806001600160a01b038116610061575f604051631e4fbdf760e01b8152600401610058919061018b565b60405180910390fd5b61006a8161007b565b50610074826100ca565b505061019f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b5f036100f6578060405163211eb15960e21b8152600401610058919061018b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b80516001600160a01b0381168114610155575f5ffd5b919050565b5f5f6040838503121561016b575f5ffd5b6101748361013f565b91506101826020840161013f565b90509250929050565b6001600160a01b0391909116815260200190565b610270806101ac5f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c80633659cfe6146100595780635c60da1b1461006e578063715018a6146100915780638da5cb5b14610099578063f2fde38b146100a1575b5f5ffd5b61006c610067366004610222565b6100b4565b005b6001546001600160a01b03165b604051610088919061024f565b60405180910390f35b61006c6100c8565b61007b6100db565b61006c6100af366004610222565b6100e9565b6100bc61012c565b6100c58161015e565b50565b6100d061012c565b6100d95f6101d3565b565b5f546001600160a01b031690565b6100f161012c565b6001600160a01b038116610123575f604051631e4fbdf760e01b815260040161011a919061024f565b60405180910390fd5b6100c5816101d3565b336101356100db565b6001600160a01b0316146100d9573360405163118cdaa760e01b815260040161011a919061024f565b806001600160a01b03163b5f0361018a578060405163211eb15960e21b815260040161011a919061024f565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610232575f5ffd5b81356001600160a01b0381168114610248575f5ffd5b9392505050565b6001600160a01b039190911681526020019056fea164736f6c634300081c000a60a06040526040516105493803806105498339810160408190526100229161033d565b61002c828261003e565b506001600160a01b0316608052610442565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e491906103ff565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610418565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906103ff565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610418565b60605f5f846001600160a01b031684604051610217919061042c565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610418565b50805b9392505050565b8051156102f55780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b0381168114610324575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561034e575f5ffd5b6103578361030e565b60208401519092506001600160401b03811115610372575f5ffd5b8301601f81018513610382575f5ffd5b80516001600160401b0381111561039b5761039b610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103c9576103c9610329565b6040528181528282016020018710156103e0575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f6020828403121561040f575f5ffd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160f26104575f395f601d015260f25ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f5f375f5f365f845af43d5f5f3e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f5ffd5b81516001600160a01b038116811460de575f5ffd5b939250505056fea164736f6c634300081c000a832251a720f920327ebb0030fe996a27a683ebfc8003fe770d2131d205e231828b9348858251a55a2d12c35d356747690c724366409d6da2251f3fe26718d41d360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0093ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cba164736f6c634300081c000a","sourceMap":"932:46727:39:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32676:1036;;;;;;;;;;-1:-1:-1;32676:1036:39;;;;;:::i;:::-;;:::i;:::-;;17702:947;;;;;;;;;;-1:-1:-1;17702:947:39;;;;;:::i;:::-;;:::i;1567:173:42:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;22092:1117:39;;;;;;:::i;:::-;;:::i;35337:1375::-;;;;;;;;;;-1:-1:-1;35337:1375:39;;;;;:::i;:::-;;:::i;45946:168::-;;;;;;;;;;;;;:::i;3691:94::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3691:94:39;;;;;4350:25:43;;;4338:2;4323:18;3691:94:39;4204:177:43;3770:104:42;;;;;;;;;;;;;:::i;11457:154:39:-;;;;;;;;;;-1:-1:-1;11457:154:39;;;;;:::i;:::-;;:::i;4161:214:1:-;;;;;;:::i;:::-;;:::i;3708:134::-;;;;;;;;;;;;;:::i;23750:676:39:-;;;;;;;;;;-1:-1:-1;23750:676:39;;;;;:::i;:::-;;:::i;4017:149:32:-;;;;;;;;;;;;;:::i;2692:145:3:-;;;;;;;;;;;;;:::i;:::-;;;6532:14:43;;6525:22;6507:41;;6495:2;6480:18;2692:145:3;6367:187:43;44397:586:39;;;;;;;;;;-1:-1:-1;44397:586:39;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;29890:531::-;;;;;;;;;;-1:-1:-1;29890:531:39;;;;;:::i;:::-;;:::i;46387:194::-;;;;;;;;;;-1:-1:-1;46387:194:39;;;;;:::i;:::-;;:::i;11754:340::-;;;;;;;;;;-1:-1:-1;11754:340:39;;;;;:::i;:::-;;:::i;28163:764::-;;;;;;;;;;-1:-1:-1;28163:764:39;;;;;:::i;:::-;;:::i;14090:552::-;;;;;;;;;;-1:-1:-1;14090:552:39;;;;;:::i;:::-;;:::i;43305:701::-;;;;;;;;;;-1:-1:-1;43305:701:39;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;475:72:41:-;;;;;;;;;;;;505:42;475:72;;3552:98:42;;;;;;;;;;;;;:::i;45102:140:39:-;;;;;;;;;;;;;:::i;29169:139::-;;;;;;;;;;-1:-1:-1;29169:139:39;;;;;:::i;:::-;;:::i;41581:1079::-;;;;;;;;;;-1:-1:-1;41581:1079:39;;;;;:::i;:::-;;:::i;45518:232::-;;;;;;;;;;-1:-1:-1;45518:232:39;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3530:92::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3530:92:39;;5140:142:32;;;;;;;;;;-1:-1:-1;5140:142:32;;;;;:::i;:::-;;:::i;26244:130:39:-;;;;;;;;;;;;;:::i;1819:58:1:-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1819:58:1;;;;;;;;;;;;:::i;20659:841:39:-;;;;;;;;;;-1:-1:-1;20659:841:39;;;;;:::i;:::-;;:::i;47132:211::-;;;;;;;;;;-1:-1:-1;47132:211:39;;;;;:::i;:::-;;:::i;3395:49::-;;;;;;;;;;;;3441:3;3395:49;;;;;-1:-1:-1;;;;;11893:31:43;;;11875:50;;11863:2;11848:18;3395:49:39;11731:200:43;25756:391:39;;;;;;;;;;-1:-1:-1;25756:391:39;;;;;:::i;:::-;;:::i;12843:554::-;;;;;;;;;;-1:-1:-1;12843:554:39;;;;;:::i;:::-;;:::i;24798:352::-;;;;;;;;;;-1:-1:-1;24798:352:39;;;;;:::i;:::-;;:::i;4550:390:32:-;;;;;;;;;;-1:-1:-1;4550:390:32;;;;;:::i;:::-;;:::i;46587:255:39:-;;;;;;;;;;-1:-1:-1;46587:255:39;;;;;:::i;:::-;;:::i;32676:1036::-;1335:21:4;:19;:21::i;:::-;2316:19:3::1;:17;:19::i;:::-;32804:14:39::2;:12;:14::i;:::-;-1:-1:-1::0;;;;;32804:22:39::2;;-1:-1:-1::0;;;;;;;;;;;32856:10:39::2;32804:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32799:95;;32876:18;;-1:-1:-1::0;;;32876:18:39::2;;;;;;;;;;;32799:95;32905:29;32937:25;:23;:25::i;:::-;32905:57:::0;-1:-1:-1;32977:35:39::2;32905:57:::0;33006:5;32977:28:::2;:35::i;:::-;32972:70;;33021:21;;-1:-1:-1::0;;;33021:21:39::2;;;;;;;;;;;32972:70;33056:33;:17;::::0;::::2;33083:5:::0;33056:26:::2;:33::i;:::-;33052:69;;;33098:23;;-1:-1:-1::0;;;33098:23:39::2;;;;;;;;;;;33052:69;33152:20;::::0;::::2;::::0;-1:-1:-1;;;;;33152:20:39::2;::::0;33182:62:::2;;33218:26;;-1:-1:-1::0;;;33218:26:39::2;;;;;;;;;;;33182:62;-1:-1:-1::0;;;;;33273:24:39;;::::2;33255:15;33273:24:::0;;;:17:::2;::::0;::::2;:24;::::0;;;;;;::::2;::::0;33312:47;::::2;;33360:21:::0;;:39:::2;;33392:7;33360:39;;;33384:5;33360:39;33312:88;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33307:128;;33409:26;;-1:-1:-1::0;;;33409:26:39::2;;;;;;;;;;;33307:128;33468:61;::::0;-1:-1:-1;;;33468:61:39;;33446:19:::2;::::0;-1:-1:-1;;;;;33468:54:39;::::2;::::0;::::2;::::0;:61:::2;::::0;33523:5;;33468:61:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33544:57;::::0;-1:-1:-1;;;33544:57:39;;33446:83;;-1:-1:-1;;;;;;33544:44:39;::::2;::::0;::::2;::::0;:57:::2;::::0;33446:83;;33544:57:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33539:95;;33610:24;;-1:-1:-1::0;;;33610:24:39::2;;;;;;;;;;;33539:95;33645:60;33662:5;33669:11;33682:5;33689:7;33698:6;33645:16;:60::i;:::-;32789:923;;;;1377:20:4::0;:18;:20::i;:::-;32676:1036:39;;;:::o;17702:947::-;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17851:29:39::1;17883:25;:23;:25::i;:::-;17851:57:::0;-1:-1:-1;17932:6:39;17959:21;;::::1;;::::0;:47:::1;;-1:-1:-1::0;17984:22:39;;::::1;;17959:47;17955:81;;;18015:21;;-1:-1:-1::0;;;18015:21:39::1;;;;;;;;;;;17955:81;18052:9;18047:539;18071:3;18067:1;:7;18047:539;;;18116:1;18095:6:::0;;18102:1;18095:9;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;18095:23:39::1;::::0;18091:62:::1;;18127:26;;-1:-1:-1::0;;;18127:26:39::1;;;;;;;;;;;18091:62;18171:8;;18180:1;18171:11;;;;;;;:::i;:::-;;;;;;;18186:1;18171:16:::0;18167:50:::1;;18196:21;;-1:-1:-1::0;;;18196:21:39::1;;;;;;;;;;;18167:50;18271:1;18235:7:::0;;18243:1;18235:10;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:24;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;;;;;18235:38:39::1;;:87;;;-1:-1:-1::0;18320:1:39::1;18277:7:::0;;18285:1;18277:10;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:31;::::0;;;;;::::1;;;:::i;:::-;-1:-1:-1::0;;;;;18277:45:39::1;;18235:87;:141;;;-1:-1:-1::0;3441:3:39::1;18326:7:::0;;18334:1;18326:10;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:27;::::0;;;;;::::1;;;:::i;:::-;-1:-1:-1::0;;;;;18326:50:39::1;;18235:141;18231:169;;;18385:15;;-1:-1:-1::0;;;18385:15:39::1;;;;;;;;;;;18231:169;18460:7;;18468:1;18460:10;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;18415:1;:18;;:29;18434:6;;18441:1;18434:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;18415:29:39::1;-1:-1:-1::0;;;;;18415:29:39::1;;;;;;;;;;;;:42;18445:8;;18454:1;18445:11;;;;;;;:::i;:::-;;;;;;;18415:42;;;;;;;;;;;:55;;;;;;:::i;:::-;;;;18484:32;18506:6;;18513:1;18506:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;18484:17;::::0;::::1;::::0;:21:::1;:32::i;:::-;-1:-1:-1::0;18558:3:39::1;;18047:539;;;;18601:41;18616:6;;18624:8;;18634:7;;18601:41;;;;;;;;;;;:::i;:::-;;;;;;;;17841:808;;17702:947:::0;;;;;;:::o;1567:173:42:-;1612:13;1637:33;1673:29;:27;:29::i;:::-;1719:14;-1:-1:-1;;;;;1719:14:42;;1567:173;-1:-1:-1;;1567:173:42:o;22092:1117:39:-;2316:19:3;:17;:19::i;:::-;-1:-1:-1;;;;;;;;;;;4036:14:42::1;:12;:14::i;:::-;-1:-1:-1::0;;;;;4036:22:42::1;;4059:4;4065:10;4036:40;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4031:68;;4085:14;;-1:-1:-1::0;;;4085:14:42::1;;;;;;;;;;;4031:68;22238:29:39::2;22270:25;:23;:25::i;:::-;22238:57:::0;-1:-1:-1;;;;;;22310:19:39;::::2;22306:58;;22338:26;;-1:-1:-1::0;;;22338:26:39::2;;;;;;;;;;;22306:58;22378:11;22393:1;22378:16:::0;22374:50:::2;;22403:21;;-1:-1:-1::0;;;22403:21:39::2;;;;;;;;;;;22374:50;22438:6;22448:1;22438:11:::0;22434:44:::2;;22458:20;;-1:-1:-1::0;;;22458:20:39::2;;;;;;;;;;;22434:44;-1:-1:-1::0;;;;;22518:25:39;;::::2;22489:26;22518:25:::0;;;:18:::2;::::0;::::2;:25;::::0;;;;;;;:38;;;;;;;;22570:20;;22518:38;;22570:20:::2;22566:66;;22613:19;;-1:-1:-1::0;;;22613:19:39::2;;;;;;;;;;;22566:66;22643:15;-1:-1:-1::0;;;;;22661:12:39;::::2;505:42:41;22661:12:39;:77;;22700:38;::::0;-1:-1:-1;;;22700:38:39;;-1:-1:-1;;;;;22700:23:39;::::2;::::0;::::2;::::0;:38:::2;::::0;22732:4:::2;::::0;22700:38:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22661:77;;;22676:21;22661:77;22643:95;;22762:6;22752:7;:16;22748:50;;;22777:21;;-1:-1:-1::0;;;22777:21:39::2;;;;;;;;;;;22748:50;22812:17;22833:40;22846:5;22853:6;22861:11;22833:12;:40::i;:::-;22809:64;;;22899:9;22887;:21;22883:57;;;22917:23;;-1:-1:-1::0;;;22917:23:39::2;;;;;;;;;;;22883:57;22980:20:::0;;;23075:27;::::2;::::0;23002:149:::2;::::0;22951:201:::2;::::0;-1:-1:-1;;;;;22980:20:39;;::::2;::::0;-1:-1:-1;;;23025:33:39;23002:149:::2;::::0;23060:5;;23067:6;;23075:27;;::::2;::::0;-1:-1:-1;;;23104:23:39;;::::2;-1:-1:-1::0;;;;;23104:23:39::2;::::0;23129:21:::2;::::0;::::2;::::0;23002:149:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;23002:149:39;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;23002:149:39::2;-1:-1:-1::0;;;;;;23002:149:39;;::::2;::::0;;;::::2;::::0;;;22951:28:::2;:201::i;:::-;;23190:11;23175:5;-1:-1:-1::0;;;;;23168:34:39::2;;23182:6;23168:34;;;;4350:25:43::0;;4338:2;4323:18;;4204:177;23168:34:39::2;;;;;;;;22228:981;;;;2345:1:3::1;22092:1117:39::0;;;:::o;35337:1375::-;1335:21:4;:19;:21::i;:::-;2316:19:3::1;:17;:19::i;:::-;35536:14:39::2;:12;:14::i;:::-;-1:-1:-1::0;;;;;35536:22:39::2;;-1:-1:-1::0;;;;;;;;;;;35588:10:39::2;35536:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;35531:95;;35608:18;;-1:-1:-1::0;;;35608:18:39::2;;;;;;;;;;;35531:95;35651:6:::0;35678:20;;::::2;;::::0;:45:::2;;-1:-1:-1::0;35702:21:39;;::::2;;35678:45;35674:79;;;35732:21;;-1:-1:-1::0;;;35732:21:39::2;;;;;;;;;;;35674:79;35764:29;35796:25;:23;:25::i;:::-;35851:20;::::0;::::2;::::0;35764:57;;-1:-1:-1;;;;;;35851:20:39::2;::::0;35881:62:::2;;35917:26;;-1:-1:-1::0;;;35917:26:39::2;;;;;;;;;;;35881:62;35959:9;35954:752;35978:3;35974:1;:7;35954:752;;;36003:39;36032:6;;36039:1;36032:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36003:1:::0;;:28:::2;:39::i;:::-;35998:74;;36051:21;;-1:-1:-1::0;;;36051:21:39::2;;;;;;;;;;;35998:74;36090:37;36117:6;;36124:1;36117:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36090:17;::::0;::::2;::::0;:26:::2;:37::i;:::-;36086:73;;;36136:23;;-1:-1:-1::0;;;36136:23:39::2;;;;;;;;;;;36086:73;36174:15;36192:1;:17;;:28;36210:6;;36217:1;36210:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;36192:28:39;;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;36192:28:39;;;::::2;::::0;-1:-1:-1;36239:47:39;::::2;;36287:21:::0;;:43:::2;;36323:7;36287:43;;;36311:6;;36318:1;36311:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36239:92;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36234:132;;36340:26;;-1:-1:-1::0;;;36340:26:39::2;;;;;;;;;;;36234:132;36381:19;36423:9;-1:-1:-1::0;;;;;36403:54:39::2;;36458:6;;36465:1;36458:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36403:65;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36487:57;::::0;-1:-1:-1;;;36487:57:39;;36381:87;;-1:-1:-1;;;;;;36487:44:39;::::2;::::0;::::2;::::0;:57:::2;::::0;36381:87;;36487:57:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36482:95;;36553:24;;-1:-1:-1::0;;;36553:24:39::2;;;;;;;;;;;36482:95;36592:72;36609:6;;36616:1;36609:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36620:11;36633:6;;36640:1;36633:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36644:7;36653;;36661:1;36653:10;;;;;;;:::i;:::-;;;;;;;36592:16;:72::i;:::-;-1:-1:-1::0;;36690:3:39::2;;35954:752;;;;35521:1191;;;1377:20:4::0;:18;:20::i;:::-;35337:1375:39;;;;;;:::o;45946:168::-;45998:7;46017:29;46049:25;:23;:25::i;:::-;46091:16;;;-1:-1:-1;;;;;46091:16:39;;45946:168;-1:-1:-1;;45946:168:39:o;3770:104:42:-;3808:14;:12;:14::i;:::-;-1:-1:-1;;;;;3808:27:42;;3836:10;3808:39;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3857:10;:8;:10::i;:::-;3770:104::o;11457:154:39:-;4158:30:0;4191:26;:24;:26::i;:::-;4302:15;;4158:59;;-1:-1:-1;4302:15:0;-1:-1:-1;;;4302:15:0;;;4301:16;;-1:-1:-1;;;;;4348:14:0;4279:19;4726:16;;:34;;;;;4746:14;4726:34;4706:54;;4770:17;4790:11;-1:-1:-1;;;;;4790:16:0;4805:1;4790:16;:50;;;;-1:-1:-1;4818:4:0;4810:25;:30;4790:50;4770:70;;4856:12;4855:13;:30;;;;;4873:12;4872:13;4855:30;4851:91;;;4908:23;;-1:-1:-1;;;4908:23:0;;;;;;;;;;;4851:91;4951:18;;-1:-1:-1;;;;;;4951:18:0;4968:1;4951:18;;;4979:67;;;;5013:22;;-1:-1:-1;;;;5013:22:0;-1:-1:-1;;;5013:22:0;;;4979:67;11551:53:39::1;11578:13;11593:10;11551:26;:53::i;:::-;5070:14:0::0;5066:101;;;5100:23;;-1:-1:-1;;;;5100:23:0;;;5142:14;;-1:-1:-1;23425:50:43;;5142:14:0;;23413:2:43;23398:18;5142:14:0;;;;;;;5066:101;4092:1081;;;;;11457:154:39;;:::o;4161:214:1:-;2655:13;:11;:13::i;:::-;4276:36:::1;4294:17;4276;:36::i;:::-;4322:46;4344:17;4363:4;4322:21;:46::i;:::-;4161:214:::0;;:::o;3708:134::-;3777:7;2926:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;;3708:134:1;:::o;23750:676:39:-;1335:21:4;:19;:21::i;:::-;4475:14:42::1;:12;:14::i;:::-;-1:-1:-1::0;;;;;4475:24:42::1;;4500:10;4475:36;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23845:29:39::2;23877:25;:23;:25::i;:::-;23845:57:::0;-1:-1:-1;;;;;;23917:19:39;::::2;23913:58;;23945:26;;-1:-1:-1::0;;;23945:26:39::2;;;;;;;;;;;23913:58;23985:33;:17;::::0;::::2;24012:5:::0;23985:26:::2;:33::i;:::-;23981:69;;;24027:23;;-1:-1:-1::0;;;24027:23:39::2;;;;;;;;;;;23981:69;24064:16;::::0;::::2;::::0;-1:-1:-1;;;;;24064:16:39::2;24060:65;;24103:22;;-1:-1:-1::0;;;24103:22:39::2;;;;;;;;;;;24060:65;-1:-1:-1::0;;;;;;;24140:12:39;::::2;::::0;24136:226:::2;;24195:16;::::0;::::2;::::0;24187:49:::2;::::0;24169:12:::2;::::0;-1:-1:-1;;;;;24195:16:39::2;::::0;24225:6;;24169:12;24187:49;24169:12;24187:49;24225:6;24195:16;24187:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24168:68;;;24255:7;24250:43;;24271:22;;-1:-1:-1::0;;;24271:22:39::2;;;;;;;;;;;24250:43;24154:150;24136:226;;;24337:16;::::0;::::2;::::0;24310:52:::2;::::0;-1:-1:-1;;;;;24310:26:39;;::::2;::::0;24337:16:::2;24355:6:::0;24310:26:::2;:52::i;:::-;24387:16;::::0;::::2;::::0;24378:41:::2;::::0;-1:-1:-1;;;;;24378:41:39;;::::2;::::0;::::2;::::0;::::2;::::0;24387:16;;::::2;::::0;24412:6;;24378:41:::2;:::i;:::-;;;;;;;;23835:591;1377:20:4::0;:18;:20::i;4017:149:32:-;4056:7;4075:30;4108:26;:24;:26::i;2692:145:3:-;2739:4;2755:25;2783:21;:19;:21::i;:::-;2821:9;;;;2692:145;-1:-1:-1;;2692:145:3:o;44397:586:39:-;44476:16;44504:29;44536:25;:23;:25::i;:::-;44504:57;-1:-1:-1;44571:14:39;44588:28;44504:57;44588:26;:28::i;:::-;44571:45;;44639:6;44630:5;:15;44626:47;;44654:19;;-1:-1:-1;;;44654:19:39;;;;;;;;;;;44626:47;44699:6;44687:9;44695:1;44687:5;:9;:::i;:::-;:18;44683:42;;;44711:14;44720:5;44711:6;:14;:::i;:::-;44707:18;;44683:42;44735:26;44778:1;-1:-1:-1;;;;;44764:16:39;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44764:16:39;-1:-1:-1;44735:45:39;-1:-1:-1;44796:9:39;44791:160;44815:1;44811;:5;44791:160;;;44848:33;44871:9;44879:1;44871:5;:9;:::i;:::-;44848:1;;:22;:33::i;:::-;44833:9;44843:1;44833:12;;;;;;;;:::i;:::-;-1:-1:-1;;;;;44833:48:39;;;:12;;;;;;;;;;;:48;44923:3;;44791:160;;;-1:-1:-1;44967:9:39;-1:-1:-1;;;44397:586:39;;;;;:::o;29890:531::-;29960:7;29979:17;29999:25;:23;:25::i;:::-;:44;;;-1:-1:-1;;;;;29999:44:39;;-1:-1:-1;29999:44:39;30053:62;;30089:26;;-1:-1:-1;;;30089:26:39;;;;;;;;;;;30053:62;30353:61;;-1:-1:-1;;;30353:61:39;;-1:-1:-1;;;;;30353:54:39;;;;;:61;;30408:5;;30353:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;30346:68;29890:531;-1:-1:-1;;;29890:531:39:o;46387:194::-;46451:4;46467:29;46499:25;:23;:25::i;:::-;46467:57;-1:-1:-1;46541:33:39;:17;;;46568:5;46541:26;:33::i;11754:340::-;2316:19:3;:17;:19::i;:::-;11830:21:39::1;11877:25;;;11912:4;11854:64;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;11854:64:39;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;11854:64:39::1;-1:-1:-1::0;;;;;;11854:64:39;;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;;11947:29:39::1;11961:4:::0;11854:64;11947:13:::1;:29::i;:::-;11928:48;;11987:29;12019:25;:23;:25::i;:::-;11987:57:::0;-1:-1:-1;12054:33:39::1;11987:57:::0;12078:8;12054:23:::1;:33::i;:::-;;11820:274;;;11754:340:::0;:::o;28163:764::-;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28299:6:39;;-1:-1:-1;;;28326:22:39;;::::1;28322:56;;28357:21;;-1:-1:-1::0;;;28357:21:39::1;;;;;;;;;;;28322:56;28389:29;28421:25;:23;:25::i;:::-;28389:57:::0;-1:-1:-1;28462:9:39::1;28457:464;28481:3;28477:1;:7;28457:464;;;28501:13;28517:6;;28524:1;28517:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;28501:25;;28540:15;28558:8;;28567:1;28558:11;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;28540:29:::0;-1:-1:-1;;;;;;28587:19:39;::::1;28583:58;;28615:26;;-1:-1:-1::0;;;28615:26:39::1;;;;;;;;;;;28583:58;-1:-1:-1::0;;;;;28659:21:39;::::1;::::0;;::::1;::::0;:59:::1;;;28713:5;-1:-1:-1::0;;;;;28684:34:39::1;28693:7;-1:-1:-1::0;;;;;28684:23:39::1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;28684:34:39::1;;;28659:59;28655:96;;;28727:24;;-1:-1:-1::0;;;28727:24:39::1;;;;;;;;;;;28655:96;-1:-1:-1::0;;;;;28771:60:39;;::::1;28797:24;::::0;;;:17:::1;::::0;::::1;:24;::::0;;;;;;;28771:60;;;;::::1;::::0;::::1;::::0;28797:24;;::::1;::::0;28823:7;;28771:60:::1;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;28845:24:39;;::::1;;::::0;;;:17:::1;::::0;::::1;:24;::::0;;;;:34;;-1:-1:-1;;;;;;28845:34:39::1;::::0;;;::::1;;::::0;;-1:-1:-1;28905:3:39::1;28457:464;;14090:552:::0;14206:28;14227:6;;14206:20;:28::i;:::-;14245:29;14277:25;:23;:25::i;:::-;14245:57;-1:-1:-1;14333:14:39;14312:18;14365:271;14389:10;14385:1;:14;14365:271;;;14421:47;14450:14;;14465:1;14450:17;;;;;;;:::i;14421:47::-;14416:82;;14477:21;;-1:-1:-1;;;14477:21:39;;;;;;;;;;;14416:82;14526:14;;14541:1;14526:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;14512:46:39;;14559:6;;14512:54;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14608:3;;;;;14365:271;;43305:701;43400:14;43416:15;43443:29;43475:25;:23;:25::i;:::-;43443:57;-1:-1:-1;;;;;;43515:19:39;;43511:58;;43543:26;;-1:-1:-1;;;43543:26:39;;;;;;;;;;;43511:58;43583:11;43598:1;43583:16;43579:50;;43608:21;;-1:-1:-1;;;43608:21:39;;;;;;;;;;;43579:50;43643:6;43653:1;43643:11;43639:44;;43663:20;;-1:-1:-1;;;43663:20:39;;;;;;;;;;;43639:44;-1:-1:-1;;;;;43723:25:39;;;43694:26;43723:25;;;:18;;;:25;;;;;;;;:38;;;;;;;;43775:20;;43723:38;;43775:20;43771:66;;43818:19;;-1:-1:-1;;;43818:19:39;;;;;;;;;;;43771:66;43873:20;;;43923:27;;;43855:144;;-1:-1:-1;;;43855:144:39;;-1:-1:-1;;;;;43873:20:39;;;;43855:52;;:144;;43908:5;;43915:6;;43923:27;;;;-1:-1:-1;;;43952:23:39;;;-1:-1:-1;;;;;43952:23:39;;43977:21;;;;43855:144;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43848:151;;;;;;43305:701;;;;;;:::o;3552:98:42:-;3588:14;:12;:14::i;:::-;-1:-1:-1;;;;;3588:25:42;;3614:10;3588:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3635:8;:6;:8::i;45102:140:39:-;45157:7;45183:52;:25;:23;:25::i;:::-;:50;:52::i;:::-;45176:59;;45102:140;:::o;29169:139::-;29227:7;29253:25;:23;:25::i;:::-;-1:-1:-1;;;;;29253:48:39;;;;;;;:41;;;;;:48;;;;;;;;;;29169:139;-1:-1:-1;29169:139:39:o;41581:1079::-;1335:21:4;:19;:21::i;:::-;2316:19:3::1;:17;:19::i;:::-;41689:29:39::2;41721:25;:23;:25::i;:::-;41689:57:::0;-1:-1:-1;41761:35:39::2;41689:57:::0;41790:5;41761:28:::2;:35::i;:::-;41756:70;;41805:21;;-1:-1:-1::0;;;41805:21:39::2;;;;;;;;;;;41756:70;41851:6:::0;41837:11:::2;41875:779;41899:3;41895:1;:7;41875:779;;;41919:13;41935:6;;41942:1;41935:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;41919:25:::0;-1:-1:-1;41962:33:39::2;:17;::::0;::::2;41919:25:::0;41962:26:::2;:33::i;:::-;41958:69;;;42004:23;;-1:-1:-1::0;;;42004:23:39::2;;;;;;;;;;;41958:69;-1:-1:-1::0;;;;;42060:24:39;;::::2;42042:15;42060:24:::0;;;:17:::2;::::0;::::2;:24;::::0;;;;;::::2;::::0;42098:57:::2;;42132:23;;-1:-1:-1::0;;;42132:23:39::2;;;;;;;;;;;42098:57;42187:30;::::0;-1:-1:-1;;;42187:30:39;;42170:14:::2;::::0;-1:-1:-1;;;;;42187:23:39;::::2;::::0;::::2;::::0;:30:::2;::::0;42211:5;;42187:30:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42170:47:::0;-1:-1:-1;42235:11:39;;42231:381:::2;;42290:32;::::0;-1:-1:-1;;;42290:32:39;;42266:21:::2;::::0;-1:-1:-1;;;;;42290:25:39;::::2;::::0;::::2;::::0;:32:::2;::::0;42316:5;;42290:32:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42340:41;::::0;-1:-1:-1;;;42340:41:39;;42266:56;;-1:-1:-1;;;;;;42340:26:39;::::2;::::0;::::2;::::0;:41:::2;::::0;42367:5;;42374:6;;42340:41:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42399:14;42451:13;42423:7;-1:-1:-1::0;;;;;42416:25:39::2;;42442:5;42416:32;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;;;:::i;:::-;42399:65;;42486:6;42496:1;42486:11:::0;42482:43:::2;;42506:19;;-1:-1:-1::0;;;42506:19:39::2;;;;;;;;;;;42482:43;42575:5;-1:-1:-1::0;;;;;42549:48:39::2;42566:7;-1:-1:-1::0;;;;;42549:48:39::2;42559:5;-1:-1:-1::0;;;;;42549:48:39::2;;42582:6;42590;42549:48;;;;;;25822:25:43::0;;;25878:2;25863:18;;25856:34;25810:2;25795:18;;25648:248;42549:48:39::2;;;;;;;;42248:364;;42231:381;42638:3;;;;;41905:749;;;41875:779;;;;41679:981;;1377:20:4::0;:18;:20::i;45518:232:39:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45663:25:39;:23;:25::i;:::-;-1:-1:-1;;;;;45705:25:39;;;;;;;:18;;;:25;;;;;;;;:38;;;;;;;;;45698:45;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45698:45:39;;;-1:-1:-1;;;;;45698:45:39;;;;;;;;;;;;;45705:18;;-1:-1:-1;45698:45:39;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45518:232;;;;:::o;5140:142:32:-;5208:7;5234:41;5270:4;5234:35;:41::i;26244:130:39:-;26297:7;26323:25;:23;:25::i;:::-;:44;;;-1:-1:-1;;;;;26323:44:39;;26244:130;-1:-1:-1;26244:130:39:o;20659:841::-;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20779:29:39::1;20811:25;:23;:25::i;:::-;20779:57:::0;-1:-1:-1;20860:6:39;20887:22;;::::1;20883:56;;20918:21;;-1:-1:-1::0;;;20918:21:39::1;;;;;;;;;;;20883:56;20955:9;20950:492;20974:3;20970:1;:7;20950:492;;;20994:13;21010:6;;21017:1;21010:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;20994:25:::0;-1:-1:-1;;;;;;21037:19:39;::::1;21033:58;;21065:26;;-1:-1:-1::0;;;21065:26:39::1;;;;;;;;;;;21033:58;21109:8;;21118:1;21109:11;;;;;;;:::i;:::-;;;;;;;21124:1;21109:16:::0;21105:50:::1;;21134:21;;-1:-1:-1::0;;;21134:21:39::1;;;;;;;;;;;21105:50;-1:-1:-1::0;;;;;21173:25:39;::::1;21237:1;21173:25:::0;;;:18:::1;::::0;::::1;:25;::::0;;;;21237:1;21199:8;;21208:1;21199:11;;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;::::1;;21173:38:::0;;-1:-1:-1;21173:38:39;::::1;::::0;;;;;;-1:-1:-1;21173:38:39;:52;-1:-1:-1;;;;;21173:52:39::1;:66:::0;21169:98:::1;;21248:19;;-1:-1:-1::0;;;21248:19:39::1;;;;;;;;;;;21169:98;-1:-1:-1::0;;;;;21289:25:39;::::1;;::::0;;;:18:::1;::::0;::::1;:25;::::0;;;;;21315:8;;21324:1;21315:11;;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;::::1;;21289:38:::0;;-1:-1:-1;21289:38:39;::::1;::::0;;;;;;-1:-1:-1;21289:38:39;;;21282:45;;-1:-1:-1;;;;;;21282:45:39::1;::::0;;;;::::1;::::0;;;21289:38;21282:45:::1;;::::0;::::1;-1:-1:-1::0;21282:45:39::1;:::i;:::-;-1:-1:-1::0;21341:31:39::1;::::0;-1:-1:-1;21341:17:39::1;::::0;::::1;21366:5:::0;21341:24:::1;:31::i;:::-;-1:-1:-1::0;;21414:3:39::1;;20950:492;;;;21457:36;21476:6;;21484:8;;21457:36;;;;;;;;;:::i;:::-;;;;;;;;20769:731;;20659:841:::0;;;;:::o;47132:211::-;47203:4;47219:29;47251:25;:23;:25::i;:::-;47219:57;-1:-1:-1;47293:43:39;47219:57;47322:13;47293:28;:43::i;25756:391::-;4282:10:42;4256:14;:12;:14::i;:::-;-1:-1:-1;;;;;4256:20:42;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4256:36:42;;4252:72;;4301:23;;-1:-1:-1;;;4301:23:42;;;;;;;;;;;4252:72;-1:-1:-1;;;;;25861:33:39;::::1;25857:85;;25903:39;;-1:-1:-1::0;;;25903:39:39::1;;;;;;;;;;;25857:85;25952:29;25984:25;:23;:25::i;:::-;26046:20;::::0;::::1;::::0;26024:64:::1;::::0;25952:57;;-1:-1:-1;26024:64:39::1;::::0;::::1;::::0;-1:-1:-1;;;;;26046:20:39::1;::::0;26068:19;;26024:64:::1;:::i;:::-;;;;;;;;26098:20;;:42:::0;;-1:-1:-1;;;;;;26098:42:39::1;-1:-1:-1::0;;;;;26098:42:39;;;::::1;::::0;;;::::1;::::0;;25756:391::o;12843:554::-;12937:28;12958:6;;12937:20;:28::i;:::-;12976:29;13008:25;:23;:25::i;:::-;12976:57;-1:-1:-1;13044:14:39;13061:28;12976:57;13061:26;:28::i;:::-;13044:45;;13112:6;13103:5;:15;13099:47;;13127:19;;-1:-1:-1;;;13127:19:39;;;;;;;;;;;13099:47;13172:6;13160:9;13168:1;13160:5;:9;:::i;:::-;:18;13156:42;;;13184:14;13193:5;13184:6;:14;:::i;:::-;13180:18;;13156:42;13214:9;13209:182;13233:1;13229;:5;13209:182;;;13265:33;13288:9;13296:1;13288:5;:9;:::i;:::-;13265:1;;:22;:33::i;:::-;-1:-1:-1;;;;;13251:62:39;;13314:6;;13251:70;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13363:3;;;;;13209:182;;24798:352;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24887:29:39::1;24919:25;:23;:25::i;:::-;24887:57:::0;-1:-1:-1;;;;;;24959:29:39;::::1;24955:77;;24997:35;;-1:-1:-1::0;;;24997:35:39::1;;;;;;;;;;;24955:77;25065:16;::::0;::::1;::::0;25047:52:::1;::::0;::::1;::::0;::::1;::::0;-1:-1:-1;;;;;25065:16:39;;::::1;::::0;25083:15;;25047:52:::1;:::i;:::-;;;;;;;;25109:16;;:34:::0;;-1:-1:-1;;;;;;25109:34:39::1;-1:-1:-1::0;;;;;25109:34:39;;;::::1;::::0;;;::::1;::::0;;24798:352::o;4550:390:32:-;4282:10:42;4256:14;:12;:14::i;:::-;-1:-1:-1;;;;;4256:20:42;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4256:36:42;;4252:72;;4301:23;;-1:-1:-1;;;4301:23:42;;;;;;;;;;;4252:72;-1:-1:-1;;;;;4652:22:32;::::1;4648:49;;4683:14;;-1:-1:-1::0;;;4683:14:32::1;;;;;;;;;;;4648:49;4708:35;4764:26;:24;:26::i;:::-;:33:::0;4841:34:::1;::::0;;-1:-1:-1;;;4841:34:32;;;;-1:-1:-1;;;;;4764:33:32;;::::1;::::0;-1:-1:-1;4813:73:32::1;::::0;4764:33;;4841:32:::1;::::0;:34:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;4764:33;4841:34:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4877:8;4813:73;;;;;;;:::i;:::-;;;;;;;;4896:37;::::0;-1:-1:-1;;;4896:37:32;;-1:-1:-1;;;;;4896:27:32;::::1;::::0;::::1;::::0;:37:::1;::::0;4924:8;;4896:37:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46587:255:39::0;46679:4;46695:29;46727:25;:23;:25::i;:::-;-1:-1:-1;;;;;46769:25:39;;;46833:1;46769:25;;;:18;;;;:25;;;;;;;;:38;;;;;;;;;:52;;:66;;;-1:-1:-1;;46587:255:39;;;;:::o;1583:346:4:-;-1:-1:-1;;;;;;;;;;;3369:11:25;1706:93:4;;;1758:30;;-1:-1:-1;;;1758:30:4;;;;;;;;;;;1706:93;1873:49;1917:4;-1:-1:-1;;;;;;;;;;;1873:36:4;:43;;:49::i;2905:128:3:-;2970:8;:6;:8::i;:::-;2966:61;;;3001:15;;-1:-1:-1;;;3001:15:3;;;;;;;;;;;47482:175:39;47614:27;;47482:175::o;6492:1118:31:-;6572:11;6595:16;6614:14;6624:3;6614:9;:14::i;:::-;-1:-1:-1;;;;;6713:23:31;;;;6595:33;-1:-1:-1;;;6752:25:31;;6749:148;;6809:10;6803:4;6796:24;6878:4;6872;6865:18;6749:148;6920:5;6910:44;;6938:14;6929:23;;6910:44;6991:8;6985:15;-1:-1:-1;;;;;7053:30:31;;7043:369;;7117:1;7107:11;;7166:5;7153:10;7149:2;7145:19;7142:30;7139:43;7175:5;7139:43;7237:1;7223:16;;7217:23;7213:2;7209:32;7203:56;;7252:5;7203:56;7314:1;7300:16;;7294:23;7290:2;7286:32;7280:56;;7329:5;7280:56;7367:1;7357:11;;7389:5;;7043:369;7442:8;7436:4;7429:22;7481:5;7475:4;7468:19;7550:4;7544;7534:21;7528:28;7521:36;7514:44;7504:54;;7013:581;7017:2;6690:914;6492:1118;;;;:::o;38140:767:39:-;-1:-1:-1;;;;;38273:21:39;;38269:210;;38310:71;;-1:-1:-1;;;38310:71:39;;-1:-1:-1;;;;;38310:43:39;;;;;:71;;38354:5;;38361:11;;38374:6;;38310:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38434:5;-1:-1:-1;;;;;38400:48:39;38421:11;-1:-1:-1;;;;;38400:48:39;38414:5;-1:-1:-1;;;;;38400:48:39;-1:-1:-1;;;;;;;;;;;38441:6:39;38400:48;;;;4350:25:43;;4338:2;4323:18;;4204:177;38400:48:39;;;;;;;;38462:7;;38269:210;38513:38;;-1:-1:-1;;;38513:38:39;;38489:21;;-1:-1:-1;;;;;38513:25:39;;;;;:38;;38539:11;;38513:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38561:71;;-1:-1:-1;;;38561:71:39;;38489:62;;-1:-1:-1;;;;;;38561:43:39;;;;;:71;;38605:5;;38612:11;;38625:6;;38561:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38642:14;38700:13;38666:7;-1:-1:-1;;;;;38659:25:39;;38685:11;38659:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:54;;;;:::i;:::-;38642:71;;38727:6;38737:1;38727:11;38723:43;;38747:19;;-1:-1:-1;;;38747:19:39;;;;;;;;;;;38723:43;38813:5;-1:-1:-1;;;;;38782:53:39;38804:7;-1:-1:-1;;;;;38782:53:39;38797:5;-1:-1:-1;;;;;38782:53:39;;38820:6;38828;38782:53;;;;;;25822:25:43;;;25878:2;25863:18;;25856:34;25810:2;25795:18;;25648:248;38782:53:39;;;;;;;;38884:7;-1:-1:-1;;;;;38850:50:39;38871:11;-1:-1:-1;;;;;38850:50:39;38864:5;-1:-1:-1;;;;;38850:50:39;-1:-1:-1;;;;;;;;;;;38893:6:39;38850:50;;;;4350:25:43;;4338:2;4323:18;;4204:177;38850:50:39;;;;;;;;38259:648;;38140:767;;;;;:::o;1935:105:4:-;1983:50;2027:5;-1:-1:-1;;;;;;;;;;;1983:36:4;1663:115:25;9495:2472:31;9565:11;9588:16;9607:14;9617:3;9607:9;:14::i;:::-;-1:-1:-1;;;;;9706:23:31;;;;9588:33;-1:-1:-1;;;9745:25:31;;9742:148;;9802:10;9796:4;9789:24;9871:4;9865;9858:18;9742:148;9913:5;9903:44;;9931:14;9922:23;;9903:44;9978:15;;-1:-1:-1;;;;;10021:30:31;;10090:8;10084:4;10077:22;10126:1;10116:1257;;10169:10;10165:2;10161:19;10211:2;10201:160;;10266:5;10262:2;10258:14;10248:8;10241:32;10308:1;10298:11;;10334:5;;;10201:160;10392:5;10388:2;10385:13;10382:26;;10401:5;;;10382:26;10467:1;10457:8;10453:16;10447:23;10443:2;10439:32;10502:2;10492:168;;10565:5;10561:2;10557:14;10553:1;10543:8;10539:16;10532:40;10607:1;10597:11;;10633:5;;;;10492:168;10691:5;10687:2;10684:13;10681:26;;10700:5;;;;10681:26;10766:1;10756:8;10752:16;10746:23;10742:2;10738:32;10801:2;10791:168;;10864:5;10860:2;10856:14;10852:1;10842:8;10838:16;10831:40;10906:1;10896:11;;10932:5;;;;;10791:168;10990:5;10986:2;10983:13;10980:26;;10999:5;;;;;10980:26;11034:4;11027:16;;;11087:4;11071:21;;;11094:1;11064:32;;11117:16;;;11161:21;;;11184:1;11154:32;;11207:16;;11251:21;;11274:1;11244:32;;-1:-1:-1;11326:1:31;11311:17;;;;10116:1257;11403:5;11397:4;11390:19;11451:4;11445;11435:21;11489:1;11483:8;11473:442;;11524:1;11520:9;;;11592;;;11582:20;;11524:1;;-1:-1:-1;11520:9:31;11623:130;;11693:5;11689:2;11685:14;11682:1;11679:21;11669:8;11662:39;11726:5;;;11623:130;11807:5;11803:2;11799:14;11795:1;11785:8;11781:16;11774:40;11859:10;11856:1;11852:18;11842:8;11835:36;11892:5;;;11473:442;;10006:1945;10010:43;;9683:2278;9495:2472;;;;:::o;2342:187:42:-;2482:31;;2342:187::o;503:968:37:-;578:19;635:4;-1:-1:-1;;;;;617:23:37;;;609:56;;;;-1:-1:-1;;;609:56:37;;27003:2:43;609:56:37;;;26985:21:43;27042:2;27022:18;;;27015:30;-1:-1:-1;;;27061:18:43;;;27054:50;27121:18;;609:56:37;;;;;;;;;906:1;903;896:4;890:11;883:4;877;873:15;865:6;858:5;845:63;983:16;1080:4;1074:11;1064:21;;1163:4;1155:6;1148:20;1279:4;1276:1;1269:4;1261:6;1257:17;1242:42;1357:28;;1373:4;1357:28;1351:4;1344:42;1410:7;1400:55;;1436:16;1428:6;1421:32;1400:55;;503:968;;;;:::o;3674:178:3:-;2563:16;:14;:16::i;:::-;3732:25:::1;3760:21;:19;:21::i;:::-;3791:17:::0;;-1:-1:-1;;3791:17:3::1;::::0;;;-1:-1:-1;3823:22:3::1;966:10:2::0;3832:12:3::1;3823:22;;;;;;:::i;:::-;;;;;;;;3722:130;3674:178::o:0;8737:170:0:-;8870:21;;8737:170::o;2213:336:32:-;6931:20:0;:18;:20::i;:::-;2329:38:32::1;2353:13;2329:23;:38::i;:::-;2377:17;:15;:17::i;:::-;2404:30;2437:26;:24;:26::i;:::-;2404:59;;2514:11;2535:4;2492:49;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;2473:69:32;;-1:-1:-1;;;;;;2473:69:32::1;-1:-1:-1::0;;;;;2473:69:32;;;::::1;;::::0;;-1:-1:-1;;2213:336:32:o;4603:312:1:-;4683:4;-1:-1:-1;;;;;4692:6:1;4675:23;;;:120;;;4789:6;-1:-1:-1;;;;;4753:42:1;:32;-1:-1:-1;;;;;;;;;;;1519:53:12;-1:-1:-1;;;;;1519:53:12;;1441:138;4753:32:1;-1:-1:-1;;;;;4753:42:1;;;4675:120;4658:251;;;4869:29;;-1:-1:-1;;;4869:29:1;;;;;;;;;;;3123:313:42;3210:33;3246:29;:27;:29::i;:::-;3285:14;;:39;;-1:-1:-1;;;3285:39:42;;3210:65;;-1:-1:-1;;;;;;3285:14:42;;:27;;:39;;3313:10;;3285:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6057:538:1;6174:17;-1:-1:-1;;;;;6156:50:1;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6156:52:1;;;;;;;;-1:-1:-1;;6156:52:1;;;;;;;;;;;;:::i;:::-;;;6152:437;;6560:17;6518:60;;-1:-1:-1;;;6518:60:1;;;;;;;;:::i;6152:437::-;-1:-1:-1;;;;;;;;;;;6250:40:1;;6246:120;;6317:34;;-1:-1:-1;;;6317:34:1;;;;;4350:25:43;;;4323:18;;6317:34:1;4204:177:43;6246:120:1;6379:54;6409:17;6428:4;6379:29;:54::i;5032:213::-;5106:4;-1:-1:-1;;;;;5115:6:1;5098:23;;5094:145;;5199:29;;-1:-1:-1;;;5199:29:1;;;;;;;;;;;1219:160:19;1301:71;1321:5;1343;-1:-1:-1;;;;;1343:14:19;;1360:2;1364:5;1328:43;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1328:43:19;;;;;;;;;;;1301:19;:71::i;2704:177:32:-;2837:28;;2704:177::o;1147:162:3:-;1270:23;;1147:162::o;4290:650:31:-;4353:14;4379:16;4398:14;4408:3;4398:9;:14::i;:::-;4379:33;;4512:8;4506:15;4561:10;4556:3;4552:20;4547:3;4543:30;4603:1;4600;4596:9;4586:19;;4664:1;4650:10;4646:2;4642:19;4635:27;4632:34;4618:306;;4699:1;4689:11;;4747:6;4737:8;4733:21;4727:28;4717:49;4759:5;4717:49;4793:1;4783:11;;4841:6;4831:8;4827:21;4821:28;4811:49;4853:5;4811:49;4887:1;4877:11;;4618:306;4622:2;;4474:460;4290:650;;;:::o;28437:390::-;28507:14;28533:16;28552:14;28562:3;28552:9;:14::i;:::-;28533:33;;28680:1;28670:8;28666:16;28660:23;28656:2;28652:32;28642:42;;28737:14;28729:6;28726:26;28719:34;28711:6;28707:47;28697:57;;28782:11;28789:3;28782:6;:11::i;:::-;28777:1;:16;28773:47;;28802:18;;-1:-1:-1;;;28802:18:31;;;;;;;;;;;3219:642:32;3297:7;3316:20;3339:29;3363:4;3339:23;:29::i;:::-;3316:52;;3378:20;3409:109;3454:30;;;;;;;;:::i;:::-;-1:-1:-1;;3454:30:32;;;;;;;;;;;;;;3497:8;:6;:8::i;:::-;3486:24;;;-1:-1:-1;;;;;27569:32:43;;;3486:24:32;;;27551:51:43;27618:18;;;27611:30;-1:-1:-1;27657:18:43;;;27650:29;27696:18;;3486:24:32;;;-1:-1:-1;;3486:24:32;;;;;;;;;;3437:74;;;3486:24;3437:74;;:::i;:::-;;;;;;;;;;;;;3513:4;3409:27;:109::i;:::-;3533:15;;3378:141;;-1:-1:-1;3533:19:32;3529:153;;3569:12;3587;-1:-1:-1;;;;;3587:17:32;3605:8;3587:27;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3568:46;;;3633:7;3628:43;;3649:22;;-1:-1:-1;;;3649:22:32;;;;;;;;;;;3628:43;3554:128;3529:153;3711:12;-1:-1:-1;;;;;3695:28:32;:12;-1:-1:-1;;;;;3695:28:32;;3691:79;;3732:38;;-1:-1:-1;;;3732:38:32;;;;;;;;;;;3691:79;3812:12;-1:-1:-1;;;;;3786:39:32;;3806:4;3786:39;;;;4350:25:43;;4338:2;4323:18;;4204:177;3786:39:32;;;;;;;;3842:12;3219:642;-1:-1:-1;;;;3219:642:32:o;16516:398:39:-;16597:29;16629:25;:23;:25::i;:::-;16597:57;-1:-1:-1;16678:6:39;16664:11;16702:206;16726:3;16722:1;:7;16702:206;;;505:42:41;16750:6:39;;16757:1;16750:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;16750:16:39;;;:58;;;;;16771:37;16798:6;;16805:1;16798:9;;;;;;;:::i;16771:37::-;16770:38;16750:58;16746:92;;;16817:21;;-1:-1:-1;;;16817:21:39;;;;;;;;;;;16746:92;16880:3;;16702:206;;3366:176:3;2316:19;:17;:19::i;:::-;3425:25:::1;3453:21;:19;:21::i;:::-;3484:16:::0;;-1:-1:-1;;3484:16:3::1;3496:4;3484:16;::::0;;3425:49;-1:-1:-1;3515:20:3::1;3522:12;966:10:2::0;;887:96;5330:168:30;5404:16;5443:48;5471:4;5485;5443:27;:48::i;17031:2199:31:-;17104:11;17127:16;17146:14;17156:3;17146:9;:14::i;:::-;-1:-1:-1;;;;;17245:23:31;;;;17127:33;-1:-1:-1;;;17284:25:31;;17281:148;;17341:10;17335:4;17328:24;17410:4;17404;17397:18;17281:148;17452:5;17442:44;;17470:14;17461:23;;17442:44;17517:15;;-1:-1:-1;;;;;17560:30:31;;17626:1;17616:842;;17661:1;17651:11;;17710:5;17697:10;17693:2;17689:19;17686:30;17683:279;;17780:1;17766:16;;17760:23;;17743:41;;17854:1;17840:16;;17834:23;;17809:49;;;-1:-1:-1;17883:27:31;;17935:5;;17683:279;18023:5;18017:1;18007:8;18003:16;17997:23;17993:2;17989:32;17986:43;17983:226;;18101:1;18087:16;;18081:23;;18077:1;18063:16;;18056:49;-1:-1:-1;18130:27:31;;18182:5;;17983:226;18270:5;18264:1;18254:8;18250:16;18244:23;18240:2;18236:32;18233:43;18230:152;;18328:1;18324;18314:8;18310:16;18303:27;18355:5;;18230:152;18413:1;18403:11;;18435:5;;17616:842;18488:8;18482:4;18475:22;18527:5;18521:4;18514:19;18575:4;18569;18559:21;18619:1;18613:8;18648;18638:29;;18660:5;;;;18638:29;18704:1;18700;18697;18693:9;18689:17;18684:22;;18754:1;18750;18740:8;18736:16;18733:23;18723:308;;18825:1;18815:8;18811:16;18805:23;18801:2;18797:32;18898:9;18894:2;18890:18;18885:1;18875:8;18871:16;18861:8;18857:31;18850:59;18943:9;18937:4;18930:23;;19004:8;18997:4;18991;18981:21;18974:39;18723:308;-1:-1:-1;19084:15:31;;-1:-1:-1;;;;;;19068:33:31;19117:1;19106:9;;;19065:55;;;19048:73;;;-1:-1:-1;19138:12:31;;;-1:-1:-1;19117:1:31;17031:2199;-1:-1:-1;;;17031:2199:31:o;3485:139:25:-;3602:5;3596:4;3589:19;3485:139;;:::o;31460:285:31:-;31623:33;31617:4;31610:47;31523:9;31670:20;;;31724:4;31708:21;;;31460:285::o;3105:126:3:-;3168:8;:6;:8::i;:::-;3163:62;;3199:15;;-1:-1:-1;;;3199:15:3;;;;;;;;;;;7084:141:0;7151:17;:15;:17::i;:::-;7146:73;;7191:17;;-1:-1:-1;;;7191:17:0;;;;;;;;;;;1884:300:42;6931:20:0;:18;:20::i;:::-;1976:33:42::1;2012:29;:27;:29::i;:::-;2051:45:::0;;-1:-1:-1;;;;;;2051:45:42::1;-1:-1:-1::0;;;;;2051:45:42;::::1;;::::0;;;-1:-1:-1;2107:33:42::1;:31;:33::i;:::-;2150:27;:25;:27::i;1836:97:3:-:0;6931:20:0;:18;:20::i;:::-;1899:27:3::1;:25;:27::i;2264:344:12:-:0;2355:37;2374:17;2355:18;:37::i;:::-;2407:36;;-1:-1:-1;;;;;2407:36:12;;;;;;;;2458:11;;:15;2454:148;;2489:53;2518:17;2537:4;2489:28;:53::i;2454:148::-;2573:18;:16;:18::i;7686:720:19:-;7766:18;7794:19;7932:4;7929:1;7922:4;7916:11;7909:4;7903;7899:15;7896:1;7889:5;7882;7877:60;7989:7;7979:176;;8033:4;8027:11;8078:16;8075:1;8070:3;8055:40;8124:16;8119:3;8112:29;7979:176;-1:-1:-1;;8232:1:19;8226:8;8182:16;;-1:-1:-1;8258:15:19;;:68;;8310:11;8325:1;8310:16;;8258:68;;;-1:-1:-1;;;;;8276:26:19;;;:31;8258:68;8254:146;;;8382:5;8349:40;;-1:-1:-1;;;8349:40:19;;;;;;;;:::i;8254:146::-;7756:650;;7686:720;;:::o;3569:188:30:-;3669:16;3712:38;3732:1;3735:8;3745:4;3712:19;:38::i;5579:983::-;5695:16;5808:4;5802:11;5873:8;5867:4;5860:22;5930:4;5924;5916:19;5982:4;5976;5969:18;6032:19;6026:4;6019:33;6123:4;6117;6107:21;6101:4;6094:35;6185:1;6179:4;6172:15;;6425:6;6419:4;6412:20;6459:4;6453;6445:19;-1:-1:-1;;6541:4:30;6535;6525:21;;5579:983;-1:-1:-1;5579:983:30:o;8487:120:0:-;8537:4;8560:26;:24;:26::i;:::-;:40;-1:-1:-1;;;8560:40:0;;;;;;-1:-1:-1;8487:120:0:o;1410:76:4:-;6931:20:0;:18;:20::i;1939:156:3:-;6931:20:0;:18;:20::i;:::-;2012:25:3::1;2040:21;:19;:21::i;:::-;2071:17:::0;;-1:-1:-1;;2071:17:3::1;::::0;;-1:-1:-1;1939:156:3:o;1671:281:12:-;1748:17;-1:-1:-1;;;;;1748:29:12;;1781:1;1748:34;1744:119;;1834:17;1805:47;;-1:-1:-1;;;1805:47:12;;;;;;;;:::i;1744:119::-;-1:-1:-1;;;;;;;;;;;1872:73:12;;-1:-1:-1;;;;;;1872:73:12;-1:-1:-1;;;;;1872:73:12;;;;;;;;;;1671:281::o;3916:253:20:-;3999:12;4024;4038:23;4065:6;-1:-1:-1;;;;;4065:19:20;4085:4;4065:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4023:67;;;;4107:55;4134:6;4142:7;4151:10;4107:26;:55::i;:::-;4100:62;3916:253;-1:-1:-1;;;;;3916:253:20:o;6113:122:12:-;6163:9;:13;6159:70;;6199:19;;-1:-1:-1;;;6199:19:12;;;;;;;;;;;4003:1262:30;4118:16;4229:15;4223:4;4216:29;4326:4;4320;4314;4311:1;4303:28;4354:5;4344:133;;4392:10;4386:4;4379:24;4458:4;4452;4445:18;4344:133;4503:5;4497:4;4490:19;4741:6;4735:4;4728:20;4775:4;4769;4761:19;4857:4;4851;4841:21;4829:33;;5095:4;5089;5078:8;5072:15;5065:4;5055:8;5051:19;5044:5;5037;5030;5025:75;4994:8;4982:21;4902:216;4875:374;;5164:10;5158:4;5151:24;5230:4;5224;5217:18;4875:374;;4003:1262;;;;;:::o;4437:582:20:-;4581:12;4610:7;4605:408;;4633:19;4641:10;4633:7;:19::i;:::-;4605:408;;;4857:17;;:22;:49;;;;-1:-1:-1;;;;;;4883:18:20;;;:23;4857:49;4853:119;;;4950:6;4933:24;;-1:-1:-1;;;4933:24:20;;;;;;;;:::i;5559:487::-;5690:17;;:21;5686:354;;5887:10;5881:17;5943:15;5930:10;5926:2;5922:19;5915:44;5686:354;6010:19;;-1:-1:-1;;;6010:19:20;;;;;;;;;;;5686:354;5559:487;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::o;:::-;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;14:131:43:-;-1:-1:-1;;;;;89:31:43;;79:42;;69:70;;135:1;132;125:12;150:508;227:6;235;243;296:2;284:9;275:7;271:23;267:32;264:52;;;312:1;309;302:12;264:52;351:9;338:23;370:31;395:5;370:31;:::i;:::-;420:5;-1:-1:-1;477:2:43;462:18;;449:32;490:33;449:32;490:33;:::i;:::-;150:508;;542:7;;-1:-1:-1;;;622:2:43;607:18;;;;594:32;;150:508::o;663:367::-;726:8;736:6;790:3;783:4;775:6;771:17;767:27;757:55;;808:1;805;798:12;757:55;-1:-1:-1;831:20:43;;-1:-1:-1;;;;;863:30:43;;860:50;;;906:1;903;896:12;860:50;943:4;935:6;931:17;919:29;;1003:3;996:4;986:6;983:1;979:14;971:6;967:27;963:38;960:47;957:67;;;1020:1;1017;1010:12;957:67;663:367;;;;;:::o;1035:1130::-;1224:6;1232;1240;1248;1256;1264;1317:2;1305:9;1296:7;1292:23;1288:32;1285:52;;;1333:1;1330;1323:12;1285:52;1360:23;;-1:-1:-1;;;;;1395:30:43;;1392:50;;;1438:1;1435;1428:12;1392:50;1477:70;1539:7;1530:6;1519:9;1515:22;1477:70;:::i;:::-;1566:8;;-1:-1:-1;1451:96:43;-1:-1:-1;;1654:2:43;1639:18;;1626:32;-1:-1:-1;;;;;1670:32:43;;1667:52;;;1715:1;1712;1705:12;1667:52;1754:72;1818:7;1807:8;1796:9;1792:24;1754:72;:::i;:::-;1845:8;;-1:-1:-1;1728:98:43;-1:-1:-1;;1933:2:43;1918:18;;1905:32;-1:-1:-1;;;;;1949:32:43;;1946:52;;;1994:1;1991;1984:12;1946:52;2033:72;2097:7;2086:8;2075:9;2071:24;2033:72;:::i;:::-;1035:1130;;;;-1:-1:-1;1035:1130:43;;-1:-1:-1;1035:1130:43;;2124:8;;1035:1130;-1:-1:-1;;;1035:1130:43:o;2170:225::-;-1:-1:-1;;;;;2356:32:43;;;;2338:51;;2326:2;2311:18;;2170:225::o;2400:487::-;2477:6;2485;2493;2546:2;2534:9;2525:7;2521:23;2517:32;2514:52;;;2562:1;2559;2552:12;2514:52;2601:9;2588:23;2620:31;2645:5;2620:31;:::i;:::-;2670:5;2748:2;2733:18;;2720:32;;-1:-1:-1;2851:2:43;2836:18;;;2823:32;;2400:487;-1:-1:-1;;;2400:487:43:o;4386:388::-;4454:6;4462;4515:2;4503:9;4494:7;4490:23;4486:32;4483:52;;;4531:1;4528;4521:12;4483:52;4570:9;4557:23;4589:31;4614:5;4589:31;:::i;:::-;4639:5;-1:-1:-1;4696:2:43;4681:18;;4668:32;4709:33;4668:32;4709:33;:::i;:::-;4761:7;4751:17;;;4386:388;;;;;:::o;4779:127::-;4840:10;4835:3;4831:20;4828:1;4821:31;4871:4;4868:1;4861:15;4895:4;4892:1;4885:15;4911:1079;4988:6;4996;5049:2;5037:9;5028:7;5024:23;5020:32;5017:52;;;5065:1;5062;5055:12;5017:52;5104:9;5091:23;5123:31;5148:5;5123:31;:::i;:::-;5173:5;-1:-1:-1;5229:2:43;5214:18;;5201:32;-1:-1:-1;;;;;5245:30:43;;5242:50;;;5288:1;5285;5278:12;5242:50;5311:22;;5364:4;5356:13;;5352:27;-1:-1:-1;5342:55:43;;5393:1;5390;5383:12;5342:55;5420:16;;-1:-1:-1;;;;;5448:30:43;;5445:56;;;5481:18;;:::i;:::-;5530:2;5524:9;5622:2;5584:17;;-1:-1:-1;;5580:31:43;;;5613:2;5576:40;5572:54;5560:67;;-1:-1:-1;;;;;5642:34:43;;5678:22;;;5639:62;5636:88;;;5704:18;;:::i;:::-;5740:2;5733:22;5764;;;5805:15;;;5822:2;5801:24;5798:37;-1:-1:-1;5795:57:43;;;5848:1;5845;5838:12;5795:57;5904:6;5899:2;5895;5891:11;5886:2;5878:6;5874:15;5861:50;5957:1;5952:2;5943:6;5935;5931:19;5927:28;5920:39;5978:6;5968:16;;;;;4911:1079;;;;;:::o;5995:367::-;6063:6;6071;6124:2;6112:9;6103:7;6099:23;6095:32;6092:52;;;6140:1;6137;6130:12;6092:52;6179:9;6166:23;6198:31;6223:5;6198:31;:::i;:::-;6248:5;6326:2;6311:18;;;;6298:32;;-1:-1:-1;;;5995:367:43:o;6559:346::-;6627:6;6635;6688:2;6676:9;6667:7;6663:23;6659:32;6656:52;;;6704:1;6701;6694:12;6656:52;-1:-1:-1;;6749:23:43;;;6869:2;6854:18;;;6841:32;;-1:-1:-1;6559:346:43:o;6910:637::-;7100:2;7112:21;;;7182:13;;7085:18;;;7204:22;;;7052:4;;7283:15;;;7257:2;7242:18;;;7052:4;7326:195;7340:6;7337:1;7334:13;7326:195;;;7405:13;;-1:-1:-1;;;;;7401:39:43;7389:52;;7470:2;7496:15;;;;7461:12;;;;7437:1;7355:9;7326:195;;;-1:-1:-1;7538:3:43;;6910:637;-1:-1:-1;;;;;6910:637:43:o;7552:247::-;7611:6;7664:2;7652:9;7643:7;7639:23;7635:32;7632:52;;;7680:1;7677;7670:12;7632:52;7719:9;7706:23;7738:31;7763:5;7738:31;:::i;7804:180::-;7863:6;7916:2;7904:9;7895:7;7891:23;7887:32;7884:52;;;7932:1;7929;7922:12;7884:52;-1:-1:-1;7955:23:43;;7804:180;-1:-1:-1;7804:180:43:o;7989:768::-;8111:6;8119;8127;8135;8188:2;8176:9;8167:7;8163:23;8159:32;8156:52;;;8204:1;8201;8194:12;8156:52;8231:23;;-1:-1:-1;;;;;8266:30:43;;8263:50;;;8309:1;8306;8299:12;8263:50;8348:70;8410:7;8401:6;8390:9;8386:22;8348:70;:::i;:::-;8437:8;;-1:-1:-1;8322:96:43;-1:-1:-1;;8525:2:43;8510:18;;8497:32;-1:-1:-1;;;;;8541:32:43;;8538:52;;;8586:1;8583;8576:12;8538:52;8625:72;8689:7;8678:8;8667:9;8663:24;8625:72;:::i;:::-;7989:768;;;;-1:-1:-1;8716:8:43;-1:-1:-1;;;;7989:768:43:o;8762:274::-;-1:-1:-1;;;;;8954:32:43;;;;8936:51;;9018:2;9003:18;;8996:34;8924:2;8909:18;;8762:274::o;9223:572::-;9318:6;9326;9334;9387:2;9375:9;9366:7;9362:23;9358:32;9355:52;;;9403:1;9400;9393:12;9355:52;9442:9;9429:23;9461:31;9486:5;9461:31;:::i;:::-;9511:5;-1:-1:-1;9567:2:43;9552:18;;9539:32;-1:-1:-1;;;;;9583:30:43;;9580:50;;;9626:1;9623;9616:12;9580:50;9665:70;9727:7;9718:6;9707:9;9703:22;9665:70;:::i;:::-;9223:572;;9754:8;;-1:-1:-1;9639:96:43;;-1:-1:-1;;;;9223:572:43:o;9800:299::-;9852:3;9890:5;9884:12;9917:6;9912:3;9905:19;9973:6;9966:4;9959:5;9955:16;9948:4;9943:3;9939:14;9933:47;10025:1;10018:4;10009:6;10004:3;10000:16;9996:27;9989:38;10088:4;10081:2;10077:7;10072:2;10064:6;10060:15;10056:29;10051:3;10047:39;10043:50;10036:57;;;9800:299;;;;:::o;10104:614::-;10291:2;10273:21;;;10334:13;;-1:-1:-1;;;;;10330:39:43;;;10310:18;;;10303:67;10416:15;;;10410:22;10406:48;10401:2;10386:18;;;10379:76;;;;10501:15;;10495:22;-1:-1:-1;;;;;10491:47:43;10527:2;10471:18;;;10464:75;;;;10574:15;;10568:22;10628:4;10606:20;;;10599:34;-1:-1:-1;;10650:62:43;10357:3;10692:19;;10568:22;10650:62;:::i;:::-;10642:70;10104:614;-1:-1:-1;;;;10104:614:43:o;10723:230::-;10872:2;10861:9;10854:21;10835:4;10892:55;10943:2;10932:9;10928:18;10920:6;10892:55;:::i;11936:671::-;12040:6;12048;12056;12064;12117:2;12105:9;12096:7;12092:23;12088:32;12085:52;;;12133:1;12130;12123:12;12085:52;12160:23;;-1:-1:-1;;;;;12195:30:43;;12192:50;;;12238:1;12235;12228:12;12192:50;12277:70;12339:7;12330:6;12319:9;12315:22;12277:70;:::i;:::-;12366:8;;12251:96;;-1:-1:-1;12470:2:43;12455:18;;12442:32;;12571:2;12556:18;12543:32;;-1:-1:-1;11936:671:43;-1:-1:-1;;;;11936:671:43:o;12612:274::-;12786:25;;;-1:-1:-1;;;;;12847:32:43;12842:2;12827:18;;12820:60;12774:2;12759:18;;12612:274::o;12891:277::-;12958:6;13011:2;12999:9;12990:7;12986:23;12982:32;12979:52;;;13027:1;13024;13017:12;12979:52;13059:9;13053:16;13112:5;13105:13;13098:21;13091:5;13088:32;13078:60;;13134:1;13131;13124:12;13173:251;13243:6;13296:2;13284:9;13275:7;13271:23;13267:32;13264:52;;;13312:1;13309;13302:12;13264:52;13344:9;13338:16;13363:31;13388:5;13363:31;:::i;13429:127::-;13490:10;13485:3;13481:20;13478:1;13471:31;13521:4;13518:1;13511:15;13545:4;13542:1;13535:15;13561:329;13658:4;13716:11;13703:25;13810:3;13806:8;13795;13779:14;13775:29;13771:44;13751:18;13747:69;13737:97;;13830:1;13827;13820:12;13737:97;13851:33;;;;;13561:329;-1:-1:-1;;13561:329:43:o;13895:129::-;-1:-1:-1;;;;;13969:30:43;;13959:41;;13949:69;;14014:1;14011;14004:12;14029:245;14087:6;14140:2;14128:9;14119:7;14115:23;14111:32;14108:52;;;14156:1;14153;14146:12;14108:52;14195:9;14182:23;14214:30;14238:5;14214:30;:::i;14279:182::-;14382:11;;-1:-1:-1;;;;;;14378:42:43;-1:-1:-1;;;;;14422:31:43;;;;14375:79;;;;14362:93;;14279:182::o;14466:380::-;14545:1;14541:12;;;;14588;;;14609:61;;14663:4;14655:6;14651:17;14641:27;;14609:61;14716:2;14708:6;14705:14;14685:18;14682:38;14679:161;;14762:10;14757:3;14753:20;14750:1;14743:31;14797:4;14794:1;14787:15;14825:4;14822:1;14815:15;14679:161;;14466:380;;;:::o;14976:517::-;15077:2;15072:3;15069:11;15066:421;;;15113:5;15110:1;15103:16;15157:4;15154:1;15144:18;15227:2;15215:10;15211:19;15208:1;15204:27;15198:4;15194:38;15263:4;15251:10;15248:20;15245:47;;;-1:-1:-1;15286:4:43;15245:47;15341:2;15336:3;15332:12;15329:1;15325:20;15319:4;15315:31;15305:41;;15396:81;15414:2;15407:5;15404:13;15396:81;;;15473:1;15459:16;;15440:1;15429:13;15396:81;;15669:1178;-1:-1:-1;;;;;15767:27:43;;15764:53;;;15797:18;;:::i;:::-;15826:93;15915:3;15875:38;15907:4;15901:11;15875:38;:::i;:::-;15869:4;15826:93;:::i;:::-;15945:1;15970:2;15965:3;15962:11;15987:1;15982:607;;;;16633:1;16650:3;16647:93;;;-1:-1:-1;16706:19:43;;;16693:33;16647:93;-1:-1:-1;;15626:1:43;15622:11;;;15618:24;15614:29;15604:40;15650:1;15646:11;;;15601:57;16753:78;;15955:886;;15982:607;14923:1;14916:14;;;14960:4;14947:18;;-1:-1:-1;;16018:17:43;;;16132:229;16146:7;16143:1;16140:14;16132:229;;;16235:19;;;16222:33;16207:49;;16342:4;16327:20;;;;16295:1;16283:14;;;;16162:12;16132:229;;;16136:3;16389;16380:7;16377:16;16374:159;;;16513:1;16509:6;16503:3;16497;16494:1;16490:11;16486:21;16482:34;16478:39;16465:9;16460:3;16456:19;16443:33;16439:79;16431:6;16424:95;16374:159;;;16576:1;16570:3;16567:1;16563:11;16559:19;16553:4;16546:33;15955:886;;15669:1178;;;:::o;16852:1262::-;17026:5;17013:19;17041:33;17066:7;17041:33;:::i;:::-;17083:61;17136:7;17130:4;17083:61;:::i;:::-;;17181:1;17175:4;17171:12;17231:2;17224:5;17220:14;17207:28;17244:33;17269:7;17244:33;:::i;:::-;17286:67;17345:7;17333:10;17286:67;:::i;:::-;;17401:2;17394:5;17390:14;17377:28;17414:32;17438:7;17414:32;:::i;:::-;17465:17;;-1:-1:-1;;;;;17513:28:43;17578:3;17547:17;;;;-1:-1:-1;;;;;;17543:48:43;17510:82;17491:102;;17652:2;17641:14;;17628:28;17707:14;17703:26;;;-1:-1:-1;;17699:40:43;17675:65;;17665:93;;17754:1;17751;17744:12;17665:93;17779:30;;17832:18;;-1:-1:-1;;;;;17862:30:43;;17859:50;;;17905:1;17902;17895:12;17859:50;17942:2;17936:4;17932:13;17918:27;;17989:6;17973:14;17969:27;17961:6;17957:40;17954:60;;;18010:1;18007;18000:12;17954:60;18023:85;18101:6;18093;18089:1;18083:4;18079:12;18023:85;:::i;18119:505::-;18219:6;18214:3;18207:19;18251:4;18246:3;18242:14;18235:21;;18189:3;18279:5;18302:1;18312:287;18326:6;18323:1;18320:13;18312:287;;;18403:6;18390:20;18423:33;18448:7;18423:33;:::i;:::-;-1:-1:-1;;;;;18481:33:43;18469:46;;18544:4;18535:14;;;;18572:17;;;;;18511:1;18341:9;18312:287;;;-1:-1:-1;18615:3:43;;18119:505;-1:-1:-1;;;;18119:505:43:o;18629:311::-;18717:19;;;18699:3;-1:-1:-1;;;;;18748:31:43;;18745:51;;;18792:1;18789;18782:12;18745:51;18828:6;18825:1;18821:14;18880:8;18873:5;18866:4;18861:3;18857:14;18844:45;18909:18;;;;18929:4;18905:29;;18629:311;-1:-1:-1;;;18629:311:43:o;18945:266::-;19033:6;19028:3;19021:19;19085:6;19078:5;19071:4;19066:3;19062:14;19049:43;-1:-1:-1;19137:1:43;19112:16;;;19130:4;19108:27;;;19101:38;;;;19193:2;19172:15;;;-1:-1:-1;;19168:29:43;19159:39;;;19155:50;;18945:266::o;19216:2484::-;19641:2;19630:9;19623:21;19604:4;19667:73;19736:2;19725:9;19721:18;19713:6;19705;19667:73;:::i;:::-;19788:9;19780:6;19776:22;19771:2;19760:9;19756:18;19749:50;19822:61;19876:6;19868;19860;19822:61;:::i;:::-;19919:22;;;19914:2;19899:18;;19892:50;19977:22;;;19808:75;-1:-1:-1;20027:2:43;20015:15;;;;20073:1;20069:14;;;20057:27;;20053:36;20112:6;20136:1;20164:14;20160:27;;;-1:-1:-1;;20156:42:43;20207:1464;20221:6;20218:1;20215:13;20207:1464;;;20286:19;;;-1:-1:-1;;20282:33:43;20270:46;;20355:20;;20398:27;;;20388:55;;20439:1;20436;20429:12;20388:55;20469:31;;20528:19;;20560:33;20528:19;20560:33;:::i;:::-;-1:-1:-1;;;;;20621:33:43;20606:49;;20707:2;20696:14;;20683:28;20724:33;20683:28;20724:33;:::i;:::-;-1:-1:-1;;;;;20794:33:43;20789:2;20777:15;;20770:58;20880:2;20869:14;;20856:28;20897:32;20856:28;20897:32;:::i;:::-;-1:-1:-1;;;;;20966:32:43;20961:2;20949:15;;20942:57;20987:2;21053:14;;21040:28;21125:14;21121:26;;;-1:-1:-1;;21117:40:43;21091:67;;21081:95;;21172:1;21169;21162:12;21081:95;21204:32;21325:2;21312:16;;;21263:21;-1:-1:-1;;;;;21344:30:43;;21341:50;;;21387:1;21384;21377:12;21341:50;21440:6;21424:14;21420:27;21411:7;21407:41;21404:61;;;21461:1;21458;21451:12;21404:61;21502:4;21497:2;21489:6;21485:15;21478:29;21530:61;21585:4;21577:6;21573:17;21565:6;21556:7;21530:61;:::i;:::-;21520:71;;;;21626:2;21618:6;21614:15;21604:25;;21658:2;21653:3;21649:12;21642:19;;20243:1;20240;20236:9;20231:14;;20207:1464;;;-1:-1:-1;21688:6:43;;19216:2484;-1:-1:-1;;;;;;;;;;;;19216:2484:43:o;21705:230::-;21775:6;21828:2;21816:9;21807:7;21803:23;21799:32;21796:52;;;21844:1;21841;21834:12;21796:52;-1:-1:-1;21889:16:43;;21705:230;-1:-1:-1;21705:230:43:o;21940:738::-;21989:3;22030:5;22024:12;22059:36;22085:9;22059:36;:::i;:::-;22104:19;;;22154:1;22139:17;;22165:150;;;;22329:1;22324:348;;;;22132:540;;22165:150;22228:3;22224:8;22213:9;22209:24;22202:4;22197:3;22193:14;22186:48;22300:4;22288:6;22281:14;22274:22;22271:1;22267:30;22262:3;22258:40;22254:51;22247:58;;22165:150;;22324:348;22355:5;22352:1;22345:16;22402:4;22399:1;22389:18;22429:1;22443:177;22457:6;22454:1;22451:13;22443:177;;;22554:7;22548:14;22541:4;22537:1;22532:3;22528:11;22524:22;22517:46;22604:1;22595:7;22591:15;22580:26;;22479:4;22476:1;22472:12;22467:17;;22443:177;;;22644:11;;22657:4;22640:22;;-1:-1:-1;;22132:540:43;;;21940:738;;;;:::o;22683:584::-;-1:-1:-1;;;;;22937:32:43;;;22919:51;;23001:2;22986:18;;22979:34;;;23049:32;;23044:2;23029:18;;23022:60;-1:-1:-1;;;;;23118:31:43;;23138:2;23098:18;;23091:59;22957:3;23181;23166:19;;23159:32;;;-1:-1:-1;;23208:53:43;;23241:19;;23233:6;23208:53;:::i;:::-;23200:61;22683:584;-1:-1:-1;;;;;;;22683:584:43:o;23696:127::-;23757:10;23752:3;23748:20;23745:1;23738:31;23788:4;23785:1;23778:15;23812:4;23809:1;23802:15;23828:125;23893:9;;;23914:10;;;23911:36;;;23927:18;;:::i;23958:128::-;24025:9;;;24046:11;;;24043:37;;;24060:18;;:::i;24091:300::-;-1:-1:-1;;;;;24283:32:43;;;24265:51;;24352:32;;24347:2;24332:18;;24325:60;24253:2;24238:18;;24091:300::o;24396:288::-;24585:2;24574:9;24567:21;24548:4;24605:73;24674:2;24663:9;24659:18;24651:6;24643;24605:73;:::i;25279:364::-;25358:6;25366;25419:2;25407:9;25398:7;25394:23;25390:32;25387:52;;;25435:1;25432;25425:12;25387:52;25467:9;25461:16;25486:31;25511:5;25486:31;:::i;:::-;25607:2;25592:18;;;;25586:25;25536:5;;25586:25;;-1:-1:-1;;;25279:364:43:o;25901:519::-;26178:2;26167:9;26160:21;26141:4;26204:73;26273:2;26262:9;26258:18;26250:6;26242;26204:73;:::i;:::-;26325:9;26317:6;26313:22;26308:2;26297:9;26293:18;26286:50;26353:61;26407:6;26399;26391;26353:61;:::i;26425:371::-;-1:-1:-1;;;;;26645:32:43;;;26627:51;;26714:32;;;;26709:2;26694:18;;26687:60;26778:2;26763:18;;26756:34;;;;26615:2;26600:18;;26425:371::o;27725:211::-;27766:3;27804:5;27798:12;27848:6;27841:4;27834:5;27830:16;27825:3;27819:36;27910:1;27874:16;;27899:13;;;-1:-1:-1;27874:16:43;;27725:211;-1:-1:-1;27725:211:43:o;27941:261::-;28116:3;28141:55;28166:29;28191:3;28183:6;28166:29;:::i;:::-;28158:6;28141:55;:::i;28207:189::-;28336:3;28361:29;28386:3;28378:6;28361:29;:::i","linkReferences":{},"cborAuxdata":{},"immutableReferences":{"273":[{"start":12969,"length":32},{"start":13010,"length":32},{"start":13409,"length":32}]},"transformations":[{"id":"273","type":"replace","offset":12969,"reason":"immutable"},{"id":"273","type":"replace","offset":13010,"reason":"immutable"},{"id":"273","type":"replace","offset":13409,"reason":"immutable"}],"transformationValues":{"immutables":{"273":"0x0000000000000000000000000681a8bb55f509c5952063163a1dda710084b80c"}}},"deployment":{"transactionHash":"0xcc887aa5e783ee52196e408e0f71695f4d7b62bf83e3ae3c32f3f56975c713ce","blockNumber":"25977048","transactionIndex":"35","deployer":"0x40ac193b6fd9639ff48441943f1dB40657aBD006"},"sources":{"src/top-up/TopUpFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { IERC4626 } from \"@openzeppelin/contracts/interfaces/IERC4626.sol\";\nimport { IERC20, SafeERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { EnumerableSetLib } from \"solady/utils/EnumerableSetLib.sol\";\n\nimport { BeaconFactory, UpgradeableBeacon } from \"../beacon-factory/BeaconFactory.sol\";\nimport { ITopUpFactory } from \"../interfaces/ITopUpFactory.sol\";\nimport { ITradingSafeFactory } from \"../interfaces/ITradingSafeFactory.sol\";\nimport { DelegateCallLib } from \"../libraries/DelegateCallLib.sol\";\nimport { TopUp, Constants } from \"./TopUp.sol\";\nimport { BridgeAdapterBase } from \"./bridge/BridgeAdapterBase.sol\";\n\n/**\n * @title TopUpFactory\n * @notice Factory contract for deploying TopUp instances using the beacon proxy pattern\n * @dev Extends BeaconFactory to provide Beacon Proxy deployment functionality\n * @author ether.fi\n */\ncontract TopUpFactory is BeaconFactory, Constants, ITopUpFactory {\n    using EnumerableSetLib for EnumerableSetLib.AddressSet;\n    using SafeERC20 for IERC20;\n\n    /**\n     * @dev Configuration parameters for supported tokens and their bridge settings\n     * @param bridgeAdapter Address of the bridge adapter contract for this token\n     * @param recipientOnDestChain Address that will receive tokens on the destination chain\n     * @param maxSlippageInBps Maximum allowed slippage in basis points (1 bps = 0.01%)\n     * @param additionalData Additional data specific to the bridge adapter\n     */\n    struct TokenConfig {\n        address bridgeAdapter;\n        address recipientOnDestChain;\n        uint96 maxSlippageInBps;\n        bytes additionalData;\n    }\n\n    /// @custom:storage-location erc7201:etherfi.storage.TopUpFactory\n    struct TopUpFactoryStorage {\n        /// @notice Set containing addresses of all deployed TopUp instances\n        EnumerableSetLib.AddressSet deployedAddresses;\n        /// @notice Mapping of token addresses to their bridge configuration (deprecated, use tokenChainConfig)\n        mapping(address token => TokenConfig config) tokenConfig;\n        /// @notice Address of the wallet used for emergency fund recovery\n        address recoveryWallet;\n        /// @notice Mapping of token + destination chain ID to bridge configuration\n        mapping(address token => mapping(uint256 chainId => TokenConfig config)) tokenChainConfig;\n        /// @notice Set of tokens that have at least one chain configured\n        EnumerableSetLib.AddressSet supportedTokens;\n        /// @notice Address of the destination-chain `TradingSafeFactory`. Used by\n        ///         `redirectDestinationFor` to derive each TopUp's destination address.\n        address tradingSafeFactory;\n        /// @notice Per-token ERC-4626 vault a redirect must deposit into instead of transferring\n        ///         the token itself. Set only for raw Backed xStocks whose trading-catalog form\n        ///         is the wrapper; zero (the default, and every other token) means transfer as-is.\n        mapping(address token => address wrapper) redirectWrapper;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"etherfi.storage.TopUpFactory\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant TopUpFactoryStorageLocation = 0xe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b100;\n\n    /// @notice Max slippage allowed for bridging\n    uint96 public constant MAX_ALLOWED_SLIPPAGE = 200; // 2%\n\n    /// @notice Role identifier for accounts authorized to bridge tokens\n    bytes32 public constant TOPUP_FACTORY_BRIDGER_ROLE = keccak256(\"TOPUP_FACTORY_BRIDGER_ROLE\");\n\n    /// @notice Role allowed to drive `redirectToTradingSafe`\n    bytes32 public constant TOPUP_FACTORY_REDIRECT_ROLE = keccak256(\"TOPUP_FACTORY_REDIRECT_ROLE\");\n\n    /// @notice Emitted when tokens are bridged to the destination chain\n    /// @param token The address of the token being bridged\n    /// @param amount The amount of tokens being bridged\n    event Bridge(address indexed token, uint256 amount, uint256 indexed destChainId);\n\n    /// @notice Emitted when funds are recovered to the recovery wallet\n    /// @param recoveryWallet The address receiving the recovered funds\n    /// @param token The token being recovered\n    /// @param amount The amount of tokens recovered\n    event Recovery(address recoveryWallet, address indexed token, uint256 amount);\n\n    /// @notice Emitted when the recovery wallet address is updated\n    /// @param oldRecoveryWallet The previous recovery wallet address\n    /// @param newRecoveryWallet The new recovery wallet address\n    event RecoveryWalletSet(address oldRecoveryWallet, address newRecoveryWallet);\n\n    /// @notice Emitted when the tokens are configured\n    /// @param tokens Array of token addresses\n    /// @param config Array of TokenConfig struct\n    event TokenConfigSet(address[] tokens, uint256[] chainIds, TokenConfig[] config);\n\n    /// @notice Emitted when tokens are retired from the topup lane — their route for the paired\n    ///         chain cleared and the token dropped from the supported set.\n    /// @param tokens Tokens retired.\n    /// @param chainIds Per-entry destination chain whose route was cleared.\n    event TokenConfigRemoved(address[] tokens, uint256[] chainIds);\n\n    /// @notice Emitted when the destination-chain TradingSafeFactory address is updated.\n    /// @param oldFactory Previous address (zero on first set).\n    /// @param newFactory New address.\n    event TradingSafeFactorySet(address oldFactory, address newFactory);\n\n    /// @notice Emitted on a successful `redirectToTradingSafe` invocation. Single canonical\n    ///         event for every TopUp → TradingSafe redirect on this chain.\n    /// @param topUp The TopUp instance that the funds were redirected from.\n    /// @param tradingSafe The destination TradingSafe that received the funds.\n    /// @param token ERC20 redirected.\n    /// @param amount Amount transferred.\n    event RedirectFunds(address indexed topUp, address indexed tradingSafe, address indexed token, uint256 amount);\n\n    /// @notice Emitted when a redirect wrapped a raw stock into its ERC-4626 wrapper on the way\n    ///         out. Names the conversion the accompanying `RedirectFunds` can't convey: that one\n    ///         reports the wrapper and the shares the TradingSafe received, this one what the\n    ///         TopUp actually gave up.\n    /// @param topUp The TopUp the underlying was pulled from.\n    /// @param wrapper The ERC-4626 vault — the trading-supported token the TradingSafe receives.\n    /// @param underlying The raw token that was wrapped.\n    /// @param assets Amount of `underlying` deposited.\n    /// @param shares Amount of `wrapper` credited to the TradingSafe.\n    event WrapOnRedirect(address indexed topUp, address indexed wrapper, address indexed underlying, uint256 assets, uint256 shares);\n\n    /// @notice Emitted when a token's redirect wrapper is configured or cleared.\n    /// @param token The token being redirected.\n    /// @param oldWrapper Previous vault (zero when the token used to travel as-is).\n    /// @param newWrapper New vault, or zero to go back to a plain transfer.\n    event RedirectWrapperSet(address indexed token, address oldWrapper, address newWrapper);\n\n    /// @notice Emitted for each token `wrapStocks` converted in place at a TopUp. Distinct from\n    ///         `WrapOnRedirect`: nothing left the TopUp here, so there is no accompanying\n    ///         `RedirectFunds` — the TopUp simply holds the wrapper instead of the raw stock.\n    /// @param topUp The TopUp whose raw stock was wrapped, and the receiver of the shares.\n    /// @param wrapper The ERC-4626 vault the stock was deposited into.\n    /// @param underlying The raw stock that was wrapped.\n    /// @param assets Amount of `underlying` deposited — the TopUp's entire balance of it.\n    /// @param shares Amount of `wrapper` the TopUp was credited.\n    event WrapStock(address indexed topUp, address indexed wrapper, address indexed underlying, uint256 assets, uint256 shares);\n\n    /// @notice Error thrown when trying to pull funds from an address not registered as deployedAddresses\n    error InvalidTopUpAddress();\n    /// @notice Error thrown when zero address is provided for a token\n    error TokenCannotBeZeroAddress();\n    /// @notice Error thrown when attempting to bridge a token without configuration\n    error TokenConfigNotSet();\n    /// @notice Error thrown when attempting to bridge with zero amount\n    error AmountCannotBeZero();\n    /// @notice Error thrown when attempting to bridge with insufficient balance\n    error InsufficientBalance();\n    /// @notice Error thrown when recovery wallet is not set\n    error RecoveryWalletNotSet();\n    /// @notice Error thrown when attempting to set zero address as recovery wallet\n    error RecoveryWalletCannotBeZeroAddress();\n    /// @notice Error thrown when attempting to recover token which is a supported asset\n    error OnlyUnsupportedTokens();\n    /// @notice Reverts when a sweep entry point is handed a token this factory has no topup\n    ///         configuration for — the redirect path owns those, not `processTopUp`.\n    error OnlySupportedTokens();\n    /// @notice Error thrown when redirecting a token that isn't supported for trading.\n    error TokenNotTradingSupported();\n    /// @notice Error thrown when `redirectToTradingSafe` is called by an account lacking the redirect role.\n    error OnlyRedirectRole();\n    /// @notice Error thrown when the resolved destination is not a deployed, registered TradingSafe.\n    error TradingSafeNotDeployed();\n    /// @notice Error thrown when array lengths mismatch\n    error ArrayLengthMismatch();\n    /// @notice Error thrown when the start index is invalid\n    error InvalidStartIndex();\n    /// @notice Error thrown when the token config passed is invalid\n    error InvalidConfig();\n    /// @notice Error thrown when insufficient fee is passed for bridging\n    error InsufficientFeePassed();\n    /// @notice Error thrown when ETH transfer fails\n    error NativeTransferFailed();\n    /// @notice Error thrown when chain ID is zero\n    error ChainIdCannotBeZero();\n    /// @notice Reverts when `setTradingSafeFactory` is called with the zero address.\n    error TradingSafeFactoryCannotBeZeroAddress();\n    /// @notice Reverts when `redirectDestinationFor` is called before\n    ///         `setTradingSafeFactory` has been configured.\n    error TradingSafeFactoryNotSet();\n    /// @notice Reverts when `setRedirectWrappers` is given a vault that is not an ERC-4626 over\n    ///         the very token it is being registered for.\n    error InvalidRedirectWrapper();\n    /// @notice Reverts when the wrap leg credited the TradingSafe no shares at all.\n    error WrapMintedNothing();\n    /// @notice Reverts when `wrapStocks` is asked to wrap a token with no registered wrapper —\n    ///         there is nothing to deposit into, and silently skipping would hide the missing\n    ///         `setRedirectWrappers` entry.\n    error RedirectWrapperNotSet();\n\n    /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        _disableInitializers();\n    }\n\n    /**\n     * @notice Initializes the TopUpFactory contract\n     * @dev Sets up the role registry, admin, and beacon implementation\n     * @param _roleRegistry Address of the role registry contract\n     * @param _topUpImpl Address of the topUp implementation contract\n     */\n    function initialize(address _roleRegistry, address _topUpImpl) external initializer {\n        __BeaconFactory_initialize(_roleRegistry, _topUpImpl);\n    }\n\n    /**\n     * @notice Deploys a new TopUp contract instance\n     * @param salt The salt value used for deterministic deployment\n     */\n    function deployTopUpContract(bytes32 salt) external whenNotPaused {\n        bytes memory initData = abi.encodeWithSelector(TopUp.initialize.selector, address(this));\n        address deployed = _deployBeacon(salt, initData);\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        $.deployedAddresses.add(deployed);\n    }\n\n    /**\n     * @notice Processes specified tokens from a range of deployed topUp contracts\n     * @dev Iterates through deployed topUp contracts starting at index 'start' and calls processTopUp on each\n     * @param tokens Array of token addresses to process. Every entry must be topup-supported\n     *               (or the native-ETH sentinel); see `_validateSweepTokens`.\n     * @param start Starting index in the deployedAddresses array\n     * @param n Number of topUp contracts to process\n     * @custom:throws OnlySupportedTokens If any token has no topup configuration on this factory\n     * @custom:throws If start + n exceeds the number of deployed topUp contracts\n     * @custom:throws If any topUp's processTopUp call fails\n     */\n    function processTopUp(address[] calldata tokens, uint256 start, uint256 n) external {\n        _validateSweepTokens(tokens);\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        uint256 length = $.deployedAddresses.length();\n        if (start >= length) revert InvalidStartIndex();\n        if (start + n > length) n = length - start;\n\n        for (uint256 i = 0; i < n;) {\n            TopUp(payable($.deployedAddresses.at(start + i))).processTopUp(tokens);\n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    /**\n     * @notice Processes specified tokens from a given topUp contract\n     * @dev Verifies the topUp contract is valid before attempting to pull funds\n     * @param tokens Array of token addresses to process. Every entry must be topup-supported\n     *               (or the native-ETH sentinel); see `_validateSweepTokens`.\n     * @param topUpContracts Array of addresses of the topUp contracts to process\n     * @custom:throws OnlySupportedTokens If any token has no topup configuration on this factory\n     * @custom:throws InvalidTopUpAddress if the TopUp address is not a deployed TopUp contract\n     * @custom:throws If the TopUp contracts's processTopUp call fails\n     */\n    function processTopUpFromContracts(address[] calldata tokens, address[] calldata topUpContracts) external {\n        _validateSweepTokens(tokens);\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 addrLength = topUpContracts.length;\n\n        for (uint256 i = 0; i < addrLength;) {\n            if (!$.deployedAddresses.contains(topUpContracts[i])) revert InvalidTopUpAddress();\n            TopUp(payable(topUpContracts[i])).processTopUp(tokens);\n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    /**\n     * @dev Shared guard for both sweep entry points: a sweep may only name tokens this factory\n     *      actually bridges. Both entry points are deliberately permissionless — anyone may pay\n     *      the gas to move a user's bridging asset along its intended path — but without this\n     *      check that openness extends to tokens the sweep was never meant to touch.\n     *\n     *      A token with no topup configuration reaches a TopUp address only by mistake, and the\n     *      redirect path (`redirectToTradingSafe`) owns getting it to the user's TradingSafe.\n     *      Naming one here pulls it into this factory instead, where the redirect can no longer\n     *      see it: the pending `redirectToTradingSafe` reverts on the drained balance, and because\n     *      the batch variant is all-or-nothing one griefed entry fails the whole batch. What is\n     *      left is a multisig-gated `recoverFunds` per incident to get the user made\n     *      whole off-chain. The range variant walks every deployed TopUp, so one transaction could\n     *      do this to every user holding a misrouted stock at once — cheap for the caller, who\n     *      gains nothing by it, and expensive for us.\n     *\n     *      Validated against the token list once rather than per TopUp: the list is the same for\n     *      every contract in the sweep, so an n-contract range pays for the check once.\n     *\n     *      The native-ETH sentinel is allowed without a configuration of its own. `TopUp`\n     *      converts it to WETH before transferring, so what arrives here is the configured WETH,\n     *      and the sentinel names no ERC20 a redirect could ever be configured for.\n     * @param tokens Token list handed to a sweep entry point.\n     * @custom:throws OnlySupportedTokens If any entry is neither topup-supported nor the ETH sentinel.\n     */\n    function _validateSweepTokens(address[] calldata tokens) internal view {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 len = tokens.length;\n\n        for (uint256 i = 0; i < len;) {\n            if (tokens[i] != ETH && !$.supportedTokens.contains(tokens[i])) revert OnlySupportedTokens();\n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    /**\n     * @notice Sets configuration parameters for multiple tokens\n     * @dev Allows admin to configure bridge settings for multiple tokens in a single transaction\n     * @param tokens Array of token addresses to configure\n     * @param configs Array of TokenConfig structs containing bridge settings for each token\n     * @custom:throws ArrayLengthMismatch if tokens and configs arrays have different lengths\n     * @custom:throws TokenCannotBeZeroAddress if any token address is zero\n     * @custom:throws InvalidConfig if any config has invalid parameters:\n     *   - bridgeAdapter is zero address\n     *   - recipientOnDestChain is zero address\n     *   - maxSlippageInBps exceeds MAX_ALLOWED_SLIPPAGE\n     * @custom:emits TokenConfigSet when configs are updated\n     */\n    function setTokenConfig(address[] calldata tokens, uint256[] calldata chainIds, TokenConfig[] calldata configs) external onlyAdminTimelock {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 len = tokens.length;\n        if (len != configs.length || len != chainIds.length) revert ArrayLengthMismatch();\n\n        for (uint256 i = 0; i < len;) {\n            if (tokens[i] == address(0)) revert TokenCannotBeZeroAddress();\n            if (chainIds[i] == 0) revert ChainIdCannotBeZero();\n            if (configs[i].bridgeAdapter == address(0) || configs[i].recipientOnDestChain == address(0) || configs[i].maxSlippageInBps > MAX_ALLOWED_SLIPPAGE) revert InvalidConfig();\n\n            $.tokenChainConfig[tokens[i]][chainIds[i]] = configs[i];\n            $.supportedTokens.add(tokens[i]);\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit TokenConfigSet(tokens, chainIds, configs);\n    }\n\n    /**\n     * @notice Takes each `tokens[i]` off the topup lane for `chainIds[i]`: clears its bridge\n     *         configuration for that destination and drops it from the supported set.\n     * @dev Only callable by addresses with ADMIN_TIMELOCK_ROLE\n     *      it only ever adds to `supportedTokens`, and rejects a zeroed config, so before this\n     *      there was no way to retire an asset from the lane at all.\n     *\n     *      Both halves matter and neither is sufficient alone. `bridge` gates on\n     *      `tokenChainConfig[token][destChainId].bridgeAdapter`, never on the supported set, so\n     *      leaving the config in place would keep the route open to the bridger role; while\n     *      `processTopUp`, `recoverFunds`, the redirects and `wrapStocks` all gate on the set, so\n     *      leaving the token in it would keep sweeping the asset the config no longer routes.\n     *\n     *      A token leaves the supported set as soon as one of its routes is removed, because the\n     *      set has no per-chain granularity and the chains a token is configured for are not\n     *      enumerable on-chain. A token with routes on several destinations must therefore have\n     *      all of them passed in — otherwise the leftover routes stay bridgeable while sweeping\n     *      stops, which is a half-retired asset. Removing a route that was never configured\n     *      reverts rather than passing silently, so a mistyped chain id can't read as a closed\n     *      route.\n     * @param tokens Tokens to retire.\n     * @param chainIds Per-entry destination chain whose route is being cleared.\n     * @custom:throws ArrayLengthMismatch If the two arrays don't agree on length.\n     * @custom:throws TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.\n     * @custom:throws ChainIdCannotBeZero If any `chainIds[i]` is zero.\n     * @custom:throws TokenConfigNotSet If any `(tokens[i], chainIds[i])` has no configured route.\n     * @custom:emits TokenConfigRemoved\n     */\n    function removeTokenConfig(address[] calldata tokens, uint256[] calldata chainIds) external onlyAdminTimelock {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 len = tokens.length;\n        if (len != chainIds.length) revert ArrayLengthMismatch();\n\n        for (uint256 i = 0; i < len;) {\n            address token = tokens[i];\n            if (token == address(0)) revert TokenCannotBeZeroAddress();\n            if (chainIds[i] == 0) revert ChainIdCannotBeZero();\n            if ($.tokenChainConfig[token][chainIds[i]].bridgeAdapter == address(0)) revert TokenConfigNotSet();\n\n            delete $.tokenChainConfig[token][chainIds[i]];\n            $.supportedTokens.remove(token);\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit TokenConfigRemoved(tokens, chainIds);\n    }\n\n    /**\n     * @notice Bridges tokens to the destination chain using the configured bridge adapter\n     * @dev Uses delegate call to execute the bridge operation through the appropriate adapter\n     * @param token The address of the token to bridge\n     * @custom:throws TokenCannotBeZeroAddress if token address is zero\n     * @custom:throws TokenConfigNotSet if bridge configuration is not set for the token\n     * @custom:throws AmountCannotBeZero if amount passed is zero\n     * @custom:throws InsufficientBalance if contract has insufficient balance of the specified token\n     */\n    function bridge(address token, uint256 amount, uint256 destChainId) external payable whenNotPaused onlyRole(TOPUP_FACTORY_BRIDGER_ROLE) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (token == address(0)) revert TokenCannotBeZeroAddress();\n        if (destChainId == 0) revert ChainIdCannotBeZero();\n        if (amount == 0) revert AmountCannotBeZero();\n\n        TokenConfig storage config = $.tokenChainConfig[token][destChainId];\n        if (config.bridgeAdapter == address(0)) revert TokenConfigNotSet();\n\n        uint256 balance = token == ETH ? address(this).balance : IERC20(token).balanceOf(address(this));\n        if (balance < amount) revert InsufficientBalance();\n\n        (, uint256 bridgeFee) = getBridgeFee(token, amount, destChainId);\n        if (bridgeFee > msg.value) revert InsufficientFeePassed();\n\n        DelegateCallLib.delegateCall(config.bridgeAdapter, abi.encodeWithSelector(BridgeAdapterBase.bridge.selector, token, amount, config.recipientOnDestChain, config.maxSlippageInBps, config.additionalData));\n\n        emit Bridge(token, amount, destChainId);\n    }\n\n    /**\n     * @notice Recovers ERC20 tokens to the designated recovery wallet\n     * @dev Only callable by admin role\n     * @param token The address of the token to recover\n     * @param amount The amount of tokens to recover\n     * @custom:throws OnlyAdmin if caller doesn't have admin role\n     * @custom:throws TokenCannotBeZeroAddress if token address is zero\n     * @custom:throws OnlyUnsupportedTokens if token is a supported bridge asset\n     * @custom:throws RecoveryWalletNotSet if recovery wallet is not configured\n     */\n    function recoverFunds(address token, uint256 amount) external nonReentrant onlyAdmin {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (token == address(0)) revert TokenCannotBeZeroAddress();\n        if ($.supportedTokens.contains(token)) revert OnlyUnsupportedTokens();\n        if ($.recoveryWallet == address(0)) revert RecoveryWalletNotSet();\n\n        if (token == ETH) {\n            (bool success, ) = payable($.recoveryWallet).call{value: amount}(\"\");\n            if (!success) revert NativeTransferFailed();\n        } else IERC20(token).safeTransfer($.recoveryWallet, amount);\n\n        emit Recovery($.recoveryWallet, token, amount);\n    }\n\n    /**\n     * @notice Sets the recovery wallet address for emergency fund recovery\n     * @dev Only callable by admin role\n     * @param _recoveryWallet The new recovery wallet address\n     * @custom:throws OnlyAdminTimelock if the caller does not have ADMIN_TIMELOCK_ROLE\n     * @custom:throws RecoveryWalletCannotBeZeroAddress if provided address is zero\n     */\n    function setRecoveryWallet(address _recoveryWallet) external onlyAdminTimelock {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (_recoveryWallet == address(0)) revert RecoveryWalletCannotBeZeroAddress();\n        emit RecoveryWalletSet($.recoveryWallet, _recoveryWallet);\n        $.recoveryWallet = _recoveryWallet;\n    }\n\n    /**\n     * @notice Sets the destination-chain `TradingSafeFactory` address used by every TopUp\n     *         instance when computing the redirect destination.\n     * @dev Routes user-fund redirects, so it is gated like an upgrade: only the RoleRegistry\n     *      owner (the upgrade timelock) may call it. Read by `TopUp.redirectToTradingSafe` via the `tradingSafeFactory()`\n     *      view below.\n     * @param _tradingSafeFactory Address of the destination-chain TradingSafeFactory.\n     * @custom:throws TradingSafeFactoryCannotBeZeroAddress If `_tradingSafeFactory == address(0)`.\n     */\n    function setTradingSafeFactory(address _tradingSafeFactory) external onlyRoleRegistryOwner {\n        if (_tradingSafeFactory == address(0)) revert TradingSafeFactoryCannotBeZeroAddress();\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        emit TradingSafeFactorySet($.tradingSafeFactory, _tradingSafeFactory);\n        $.tradingSafeFactory = _tradingSafeFactory;\n    }\n\n    /**\n     * @notice Returns the destination-chain `TradingSafeFactory` address.\n     */\n    function tradingSafeFactory() external view returns (address) {\n        return _getTopUpFactoryStorage().tradingSafeFactory;\n    }\n\n    /**\n     * @notice Registers, for each `tokens[i]`, the ERC-4626 vault a redirect must deposit it\n     *         into instead of transferring it — or clears that with the zero address.\n     * @dev Only callable by addresses with ADMIN_TIMELOCK_ROLE\n     *      tokenized equities a TradingSafe can hold are `WrappedBackedToken` vaults (wTSLAx),\n     *      while what a user sends to a TopUp address is the raw Backed xStock underneath\n     *      (TSLAx), which is trading-supported in no form of its own and would otherwise be\n     *      stranded at the TopUp. Registering TSLAx → wTSLAx makes the existing redirect wrap it\n     *      on the way out, with no change to how the backend calls it.\n     *\n     *      The pairing is verified here rather than trusted: `asset()` must name the very token\n     *      being configured, which both proves the vault is the right one and that it is a vault\n     *      at all (a non-4626 target reverts the call). That check is what lets\n     *      `TopUp.redirectToTradingSafe` approve and call the wrapper without re-validating it.\n     *      Curating this per token — rather than probing `asset()` at redirect time — keeps an\n     *      arbitrary 4626 that happens to wrap a valuable token from becoming a redirect target.\n     * @param tokens Tokens being redirected (the raw stock a TopUp receives).\n     * @param wrappers Per-entry ERC-4626 vault over `tokens[i]`, or zero to transfer as-is.\n     * @custom:throws ArrayLengthMismatch If the two arrays don't agree on length.\n     * @custom:throws TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.\n     * @custom:throws InvalidRedirectWrapper If any non-zero `wrappers[i]` is not an ERC-4626\n     *                whose `asset()` is `tokens[i]`.\n     */\n    function setRedirectWrappers(address[] calldata tokens, address[] calldata wrappers) external onlyAdminTimelock {\n        uint256 len = tokens.length;\n        if (len != wrappers.length) revert ArrayLengthMismatch();\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        for (uint256 i = 0; i < len;) {\n            address token = tokens[i];\n            address wrapper = wrappers[i];\n            if (token == address(0)) revert TokenCannotBeZeroAddress();\n            if (wrapper != address(0) && IERC4626(wrapper).asset() != token) revert InvalidRedirectWrapper();\n\n            emit RedirectWrapperSet(token, $.redirectWrapper[token], wrapper);\n            $.redirectWrapper[token] = wrapper;\n            unchecked { ++i; }\n        }\n    }\n\n    /**\n     * @notice Returns the ERC-4626 vault a redirect of `token` deposits into, or zero when the\n     *         token is redirected as-is.\n     * @dev Read by every `TopUp` on this factory during `redirectToTradingSafe`.\n     */\n    function wrapperFor(address token) external view returns (address) {\n        return _getTopUpFactoryStorage().redirectWrapper[token];\n    }\n\n    /**\n     * @notice Returns the destination-chain TradingSafe address that `topUp` redirects to,\n     *         derived from the configured `TradingSafeFactory` using the TopUp's own\n     *         address as the salt seed. Reverts if `TradingSafeFactory` hasn't been set.\n     * @dev Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the\n     *      TopUp impl stateless.\n     * @param topUp The per-user TopUp instance.\n     * @custom:throws TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been\n     *                called.\n     */\n    function redirectDestinationFor(address topUp) external view returns (address) {\n        address tsFactory = _getTopUpFactoryStorage().tradingSafeFactory;\n        if (tsFactory == address(0)) revert TradingSafeFactoryNotSet();\n        // The TopUp's own address is the user identity driving the TradingSafe salt — no\n        // separate binding needed; off-chain knowledge of \"user → TopUp\" is enough to know\n        // \"user → TradingSafe.\"\n        return ITradingSafeFactory(tsFactory).getDeterministicAddress(topUp);\n    }\n\n    /**\n     * @notice Redirects `amount` of `token` from `topUp` to that user's TradingSafe on the\n     *         destination chain. Recovery path for trading-supported, not-topup-supported\n     *         tokens that landed at the TopUp address by mistake.\n     * @dev Backend-role gated (`TOPUP_FACTORY_REDIRECT_ROLE`). Destination is always the\n     *      user's own deployed TradingSafe (derived from the TopUp address); the token must\n     *      be NOT topup-supported AND trading-supported, and the destination must be an\n     *      already-deployed, registered TradingSafe (never a codeless prediction).\n     *\n     *      A token with a redirect wrapper configured (`setRedirectWrappers`) is deposited into\n     *      that vault instead of transferred, so a raw Backed xStock sitting at a TopUp lands in\n     *      the safe as the wrapper its trading catalog actually lists. The trading-supported\n     *      check then applies to the wrapper — the form the safe receives — since the raw stock\n     *      is trading-supported in no form of its own. Nothing about the call changes: `token`\n     *      and `amount` still describe what leaves the TopUp.\n     * @param topUp Address of the TopUp instance to redirect from.\n     * @param token ERC20 to redirect. Must NOT be topup-supported, and the form it arrives in at\n     *              the safe — itself, or its configured wrapper — MUST be trading-supported.\n     * @param amount Amount of `token` to transfer.\n     * @custom:throws OnlyRedirectRole If caller lacks `TOPUP_FACTORY_REDIRECT_ROLE`.\n     * @custom:throws InvalidTopUpAddress If `topUp` was not deployed by this factory.\n     * @custom:throws OnlyUnsupportedTokens If `token` has a topup configuration on this\n     *                factory (route it through `processTopUp` instead).\n     * @custom:throws TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.\n     * @custom:throws TokenNotTradingSupported If what the safe would receive is not a supported\n     *                trading asset.\n     * @custom:throws TradingSafeNotDeployed If the resolved TradingSafe isn't deployed/registered.\n     * @custom:throws WrapMintedNothing If a wrapped redirect credited the safe no shares.\n     */\n    function redirectToTradingSafe(address topUp, address token, uint256 amount) external nonReentrant whenNotPaused {\n        if (!roleRegistry().hasRole(TOPUP_FACTORY_REDIRECT_ROLE, msg.sender)) revert OnlyRedirectRole();\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        if (!$.deployedAddresses.contains(topUp)) revert InvalidTopUpAddress();\n        if ($.supportedTokens.contains(token)) revert OnlyUnsupportedTokens();\n\n        address tsFactory = $.tradingSafeFactory;\n        if (tsFactory == address(0)) revert TradingSafeFactoryNotSet();\n\n        address wrapper = $.redirectWrapper[token];\n        if (!ITradingSafeFactory(tsFactory).isSupportedToken(wrapper == address(0) ? token : wrapper)) revert TokenNotTradingSupported();\n\n        address tradingSafe = ITradingSafeFactory(tsFactory).getDeterministicAddress(topUp);\n        if (!ITradingSafeFactory(tsFactory).isEtherFiSafe(tradingSafe)) revert TradingSafeNotDeployed();\n\n        _executeRedirect(topUp, tradingSafe, token, wrapper, amount);\n    }\n\n    /**\n     * @notice Batch variant of `redirectToTradingSafe`. Each parallel-array slot identifies\n     *         one redirect operation `(topUps[i], tokens[i], amounts[i])`. Any combination\n     *         is allowed — same TopUp multiple times for different tokens, multiple TopUps\n     *         for the same token, etc.\n     * @dev Backend-role gated (same rationale as the single-entry variant). Atomic\n     *      all-or-nothing: a revert on any entry rolls back the entire batch. Same\n     *      per-entry guards: rejects topup-supported tokens and requires trading-supported.\n     *      A token with a configured redirect wrapper wraps on the way out here exactly as it\n     *      does in the single-entry variant; both share `_executeRedirect`.\n     * @param topUps Per-entry TopUp instance.\n     * @param tokens Per-entry ERC20 to redirect. Each must NOT be topup-supported, and the form\n     *               it arrives in at the safe — itself, or its configured wrapper — MUST be\n     *               trading-supported.\n     * @param amounts Per-entry amount of `tokens[i]` to transfer.\n     * @custom:throws ArrayLengthMismatch If the three arrays don't agree on length.\n     * @custom:throws InvalidTopUpAddress If any `topUps[i]` was not deployed by this factory.\n     * @custom:throws OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on\n     *                this factory.\n     * @custom:throws TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.\n     * @custom:throws TokenNotTradingSupported If any `tokens[i]` is not a supported trading asset.\n     */\n    function batchRedirectToTradingSafe(\n        address[] calldata topUps,\n        address[] calldata tokens,\n        uint256[] calldata amounts\n    ) external nonReentrant whenNotPaused {\n        if (!roleRegistry().hasRole(TOPUP_FACTORY_REDIRECT_ROLE, msg.sender)) revert OnlyRedirectRole();\n\n        uint256 len = topUps.length;\n        if (len != tokens.length || len != amounts.length) revert ArrayLengthMismatch();\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        address tsFactory = $.tradingSafeFactory;\n        if (tsFactory == address(0)) revert TradingSafeFactoryNotSet();\n\n        for (uint256 i = 0; i < len;) {\n            if (!$.deployedAddresses.contains(topUps[i])) revert InvalidTopUpAddress();\n            if ($.supportedTokens.contains(tokens[i])) revert OnlyUnsupportedTokens();\n\n            address wrapper = $.redirectWrapper[tokens[i]];\n            if (!ITradingSafeFactory(tsFactory).isSupportedToken(wrapper == address(0) ? tokens[i] : wrapper)) revert TokenNotTradingSupported();\n\n            address tradingSafe = ITradingSafeFactory(tsFactory).getDeterministicAddress(topUps[i]);\n            if (!ITradingSafeFactory(tsFactory).isEtherFiSafe(tradingSafe)) revert TradingSafeNotDeployed();\n\n            _executeRedirect(topUps[i], tradingSafe, tokens[i], wrapper, amounts[i]);\n            unchecked { ++i; }\n        }\n    }\n\n    /**\n     * @dev Shared execution leg for both redirect entry points, reached only once their guards\n     *      have passed. The TopUp call is the same one it has always been — `wrapper` is\n     *      configuration the TopUp reads back off this factory, not an argument — so this\n     *      function's job is only to report what happened.\n     *\n     *      Unwrapped tokens keep the event they have always emitted. A wrapped one cannot: what\n     *      leaves the TopUp is `amount` of the raw stock, while what the safe is credited is the\n     *      shares the vault minted for it, and `RedirectFunds` reports the latter so that summing\n     *      the event by token still tracks the safe's balance. `WrapOnRedirect` carries the other\n     *      half. Shares are read as the safe's balance delta rather than taken from the vault's\n     *      return value, so a vault that reports a mint it didn't make can't pass for a redirect.\n     * @param topUp TopUp instance to redirect from; already checked as factory-deployed.\n     * @param tradingSafe Destination TradingSafe; already checked as deployed and registered.\n     * @param token ERC20 leaving the TopUp, in the TopUp's units.\n     * @param wrapper Configured vault for `token`, or zero when it moves as-is.\n     * @param amount Amount of `token` to move.\n     * @custom:throws WrapMintedNothing If the wrap credited the TradingSafe no shares.\n     */\n    function _executeRedirect(address topUp, address tradingSafe, address token, address wrapper, uint256 amount) internal {\n        if (wrapper == address(0)) {\n            TopUp(payable(topUp)).redirectToTradingSafe(token, tradingSafe, amount);\n            emit RedirectFunds(topUp, tradingSafe, token, amount);\n            return;\n        }\n\n        uint256 balanceBefore = IERC20(wrapper).balanceOf(tradingSafe);\n        TopUp(payable(topUp)).redirectToTradingSafe(token, tradingSafe, amount);\n        uint256 shares = IERC20(wrapper).balanceOf(tradingSafe) - balanceBefore;\n        if (shares == 0) revert WrapMintedNothing();\n\n        emit WrapOnRedirect(topUp, wrapper, token, amount, shares);\n        emit RedirectFunds(topUp, tradingSafe, wrapper, shares);\n    }\n\n    /**\n     * @notice Wraps every `tokens[i]` a TopUp holds into that token's registered ERC-4626\n     *         wrapper, in place — the TopUp itself receives the shares.\n     * @dev Permissionless. Nothing leaves the TopUp: a raw Backed xStock (TSLAx) it was sent\n     *      becomes the wrapper (wTSLAx) held by the same TopUp, at the same address, so there is\n     *      no recipient for a caller to choose and nothing to gain from calling it. What may be\n     *      wrapped is fixed by `setRedirectWrappers`, which is admin-curated and validates the\n     *      `asset()` pairing, so the deposit target is never an arbitrary address.\n     *\n     *      The point is the raw stock's dead end: it is trading-supported in no form of its own\n     *      and topup-supported in none either, so left as-is it can neither be swept by\n     *      `processTopUp` nor redirected. Converting it to the form the catalogs do list hands it\n     *      back to whichever rail should carry it — and that rail runs its own support checks, so\n     *      this one deliberately asserts nothing about the wrapper beyond the vault minting.\n     *\n     *      Each entry wraps the TopUp's whole balance, so the caller needs no amounts and the\n     *      TopUp is left holding none of the raw stock. A zero balance is skipped rather than\n     *      reverted: the caller can pass a user's full stock list without knowing which of them\n     *      actually arrived. Shares are read as the TopUp's own balance delta rather than the\n     *      vault's return value, the same way `_executeRedirect` does it.\n     *\n     *      The conversion itself is `TopUp.wrap`, which has no recipient parameter at all: the\n     *      shares can only ever be credited to the TopUp doing the wrapping, so no caller of this\n     *      function — and no future caller of the TopUp's own entry point — can route them\n     *      anywhere. Moving funds off a TopUp remains the redirect path's job alone.\n     * @param topUp The TopUp instance holding the raw stocks. Must be factory-deployed.\n     * @param tokens Raw stocks to wrap. Each must NOT be topup-supported and MUST have a wrapper\n     *               registered via `setRedirectWrappers`.\n     * @custom:throws InvalidTopUpAddress If `topUp` was not deployed by this factory.\n     * @custom:throws OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on this\n     *                factory (it belongs on the `processTopUp` rail, unwrapped).\n     * @custom:throws RedirectWrapperNotSet If any `tokens[i]` has no registered wrapper.\n     * @custom:throws WrapMintedNothing If a wrap credited the TopUp no shares.\n     */\n    function wrapStocks(address topUp, address[] calldata tokens) external nonReentrant whenNotPaused {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        if (!$.deployedAddresses.contains(topUp)) revert InvalidTopUpAddress();\n\n        uint256 len = tokens.length;\n\n        for (uint256 i = 0; i < len;) {\n            address token = tokens[i];\n            if ($.supportedTokens.contains(token)) revert OnlyUnsupportedTokens();\n\n            address wrapper = $.redirectWrapper[token];\n            if (wrapper == address(0)) revert RedirectWrapperNotSet();\n\n            uint256 amount = IERC20(token).balanceOf(topUp);\n            if (amount != 0) {\n                uint256 balanceBefore = IERC20(wrapper).balanceOf(topUp);\n                TopUp(payable(topUp)).wrap(token, amount);\n                uint256 shares = IERC20(wrapper).balanceOf(topUp) - balanceBefore;\n                if (shares == 0) revert WrapMintedNothing();\n\n                emit WrapStock(topUp, wrapper, token, amount, shares);\n            }\n\n            unchecked { ++i; }\n        }\n    }\n\n    receive() external payable { }\n\n    /**\n     * @notice Gets the bridge fee for a token transfer\n     * @dev Queries the bridge adapter for the fee estimation\n     * @param token The address of the token to bridge\n     * @param amount The amount of the token to bridge\n     * @return _token The fee token address\n     * @return _amount The fee amount in the _token's decimals\n     * @custom:throws TokenCannotBeZeroAddress if token address is zero\n     * @custom:throws TokenConfigNotSet if bridge configuration is not set for the token\n     * @custom:throws AmountCannotBeZero if contract has no balance of the specified token\n     */\n    function getBridgeFee(address token, uint256 amount, uint256 destChainId) public view returns (address _token, uint256 _amount) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (token == address(0)) revert TokenCannotBeZeroAddress();\n        if (destChainId == 0) revert ChainIdCannotBeZero();\n        if (amount == 0) revert AmountCannotBeZero();\n\n        TokenConfig storage config = $.tokenChainConfig[token][destChainId];\n        if (config.bridgeAdapter == address(0)) revert TokenConfigNotSet();\n\n        return BridgeAdapterBase(config.bridgeAdapter).getBridgeFee(token, amount, config.recipientOnDestChain, config.maxSlippageInBps, config.additionalData);\n    }\n\n    /**\n     * @notice Gets deployed TopUp contract addresses\n     * @dev Returns an array of TopUp contracts deployed by this factory\n     * @param start Starting index in the deployedAddresses array\n     * @param n Number of topUp contracts to get\n     * @return An array of deployed TopUp contract addresses\n     * @custom:throws InvalidStartIndex if start index is invalid\n     */\n    function getDeployedAddresses(uint256 start, uint256 n) external view returns (address[] memory) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 length = $.deployedAddresses.length();\n        if (start >= length) revert InvalidStartIndex();\n        if (start + n > length) n = length - start;\n        address[] memory addresses = new address[](n);\n\n        for (uint256 i = 0; i < n;) {\n            addresses[i] = $.deployedAddresses.at(start + i);\n            unchecked {\n                ++i;\n            }\n        }\n        return addresses;\n    }\n\n    /**\n     * @notice Gets the number of contracts deployed\n     * @return Number of contracts deployed\n     */\n    function numContractsDeployed() external view returns (uint256) {\n        return _getTopUpFactoryStorage().deployedAddresses.length();\n    }\n\n    /**\n     * @notice Gets the bridge configuration for a specific token\n     * @dev Returns the TokenConfig struct containing bridge settings\n     * @param token The address of the token to query\n     * @return Configuration parameters for the specified token\n     */\n    function getTokenConfig(address token, uint256 destChainId) external view returns (TokenConfig memory) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.tokenChainConfig[token][destChainId];\n    }\n\n    /**\n     * @notice Gets the current recovery wallet address\n     * @dev Returns the address where funds can be recovered to\n     * @return The configured recovery wallet address\n     */\n    function getRecoveryWallet() external view returns (address) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.recoveryWallet;\n    }\n\n    /**\n     * @notice Checks if a given token is supported for bridging\n     * @dev Returns whether the token is in the supported tokens set\n     * @param token The address of the token to check\n     * @return True if the token is supported, false otherwise\n     */\n    function isTokenSupported(address token) external view returns (bool) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.supportedTokens.contains(token);\n    }\n\n    function isTokenSupportedOnChain(address token, uint256 destChainId) external view returns (bool) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.tokenChainConfig[token][destChainId].bridgeAdapter != address(0);\n    }\n\n    /**\n     * @notice Checks if an address is a deployed TopUp contract\n     * @dev Returns whether the address is in the deployed addresses set\n     * @param topUpContract The address to check\n     * @return True if the address is a deployed TopUp contract, false otherwise\n     */\n    function isTopUpContract(address topUpContract) external view returns (bool) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.deployedAddresses.contains(topUpContract);\n    }\n\n    /**\n     * @dev Returns the storage struct for TopUpFactory\n     * @return $ Reference to the TopUpFactoryStorage struct\n     */\n    function _getTopUpFactoryStorage() internal pure returns (TopUpFactoryStorage storage $) {\n        assembly {\n            $.slot := TopUpFactoryStorageLocation\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC4626.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n\n/**\n * @dev Interface of the ERC-4626 \"Tokenized Vault Standard\", as defined in\n * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].\n */\ninterface IERC4626 is IERC20, IERC20Metadata {\n    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);\n\n    event Withdraw(\n        address indexed sender,\n        address indexed receiver,\n        address indexed owner,\n        uint256 assets,\n        uint256 shares\n    );\n\n    /**\n     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.\n     *\n     * - MUST be an ERC-20 token contract.\n     * - MUST NOT revert.\n     */\n    function asset() external view returns (address assetTokenAddress);\n\n    /**\n     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.\n     *\n     * - SHOULD include any compounding that occurs from yield.\n     * - MUST be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT revert.\n     */\n    function totalAssets() external view returns (uint256 totalManagedAssets);\n\n    /**\n     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal\n     * scenario where all the conditions are met.\n     *\n     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT show any variations depending on the caller.\n     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.\n     * - MUST NOT revert.\n     *\n     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the\n     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and\n     * from.\n     */\n    function convertToShares(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal\n     * scenario where all the conditions are met.\n     *\n     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT show any variations depending on the caller.\n     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.\n     * - MUST NOT revert.\n     *\n     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the\n     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and\n     * from.\n     */\n    function convertToAssets(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,\n     * through a deposit call.\n     *\n     * - MUST return a limited value if receiver is subject to some deposit limit.\n     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.\n     * - MUST NOT revert.\n     */\n    function maxDeposit(address receiver) external view returns (uint256 maxAssets);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given\n     * current on-chain conditions.\n     *\n     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit\n     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called\n     *   in the same transaction.\n     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the\n     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.\n     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by depositing.\n     */\n    function previewDeposit(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.\n     *\n     * - MUST emit the Deposit event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   deposit execution, and are accounted for during deposit.\n     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not\n     *   approving enough underlying tokens to the Vault contract, etc).\n     *\n     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.\n     */\n    function deposit(uint256 assets, address receiver) external returns (uint256 shares);\n\n    /**\n     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.\n     * - MUST return a limited value if receiver is subject to some mint limit.\n     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.\n     * - MUST NOT revert.\n     */\n    function maxMint(address receiver) external view returns (uint256 maxShares);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given\n     * current on-chain conditions.\n     *\n     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call\n     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the\n     *   same transaction.\n     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint\n     *   would be accepted, regardless if the user has enough tokens approved, etc.\n     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by minting.\n     */\n    function previewMint(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.\n     *\n     * - MUST emit the Deposit event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint\n     *   execution, and are accounted for during mint.\n     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not\n     *   approving enough underlying tokens to the Vault contract, etc).\n     *\n     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.\n     */\n    function mint(uint256 shares, address receiver) external returns (uint256 assets);\n\n    /**\n     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the\n     * Vault, through a withdraw call.\n     *\n     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.\n     * - MUST NOT revert.\n     */\n    function maxWithdraw(address owner) external view returns (uint256 maxAssets);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,\n     * given current on-chain conditions.\n     *\n     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw\n     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if\n     *   called\n     *   in the same transaction.\n     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though\n     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.\n     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by depositing.\n     */\n    function previewWithdraw(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.\n     *\n     * - MUST emit the Withdraw event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   withdraw execution, and are accounted for during withdraw.\n     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner\n     *   not having enough shares, etc).\n     *\n     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.\n     * Those methods should be performed separately.\n     */\n    function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);\n\n    /**\n     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,\n     * through a redeem call.\n     *\n     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.\n     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.\n     * - MUST NOT revert.\n     */\n    function maxRedeem(address owner) external view returns (uint256 maxShares);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,\n     * given current on-chain conditions.\n     *\n     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call\n     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the\n     *   same transaction.\n     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the\n     *   redemption would be accepted, regardless if the user has enough shares, etc.\n     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.\n     */\n    function previewRedeem(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.\n     *\n     * - MUST emit the Withdraw event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   redeem execution, and are accounted for during redeem.\n     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner\n     *   not having enough shares, etc).\n     *\n     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.\n     * Those methods should be performed separately.\n     */\n    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            // bubble errors\n            if iszero(success) {\n                let ptr := mload(0x40)\n                returndatacopy(ptr, 0, returndatasize())\n                revert(ptr, returndatasize())\n            }\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n\n        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        bool success;\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n    }\n}\n"},"lib/solady/src/utils/EnumerableSetLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Library for managing enumerable sets in storage.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EnumerableSetLib.sol)\n///\n/// @dev Note:\n/// In many applications, the number of elements in an enumerable set is small.\n/// This enumerable set implementation avoids storing the length and indices\n/// for up to 3 elements. Once the length exceeds 3 for the first time, the length\n/// and indices will be initialized. The amortized cost of adding elements is O(1).\n///\n/// The AddressSet implementation packs the length with the 0th entry.\n///\n/// All enumerable sets except Uint8Set use a pop and swap mechanism to remove elements.\n/// This means that the iteration order of elements can change between element removals.\nlibrary EnumerableSetLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The index must be less than the length.\n    error IndexOutOfBounds();\n\n    /// @dev The value cannot be the zero sentinel.\n    error ValueIsZeroSentinel();\n\n    /// @dev Cannot accommodate a new unique value with the capacity.\n    error ExceedsCapacity();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev A sentinel value to denote the zero value in storage.\n    /// No elements can be equal to this value.\n    /// `uint72(bytes9(keccak256(bytes(\"_ZERO_SENTINEL\"))))`.\n    uint256 private constant _ZERO_SENTINEL = 0xfbb67fda52d4bfb8bf;\n\n    /// @dev The storage layout is given by:\n    /// ```\n    ///     mstore(0x04, _ENUMERABLE_ADDRESS_SET_SLOT_SEED)\n    ///     mstore(0x00, set.slot)\n    ///     let rootSlot := keccak256(0x00, 0x24)\n    ///     mstore(0x20, rootSlot)\n    ///     mstore(0x00, shr(96, shl(96, value)))\n    ///     let positionSlot := keccak256(0x00, 0x40)\n    ///     let valueSlot := add(rootSlot, sload(positionSlot))\n    ///     let valueInStorage := shr(96, sload(valueSlot))\n    ///     let lazyLength := shr(160, shl(160, sload(rootSlot)))\n    /// ```\n    uint256 private constant _ENUMERABLE_ADDRESS_SET_SLOT_SEED = 0x978aab92;\n\n    /// @dev The storage layout is given by:\n    /// ```\n    ///     mstore(0x04, _ENUMERABLE_WORD_SET_SLOT_SEED)\n    ///     mstore(0x00, set.slot)\n    ///     let rootSlot := keccak256(0x00, 0x24)\n    ///     mstore(0x20, rootSlot)\n    ///     mstore(0x00, value)\n    ///     let positionSlot := keccak256(0x00, 0x40)\n    ///     let valueSlot := add(rootSlot, sload(positionSlot))\n    ///     let valueInStorage := sload(valueSlot)\n    ///     let lazyLength := sload(not(rootSlot))\n    /// ```\n    uint256 private constant _ENUMERABLE_WORD_SET_SLOT_SEED = 0x18fb5864;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STRUCTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev An enumerable address set in storage.\n    struct AddressSet {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable bytes32 set in storage.\n    struct Bytes32Set {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable uint256 set in storage.\n    struct Uint256Set {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable int256 set in storage.\n    struct Int256Set {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable uint8 set in storage. Useful for enums.\n    struct Uint8Set {\n        uint256 data;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     GETTERS / SETTERS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the number of elements in the set.\n    function length(AddressSet storage set) internal view returns (uint256 result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let rootPacked := sload(rootSlot)\n            let n := shr(160, shl(160, rootPacked))\n            result := shr(1, n)\n            for {} iszero(or(iszero(shr(96, rootPacked)), n)) {} {\n                result := 1\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 2\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 3\n                break\n            }\n        }\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Bytes32Set storage set) internal view returns (uint256 result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let n := sload(not(rootSlot))\n            result := shr(1, n)\n            for {} iszero(n) {} {\n                result := 0\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 1\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 2\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 3\n                break\n            }\n        }\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Uint256Set storage set) internal view returns (uint256 result) {\n        result = length(_toBytes32Set(set));\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Int256Set storage set) internal view returns (uint256 result) {\n        result = length(_toBytes32Set(set));\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Uint8Set storage set) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let packed := sload(set.slot) } packed { result := add(1, result) } {\n                packed := xor(packed, and(packed, add(1, not(packed))))\n            }\n        }\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(AddressSet storage set, address value) internal view returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            value := shr(96, shl(96, value))\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            let rootPacked := sload(rootSlot)\n            for {} 1 {} {\n                if iszero(shr(160, shl(160, rootPacked))) {\n                    result := 1\n                    if eq(shr(96, rootPacked), value) { break }\n                    if eq(shr(96, sload(add(rootSlot, 1))), value) { break }\n                    if eq(shr(96, sload(add(rootSlot, 2))), value) { break }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                result := iszero(iszero(sload(keccak256(0x00, 0x40))))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            for {} 1 {} {\n                if iszero(sload(not(rootSlot))) {\n                    result := 1\n                    if eq(sload(rootSlot), value) { break }\n                    if eq(sload(add(rootSlot, 1)), value) { break }\n                    if eq(sload(add(rootSlot, 2)), value) { break }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                result := iszero(iszero(sload(keccak256(0x00, 0x40))))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Uint256Set storage set, uint256 value) internal view returns (bool result) {\n        result = contains(_toBytes32Set(set), bytes32(value));\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Int256Set storage set, int256 value) internal view returns (bool result) {\n        result = contains(_toBytes32Set(set), bytes32(uint256(value)));\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Uint8Set storage set, uint8 value) internal view returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := and(1, shr(and(0xff, value), sload(set.slot)))\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(AddressSet storage set, address value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            value := shr(96, shl(96, value))\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            let rootPacked := sload(rootSlot)\n            for { let n := shr(160, shl(160, rootPacked)) } 1 {} {\n                mstore(0x20, rootSlot)\n                if iszero(n) {\n                    let v0 := shr(96, rootPacked)\n                    if iszero(v0) {\n                        sstore(rootSlot, shl(96, value))\n                        result := 1\n                        break\n                    }\n                    if eq(v0, value) { break }\n                    let v1 := shr(96, sload(add(rootSlot, 1)))\n                    if iszero(v1) {\n                        sstore(add(rootSlot, 1), shl(96, value))\n                        result := 1\n                        break\n                    }\n                    if eq(v1, value) { break }\n                    let v2 := shr(96, sload(add(rootSlot, 2)))\n                    if iszero(v2) {\n                        sstore(add(rootSlot, 2), shl(96, value))\n                        result := 1\n                        break\n                    }\n                    if eq(v2, value) { break }\n                    mstore(0x00, v0)\n                    sstore(keccak256(0x00, 0x40), 1)\n                    mstore(0x00, v1)\n                    sstore(keccak256(0x00, 0x40), 2)\n                    mstore(0x00, v2)\n                    sstore(keccak256(0x00, 0x40), 3)\n                    rootPacked := or(rootPacked, 7)\n                    n := 7\n                }\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                if iszero(sload(p)) {\n                    n := shr(1, n)\n                    result := 1\n                    sstore(p, add(1, n))\n                    if iszero(n) {\n                        sstore(rootSlot, or(3, shl(96, value)))\n                        break\n                    }\n                    sstore(add(rootSlot, n), shl(96, value))\n                    sstore(rootSlot, add(2, rootPacked))\n                    break\n                }\n                break\n            }\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Bytes32Set storage set, bytes32 value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            for { let n := sload(not(rootSlot)) } 1 {} {\n                mstore(0x20, rootSlot)\n                if iszero(n) {\n                    let v0 := sload(rootSlot)\n                    if iszero(v0) {\n                        sstore(rootSlot, value)\n                        result := 1\n                        break\n                    }\n                    if eq(v0, value) { break }\n                    let v1 := sload(add(rootSlot, 1))\n                    if iszero(v1) {\n                        sstore(add(rootSlot, 1), value)\n                        result := 1\n                        break\n                    }\n                    if eq(v1, value) { break }\n                    let v2 := sload(add(rootSlot, 2))\n                    if iszero(v2) {\n                        sstore(add(rootSlot, 2), value)\n                        result := 1\n                        break\n                    }\n                    if eq(v2, value) { break }\n                    mstore(0x00, v0)\n                    sstore(keccak256(0x00, 0x40), 1)\n                    mstore(0x00, v1)\n                    sstore(keccak256(0x00, 0x40), 2)\n                    mstore(0x00, v2)\n                    sstore(keccak256(0x00, 0x40), 3)\n                    n := 7\n                }\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                if iszero(sload(p)) {\n                    n := shr(1, n)\n                    sstore(add(rootSlot, n), value)\n                    sstore(p, add(1, n))\n                    sstore(not(rootSlot), or(1, shl(1, add(1, n))))\n                    result := 1\n                    break\n                }\n                break\n            }\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Uint256Set storage set, uint256 value) internal returns (bool result) {\n        result = add(_toBytes32Set(set), bytes32(value));\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Int256Set storage set, int256 value) internal returns (bool result) {\n        result = add(_toBytes32Set(set), bytes32(uint256(value)));\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Uint8Set storage set, uint8 value) internal returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(set.slot)\n            let mask := shl(and(0xff, value), 1)\n            sstore(set.slot, or(result, mask))\n            result := iszero(and(result, mask))\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(AddressSet storage set, address value, uint256 cap)\n        internal\n        returns (bool result)\n    {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Bytes32Set storage set, bytes32 value, uint256 cap)\n        internal\n        returns (bool result)\n    {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Uint256Set storage set, uint256 value, uint256 cap)\n        internal\n        returns (bool result)\n    {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Int256Set storage set, int256 value, uint256 cap) internal returns (bool result) {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Uint8Set storage set, uint8 value, uint256 cap) internal returns (bool result) {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(AddressSet storage set, address value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            value := shr(96, shl(96, value))\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            let rootPacked := sload(rootSlot)\n            for { let n := shr(160, shl(160, rootPacked)) } 1 {} {\n                if iszero(n) {\n                    result := 1\n                    if eq(shr(96, rootPacked), value) {\n                        sstore(rootSlot, sload(add(rootSlot, 1)))\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(shr(96, sload(add(rootSlot, 1))), value) {\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(shr(96, sload(add(rootSlot, 2))), value) {\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                let position := sload(p)\n                if iszero(position) { break }\n                n := sub(shr(1, n), 1)\n                if iszero(eq(sub(position, 1), n)) {\n                    let lastValue := shr(96, sload(add(rootSlot, n)))\n                    sstore(add(rootSlot, sub(position, 1)), shl(96, lastValue))\n                    mstore(0x00, lastValue)\n                    sstore(keccak256(0x00, 0x40), position)\n                }\n                sstore(rootSlot, or(shl(96, shr(96, sload(rootSlot))), or(shl(1, n), 1)))\n                sstore(p, 0)\n                result := 1\n                break\n            }\n        }\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            for { let n := sload(not(rootSlot)) } 1 {} {\n                if iszero(n) {\n                    result := 1\n                    if eq(sload(rootSlot), value) {\n                        sstore(rootSlot, sload(add(rootSlot, 1)))\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(sload(add(rootSlot, 1)), value) {\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(sload(add(rootSlot, 2)), value) {\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                let position := sload(p)\n                if iszero(position) { break }\n                n := sub(shr(1, n), 1)\n                if iszero(eq(sub(position, 1), n)) {\n                    let lastValue := sload(add(rootSlot, n))\n                    sstore(add(rootSlot, sub(position, 1)), lastValue)\n                    mstore(0x00, lastValue)\n                    sstore(keccak256(0x00, 0x40), position)\n                }\n                sstore(not(rootSlot), or(shl(1, n), 1))\n                sstore(p, 0)\n                result := 1\n                break\n            }\n        }\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Uint256Set storage set, uint256 value) internal returns (bool result) {\n        result = remove(_toBytes32Set(set), bytes32(value));\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Int256Set storage set, int256 value) internal returns (bool result) {\n        result = remove(_toBytes32Set(set), bytes32(uint256(value)));\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Uint8Set storage set, uint8 value) internal returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(set.slot)\n            let mask := shl(and(0xff, value), 1)\n            sstore(set.slot, and(result, not(mask)))\n            result := iszero(iszero(and(result, mask)))\n        }\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(AddressSet storage set, address value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Bytes32Set storage set, bytes32 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Uint256Set storage set, uint256 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Int256Set storage set, int256 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Uint8Set storage set, uint8 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(AddressSet storage set) internal view returns (address[] memory result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let zs := _ZERO_SENTINEL\n            let rootPacked := sload(rootSlot)\n            let n := shr(160, shl(160, rootPacked))\n            result := mload(0x40)\n            let o := add(0x20, result)\n            let v := shr(96, rootPacked)\n            mstore(o, mul(v, iszero(eq(v, zs))))\n            for {} 1 {} {\n                if iszero(n) {\n                    if v {\n                        n := 1\n                        v := shr(96, sload(add(rootSlot, n)))\n                        if v {\n                            n := 2\n                            mstore(add(o, 0x20), mul(v, iszero(eq(v, zs))))\n                            v := shr(96, sload(add(rootSlot, n)))\n                            if v {\n                                n := 3\n                                mstore(add(o, 0x40), mul(v, iszero(eq(v, zs))))\n                            }\n                        }\n                    }\n                    break\n                }\n                n := shr(1, n)\n                for { let i := 1 } lt(i, n) { i := add(i, 1) } {\n                    v := shr(96, sload(add(rootSlot, i)))\n                    mstore(add(o, shl(5, i)), mul(v, iszero(eq(v, zs))))\n                }\n                break\n            }\n            mstore(result, n)\n            mstore(0x40, add(o, shl(5, n)))\n        }\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(Bytes32Set storage set) internal view returns (bytes32[] memory result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let zs := _ZERO_SENTINEL\n            let n := sload(not(rootSlot))\n            result := mload(0x40)\n            let o := add(0x20, result)\n            for {} 1 {} {\n                if iszero(n) {\n                    let v := sload(rootSlot)\n                    if v {\n                        n := 1\n                        mstore(o, mul(v, iszero(eq(v, zs))))\n                        v := sload(add(rootSlot, n))\n                        if v {\n                            n := 2\n                            mstore(add(o, 0x20), mul(v, iszero(eq(v, zs))))\n                            v := sload(add(rootSlot, n))\n                            if v {\n                                n := 3\n                                mstore(add(o, 0x40), mul(v, iszero(eq(v, zs))))\n                            }\n                        }\n                    }\n                    break\n                }\n                n := shr(1, n)\n                for { let i := 0 } lt(i, n) { i := add(i, 1) } {\n                    let v := sload(add(rootSlot, i))\n                    mstore(add(o, shl(5, i)), mul(v, iszero(eq(v, zs))))\n                }\n                break\n            }\n            mstore(result, n)\n            mstore(0x40, add(o, shl(5, n)))\n        }\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(Uint256Set storage set) internal view returns (uint256[] memory result) {\n        result = _toUints(values(_toBytes32Set(set)));\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(Int256Set storage set) internal view returns (int256[] memory result) {\n        result = _toInts(values(_toBytes32Set(set)));\n    }\n\n    /// @dev Returns all of the values in the set.\n    function values(Uint8Set storage set) internal view returns (uint8[] memory result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(0x40)\n            let ptr := add(result, 0x20)\n            let o := 0\n            for { let packed := sload(set.slot) } packed {} {\n                if iszero(and(packed, 0xffff)) {\n                    o := add(o, 16)\n                    packed := shr(16, packed)\n                    continue\n                }\n                mstore(ptr, o)\n                ptr := add(ptr, shl(5, and(packed, 1)))\n                o := add(o, 1)\n                packed := shr(1, packed)\n            }\n            mstore(result, shr(5, sub(ptr, add(result, 0x20))))\n            mstore(0x40, ptr)\n        }\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(AddressSet storage set, uint256 i) internal view returns (address result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := shr(96, sload(add(rootSlot, i)))\n            result := mul(result, iszero(eq(result, _ZERO_SENTINEL)))\n        }\n        if (i >= length(set)) revert IndexOutOfBounds();\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Bytes32Set storage set, uint256 i) internal view returns (bytes32 result) {\n        result = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(add(result, i))\n            result := mul(result, iszero(eq(result, _ZERO_SENTINEL)))\n        }\n        if (i >= length(set)) revert IndexOutOfBounds();\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Uint256Set storage set, uint256 i) internal view returns (uint256 result) {\n        result = uint256(at(_toBytes32Set(set), i));\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Int256Set storage set, uint256 i) internal view returns (int256 result) {\n        result = int256(uint256(at(_toBytes32Set(set), i)));\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Uint8Set storage set, uint256 i) internal view returns (uint8 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let packed := sload(set.slot)\n            for {} 1 {\n                mstore(0x00, 0x4e23d035) // `IndexOutOfBounds()`.\n                revert(0x1c, 0x04)\n            } {\n                if iszero(lt(i, 256)) { continue }\n                for { let j := 0 } iszero(eq(i, j)) {} {\n                    packed := xor(packed, and(packed, add(1, not(packed))))\n                    j := add(j, 1)\n                }\n                if iszero(packed) { continue }\n                break\n            }\n            // Find first set subroutine, optimized for smaller bytecode size.\n            let x := and(packed, add(1, not(packed)))\n            let r := shl(7, iszero(iszero(shr(128, x))))\n            r := or(r, shl(6, iszero(iszero(shr(64, shr(r, x))))))\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n            // For the lower 5 bits of the result, use a De Bruijn lookup.\n            // forgefmt: disable-next-item\n            result := or(r, byte(and(div(0xd76453e0, shr(r, x)), 0x1f),\n                0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the root slot.\n    function _rootSlot(AddressSet storage s) private pure returns (bytes32 r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x04, _ENUMERABLE_ADDRESS_SET_SLOT_SEED)\n            mstore(0x00, s.slot)\n            r := keccak256(0x00, 0x24)\n        }\n    }\n\n    /// @dev Returns the root slot.\n    function _rootSlot(Bytes32Set storage s) private pure returns (bytes32 r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x04, _ENUMERABLE_WORD_SET_SLOT_SEED)\n            mstore(0x00, s.slot)\n            r := keccak256(0x00, 0x24)\n        }\n    }\n\n    /// @dev Casts to a Bytes32Set.\n    function _toBytes32Set(Uint256Set storage s) private pure returns (Bytes32Set storage c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c.slot := s.slot\n        }\n    }\n\n    /// @dev Casts to a Bytes32Set.\n    function _toBytes32Set(Int256Set storage s) private pure returns (Bytes32Set storage c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c.slot := s.slot\n        }\n    }\n\n    /// @dev Casts to a uint256 array.\n    function _toUints(bytes32[] memory a) private pure returns (uint256[] memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := a\n        }\n    }\n\n    /// @dev Casts to a int256 array.\n    function _toInts(bytes32[] memory a) private pure returns (int256[] memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := a\n        }\n    }\n}\n"},"src/beacon-factory/BeaconFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { BeaconProxy } from \"@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol\";\nimport { UpgradeableBeacon } from \"@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol\";\nimport { CREATE3 } from \"solady/utils/CREATE3.sol\";\n\nimport { IRoleRegistry } from \"../interfaces/IRoleRegistry.sol\";\nimport { UpgradeableProxy } from \"../utils/UpgradeableProxy.sol\";\n\n/**\n * @title BeaconFactory\n * @author ether.fi\n * @notice Factory contract for deploying beacon proxies with deterministic addresses\n * @dev This contract uses CREATE3 for deterministic deployments and implements UUPS upgradeability pattern\n */\ncontract BeaconFactory is UpgradeableProxy {\n    /// @custom:storage-location erc7201:etherfi.storage.BeaconFactory\n    struct BeaconFactoryStorage {\n        /// @notice The address of the beacon contract that stores the implementation\n        address beacon;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"etherfi.storage.BeaconFactory\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant BeaconFactoryStorageLocation = 0x644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae58200;\n\n    /// @notice Emitted when the implementation in the beacon address is updated\n    /// @param oldImpl The previous impl address\n    /// @param newImpl The new impl address\n    event BeaconImplemenationUpgraded(address oldImpl, address newImpl);\n\n    /// @notice Emitted when a new beacon proxy is deployed\n    /// @param salt The salt for deterministic deployment\n    /// @param deployed The address of the newly deployed proxy\n    event BeaconProxyDeployed(bytes32 salt, address indexed deployed);\n\n    /// @notice Thrown when the deployed address doesn't match the predicted address\n    error DeployedAddressDifferentFromExpected();\n\n    /// @notice Thrown when input is invalid\n    error InvalidInput();\n\n    /// @notice Thrown when initialize fails on the deployed contract\n    error InitializationFailed();\n\n    /**\n     * @dev Initializes the contract with required parameters\n     * @param _roleRegistry Address of the role registry contract\n     * @param _beaconImpl Address of the initial implementation contract\n     */\n    function __BeaconFactory_initialize(address _roleRegistry, address _beaconImpl) internal onlyInitializing {\n        __UpgradeableProxy_init(_roleRegistry);\n        __Pausable_init();\n        BeaconFactoryStorage storage $ = _getBeaconFactoryStorage();\n        $.beacon = address(new UpgradeableBeacon(_beaconImpl, address(this)));\n    }\n\n    /**\n     * @dev Returns the storage struct from the specified storage slot\n     * @return $ Reference to the BeaconFactoryStorage struct\n     */\n    function _getBeaconFactoryStorage() private pure returns (BeaconFactoryStorage storage $) {\n        assembly {\n            $.slot := BeaconFactoryStorageLocation\n        }\n    }\n\n    /**\n     * @dev Deploys a new beacon proxy with deterministic address\n     * @param salt The salt value used for deterministic deployment\n     * @param initData The initialization data for the proxy\n     * @return The address of the deployed proxy\n     * @custom:restriction Caller must have access control restrictions\n     */\n    function _deployBeacon(bytes32 salt, bytes memory initData) internal returns (address) {\n        address expectedAddr = getDeterministicAddress(salt);\n        address deployedAddr = address(CREATE3.deployDeterministic(abi.encodePacked(type(BeaconProxy).creationCode, abi.encode(beacon(), \"\")), salt));\n        if (initData.length > 0) {\n            (bool success, ) = deployedAddr.call(initData);\n            if (!success) revert InitializationFailed();\n        }\n        if (expectedAddr != deployedAddr) revert DeployedAddressDifferentFromExpected();\n\n        emit BeaconProxyDeployed(salt, deployedAddr);\n        return deployedAddr;\n    }\n\n    /**\n     * @notice Returns the address of the beacon which stores the implementation\n     * @return beacon Address of the beacon contract\n     */\n    function beacon() public view returns (address) {\n        BeaconFactoryStorage storage $ = _getBeaconFactoryStorage();\n        return $.beacon;\n    }\n\n    /**\n     * @notice Function to set the new implementation in the beacon contract\n     * @dev Only callable by owner of RoleRegistry\n     * @param _newImpl New implementation for the beacon contract\n     * @custom:throws OnlyRoleRegistryOwner when msg.sender is not the owner of the RoleRegistry contract\n     * @custom:throws InvalidInput when _beacon == address(0)\n     */\n    function upgradeBeaconImplementation(address _newImpl) external onlyRoleRegistryOwner() {\n        if (_newImpl == address(0)) revert InvalidInput();\n\n        UpgradeableBeacon upgradeableBeacon = UpgradeableBeacon(_getBeaconFactoryStorage().beacon);\n        emit BeaconImplemenationUpgraded(upgradeableBeacon.implementation(), _newImpl);\n        upgradeableBeacon.upgradeTo(_newImpl);\n    }\n\n\n    /**\n     * @notice Predicts the deterministic address for a given salt\n     * @param salt The salt value used for address prediction\n     * @return The predicted deployment address\n     */\n    function getDeterministicAddress(bytes32 salt) public view returns (address) {\n        return CREATE3.predictDeterministicAddress(salt);\n    }\n}\n"},"src/interfaces/ITopUpFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title ITopUpFactory\n * @author ether.fi\n * @notice Read surface that per-user `TopUp` instances consume from their factory owner.\n *         Defined here so the TopUp impl can stay decoupled from the full factory contract.\n */\ninterface ITopUpFactory {\n    /**\n     * @notice Returns whether `token` is configured as a bridge-supported token on this\n     *         factory. Used by `TopUpV2.executeRecovery` to gate recovery to non-supported\n     *         tokens only (supported tokens must use the normal claim path).\n     * @param token Address of the ERC20 to check.\n     */\n    function isTokenSupported(address token) external view returns (bool);\n\n    /**\n     * @notice Returns the destination-chain TradingSafe address that `topUp` redirects to,\n     *         derived from the per-TopUp `sourceSafe` binding + the factory's configured\n     *         `TradingSafeFactory`. Reverts if either is missing.\n     * @dev Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the\n     *      TopUp impl stateless.\n     * @param topUp The per-user TopUp instance.\n     */\n    function redirectDestinationFor(address topUp) external view returns (address);\n\n    /**\n     * @notice Returns the ERC-4626 vault a redirect of `token` must deposit into instead of\n     *         transferring `token` itself, or the zero address when the token travels as-is.\n     * @dev Read by `TopUp.redirectToTradingSafe` so that wrapping stays configuration rather\n     *      than a parameter, leaving the redirect one call shape for every asset.\n     * @param token Address of the ERC20 being redirected.\n     */\n    function wrapperFor(address token) external view returns (address);\n}\n"},"src/interfaces/ITradingSafeFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.28;\n\n/**\n * @title ITradingSafeFactory\n * @author ether.fi\n * @notice Mainnet TradingSafe factory surface consumed by the TopUp redirect flow and\n *         token-support checks.\n * @dev Implementation lives in the TradingSafe project (COR-728). Defined here so that\n *      consumers can resolve `sourceSafe → tradingSafe` without taking a hard dependency\n *      on the full factory interface.\n */\ninterface ITradingSafeFactory {\n    /**\n     * @notice Returns the deterministic TradingSafe address for a given source-chain safe.\n     * @param sourceSafe Source-chain safe address.\n     * @return The pre-computed destination TradingSafe address (may not yet have code).\n     */\n    function getDeterministicAddress(address sourceSafe) external view returns (address);\n\n    /**\n     * @notice Returns whether `safeAddr` is a TradingSafe deployed by this factory.\n     * @dev Used by drain-style contracts to enforce that funds can only be routed to a\n     *      registered TradingSafe, never to an arbitrary recipient.\n     * @param safeAddr The address to check.\n     * @return True if the address was deployed by this factory.\n     */\n    function isEtherFiSafe(address safeAddr) external view returns (bool);\n\n    /**\n     * @notice Returns the TopUp address a deployed TradingSafe settles to, recorded at\n     *         deploy time (the identity the safe was derived from).\n     * @dev Reverts for addresses this factory didn't deploy — callers get a guaranteed\n     *      non-zero, deploy-time-bound destination for any registered TradingSafe.\n     * @param tradingSafe The TradingSafe to look up.\n     */\n    function getTopUpAddress(address tradingSafe) external view returns (address);\n\n    /**\n     * @notice Returns whether `token` is a supported trading asset.\n     * @dev Delegates to the configured TradingLens registry. Used by the TopUp source\n     *      factory to gate `redirectToTradingSafe` to trading-supported tokens only.\n     * @param token The token to check.\n     * @return True if `token` is supported for trading.\n     */\n    function isSupportedToken(address token) external view returns (bool);\n}\n"},"src/libraries/DelegateCallLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title DelegateCallLib\n * @notice Library for delegatecall operations\n * @author ether.fi\n */\nlibrary DelegateCallLib {\n    /**\n     * @notice Performs a delegate call to the target contract\n     * @dev Internal function used for bridge adapter calls\n     * @param target The address of the contract to delegate call to\n     * @param data The calldata to execute\n     * @return result The returned data from the delegate call\n     */\n    function delegateCall(address target, bytes memory data) internal returns (bytes memory result) {\n        require(target != address(this), \"delegatecall to self\");\n\n        // solhint-disable-next-line no-inline-assembly\n        assembly (\"memory-safe\") {\n            // Perform delegatecall to the target contract\n            let success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0, 0)\n\n            // Get the size of the returned data\n            let size := returndatasize()\n\n            // Allocate memory for the return data\n            result := mload(0x40)\n\n            // Set the length of the return data\n            mstore(result, size)\n\n            // Copy the return data to the allocated memory\n            returndatacopy(add(result, 0x20), 0, size)\n\n            // Update the free memory pointer\n            mstore(0x40, add(result, add(0x20, size)))\n\n            if iszero(success) { revert(result, returndatasize()) }\n        }\n    }\n}\n"},"src/top-up/TopUp.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { IERC4626 } from \"@openzeppelin/contracts/interfaces/IERC4626.sol\";\nimport { IERC20, SafeERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { Ownable } from \"solady/auth/Ownable.sol\";\n\nimport { ITopUpFactory } from \"../interfaces/ITopUpFactory.sol\";\nimport { IWETH } from \"../interfaces/IWETH.sol\";\nimport { Constants } from \"../utils/Constants.sol\";\n\n/**\n * @title TopUp\n * @notice A contract that allows the owner to withdraw both ETH and ERC20 tokens\n * @dev Inherits from Constants for ETH address constant and Solady's Ownable for access control\n * @author ether.fi\n */\ncontract TopUp is Constants, Ownable {\n    using SafeERC20 for IERC20;\n\n    /// @notice Error thrown when non-owner tries to access owner-only functions\n    error OnlyOwner();\n    /// @notice Error thrown when ETH transfer fails\n    error EthTransferFailed();\n    /// @notice Reverts when `redirectToTradingSafe` is called with zero amount.\n    error InvalidAmount();\n    /// @notice Reverts when `wrap` is called for a token the factory has registered no ERC-4626\n    ///         wrapper for — there is nothing to deposit into.\n    error WrapperNotSet();\n\n    /// @notice Emitted when funds are processed\n    /// @param token Address of the token processed\n    /// @param amount Amount of the token processed\n    event ProcessTopUp(address indexed token, uint256 amount);\n\n    address public immutable weth;\n\n    constructor(address _weth) {\n        // initialize with dead so the impl ownership cannot be taken over by someone\n        _initializeOwner(address(0xdead));\n\n        weth = _weth;\n    }\n\n    /**\n     * @notice Initializes the contract with an owner\n     * @dev Can only be called once, sets initial owner\n     * @param _owner Address that will be granted ownership of the contract\n     * @custom:throws AlreadyInitialized if already initialized\n     */\n    function initialize(address _owner) external {\n        if (owner() != address(0)) revert AlreadyInitialized();\n        _initializeOwner(_owner);\n    }\n\n    /**\n     * @notice Allows owner to withdraw multiple tokens including ETH\n     * @dev Handles both ETH (using ETH constant) and ERC20 tokens\n     * @param tokens Array of token addresses (use ETH constant for ETH)\n     * @custom:security Uses a gas limit of 10_000 for ETH transfers to prevent reentrancy\n     * @custom:throws OnlyOwner if caller is not the owner\n     * @custom:throws EthTransferFailed if ETH transfer fails\n     */\n    function processTopUp(address[] memory tokens) external {\n        address _owner = owner();\n        if (_owner != msg.sender) revert OnlyOwner();\n\n        uint256 len = tokens.length;\n\n        for (uint256 i = 0; i < len;) {\n            uint256 balance;\n            if (tokens[i] == ETH) {\n                balance = address(this).balance;\n                if (balance > 0) _handleETH(balance);\n                \n                tokens[i] = weth;\n            }\n\n            balance = IERC20(tokens[i]).balanceOf(address(this));\n            if (balance > 0) { \n                IERC20(tokens[i]).safeTransfer(_owner, balance);\n                emit ProcessTopUp(tokens[i], balance);\n            }\n            \n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    function _handleETH(uint256 amount) internal {\n        if (amount > 0) {\n            IWETH(weth).deposit{value: amount}();\n            // This is done to emit a transfer event so we can just track WETH transfers to this contract\n            IWETH(weth).transfer(address(this), amount);\n        }\n    }\n\n    /**\n     * @notice Moves `amount` of `token` from this TopUp to `tradingSafe`. Recovery path\n     *         for trading-supported, not-topup-supported tokens (e.g. Ondo SPY) that landed\n     *         at the TopUp address by mistake.\n     *\n     * @dev Whether the token travels as-is or gets wrapped on the way out is configuration, not\n     *      a parameter: the factory's `wrapperFor(token)` names the ERC-4626 vault a raw Backed\n     *      xStock must be deposited into, because the destination TradingSafe's catalog lists the\n     *      wrapper (wTSLAx) and not the raw stock (TSLAx) a user actually sends to a TopUp\n     *      address. An unconfigured token — every token today — is the plain transfer this has\n     *      always been. Reading the mapping off the owner rather than taking it as an argument\n     *      keeps the redirect a single call shape for the backend and this contract free of\n     *      per-token state.\n     *\n     *      On the wrap leg the vault mints straight to `tradingSafe`, so the shares never touch\n     *      this contract. The deposit itself is `_wrap`, shared with the in-place `wrap` — the\n     *      two differ only in who receives the shares.\n     *\n     * @param token ERC20 to redirect — always the token this TopUp holds, never its wrapper.\n     * @param tradingSafe Destination TradingSafe (resolved and supplied by the factory).\n     * @param amount Amount of `token` to move.\n     * @custom:throws OnlyOwner If caller is not the owner.\n     * @custom:throws InvalidAmount If `amount == 0`.\n     */\n    function redirectToTradingSafe(address token, address tradingSafe, uint256 amount) external {\n        address _owner = owner();\n        if (_owner != msg.sender) revert OnlyOwner();\n        if (amount == 0) revert InvalidAmount();\n\n        address wrapper = ITopUpFactory(_owner).wrapperFor(token);\n        if (wrapper == address(0)) {\n            IERC20(token).safeTransfer(tradingSafe, amount);\n            return;\n        }\n\n        _wrap(token, wrapper, tradingSafe, amount);\n    }\n\n    /**\n     * @notice Wraps `amount` of `token` into the ERC-4626 wrapper the factory has registered for\n     *         it, crediting the shares to this same TopUp.\n     *\n     * @dev Nothing leaves this contract: the raw Backed xStock (TSLAx) a user sent to their TopUp\n     *      address becomes the wrapper (wTSLAx) at that same address, which is the form both the\n     *      topup and trading catalogs actually list. The raw stock is listed in neither, so until\n     *      it is converted it can be neither swept nor redirected — this is what unsticks it, and\n     *      it is deliberately not a transfer of any kind.\n     *\n     *      Which vault a token may be deposited into is the factory's `wrapperFor(token)`, the\n     *      same admin-curated mapping the redirect path reads, so the approve/deposit target is\n     *      never an arbitrary address and this contract keeps no per-token state. Unlike the\n     *      redirect, a token with no registered wrapper reverts here: there is no as-is fallback\n     *      for a wrap, and silently doing nothing would hide the missing registration.\n     *\n     * @param token Raw ERC20 this TopUp holds — never its wrapper.\n     * @param amount Amount of `token` to wrap.\n     * @custom:throws OnlyOwner If caller is not the owner.\n     * @custom:throws InvalidAmount If `amount == 0`.\n     * @custom:throws WrapperNotSet If the factory has no wrapper registered for `token`.\n     */\n    function wrap(address token, uint256 amount) external {\n        address _owner = owner();\n        if (_owner != msg.sender) revert OnlyOwner();\n        if (amount == 0) revert InvalidAmount();\n\n        address wrapper = ITopUpFactory(_owner).wrapperFor(token);\n        if (wrapper == address(0)) revert WrapperNotSet();\n\n        _wrap(token, wrapper, address(this), amount);\n    }\n\n    /**\n     * @dev The ERC-4626 deposit both wrap paths share: `wrap` passes this contract as `receiver`\n     *      and `redirectToTradingSafe` passes the destination safe, and that is the only\n     *      difference between them.\n     *\n     *      The allowance is granted per call and zeroed after, so no standing approval survives\n     *      and a vault that pulls less than `amount` leaves no remainder behind to spend. Callers\n     *      resolve `wrapper` off the factory's `wrapperFor`, which validated the `asset()` pairing\n     *      when it was registered, so the approve/deposit target is never an arbitrary address —\n     *      this helper takes it as given and must not be reached with an unvalidated one.\n     * @param token Raw ERC20 being deposited.\n     * @param wrapper The token's registered ERC-4626 vault. Never the zero address.\n     * @param receiver Who the vault mints the shares to.\n     * @param amount Amount of `token` to deposit.\n     */\n    function _wrap(address token, address wrapper, address receiver, uint256 amount) internal {\n        IERC20(token).forceApprove(wrapper, amount);\n        IERC4626(wrapper).deposit(amount, receiver);\n        IERC20(token).forceApprove(wrapper, 0);\n    }\n\n    /**\n     * @notice Deposits all ETH into WETH\n     */\n    receive() external payable {\n        _handleETH(msg.value);\n    }\n}\n"},"src/top-up/bridge/BridgeAdapterBase.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { Math } from \"@openzeppelin/contracts/utils/math/Math.sol\";\n\nimport {Constants} from \"../../utils/Constants.sol\";\n\n/**\n * @title BridgeAdapterBase\n * @notice Base contract for bridge adapter implementations\n * @dev Abstract contract providing common bridge adapter functionality\n * @author ether.fi\n */\nabstract contract BridgeAdapterBase is Constants {\n    using Math for uint256;\n\n    /// @notice Error thrown when provided native token fee is insufficient\n    error InsufficientNativeFee();\n\n    /// @notice Error thrown when received amount is less than minimum required\n    error InsufficientMinAmount();\n\n    /**\n     * @notice Calculates the minimum amount after applying slippage\n     * @dev Uses basis points for slippage calculation (100% = 10000 bps)\n     * @param amount The original amount\n     * @param slippage The maximum allowed slippage in basis points\n     * @return The minimum amount after slippage deduction\n     */\n    function deductSlippage(uint256 amount, uint256 slippage) internal pure returns (uint256) {\n        return amount.mulDiv(10_000 - slippage, 10_000);\n    }\n\n    /**\n     * @notice Bridges tokens to the destination chain\n     * @dev Must be implemented by specific bridge adapters\n     * @param token The address of the token to bridge\n     * @param amount The amount of tokens to bridge\n     * @param destRecipient The recipient address on the destination chain\n     * @param maxSlippage Maximum allowed slippage in basis points\n     * @param additionalData Bridge-specific data required for the operation\n     */\n    function bridge(address token, uint256 amount, address destRecipient, uint256 maxSlippage, bytes calldata additionalData) external payable virtual;\n\n    /**\n     * @notice Calculates the fee required for bridging\n     * @dev Must be implemented by specific bridge adapters\n     * @param token The address of the token to bridge\n     * @param amount The amount of tokens to bridge\n     * @param destRecipient The recipient address on the destination chain\n     * @param maxSlippage Maximum allowed slippage in basis points\n     * @param additionalData Bridge-specific data required for the calculation\n     * @return Token address and amount of the required fee\n     */\n    function getBridgeFee(address token, uint256 amount, address destRecipient, uint256 maxSlippage, bytes calldata additionalData) external view virtual returns (address, uint256);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/beacon/BeaconProxy.sol)\n\npragma solidity ^0.8.22;\n\nimport {IBeacon} from \"./IBeacon.sol\";\nimport {Proxy} from \"../Proxy.sol\";\nimport {ERC1967Utils} from \"../ERC1967/ERC1967Utils.sol\";\n\n/**\n * @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.\n *\n * The beacon address can only be set once during construction, and cannot be changed afterwards. It is stored in an\n * immutable variable to avoid unnecessary storage reads, and also in the beacon storage slot specified by\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] so that it can be accessed externally.\n *\n * CAUTION: Since the beacon address can never be changed, you must ensure that you either control the beacon, or trust\n * the beacon to not upgrade the implementation maliciously.\n *\n * IMPORTANT: Do not use the implementation logic to modify the beacon storage slot. Doing so would leave the proxy in\n * an inconsistent state where the beacon storage slot does not match the beacon address.\n */\ncontract BeaconProxy is Proxy {\n    // An immutable address for the beacon to avoid unnecessary SLOADs before each delegate call.\n    address private immutable _beacon;\n\n    /**\n     * @dev Initializes the proxy with `beacon`.\n     *\n     * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This\n     * will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity\n     * constructor.\n     *\n     * Requirements:\n     *\n     * - `beacon` must be a contract with the interface {IBeacon}.\n     * - If `data` is empty, `msg.value` must be zero.\n     */\n    constructor(address beacon, bytes memory data) payable {\n        ERC1967Utils.upgradeBeaconToAndCall(beacon, data);\n        _beacon = beacon;\n    }\n\n    /**\n     * @dev Returns the current implementation address of the associated beacon.\n     */\n    function _implementation() internal view virtual override returns (address) {\n        return IBeacon(_getBeacon()).implementation();\n    }\n\n    /**\n     * @dev Returns the beacon.\n     */\n    function _getBeacon() internal view virtual returns (address) {\n        return _beacon;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/UpgradeableBeacon.sol)\n\npragma solidity ^0.8.20;\n\nimport {IBeacon} from \"./IBeacon.sol\";\nimport {Ownable} from \"../../access/Ownable.sol\";\n\n/**\n * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their\n * implementation contract, which is where they will delegate all function calls.\n *\n * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.\n */\ncontract UpgradeableBeacon is IBeacon, Ownable {\n    address private _implementation;\n\n    /**\n     * @dev The `implementation` of the beacon is invalid.\n     */\n    error BeaconInvalidImplementation(address implementation);\n\n    /**\n     * @dev Emitted when the implementation returned by the beacon is changed.\n     */\n    event Upgraded(address indexed implementation);\n\n    /**\n     * @dev Sets the address of the initial implementation, and the initial owner who can upgrade the beacon.\n     */\n    constructor(address implementation_, address initialOwner) Ownable(initialOwner) {\n        _setImplementation(implementation_);\n    }\n\n    /**\n     * @dev Returns the current implementation address.\n     */\n    function implementation() public view virtual returns (address) {\n        return _implementation;\n    }\n\n    /**\n     * @dev Upgrades the beacon to a new implementation.\n     *\n     * Emits an {Upgraded} event.\n     *\n     * Requirements:\n     *\n     * - msg.sender must be the owner of the contract.\n     * - `newImplementation` must be a contract.\n     */\n    function upgradeTo(address newImplementation) public virtual onlyOwner {\n        _setImplementation(newImplementation);\n    }\n\n    /**\n     * @dev Sets the implementation contract address for this beacon\n     *\n     * Requirements:\n     *\n     * - `newImplementation` must be a contract.\n     */\n    function _setImplementation(address newImplementation) private {\n        if (newImplementation.code.length == 0) {\n            revert BeaconInvalidImplementation(newImplementation);\n        }\n        _implementation = newImplementation;\n        emit Upgraded(newImplementation);\n    }\n}\n"},"lib/solady/src/utils/CREATE3.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Deterministic deployments agnostic to the initialization code.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CREATE3.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/CREATE3.sol)\n/// @author Modified from 0xSequence (https://github.com/0xSequence/create3/blob/master/contracts/Create3.sol)\nlibrary CREATE3 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CUSTOM ERRORS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Unable to deploy the contract.\n    error DeploymentFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      BYTECODE CONSTANTS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /**\n     * -------------------------------------------------------------------+\n     * Opcode      | Mnemonic         | Stack        | Memory             |\n     * -------------------------------------------------------------------|\n     * 36          | CALLDATASIZE     | cds          |                    |\n     * 3d          | RETURNDATASIZE   | 0 cds        |                    |\n     * 3d          | RETURNDATASIZE   | 0 0 cds      |                    |\n     * 37          | CALLDATACOPY     |              | [0..cds): calldata |\n     * 36          | CALLDATASIZE     | cds          | [0..cds): calldata |\n     * 3d          | RETURNDATASIZE   | 0 cds        | [0..cds): calldata |\n     * 34          | CALLVALUE        | value 0 cds  | [0..cds): calldata |\n     * f0          | CREATE           | newContract  | [0..cds): calldata |\n     * -------------------------------------------------------------------|\n     * Opcode      | Mnemonic         | Stack        | Memory             |\n     * -------------------------------------------------------------------|\n     * 67 bytecode | PUSH8 bytecode   | bytecode     |                    |\n     * 3d          | RETURNDATASIZE   | 0 bytecode   |                    |\n     * 52          | MSTORE           |              | [0..8): bytecode   |\n     * 60 0x08     | PUSH1 0x08       | 0x08         | [0..8): bytecode   |\n     * 60 0x18     | PUSH1 0x18       | 0x18 0x08    | [0..8): bytecode   |\n     * f3          | RETURN           |              | [0..8): bytecode   |\n     * -------------------------------------------------------------------+\n     */\n\n    /// @dev The proxy initialization code.\n    uint256 private constant _PROXY_INITCODE = 0x67363d3d37363d34f03d5260086018f3;\n\n    /// @dev Hash of the `_PROXY_INITCODE`.\n    /// Equivalent to `keccak256(abi.encodePacked(hex\"67363d3d37363d34f03d5260086018f3\"))`.\n    bytes32 internal constant PROXY_INITCODE_HASH =\n        0x21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      CREATE3 OPERATIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys `initCode` deterministically with a `salt`.\n    /// Returns the deterministic address of the deployed contract,\n    /// which solely depends on `salt`.\n    function deployDeterministic(bytes memory initCode, bytes32 salt)\n        internal\n        returns (address deployed)\n    {\n        deployed = deployDeterministic(0, initCode, salt);\n    }\n\n    /// @dev Deploys `initCode` deterministically with a `salt`.\n    /// The deployed contract is funded with `value` (in wei) ETH.\n    /// Returns the deterministic address of the deployed contract,\n    /// which solely depends on `salt`.\n    function deployDeterministic(uint256 value, bytes memory initCode, bytes32 salt)\n        internal\n        returns (address deployed)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, _PROXY_INITCODE) // Store the `_PROXY_INITCODE`.\n            let proxy := create2(0, 0x10, 0x10, salt)\n            if iszero(proxy) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, proxy) // Store the proxy's address.\n            // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01).\n            // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex).\n            mstore(0x00, 0xd694)\n            mstore8(0x34, 0x01) // Nonce of the proxy contract (1).\n            deployed := keccak256(0x1e, 0x17)\n            if iszero(\n                mul( // The arguments of `mul` are evaluated last to first.\n                    extcodesize(deployed),\n                    call(gas(), proxy, value, add(initCode, 0x20), mload(initCode), 0x00, 0x00)\n                )\n            ) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns the deterministic address for `salt`.\n    function predictDeterministicAddress(bytes32 salt) internal view returns (address deployed) {\n        deployed = predictDeterministicAddress(salt, address(this));\n    }\n\n    /// @dev Returns the deterministic address for `salt` with `deployer`.\n    function predictDeterministicAddress(bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address deployed)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, deployer) // Store `deployer`.\n            mstore8(0x0b, 0xff) // Store the prefix.\n            mstore(0x20, salt) // Store the salt.\n            mstore(0x40, PROXY_INITCODE_HASH) // Store the bytecode hash.\n\n            mstore(0x14, keccak256(0x0b, 0x55)) // Store the proxy's address.\n            mstore(0x40, m) // Restore the free memory pointer.\n            // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01).\n            // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex).\n            mstore(0x00, 0xd694)\n            mstore8(0x34, 0x01) // Nonce of the proxy contract (1).\n            deployed := keccak256(0x1e, 0x17)\n        }\n    }\n}\n"},"src/interfaces/IRoleRegistry.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title IRoleRegistry\n * @notice Interface for role-based access control management\n * @dev Provides functions for managing and querying role assignments\n */\ninterface IRoleRegistry {\n    /**\n     * @notice Verifies if an account has pauser privileges\n     * @param account The address to check for pauser role\n     * @custom:throws Reverts if account is not an authorized pauser\n     */\n    function onlyPauser(address account) external view;\n\n    /**\n     * @notice Verifies if an account has unpauser privileges\n     * @param account The address to check for unpauser role\n     * @custom:throws Reverts if account is not an authorized unpauser\n     */\n    function onlyUnpauser(address account) external view;\n\n    /**\n     * @notice Verifies if an account has admin privileges\n     * @param account The address to check for the admin role\n     * @custom:throws Reverts if account does not have the ADMIN_ROLE\n     */\n    function onlyAdmin(address account) external view;\n\n    /**\n     * @notice Verifies if an account has admin-timelock privileges\n     * @param account The address to check for the admin-timelock role\n     * @custom:throws Reverts if account does not have the ADMIN_TIMELOCK_ROLE\n     */\n    function onlyAdminTimelock(address account) external view;\n\n    /**\n     * @notice Role identifier for the fast admin multisig\n     */\n    function ADMIN_ROLE() external pure returns (bytes32);\n\n    /**\n     * @notice Role identifier for the admin (operating) timelock\n     */\n    function ADMIN_TIMELOCK_ROLE() external pure returns (bytes32);\n\n    /**\n     * @notice Checks if an account has any of the specified roles\n     * @dev Reverts if the account doesn't have at least one of the roles\n     * @param account The address to check roles for\n     * @param encodedRoles ABI encoded roles using abi.encode(ROLE_1, ROLE_2, ...)\n     * @custom:throws Reverts if account has none of the specified roles\n     */\n    function checkRoles(address account, bytes memory encodedRoles) external view;\n\n    /**\n     * @notice Checks if an account has a specific role\n     * @dev Direct query for a single role status\n     * @param role The role identifier to check\n     * @param account The address to check the role for\n     * @return True if the account has the role, false otherwise\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @notice Grants a role to an account\n     * @dev Only callable by the contract owner\n     * @param role The role identifier to grant\n     * @param account The address to grant the role to\n     * @custom:access Restricted to contract owner\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @notice Revokes a role from an account\n     * @dev Only callable by the contract owner\n     * @param role The role identifier to revoke\n     * @param account The address to revoke the role from\n     * @custom:access Restricted to contract owner\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @notice Retrieves all addresses that have a specific role\n     * @dev Wrapper around EnumerableRoles roleHolders function\n     * @param role The role identifier to query\n     * @return Array of addresses that have the specified role\n     */\n    function roleHolders(bytes32 role) external view returns (address[] memory);\n\n    /**\n     * @notice Verifies if an account has upgrader privileges\n     * @dev Used for upgrade authorization checks\n     * @param account The address to check for upgrader role\n     * @custom:throws Reverts if account is not an authorized upgrader\n     */\n    function onlyUpgrader(address account) external view;\n\n    /**\n     * @notice Returns the owner of the contract\n     * @return result Owner of the contract\n     */\n    function owner() external view returns (address result);\n\n    /**\n     * @notice Generates a unique role identifier for safe administrators\n     * @dev Creates a unique bytes32 identifier by hashing the safe address with a role type\n     * @param safe The address of the safe for which to generate the admin role\n     * @return bytes32 A unique role identifier for the specified safe's admins\n     * @custom:throws InvalidInput if safe is a zero address\n     */\n    function getSafeAdminRole(address safe) external pure returns (bytes32);\n\n    /**\n     * @notice Configures admin roles for a specific safe\n     * @dev Grants/revokes admin privileges to specified addresses for a particular safe\n     * @param accounts Array of admin addresses to configure\n     * @param shouldAdd Array indicating whether to add or remove each admin\n     * @custom:throws OnlyEtherFiSafe if called by any address other than a registered EtherFiSafe\n     * @custom:throws InvalidInput if the admins array is empty or contains a zero address\n     * @custom:throws ArrayLengthMismatch if the array lengths mismatch\n     */\n    function configureSafeAdmins(address[] calldata accounts, bool[] calldata shouldAdd) external;\n\n    /**\n     * @notice Verifies if an account has safe admin privileges\n     * @param safe The address of the safe\n     * @param account The address to check for safe admin role\n     * @custom:throws OnlySafeAdmin if the account does not have the SafeAdmin role\n     */\n    function onlySafeAdmin(address safe, address account) external view;\n\n    /**\n     * @notice Returns if an account has safe admin privileges\n     * @param safe The address of the safe\n     * @param account The address to check for safe admin role\n     * @return bool suggesting if the account has the safe admin role\n     */\n    function isSafeAdmin(address safe, address account) external view returns (bool);\n\n    /**\n     * @notice Retrieves all addresses that have the safe admin role for a particular safe\n     * @param safe The address of the safe\n     * @return Array of addresses that have the safe admin role\n     */\n    function getSafeAdmins(address safe) external view returns (address[] memory);\n}\n"},"src/utils/UpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { PausableUpgradeable } from \"@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol\";\nimport { ReentrancyGuardTransientUpgradeable } from \"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardTransientUpgradeable.sol\";\n\nimport { IRoleRegistry } from \"../interfaces/IRoleRegistry.sol\";\n\n/**\n * @title UpgradeableProxy\n * @author ether.fi\n * @notice An UpgradeableProxy contract which can be upgraded by RoleRegistry contract\n */\ncontract UpgradeableProxy is UUPSUpgradeable, PausableUpgradeable, ReentrancyGuardTransientUpgradeable {\n    /// @custom:storage-location erc7201:etherfi.storage.UpgradeableProxy\n    struct UpgradeableProxyStorage {\n        /// @notice Reference to the role registry contract for access control\n        IRoleRegistry roleRegistry;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"etherfi.storage.UpgradeableProxy\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant UpgradeableProxyStorageLocation = 0xa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f500;\n\n    /// @notice Error thrown when caller is unauthorized to perform an operation\n    error Unauthorized();\n\n    /// @notice Error thrown when caller is not the role registry owner\n    error OnlyRoleRegistryOwner();\n\n\n    /**\n     * @notice Returns the address of the Role Registry contract\n     * @return roleRegistry Reference to the role registry contract\n     */\n    function roleRegistry() public view returns (IRoleRegistry) {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        return $.roleRegistry;\n    }\n\n    /**\n     * @dev Initializes the contract with Role Registry\n     * @param _roleRegistry Address of the role registry contract\n     */\n    function __UpgradeableProxy_init(address _roleRegistry) internal onlyInitializing {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        $.roleRegistry = IRoleRegistry(_roleRegistry);\n\n        __ReentrancyGuardTransient_init();\n        __Pausable_init_unchained();\n    }\n\n    /**\n     * @dev Returns the storage struct from the specified storage slot\n     * @return $ Reference to the UpgradeableProxyStorage struct\n     */\n    function _getUpgradeableProxyStorage() internal pure returns (UpgradeableProxyStorage storage $) {\n        assembly {\n            $.slot := UpgradeableProxyStorageLocation\n        }\n    }\n\n    /**\n     * @dev Updates the role registry contract address\n     * @param _roleRegistry The address of the new role registry contract\n     * @custom:security This is a critical function that updates access control\n     */\n    function _setRoleRegistry(address _roleRegistry) internal {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        $.roleRegistry = IRoleRegistry(_roleRegistry);\n    }\n\n    /**\n     * @dev Ensures only authorized upgraders can upgrade the contract\n     * @param newImplementation Address of the new implementation contract\n     */\n    function _authorizeUpgrade(address newImplementation) internal view override {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        $.roleRegistry.onlyUpgrader(msg.sender);\n\n        // Silence compiler warning on unused variables.\n        newImplementation = newImplementation;\n    }\n\n    /**\n     * @notice Pauses the contract\n     * @dev Only callable by accounts with the pauser role\n     */\n    function pause() external {\n        roleRegistry().onlyPauser(msg.sender);\n        _pause();\n    }\n\n    /**\n     * @notice Unpauses the contract\n     * @dev Only callable by accounts with the unpauser role\n     */\n    function unpause() external {\n        roleRegistry().onlyUnpauser(msg.sender);\n        _unpause();\n    }\n\n    /**\n     * @dev Modifier to restrict access to specific roles\n     * @param role Role identifier\n     */\n    modifier onlyRole(bytes32 role) {\n        if (!roleRegistry().hasRole(role, msg.sender)) revert Unauthorized();\n        _;\n    }\n\n    /**\n     * @dev Modifier to restrict access to owner of the role registry\n     */\n    modifier onlyRoleRegistryOwner() {\n        if (roleRegistry().owner() != msg.sender) revert OnlyRoleRegistryOwner();\n        _;\n    }\n\n    /**\n     * @dev Modifier to restrict access to holders of the registry's ADMIN_ROLE\n     */\n    modifier onlyAdmin() {\n        roleRegistry().onlyAdmin(msg.sender);\n        _;\n    }\n\n    /**\n     * @dev Modifier to restrict access to holders of the registry's ADMIN_TIMELOCK_ROLE\n     */\n    modifier onlyAdminTimelock() {\n        roleRegistry().onlyAdminTimelock(msg.sender);\n        _;\n    }\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The caller is not authorized to call the function.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev The `pendingOwner` does not have a valid handover request.\n    error NoHandoverRequest();\n\n    /// @dev Cannot double-initialize.\n    error AlreadyInitialized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev An ownership handover to `pendingOwner` has been requested.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @dev The ownership handover to `pendingOwner` has been canceled.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The owner slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n    /// It is intentionally chosen to be a high value\n    /// to avoid collision with lower slots.\n    /// The choice of manual storage layout is to enable compatibility\n    /// with both regular and upgradeable contracts.\n    bytes32 internal constant _OWNER_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n    /// The ownership handover slot of `newOwner` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n    ///     let handoverSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// It stores the expiry timestamp of the two-step ownership handover.\n    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n    /// @dev Initializes the owner directly without authorization guard.\n    /// This function must be called upon initialization,\n    /// regardless of whether the contract is upgradeable or not.\n    /// This is to enable generalization to both regular and upgradeable contracts,\n    /// and to save gas in case the initial owner is not the caller.\n    /// For performance reasons, this function will not check if there\n    /// is an existing owner.\n    function _initializeOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                if sload(ownerSlot) {\n                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n                    revert(0x1c, 0x04)\n                }\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(_OWNER_SLOT, newOwner)\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        }\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, newOwner)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n    /// Override to return a different value if needed.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n        return 48 * 3600;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public payable virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Request a two-step ownership handover to the caller.\n    /// The request will automatically expire in 48 hours (172800 seconds) by default.\n    function requestOwnershipHandover() public payable virtual {\n        unchecked {\n            uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Compute and set the handover slot to `expires`.\n                mstore(0x0c, _HANDOVER_SLOT_SEED)\n                mstore(0x00, caller())\n                sstore(keccak256(0x0c, 0x20), expires)\n                // Emit the {OwnershipHandoverRequested} event.\n                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n            }\n        }\n    }\n\n    /// @dev Cancels the two-step ownership handover to the caller, if any.\n    function cancelOwnershipHandover() public payable virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, caller())\n            sstore(keccak256(0x0c, 0x20), 0)\n            // Emit the {OwnershipHandoverCanceled} event.\n            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n        }\n    }\n\n    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            let handoverSlot := keccak256(0x0c, 0x20)\n            // If the handover does not exist, or has expired.\n            if gt(timestamp(), sload(handoverSlot)) {\n                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n                revert(0x1c, 0x04)\n            }\n            // Set the handover slot to 0.\n            sstore(handoverSlot, 0)\n        }\n        _setOwner(pendingOwner);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the owner of the contract.\n    function owner() public view virtual returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n    function ownershipHandoverExpiresAt(address pendingOwner)\n        public\n        view\n        virtual\n        returns (uint256 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the handover slot.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            // Load the handover slot.\n            result := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n}\n"},"src/interfaces/IWETH.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ninterface IWETH {\n    function deposit() external payable;\n    function transfer(address to, uint value) external returns (bool);\n    function withdraw(uint) external;\n}"},"src/utils/Constants.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title Constants\n * @author ether.fi\n * @notice Contract that defines commonly used constants across the ether.fi protocol\n * @dev This contract is not meant to be deployed but to be inherited by other contracts\n */\ncontract Constants {\n    /**\n     * @notice Special address used to represent native ETH in the protocol\n     * @dev This address is used as a marker since ETH is not an ERC20 token\n     */\n    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n}"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with an success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n            // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2²⁵⁶ + prod0.\n            uint256 prod0 = x * y; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= prod1) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n        for (uint256 i = 0; i < byteArray.length; ++i) {\n            if (byteArray[i] != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        uint256 exp;\n        unchecked {\n            exp = 128 * SafeCast.toUint(value > (1 << 128) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 64 * SafeCast.toUint(value > (1 << 64) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 32 * SafeCast.toUint(value > (1 << 32) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 16 * SafeCast.toUint(value > (1 << 16) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 8 * SafeCast.toUint(value > (1 << 8) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 4 * SafeCast.toUint(value > (1 << 4) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 2 * SafeCast.toUint(value > (1 << 2) - 1);\n            value >>= exp;\n            result += exp;\n\n            result += SafeCast.toUint(value > 1);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        uint256 isGt;\n        unchecked {\n            isGt = SafeCast.toUint(value > (1 << 128) - 1);\n            value >>= isGt * 128;\n            result += isGt * 16;\n\n            isGt = SafeCast.toUint(value > (1 << 64) - 1);\n            value >>= isGt * 64;\n            result += isGt * 8;\n\n            isGt = SafeCast.toUint(value > (1 << 32) - 1);\n            value >>= isGt * 32;\n            result += isGt * 4;\n\n            isGt = SafeCast.toUint(value > (1 << 16) - 1);\n            value >>= isGt * 16;\n            result += isGt * 2;\n\n            result += SafeCast.toUint(value > (1 << 8) - 1);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeacon {\n    /**\n     * @dev Must return an address that can be used as a delegate call target.\n     *\n     * {UpgradeableBeacon} will check that this address is a contract.\n     */\n    function implementation() external view returns (address);\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\n * be specified by overriding the virtual {_implementation} function.\n *\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\n * different contract through the {_delegate} function.\n *\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\n */\nabstract contract Proxy {\n    /**\n     * @dev Delegates the current call to `implementation`.\n     *\n     * This function does not return to its internal call site, it will return directly to the external caller.\n     */\n    function _delegate(address implementation) internal virtual {\n        assembly {\n            // Copy msg.data. We take full control of memory in this inline assembly\n            // block because it will not return to Solidity code. We overwrite the\n            // Solidity scratch pad at memory position 0.\n            calldatacopy(0, 0, calldatasize())\n\n            // Call the implementation.\n            // out and outsize are 0 because we don't know the size yet.\n            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\n\n            // Copy the returned data.\n            returndatacopy(0, 0, returndatasize())\n\n            switch result\n            // delegatecall returns 0 on error.\n            case 0 {\n                revert(0, returndatasize())\n            }\n            default {\n                return(0, returndatasize())\n            }\n        }\n    }\n\n    /**\n     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\n     * function and {_fallback} should delegate.\n     */\n    function _implementation() internal view virtual returns (address);\n\n    /**\n     * @dev Delegates the current call to the address returned by `_implementation()`.\n     *\n     * This function does not return to its internal call site, it will return directly to the external caller.\n     */\n    function _fallback() internal virtual {\n        _delegate(_implementation());\n    }\n\n    /**\n     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\n     * function in the contract matches the call data.\n     */\n    fallback() external payable virtual {\n        _fallback();\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.22;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\n    /**\n     * @dev Storage slot with the address of the current implementation.\n     * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /**\n     * @dev The `implementation` of the proxy is invalid.\n     */\n    error ERC1967InvalidImplementation(address implementation);\n\n    /**\n     * @dev The `admin` of the proxy is invalid.\n     */\n    error ERC1967InvalidAdmin(address admin);\n\n    /**\n     * @dev The `beacon` of the proxy is invalid.\n     */\n    error ERC1967InvalidBeacon(address beacon);\n\n    /**\n     * @dev An upgrade function sees `msg.value > 0` that may be lost.\n     */\n    error ERC1967NonPayable();\n\n    /**\n     * @dev Returns the current implementation address.\n     */\n    function getImplementation() internal view returns (address) {\n        return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the ERC-1967 implementation slot.\n     */\n    function _setImplementation(address newImplementation) private {\n        if (newImplementation.code.length == 0) {\n            revert ERC1967InvalidImplementation(newImplementation);\n        }\n        StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n    }\n\n    /**\n     * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n     * to avoid stuck value in the contract.\n     *\n     * Emits an {IERC1967-Upgraded} event.\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n        _setImplementation(newImplementation);\n        emit IERC1967.Upgraded(newImplementation);\n\n        if (data.length > 0) {\n            Address.functionDelegateCall(newImplementation, data);\n        } else {\n            _checkNonPayable();\n        }\n    }\n\n    /**\n     * @dev Storage slot with the admin of the contract.\n     * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n    /**\n     * @dev Returns the current admin.\n     *\n     * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n     * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\n     */\n    function getAdmin() internal view returns (address) {\n        return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the ERC-1967 admin slot.\n     */\n    function _setAdmin(address newAdmin) private {\n        if (newAdmin == address(0)) {\n            revert ERC1967InvalidAdmin(address(0));\n        }\n        StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n    }\n\n    /**\n     * @dev Changes the admin of the proxy.\n     *\n     * Emits an {IERC1967-AdminChanged} event.\n     */\n    function changeAdmin(address newAdmin) internal {\n        emit IERC1967.AdminChanged(getAdmin(), newAdmin);\n        _setAdmin(newAdmin);\n    }\n\n    /**\n     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n     * This is the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n    /**\n     * @dev Returns the current beacon.\n     */\n    function getBeacon() internal view returns (address) {\n        return StorageSlot.getAddressSlot(BEACON_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new beacon in the ERC-1967 beacon slot.\n     */\n    function _setBeacon(address newBeacon) private {\n        if (newBeacon.code.length == 0) {\n            revert ERC1967InvalidBeacon(newBeacon);\n        }\n\n        StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n        address beaconImplementation = IBeacon(newBeacon).implementation();\n        if (beaconImplementation.code.length == 0) {\n            revert ERC1967InvalidImplementation(beaconImplementation);\n        }\n    }\n\n    /**\n     * @dev Change the beacon and trigger a setup call if data is nonempty.\n     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n     * to avoid stuck value in the contract.\n     *\n     * Emits an {IERC1967-BeaconUpgraded} event.\n     *\n     * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n     * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n     * efficiency.\n     */\n    function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n        _setBeacon(newBeacon);\n        emit IERC1967.BeaconUpgraded(newBeacon);\n\n        if (data.length > 0) {\n            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n        } else {\n            _checkNonPayable();\n        }\n    }\n\n    /**\n     * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n     * if an upgrade doesn't perform an initialization call.\n     */\n    function _checkNonPayable() private {\n        if (msg.value > 0) {\n            revert ERC1967NonPayable();\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n    address private immutable __self = address(this);\n\n    /**\n     * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n     * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n     * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n     * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n     * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n     * during an upgrade.\n     */\n    string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n    /**\n     * @dev The call is from an unauthorized context.\n     */\n    error UUPSUnauthorizedCallContext();\n\n    /**\n     * @dev The storage `slot` is unsupported as a UUID.\n     */\n    error UUPSUnsupportedProxiableUUID(bytes32 slot);\n\n    /**\n     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\n     * a proxy contract with an implementation (as defined in ERC-1967) pointing to self. This should only be the case\n     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\n     * function through ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n     * fail.\n     */\n    modifier onlyProxy() {\n        _checkProxy();\n        _;\n    }\n\n    /**\n     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n     * callable on the implementing contract but not through proxies.\n     */\n    modifier notDelegated() {\n        _checkNotDelegated();\n        _;\n    }\n\n    function __UUPSUpgradeable_init() internal onlyInitializing {\n    }\n\n    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n    }\n    /**\n     * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n     */\n    function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n        return ERC1967Utils.IMPLEMENTATION_SLOT;\n    }\n\n    /**\n     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\n     * encoded in `data`.\n     *\n     * Calls {_authorizeUpgrade}.\n     *\n     * Emits an {Upgraded} event.\n     *\n     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n        _authorizeUpgrade(newImplementation);\n        _upgradeToAndCallUUPS(newImplementation, data);\n    }\n\n    /**\n     * @dev Reverts if the execution is not performed via delegatecall or the execution\n     * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n     * See {_onlyProxy}.\n     */\n    function _checkProxy() internal view virtual {\n        if (\n            address(this) == __self || // Must be called through delegatecall\n            ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n        ) {\n            revert UUPSUnauthorizedCallContext();\n        }\n    }\n\n    /**\n     * @dev Reverts if the execution is performed via delegatecall.\n     * See {notDelegated}.\n     */\n    function _checkNotDelegated() internal view virtual {\n        if (address(this) != __self) {\n            // Must not be called through delegatecall\n            revert UUPSUnauthorizedCallContext();\n        }\n    }\n\n    /**\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n     * {upgradeToAndCall}.\n     *\n     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\n     *\n     * ```solidity\n     * function _authorizeUpgrade(address) internal onlyOwner {}\n     * ```\n     */\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /**\n     * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n     *\n     * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n     * is expected to be the implementation slot in ERC-1967.\n     *\n     * Emits an {IERC1967-Upgraded} event.\n     */\n    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n        try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n            if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n                revert UUPSUnsupportedProxiableUUID(slot);\n            }\n            ERC1967Utils.upgradeToAndCall(newImplementation, data);\n        } catch {\n            // The implementation is not UUPS\n            revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n    /// @custom:storage-location erc7201:openzeppelin.storage.Pausable\n    struct PausableStorage {\n        bool _paused;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Pausable\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant PausableStorageLocation = 0xcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300;\n\n    function _getPausableStorage() private pure returns (PausableStorage storage $) {\n        assembly {\n            $.slot := PausableStorageLocation\n        }\n    }\n\n    /**\n     * @dev Emitted when the pause is triggered by `account`.\n     */\n    event Paused(address account);\n\n    /**\n     * @dev Emitted when the pause is lifted by `account`.\n     */\n    event Unpaused(address account);\n\n    /**\n     * @dev The operation failed because the contract is paused.\n     */\n    error EnforcedPause();\n\n    /**\n     * @dev The operation failed because the contract is not paused.\n     */\n    error ExpectedPause();\n\n    /**\n     * @dev Initializes the contract in unpaused state.\n     */\n    function __Pausable_init() internal onlyInitializing {\n        __Pausable_init_unchained();\n    }\n\n    function __Pausable_init_unchained() internal onlyInitializing {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = false;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    modifier whenNotPaused() {\n        _requireNotPaused();\n        _;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is paused.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    modifier whenPaused() {\n        _requirePaused();\n        _;\n    }\n\n    /**\n     * @dev Returns true if the contract is paused, and false otherwise.\n     */\n    function paused() public view virtual returns (bool) {\n        PausableStorage storage $ = _getPausableStorage();\n        return $._paused;\n    }\n\n    /**\n     * @dev Throws if the contract is paused.\n     */\n    function _requireNotPaused() internal view virtual {\n        if (paused()) {\n            revert EnforcedPause();\n        }\n    }\n\n    /**\n     * @dev Throws if the contract is not paused.\n     */\n    function _requirePaused() internal view virtual {\n        if (!paused()) {\n            revert ExpectedPause();\n        }\n    }\n\n    /**\n     * @dev Triggers stopped state.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    function _pause() internal virtual whenNotPaused {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = true;\n        emit Paused(_msgSender());\n    }\n\n    /**\n     * @dev Returns to normal state.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    function _unpause() internal virtual whenPaused {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = false;\n        emit Unpaused(_msgSender());\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardTransientUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuardTransient.sol)\n\npragma solidity ^0.8.24;\n\nimport {TransientSlot} from \"@openzeppelin/contracts/utils/TransientSlot.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Variant of {ReentrancyGuard} that uses transient storage.\n *\n * NOTE: This variant only works on networks where EIP-1153 is available.\n *\n * _Available since v5.1._\n */\nabstract contract ReentrancyGuardTransientUpgradeable is Initializable {\n    using TransientSlot for *;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function __ReentrancyGuardTransient_init() internal onlyInitializing {\n    }\n\n    function __ReentrancyGuardTransient_init_unchained() internal onlyInitializing {\n    }\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n\n        // Any calls to nonReentrant after this point will fail\n        REENTRANCY_GUARD_STORAGE.asBoolean().tstore(true);\n    }\n\n    function _nonReentrantAfter() private {\n        REENTRANCY_GUARD_STORAGE.asBoolean().tstore(false);\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return REENTRANCY_GUARD_STORAGE.asBoolean().tload();\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in an uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in an uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev An uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n    /**\n     * @dev Emitted when the implementation is upgraded.\n     */\n    event Upgraded(address indexed implementation);\n\n    /**\n     * @dev Emitted when the admin account has changed.\n     */\n    event AdminChanged(address previousAdmin, address newAdmin);\n\n    /**\n     * @dev Emitted when the beacon is changed.\n     */\n    event BeaconUpgraded(address indexed beacon);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev There's no code at `target` (it is not a contract).\n     */\n    error AddressEmptyCode(address target);\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        if (address(this).balance < amount) {\n            revert Errors.InsufficientBalance(address(this).balance, amount);\n        }\n\n        (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n        if (!success) {\n            _revert(returndata);\n        }\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason or custom error, it is bubbled\n     * up by this function (like regular Solidity function calls). However, if\n     * the call reverted with no returned reason, this function reverts with a\n     * {Errors.FailedCall} error.\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n     * of an unsuccessful call.\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata\n    ) internal view returns (bytes memory) {\n        if (!success) {\n            _revert(returndata);\n        } else {\n            // only check if target is a contract if the call was successful and the return data is empty\n            // otherwise we already know that it was a contract\n            if (returndata.length == 0 && target.code.length == 0) {\n                revert AddressEmptyCode(target);\n            }\n            return returndata;\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n     * revert reason or with a default {Errors.FailedCall} error.\n     */\n    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n        if (!success) {\n            _revert(returndata);\n        } else {\n            return returndata;\n        }\n    }\n\n    /**\n     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n     */\n    function _revert(bytes memory returndata) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            assembly (\"memory-safe\") {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert Errors.FailedCall();\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct Int256Slot {\n        int256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n     */\n    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n    /**\n     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n     * address.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy.\n     */\n    function proxiableUUID() external view returns (bytes32);\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Storage of the initializable contract.\n     *\n     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n     * when using with upgradeable contracts.\n     *\n     * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n     */\n    struct InitializableStorage {\n        /**\n         * @dev Indicates that the contract has been initialized.\n         */\n        uint64 _initialized;\n        /**\n         * @dev Indicates that the contract is in the process of being initialized.\n         */\n        bool _initializing;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n    /**\n     * @dev The contract is already initialized.\n     */\n    error InvalidInitialization();\n\n    /**\n     * @dev The contract is not initializing.\n     */\n    error NotInitializing();\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint64 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n     * production.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        // Cache values to avoid duplicated sloads\n        bool isTopLevelCall = !$._initializing;\n        uint64 initialized = $._initialized;\n\n        // Allowed calls:\n        // - initialSetup: the contract is not in the initializing state and no previous version was\n        //                 initialized\n        // - construction: the contract is initialized at version 1 (no reininitialization) and the\n        //                 current contract is just being deployed\n        bool initialSetup = initialized == 0 && isTopLevelCall;\n        bool construction = initialized == 1 && address(this).code.length == 0;\n\n        if (!initialSetup && !construction) {\n            revert InvalidInitialization();\n        }\n        $._initialized = 1;\n        if (isTopLevelCall) {\n            $._initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            $._initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint64 version) {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        if ($._initializing || $._initialized >= version) {\n            revert InvalidInitialization();\n        }\n        $._initialized = version;\n        $._initializing = true;\n        _;\n        $._initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        _checkInitializing();\n        _;\n    }\n\n    /**\n     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n     */\n    function _checkInitializing() internal view virtual {\n        if (!_isInitializing()) {\n            revert NotInitializing();\n        }\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        if ($._initializing) {\n            revert InvalidInitialization();\n        }\n        if ($._initialized != type(uint64).max) {\n            $._initialized = type(uint64).max;\n            emit Initialized(type(uint64).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint64) {\n        return _getInitializableStorage()._initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _getInitializableStorage()._initializing;\n    }\n\n    /**\n     * @dev Returns a pointer to the storage namespace.\n     */\n    // solhint-disable-next-line var-name-mixedcase\n    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n        assembly {\n            $.slot := INITIALIZABLE_STORAGE\n        }\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/TransientSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/TransientSlot.js.\n\npragma solidity ^0.8.24;\n\n/**\n * @dev Library for reading and writing value-types to specific transient storage slots.\n *\n * Transient slots are often used to store temporary values that are removed after the current transaction.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n *  * Example reading and writing values using transient storage:\n * ```solidity\n * contract Lock {\n *     using TransientSlot for *;\n *\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _LOCK_SLOT = 0xf4678858b2b588224636b8522b729e7722d32fc491da849ed75b3fdf3c84f542;\n *\n *     modifier locked() {\n *         require(!_LOCK_SLOT.asBoolean().tload());\n *\n *         _LOCK_SLOT.asBoolean().tstore(true);\n *         _;\n *         _LOCK_SLOT.asBoolean().tstore(false);\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary TransientSlot {\n    /**\n     * @dev UDVT that represent a slot holding a address.\n     */\n    type AddressSlot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a AddressSlot.\n     */\n    function asAddress(bytes32 slot) internal pure returns (AddressSlot) {\n        return AddressSlot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a bool.\n     */\n    type BooleanSlot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a BooleanSlot.\n     */\n    function asBoolean(bytes32 slot) internal pure returns (BooleanSlot) {\n        return BooleanSlot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a bytes32.\n     */\n    type Bytes32Slot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a Bytes32Slot.\n     */\n    function asBytes32(bytes32 slot) internal pure returns (Bytes32Slot) {\n        return Bytes32Slot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a uint256.\n     */\n    type Uint256Slot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a Uint256Slot.\n     */\n    function asUint256(bytes32 slot) internal pure returns (Uint256Slot) {\n        return Uint256Slot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a int256.\n     */\n    type Int256Slot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a Int256Slot.\n     */\n    function asInt256(bytes32 slot) internal pure returns (Int256Slot) {\n        return Int256Slot.wrap(slot);\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(AddressSlot slot) internal view returns (address value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(AddressSlot slot, address value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(BooleanSlot slot) internal view returns (bool value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(BooleanSlot slot, bool value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(Bytes32Slot slot) internal view returns (bytes32 value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(Bytes32Slot slot, bytes32 value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(Uint256Slot slot) internal view returns (uint256 value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(Uint256Slot slot, uint256 value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(Int256Slot slot) internal view returns (int256 value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(Int256Slot slot, int256 value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error InsufficientBalance(uint256 balance, uint256 needed);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedCall();\n\n    /**\n     * @dev The deployment failed.\n     */\n    error FailedDeployment();\n\n    /**\n     * @dev A necessary precompile is missing.\n     */\n    error MissingPrecompile(address);\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.28+commit.7893614a","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"runs":0,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/","solady/=lib/solady/src/","aave-v4/=lib/aave-v4/src/","lib/aave-v4/:src/=lib/aave-v4/src/","@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/","@layerzerolabs/oapp-evm-upgradeable/=lib/devtools/packages/oapp-evm-upgradeable/","@layerzerolabs/lz-evm-protocol-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/protocol/","@layerzerolabs/lz-evm-messagelib-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/messagelib/","@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/","solidity-bytes-utils/=lib/solidity-bytes-utils/","LayerZero-v2/=lib/LayerZero-v2/","devtools/=lib/devtools/packages/toolbox-foundry/src/","ds-test/=lib/solidity-bytes-utils/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/aave-v4/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/"]},"name":"TopUpFactory","fullyQualifiedName":"src/top-up/TopUpFactory.sol:TopUpFactory"},"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"AddressEmptyCode","type":"error","inputs":[{"name":"target","type":"address","internalType":"address"}]},{"name":"AmountCannotBeZero","type":"error","inputs":[]},{"name":"ArrayLengthMismatch","type":"error","inputs":[]},{"name":"ChainIdCannotBeZero","type":"error","inputs":[]},{"name":"DeployedAddressDifferentFromExpected","type":"error","inputs":[]},{"name":"ERC1967InvalidImplementation","type":"error","inputs":[{"name":"implementation","type":"address","internalType":"address"}]},{"name":"ERC1967NonPayable","type":"error","inputs":[]},{"name":"EnforcedPause","type":"error","inputs":[]},{"name":"ExpectedPause","type":"error","inputs":[]},{"name":"FailedCall","type":"error","inputs":[]},{"name":"IndexOutOfBounds","type":"error","inputs":[]},{"name":"InitializationFailed","type":"error","inputs":[]},{"name":"InsufficientBalance","type":"error","inputs":[]},{"name":"InsufficientFeePassed","type":"error","inputs":[]},{"name":"InvalidConfig","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidInput","type":"error","inputs":[]},{"name":"InvalidRedirectWrapper","type":"error","inputs":[]},{"name":"InvalidStartIndex","type":"error","inputs":[]},{"name":"InvalidTopUpAddress","type":"error","inputs":[]},{"name":"NativeTransferFailed","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"OnlyRedirectRole","type":"error","inputs":[]},{"name":"OnlyRoleRegistryOwner","type":"error","inputs":[]},{"name":"OnlySupportedTokens","type":"error","inputs":[]},{"name":"OnlyUnsupportedTokens","type":"error","inputs":[]},{"name":"RecoveryWalletCannotBeZeroAddress","type":"error","inputs":[]},{"name":"RecoveryWalletNotSet","type":"error","inputs":[]},{"name":"RedirectWrapperNotSet","type":"error","inputs":[]},{"name":"ReentrancyGuardReentrantCall","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"TokenCannotBeZeroAddress","type":"error","inputs":[]},{"name":"TokenConfigNotSet","type":"error","inputs":[]},{"name":"TokenNotTradingSupported","type":"error","inputs":[]},{"name":"TradingSafeFactoryCannotBeZeroAddress","type":"error","inputs":[]},{"name":"TradingSafeFactoryNotSet","type":"error","inputs":[]},{"name":"TradingSafeNotDeployed","type":"error","inputs":[]},{"name":"UUPSUnauthorizedCallContext","type":"error","inputs":[]},{"name":"UUPSUnsupportedProxiableUUID","type":"error","inputs":[{"name":"slot","type":"bytes32","internalType":"bytes32"}]},{"name":"Unauthorized","type":"error","inputs":[]},{"name":"WrapMintedNothing","type":"error","inputs":[]},{"name":"BeaconImplemenationUpgraded","type":"event","inputs":[{"name":"oldImpl","type":"address","indexed":false,"internalType":"address"},{"name":"newImpl","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"BeaconProxyDeployed","type":"event","inputs":[{"name":"salt","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"deployed","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Bridge","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"destChainId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"Paused","type":"event","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Recovery","type":"event","inputs":[{"name":"recoveryWallet","type":"address","indexed":false,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"RecoveryWalletSet","type":"event","inputs":[{"name":"oldRecoveryWallet","type":"address","indexed":false,"internalType":"address"},{"name":"newRecoveryWallet","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"RedirectFunds","type":"event","inputs":[{"name":"topUp","type":"address","indexed":true,"internalType":"address"},{"name":"tradingSafe","type":"address","indexed":true,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"RedirectWrapperSet","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"oldWrapper","type":"address","indexed":false,"internalType":"address"},{"name":"newWrapper","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"TokenConfigRemoved","type":"event","inputs":[{"name":"tokens","type":"address[]","indexed":false,"internalType":"address[]"},{"name":"chainIds","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"name":"TokenConfigSet","type":"event","inputs":[{"name":"tokens","type":"address[]","indexed":false,"internalType":"address[]"},{"name":"chainIds","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"config","type":"tuple[]","indexed":false,"components":[{"name":"bridgeAdapter","type":"address","internalType":"address"},{"name":"recipientOnDestChain","type":"address","internalType":"address"},{"name":"maxSlippageInBps","type":"uint96","internalType":"uint96"},{"name":"additionalData","type":"bytes","internalType":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig[]"}],"anonymous":false},{"name":"TradingSafeFactorySet","type":"event","inputs":[{"name":"oldFactory","type":"address","indexed":false,"internalType":"address"},{"name":"newFactory","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Unpaused","type":"event","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Upgraded","type":"event","inputs":[{"name":"implementation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"WrapOnRedirect","type":"event","inputs":[{"name":"topUp","type":"address","indexed":true,"internalType":"address"},{"name":"wrapper","type":"address","indexed":true,"internalType":"address"},{"name":"underlying","type":"address","indexed":true,"internalType":"address"},{"name":"assets","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"WrapStock","type":"event","inputs":[{"name":"topUp","type":"address","indexed":true,"internalType":"address"},{"name":"wrapper","type":"address","indexed":true,"internalType":"address"},{"name":"underlying","type":"address","indexed":true,"internalType":"address"},{"name":"assets","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ETH","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"MAX_ALLOWED_SLIPPAGE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint96","internalType":"uint96"}],"stateMutability":"view"},{"name":"TOPUP_FACTORY_BRIDGER_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"TOPUP_FACTORY_REDIRECT_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"UPGRADE_INTERFACE_VERSION","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"batchRedirectToTradingSafe","type":"function","inputs":[{"name":"topUps","type":"address[]","internalType":"address[]"},{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"beacon","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"bridge","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"deployTopUpContract","type":"function","inputs":[{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"getBridgeFee","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getDeployedAddresses","type":"function","inputs":[{"name":"start","type":"uint256","internalType":"uint256"},{"name":"n","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"getDeterministicAddress","type":"function","inputs":[{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getRecoveryWallet","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getTokenConfig","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"bridgeAdapter","type":"address","internalType":"address"},{"name":"recipientOnDestChain","type":"address","internalType":"address"},{"name":"maxSlippageInBps","type":"uint96","internalType":"uint96"},{"name":"additionalData","type":"bytes","internalType":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_roleRegistry","type":"address","internalType":"address"},{"name":"_topUpImpl","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isTokenSupported","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isTokenSupportedOnChain","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isTopUpContract","type":"function","inputs":[{"name":"topUpContract","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"numContractsDeployed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"paused","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"processTopUp","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"start","type":"uint256","internalType":"uint256"},{"name":"n","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"processTopUpFromContracts","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"topUpContracts","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"proxiableUUID","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"recoverFunds","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"redirectDestinationFor","type":"function","inputs":[{"name":"topUp","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"redirectToTradingSafe","type":"function","inputs":[{"name":"topUp","type":"address","internalType":"address"},{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"removeTokenConfig","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"chainIds","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"roleRegistry","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IRoleRegistry"}],"stateMutability":"view"},{"name":"setRecoveryWallet","type":"function","inputs":[{"name":"_recoveryWallet","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRedirectWrappers","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"wrappers","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setTokenConfig","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"chainIds","type":"uint256[]","internalType":"uint256[]"},{"name":"configs","type":"tuple[]","components":[{"name":"bridgeAdapter","type":"address","internalType":"address"},{"name":"recipientOnDestChain","type":"address","internalType":"address"},{"name":"maxSlippageInBps","type":"uint96","internalType":"uint96"},{"name":"additionalData","type":"bytes","internalType":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setTradingSafeFactory","type":"function","inputs":[{"name":"_tradingSafeFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"tradingSafeFactory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"unpause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgradeBeaconImplementation","type":"function","inputs":[{"name":"_newImpl","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgradeToAndCall","type":"function","inputs":[{"name":"newImplementation","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"name":"wrapStocks","type":"function","inputs":[{"name":"topUp","type":"address","internalType":"address"},{"name":"tokens","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"wrapperFor","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"receive","stateMutability":"payable"}],"metadata":{"compiler":{"version":"0.8.28+commit.7893614a"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"AmountCannotBeZero","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"ChainIdCannotBeZero","type":"error"},{"inputs":[],"name":"DeployedAddressDifferentFromExpected","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"IndexOutOfBounds","type":"error"},{"inputs":[],"name":"InitializationFailed","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InsufficientFeePassed","type":"error"},{"inputs":[],"name":"InvalidConfig","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"InvalidRedirectWrapper","type":"error"},{"inputs":[],"name":"InvalidStartIndex","type":"error"},{"inputs":[],"name":"InvalidTopUpAddress","type":"error"},{"inputs":[],"name":"NativeTransferFailed","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"OnlyRedirectRole","type":"error"},{"inputs":[],"name":"OnlyRoleRegistryOwner","type":"error"},{"inputs":[],"name":"OnlySupportedTokens","type":"error"},{"inputs":[],"name":"OnlyUnsupportedTokens","type":"error"},{"inputs":[],"name":"RecoveryWalletCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"RecoveryWalletNotSet","type":"error"},{"inputs":[],"name":"RedirectWrapperNotSet","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"TokenCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TokenConfigNotSet","type":"error"},{"inputs":[],"name":"TokenNotTradingSupported","type":"error"},{"inputs":[],"name":"TradingSafeFactoryCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TradingSafeFactoryNotSet","type":"error"},{"inputs":[],"name":"TradingSafeNotDeployed","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"WrapMintedNothing","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldImpl","type":"address"},{"indexed":false,"internalType":"address","name":"newImpl","type":"address"}],"name":"BeaconImplemenationUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"salt","type":"bytes32"},{"indexed":true,"internalType":"address","name":"deployed","type":"address"}],"name":"BeaconProxyDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"destChainId","type":"uint256"}],"name":"Bridge","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recoveryWallet","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRecoveryWallet","type":"address"},{"indexed":false,"internalType":"address","name":"newRecoveryWallet","type":"address"}],"name":"RecoveryWalletSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"topUp","type":"address"},{"indexed":true,"internalType":"address","name":"tradingSafe","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RedirectFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"oldWrapper","type":"address"},{"indexed":false,"internalType":"address","name":"newWrapper","type":"address"}],"name":"RedirectWrapperSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"chainIds","type":"uint256[]"}],"name":"TokenConfigRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"chainIds","type":"uint256[]"},{"components":[{"internalType":"address","name":"bridgeAdapter","type":"address"},{"internalType":"address","name":"recipientOnDestChain","type":"address"},{"internalType":"uint96","name":"maxSlippageInBps","type":"uint96"},{"internalType":"bytes","name":"additionalData","type":"bytes"}],"indexed":false,"internalType":"struct TopUpFactory.TokenConfig[]","name":"config","type":"tuple[]"}],"name":"TokenConfigSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldFactory","type":"address"},{"indexed":false,"internalType":"address","name":"newFactory","type":"address"}],"name":"TradingSafeFactorySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"topUp","type":"address"},{"indexed":true,"internalType":"address","name":"wrapper","type":"address"},{"indexed":true,"internalType":"address","name":"underlying","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"WrapOnRedirect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"topUp","type":"address"},{"indexed":true,"internalType":"address","name":"wrapper","type":"address"},{"indexed":true,"internalType":"address","name":"underlying","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"WrapStock","type":"event"},{"inputs":[],"name":"ETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWED_SLIPPAGE","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOPUP_FACTORY_BRIDGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOPUP_FACTORY_REDIRECT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"topUps","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"batchRedirectToTradingSafe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"beacon","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"destChainId","type":"uint256"}],"name":"bridge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"deployTopUpContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"destChainId","type":"uint256"}],"name":"getBridgeFee","outputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"getDeployedAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"getDeterministicAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRecoveryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"destChainId","type":"uint256"}],"name":"getTokenConfig","outputs":[{"components":[{"internalType":"address","name":"bridgeAdapter","type":"address"},{"internalType":"address","name":"recipientOnDestChain","type":"address"},{"internalType":"uint96","name":"maxSlippageInBps","type":"uint96"},{"internalType":"bytes","name":"additionalData","type":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_roleRegistry","type":"address"},{"internalType":"address","name":"_topUpImpl","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isTokenSupported","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"destChainId","type":"uint256"}],"name":"isTokenSupportedOnChain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"topUpContract","type":"address"}],"name":"isTopUpContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numContractsDeployed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"processTopUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address[]","name":"topUpContracts","type":"address[]"}],"name":"processTopUpFromContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"topUp","type":"address"}],"name":"redirectDestinationFor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"topUp","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redirectToTradingSafe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"chainIds","type":"uint256[]"}],"name":"removeTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roleRegistry","outputs":[{"internalType":"contract IRoleRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recoveryWallet","type":"address"}],"name":"setRecoveryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address[]","name":"wrappers","type":"address[]"}],"name":"setRedirectWrappers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"chainIds","type":"uint256[]"},{"components":[{"internalType":"address","name":"bridgeAdapter","type":"address"},{"internalType":"address","name":"recipientOnDestChain","type":"address"},{"internalType":"uint96","name":"maxSlippageInBps","type":"uint96"},{"internalType":"bytes","name":"additionalData","type":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig[]","name":"configs","type":"tuple[]"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tradingSafeFactory","type":"address"}],"name":"setTradingSafeFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tradingSafeFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newImpl","type":"address"}],"name":"upgradeBeaconImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"topUp","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"wrapStocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"wrapperFor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"author":"ether.fi","details":"Extends BeaconFactory to provide Beacon Proxy deployment functionality","errors":{"AddressEmptyCode(address)":[{"details":"There's no code at `target` (it is not a contract)."}],"ERC1967InvalidImplementation(address)":[{"details":"The `implementation` of the proxy is invalid."}],"ERC1967NonPayable()":[{"details":"An upgrade function sees `msg.value > 0` that may be lost."}],"EnforcedPause()":[{"details":"The operation failed because the contract is paused."}],"ExpectedPause()":[{"details":"The operation failed because the contract is not paused."}],"FailedCall()":[{"details":"A call to an address target failed. The target may have reverted."}],"IndexOutOfBounds()":[{"details":"The index must be less than the length."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"UUPSUnauthorizedCallContext()":[{"details":"The call is from an unauthorized context."}],"UUPSUnsupportedProxiableUUID(bytes32)":[{"details":"The storage `slot` is unsupported as a UUID."}]},"events":{"BeaconImplemenationUpgraded(address,address)":{"params":{"newImpl":"The new impl address","oldImpl":"The previous impl address"}},"BeaconProxyDeployed(bytes32,address)":{"params":{"deployed":"The address of the newly deployed proxy","salt":"The salt for deterministic deployment"}},"Bridge(address,uint256,uint256)":{"params":{"amount":"The amount of tokens being bridged","token":"The address of the token being bridged"}},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized or reinitialized."},"Paused(address)":{"details":"Emitted when the pause is triggered by `account`."},"Recovery(address,address,uint256)":{"params":{"amount":"The amount of tokens recovered","recoveryWallet":"The address receiving the recovered funds","token":"The token being recovered"}},"RecoveryWalletSet(address,address)":{"params":{"newRecoveryWallet":"The new recovery wallet address","oldRecoveryWallet":"The previous recovery wallet address"}},"RedirectFunds(address,address,address,uint256)":{"params":{"amount":"Amount transferred.","token":"ERC20 redirected.","topUp":"The TopUp instance that the funds were redirected from.","tradingSafe":"The destination TradingSafe that received the funds."}},"RedirectWrapperSet(address,address,address)":{"params":{"newWrapper":"New vault, or zero to go back to a plain transfer.","oldWrapper":"Previous vault (zero when the token used to travel as-is).","token":"The token being redirected."}},"TokenConfigRemoved(address[],uint256[])":{"params":{"chainIds":"Per-entry destination chain whose route was cleared.","tokens":"Tokens retired."}},"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])":{"params":{"config":"Array of TokenConfig struct","tokens":"Array of token addresses"}},"TradingSafeFactorySet(address,address)":{"params":{"newFactory":"New address.","oldFactory":"Previous address (zero on first set)."}},"Unpaused(address)":{"details":"Emitted when the pause is lifted by `account`."},"Upgraded(address)":{"details":"Emitted when the implementation is upgraded."},"WrapOnRedirect(address,address,address,uint256,uint256)":{"params":{"assets":"Amount of `underlying` deposited.","shares":"Amount of `wrapper` credited to the TradingSafe.","topUp":"The TopUp the underlying was pulled from.","underlying":"The raw token that was wrapped.","wrapper":"The ERC-4626 vault — the trading-supported token the TradingSafe receives."}},"WrapStock(address,address,address,uint256,uint256)":{"params":{"assets":"Amount of `underlying` deposited — the TopUp's entire balance of it.","shares":"Amount of `wrapper` the TopUp was credited.","topUp":"The TopUp whose raw stock was wrapped, and the receiver of the shares.","underlying":"The raw stock that was wrapped.","wrapper":"The ERC-4626 vault the stock was deposited into."}}},"kind":"dev","methods":{"batchRedirectToTradingSafe(address[],address[],uint256[])":{"custom:throws":"ArrayLengthMismatch If the three arrays don't agree on length.InvalidTopUpAddress If any `topUps[i]` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on                this factory.TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If any `tokens[i]` is not a supported trading asset.","details":"Backend-role gated (same rationale as the single-entry variant). Atomic      all-or-nothing: a revert on any entry rolls back the entire batch. Same      per-entry guards: rejects topup-supported tokens and requires trading-supported.      A token with a configured redirect wrapper wraps on the way out here exactly as it      does in the single-entry variant; both share `_executeRedirect`.","params":{"amounts":"Per-entry amount of `tokens[i]` to transfer.","tokens":"Per-entry ERC20 to redirect. Each must NOT be topup-supported, and the form               it arrives in at the safe — itself, or its configured wrapper — MUST be               trading-supported.","topUps":"Per-entry TopUp instance."}},"beacon()":{"returns":{"_0":"beacon Address of the beacon contract"}},"bridge(address,uint256,uint256)":{"custom:throws":"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if amount passed is zeroInsufficientBalance if contract has insufficient balance of the specified token","details":"Uses delegate call to execute the bridge operation through the appropriate adapter","params":{"token":"The address of the token to bridge"}},"constructor":{"custom:oz-upgrades-unsafe-allow":"constructor"},"deployTopUpContract(bytes32)":{"params":{"salt":"The salt value used for deterministic deployment"}},"getBridgeFee(address,uint256,uint256)":{"custom:throws":"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if contract has no balance of the specified token","details":"Queries the bridge adapter for the fee estimation","params":{"amount":"The amount of the token to bridge","token":"The address of the token to bridge"},"returns":{"_amount":"The fee amount in the _token's decimals","_token":"The fee token address"}},"getDeployedAddresses(uint256,uint256)":{"custom:throws":"InvalidStartIndex if start index is invalid","details":"Returns an array of TopUp contracts deployed by this factory","params":{"n":"Number of topUp contracts to get","start":"Starting index in the deployedAddresses array"},"returns":{"_0":"An array of deployed TopUp contract addresses"}},"getDeterministicAddress(bytes32)":{"params":{"salt":"The salt value used for address prediction"},"returns":{"_0":"The predicted deployment address"}},"getRecoveryWallet()":{"details":"Returns the address where funds can be recovered to","returns":{"_0":"The configured recovery wallet address"}},"getTokenConfig(address,uint256)":{"details":"Returns the TokenConfig struct containing bridge settings","params":{"token":"The address of the token to query"},"returns":{"_0":"Configuration parameters for the specified token"}},"initialize(address,address)":{"details":"Sets up the role registry, admin, and beacon implementation","params":{"_roleRegistry":"Address of the role registry contract","_topUpImpl":"Address of the topUp implementation contract"}},"isTokenSupported(address)":{"details":"Returns whether the token is in the supported tokens set","params":{"token":"The address of the token to check"},"returns":{"_0":"True if the token is supported, false otherwise"}},"isTopUpContract(address)":{"details":"Returns whether the address is in the deployed addresses set","params":{"topUpContract":"The address to check"},"returns":{"_0":"True if the address is a deployed TopUp contract, false otherwise"}},"numContractsDeployed()":{"returns":{"_0":"Number of contracts deployed"}},"pause()":{"details":"Only callable by accounts with the pauser role"},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"processTopUp(address[],uint256,uint256)":{"custom:throws":"OnlySupportedTokens If any token has no topup configuration on this factoryIf start + n exceeds the number of deployed topUp contractsIf any topUp's processTopUp call fails","details":"Iterates through deployed topUp contracts starting at index 'start' and calls processTopUp on each","params":{"n":"Number of topUp contracts to process","start":"Starting index in the deployedAddresses array","tokens":"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`."}},"processTopUpFromContracts(address[],address[])":{"custom:throws":"OnlySupportedTokens If any token has no topup configuration on this factoryInvalidTopUpAddress if the TopUp address is not a deployed TopUp contractIf the TopUp contracts's processTopUp call fails","details":"Verifies the topUp contract is valid before attempting to pull funds","params":{"tokens":"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`.","topUpContracts":"Array of addresses of the topUp contracts to process"}},"proxiableUUID()":{"details":"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."},"recoverFunds(address,uint256)":{"custom:throws":"OnlyAdmin if caller doesn't have admin roleTokenCannotBeZeroAddress if token address is zeroOnlyUnsupportedTokens if token is a supported bridge assetRecoveryWalletNotSet if recovery wallet is not configured","details":"Only callable by admin role","params":{"amount":"The amount of tokens to recover","token":"The address of the token to recover"}},"redirectDestinationFor(address)":{"custom:throws":"TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been                called.","details":"Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the      TopUp impl stateless.","params":{"topUp":"The per-user TopUp instance."}},"redirectToTradingSafe(address,address,uint256)":{"custom:throws":"OnlyRedirectRole If caller lacks `TOPUP_FACTORY_REDIRECT_ROLE`.InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If `token` has a topup configuration on this                factory (route it through `processTopUp` instead).TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If what the safe would receive is not a supported                trading asset.TradingSafeNotDeployed If the resolved TradingSafe isn't deployed/registered.WrapMintedNothing If a wrapped redirect credited the safe no shares.","details":"Backend-role gated (`TOPUP_FACTORY_REDIRECT_ROLE`). Destination is always the      user's own deployed TradingSafe (derived from the TopUp address); the token must      be NOT topup-supported AND trading-supported, and the destination must be an      already-deployed, registered TradingSafe (never a codeless prediction).      A token with a redirect wrapper configured (`setRedirectWrappers`) is deposited into      that vault instead of transferred, so a raw Backed xStock sitting at a TopUp lands in      the safe as the wrapper its trading catalog actually lists. The trading-supported      check then applies to the wrapper — the form the safe receives — since the raw stock      is trading-supported in no form of its own. Nothing about the call changes: `token`      and `amount` still describe what leaves the TopUp.","params":{"amount":"Amount of `token` to transfer.","token":"ERC20 to redirect. Must NOT be topup-supported, and the form it arrives in at              the safe — itself, or its configured wrapper — MUST be trading-supported.","topUp":"Address of the TopUp instance to redirect from."}},"removeTokenConfig(address[],uint256[])":{"custom:emits":"TokenConfigRemoved","custom:throws":"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.ChainIdCannotBeZero If any `chainIds[i]` is zero.TokenConfigNotSet If any `(tokens[i], chainIds[i])` has no configured route.","details":"Only callable by addresses with ADMIN_TIMELOCK_ROLE      it only ever adds to `supportedTokens`, and rejects a zeroed config, so before this      there was no way to retire an asset from the lane at all.      Both halves matter and neither is sufficient alone. `bridge` gates on      `tokenChainConfig[token][destChainId].bridgeAdapter`, never on the supported set, so      leaving the config in place would keep the route open to the bridger role; while      `processTopUp`, `recoverFunds`, the redirects and `wrapStocks` all gate on the set, so      leaving the token in it would keep sweeping the asset the config no longer routes.      A token leaves the supported set as soon as one of its routes is removed, because the      set has no per-chain granularity and the chains a token is configured for are not      enumerable on-chain. A token with routes on several destinations must therefore have      all of them passed in — otherwise the leftover routes stay bridgeable while sweeping      stops, which is a half-retired asset. Removing a route that was never configured      reverts rather than passing silently, so a mistyped chain id can't read as a closed      route.","params":{"chainIds":"Per-entry destination chain whose route is being cleared.","tokens":"Tokens to retire."}},"roleRegistry()":{"returns":{"_0":"roleRegistry Reference to the role registry contract"}},"setRecoveryWallet(address)":{"custom:throws":"OnlyAdminTimelock if the caller does not have ADMIN_TIMELOCK_ROLERecoveryWalletCannotBeZeroAddress if provided address is zero","details":"Only callable by admin role","params":{"_recoveryWallet":"The new recovery wallet address"}},"setRedirectWrappers(address[],address[])":{"custom:throws":"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.InvalidRedirectWrapper If any non-zero `wrappers[i]` is not an ERC-4626                whose `asset()` is `tokens[i]`.","details":"Only callable by addresses with ADMIN_TIMELOCK_ROLE      tokenized equities a TradingSafe can hold are `WrappedBackedToken` vaults (wTSLAx),      while what a user sends to a TopUp address is the raw Backed xStock underneath      (TSLAx), which is trading-supported in no form of its own and would otherwise be      stranded at the TopUp. Registering TSLAx → wTSLAx makes the existing redirect wrap it      on the way out, with no change to how the backend calls it.      The pairing is verified here rather than trusted: `asset()` must name the very token      being configured, which both proves the vault is the right one and that it is a vault      at all (a non-4626 target reverts the call). That check is what lets      `TopUp.redirectToTradingSafe` approve and call the wrapper without re-validating it.      Curating this per token — rather than probing `asset()` at redirect time — keeps an      arbitrary 4626 that happens to wrap a valuable token from becoming a redirect target.","params":{"tokens":"Tokens being redirected (the raw stock a TopUp receives).","wrappers":"Per-entry ERC-4626 vault over `tokens[i]`, or zero to transfer as-is."}},"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])":{"custom:emits":"TokenConfigSet when configs are updated","custom:throws":"ArrayLengthMismatch if tokens and configs arrays have different lengthsTokenCannotBeZeroAddress if any token address is zeroInvalidConfig if any config has invalid parameters:   - bridgeAdapter is zero address   - recipientOnDestChain is zero address   - maxSlippageInBps exceeds MAX_ALLOWED_SLIPPAGE","details":"Allows admin to configure bridge settings for multiple tokens in a single transaction","params":{"configs":"Array of TokenConfig structs containing bridge settings for each token","tokens":"Array of token addresses to configure"}},"setTradingSafeFactory(address)":{"custom:throws":"TradingSafeFactoryCannotBeZeroAddress If `_tradingSafeFactory == address(0)`.","details":"Routes user-fund redirects, so it is gated like an upgrade: only the RoleRegistry      owner (the upgrade timelock) may call it. Read by `TopUp.redirectToTradingSafe` via the `tradingSafeFactory()`      view below.","params":{"_tradingSafeFactory":"Address of the destination-chain TradingSafeFactory."}},"unpause()":{"details":"Only callable by accounts with the unpauser role"},"upgradeBeaconImplementation(address)":{"custom:throws":"OnlyRoleRegistryOwner when msg.sender is not the owner of the RoleRegistry contractInvalidInput when _beacon == address(0)","details":"Only callable by owner of RoleRegistry","params":{"_newImpl":"New implementation for the beacon contract"}},"upgradeToAndCall(address,bytes)":{"custom:oz-upgrades-unsafe-allow-reachable":"delegatecall","details":"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."},"wrapStocks(address,address[])":{"custom:throws":"InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on this                factory (it belongs on the `processTopUp` rail, unwrapped).RedirectWrapperNotSet If any `tokens[i]` has no registered wrapper.WrapMintedNothing If a wrap credited the TopUp no shares.","details":"Permissionless. Nothing leaves the TopUp: a raw Backed xStock (TSLAx) it was sent      becomes the wrapper (wTSLAx) held by the same TopUp, at the same address, so there is      no recipient for a caller to choose and nothing to gain from calling it. What may be      wrapped is fixed by `setRedirectWrappers`, which is admin-curated and validates the      `asset()` pairing, so the deposit target is never an arbitrary address.      The point is the raw stock's dead end: it is trading-supported in no form of its own      and topup-supported in none either, so left as-is it can neither be swept by      `processTopUp` nor redirected. Converting it to the form the catalogs do list hands it      back to whichever rail should carry it — and that rail runs its own support checks, so      this one deliberately asserts nothing about the wrapper beyond the vault minting.      Each entry wraps the TopUp's whole balance, so the caller needs no amounts and the      TopUp is left holding none of the raw stock. A zero balance is skipped rather than      reverted: the caller can pass a user's full stock list without knowing which of them      actually arrived. Shares are read as the TopUp's own balance delta rather than the      vault's return value, the same way `_executeRedirect` does it.      The conversion itself is `TopUp.wrap`, which has no recipient parameter at all: the      shares can only ever be credited to the TopUp doing the wrapping, so no caller of this      function — and no future caller of the TopUp's own entry point — can route them      anywhere. Moving funds off a TopUp remains the redirect path's job alone.","params":{"tokens":"Raw stocks to wrap. Each must NOT be topup-supported and MUST have a wrapper               registered via `setRedirectWrappers`.","topUp":"The TopUp instance holding the raw stocks. Must be factory-deployed."}},"wrapperFor(address)":{"details":"Read by every `TopUp` on this factory during `redirectToTradingSafe`."}},"title":"TopUpFactory","version":1},"userdoc":{"errors":{"AmountCannotBeZero()":[{"notice":"Error thrown when attempting to bridge with zero amount"}],"ArrayLengthMismatch()":[{"notice":"Error thrown when array lengths mismatch"}],"ChainIdCannotBeZero()":[{"notice":"Error thrown when chain ID is zero"}],"DeployedAddressDifferentFromExpected()":[{"notice":"Thrown when the deployed address doesn't match the predicted address"}],"InitializationFailed()":[{"notice":"Thrown when initialize fails on the deployed contract"}],"InsufficientBalance()":[{"notice":"Error thrown when attempting to bridge with insufficient balance"}],"InsufficientFeePassed()":[{"notice":"Error thrown when insufficient fee is passed for bridging"}],"InvalidConfig()":[{"notice":"Error thrown when the token config passed is invalid"}],"InvalidInput()":[{"notice":"Thrown when input is invalid"}],"InvalidRedirectWrapper()":[{"notice":"Reverts when `setRedirectWrappers` is given a vault that is not an ERC-4626 over         the very token it is being registered for."}],"InvalidStartIndex()":[{"notice":"Error thrown when the start index is invalid"}],"InvalidTopUpAddress()":[{"notice":"Error thrown when trying to pull funds from an address not registered as deployedAddresses"}],"NativeTransferFailed()":[{"notice":"Error thrown when ETH transfer fails"}],"OnlyRedirectRole()":[{"notice":"Error thrown when `redirectToTradingSafe` is called by an account lacking the redirect role."}],"OnlyRoleRegistryOwner()":[{"notice":"Error thrown when caller is not the role registry owner"}],"OnlySupportedTokens()":[{"notice":"Reverts when a sweep entry point is handed a token this factory has no topup         configuration for — the redirect path owns those, not `processTopUp`."}],"OnlyUnsupportedTokens()":[{"notice":"Error thrown when attempting to recover token which is a supported asset"}],"RecoveryWalletCannotBeZeroAddress()":[{"notice":"Error thrown when attempting to set zero address as recovery wallet"}],"RecoveryWalletNotSet()":[{"notice":"Error thrown when recovery wallet is not set"}],"RedirectWrapperNotSet()":[{"notice":"Reverts when `wrapStocks` is asked to wrap a token with no registered wrapper —         there is nothing to deposit into, and silently skipping would hide the missing         `setRedirectWrappers` entry."}],"TokenCannotBeZeroAddress()":[{"notice":"Error thrown when zero address is provided for a token"}],"TokenConfigNotSet()":[{"notice":"Error thrown when attempting to bridge a token without configuration"}],"TokenNotTradingSupported()":[{"notice":"Error thrown when redirecting a token that isn't supported for trading."}],"TradingSafeFactoryCannotBeZeroAddress()":[{"notice":"Reverts when `setTradingSafeFactory` is called with the zero address."}],"TradingSafeFactoryNotSet()":[{"notice":"Reverts when `redirectDestinationFor` is called before         `setTradingSafeFactory` has been configured."}],"TradingSafeNotDeployed()":[{"notice":"Error thrown when the resolved destination is not a deployed, registered TradingSafe."}],"Unauthorized()":[{"notice":"Error thrown when caller is unauthorized to perform an operation"}],"WrapMintedNothing()":[{"notice":"Reverts when the wrap leg credited the TradingSafe no shares at all."}]},"events":{"BeaconImplemenationUpgraded(address,address)":{"notice":"Emitted when the implementation in the beacon address is updated"},"BeaconProxyDeployed(bytes32,address)":{"notice":"Emitted when a new beacon proxy is deployed"},"Bridge(address,uint256,uint256)":{"notice":"Emitted when tokens are bridged to the destination chain"},"Recovery(address,address,uint256)":{"notice":"Emitted when funds are recovered to the recovery wallet"},"RecoveryWalletSet(address,address)":{"notice":"Emitted when the recovery wallet address is updated"},"RedirectFunds(address,address,address,uint256)":{"notice":"Emitted on a successful `redirectToTradingSafe` invocation. Single canonical         event for every TopUp → TradingSafe redirect on this chain."},"RedirectWrapperSet(address,address,address)":{"notice":"Emitted when a token's redirect wrapper is configured or cleared."},"TokenConfigRemoved(address[],uint256[])":{"notice":"Emitted when tokens are retired from the topup lane — their route for the paired         chain cleared and the token dropped from the supported set."},"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])":{"notice":"Emitted when the tokens are configured"},"TradingSafeFactorySet(address,address)":{"notice":"Emitted when the destination-chain TradingSafeFactory address is updated."},"WrapOnRedirect(address,address,address,uint256,uint256)":{"notice":"Emitted when a redirect wrapped a raw stock into its ERC-4626 wrapper on the way         out. Names the conversion the accompanying `RedirectFunds` can't convey: that one         reports the wrapper and the shares the TradingSafe received, this one what the         TopUp actually gave up."},"WrapStock(address,address,address,uint256,uint256)":{"notice":"Emitted for each token `wrapStocks` converted in place at a TopUp. Distinct from         `WrapOnRedirect`: nothing left the TopUp here, so there is no accompanying         `RedirectFunds` — the TopUp simply holds the wrapper instead of the raw stock."}},"kind":"user","methods":{"ETH()":{"notice":"Special address used to represent native ETH in the protocol"},"MAX_ALLOWED_SLIPPAGE()":{"notice":"Max slippage allowed for bridging"},"TOPUP_FACTORY_BRIDGER_ROLE()":{"notice":"Role identifier for accounts authorized to bridge tokens"},"TOPUP_FACTORY_REDIRECT_ROLE()":{"notice":"Role allowed to drive `redirectToTradingSafe`"},"batchRedirectToTradingSafe(address[],address[],uint256[])":{"notice":"Batch variant of `redirectToTradingSafe`. Each parallel-array slot identifies         one redirect operation `(topUps[i], tokens[i], amounts[i])`. Any combination         is allowed — same TopUp multiple times for different tokens, multiple TopUps         for the same token, etc."},"beacon()":{"notice":"Returns the address of the beacon which stores the implementation"},"bridge(address,uint256,uint256)":{"notice":"Bridges tokens to the destination chain using the configured bridge adapter"},"deployTopUpContract(bytes32)":{"notice":"Deploys a new TopUp contract instance"},"getBridgeFee(address,uint256,uint256)":{"notice":"Gets the bridge fee for a token transfer"},"getDeployedAddresses(uint256,uint256)":{"notice":"Gets deployed TopUp contract addresses"},"getDeterministicAddress(bytes32)":{"notice":"Predicts the deterministic address for a given salt"},"getRecoveryWallet()":{"notice":"Gets the current recovery wallet address"},"getTokenConfig(address,uint256)":{"notice":"Gets the bridge configuration for a specific token"},"initialize(address,address)":{"notice":"Initializes the TopUpFactory contract"},"isTokenSupported(address)":{"notice":"Checks if a given token is supported for bridging"},"isTopUpContract(address)":{"notice":"Checks if an address is a deployed TopUp contract"},"numContractsDeployed()":{"notice":"Gets the number of contracts deployed"},"pause()":{"notice":"Pauses the contract"},"processTopUp(address[],uint256,uint256)":{"notice":"Processes specified tokens from a range of deployed topUp contracts"},"processTopUpFromContracts(address[],address[])":{"notice":"Processes specified tokens from a given topUp contract"},"recoverFunds(address,uint256)":{"notice":"Recovers ERC20 tokens to the designated recovery wallet"},"redirectDestinationFor(address)":{"notice":"Returns the destination-chain TradingSafe address that `topUp` redirects to,         derived from the configured `TradingSafeFactory` using the TopUp's own         address as the salt seed. Reverts if `TradingSafeFactory` hasn't been set."},"redirectToTradingSafe(address,address,uint256)":{"notice":"Redirects `amount` of `token` from `topUp` to that user's TradingSafe on the         destination chain. Recovery path for trading-supported, not-topup-supported         tokens that landed at the TopUp address by mistake."},"removeTokenConfig(address[],uint256[])":{"notice":"Takes each `tokens[i]` off the topup lane for `chainIds[i]`: clears its bridge         configuration for that destination and drops it from the supported set."},"roleRegistry()":{"notice":"Returns the address of the Role Registry contract"},"setRecoveryWallet(address)":{"notice":"Sets the recovery wallet address for emergency fund recovery"},"setRedirectWrappers(address[],address[])":{"notice":"Registers, for each `tokens[i]`, the ERC-4626 vault a redirect must deposit it         into instead of transferring it — or clears that with the zero address."},"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])":{"notice":"Sets configuration parameters for multiple tokens"},"setTradingSafeFactory(address)":{"notice":"Sets the destination-chain `TradingSafeFactory` address used by every TopUp         instance when computing the redirect destination."},"tradingSafeFactory()":{"notice":"Returns the destination-chain `TradingSafeFactory` address."},"unpause()":{"notice":"Unpauses the contract"},"upgradeBeaconImplementation(address)":{"notice":"Function to set the new implementation in the beacon contract"},"wrapStocks(address,address[])":{"notice":"Wraps every `tokens[i]` a TopUp holds into that token's registered ERC-4626         wrapper, in place — the TopUp itself receives the shares."},"wrapperFor(address)":{"notice":"Returns the ERC-4626 vault a redirect of `token` deposits into, or zero when the         token is redirected as-is."}},"notice":"Factory contract for deploying TopUp instances using the beacon proxy pattern","version":1}},"settings":{"compilationTarget":{"src/top-up/TopUpFactory.sol":"TopUpFactory"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"none"},"optimizer":{"enabled":true,"runs":0},"remappings":[":@layerzerolabs/lz-evm-messagelib-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/messagelib/",":@layerzerolabs/lz-evm-protocol-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/protocol/",":@layerzerolabs/oapp-evm-upgradeable/=lib/devtools/packages/oapp-evm-upgradeable/",":@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/",":@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/",":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":LayerZero-v2/=lib/LayerZero-v2/",":aave-v4/=lib/aave-v4/src/",":devtools/=lib/devtools/packages/toolbox-foundry/src/",":ds-test/=lib/solidity-bytes-utils/lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/aave-v4/lib/erc4626-tests/",":forge-std/=lib/forge-std/src/",":halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/",":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":solady/=lib/solady/src/",":solidity-bytes-utils/=lib/solidity-bytes-utils/","lib/aave-v4/:src/=lib/aave-v4/src/"]},"sources":{"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"keccak256":"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b","license":"MIT","urls":["bzz-raw://7a61054ae84cd6c4d04c0c4450ba1d6de41e27e0a2c4f1bcdf58f796b401c609","dweb:/ipfs/QmUvtdp7X1mRVyC3CsHrtPbgoqWaXHp3S1ZR24tpAQYJWM"]},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol":{"keccak256":"0xd861907d1168dcaec2a7846edbaed12feb8bad2d6781dba987be01374f90b495","license":"MIT","urls":["bzz-raw://12ff809243040419e2fc2aa7ef0aaa60b3e6ebc901553ba1de970ceeef208c4c","dweb:/ipfs/QmX2dwMVNrQAahqVzEx94gqcVB6Z8ovifPYdEfHZzj7aEb"]},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"keccak256":"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397","license":"MIT","urls":["bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9","dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV"]},"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol":{"keccak256":"0x92915b7f7f642c6be3f65bfd1522feb5d5b6ef25f755f4dbb51df32c868f2f97","license":"MIT","urls":["bzz-raw://85ad36d5cc7e190e1ee6c94b24659bc3a31396c4c36b6ffa6a509e10661f8007","dweb:/ipfs/QmPFyc4zMh2zo6YWZt25gjm3YdR2hg6wGETaWw256fMmJJ"]},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardTransientUpgradeable.sol":{"keccak256":"0x04b70c397e00597da0f023706f7c44ac8c7b4276a1ddff05d3ca5449775bc6f5","license":"MIT","urls":["bzz-raw://d4b8599331bffb75c9d40ad57cf5025c29d384099ece48758fea2f0f5b969eab","dweb:/ipfs/QmXXMq1kgvMdUn3DiTS4zEZNy9EDXfevM2wvYHWwfSW6Yu"]},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"keccak256":"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb","license":"MIT","urls":["bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6","dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"keccak256":"0x9b6b3e7803bc5f2f8cd7ad57db8ac1def61a9930a5a3107df4882e028a9605d7","license":"MIT","urls":["bzz-raw://da62d6be1f5c6edf577f0cb45666a8aa9c2086a4bac87d95d65f02e2f4c36a4b","dweb:/ipfs/QmNkpvBpoCMvX8JwAFNSc5XxJ2q5BXJpL5L1txb4QkqVFF"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"keccak256":"0xde7e9fd9aee8d4f40772f96bb3b58836cbc6dfc0227014a061947f8821ea9724","license":"MIT","urls":["bzz-raw://11fea9f8bc98949ac6709f0c1699db7430d2948137aa94d5a9e95a91f61a710a","dweb:/ipfs/QmQdfRXxQjwP6yn3DVo1GHPpriKNcFghSPi94Z1oKEFUNS"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol":{"keccak256":"0xb25a4f11fa80c702bf5cd85adec90e6f6f507f32f4a8e6f5dbc31e8c10029486","license":"MIT","urls":["bzz-raw://6917f8a323e7811f041aecd4d9fd6e92455a6fba38a797ac6f6e208c7912b79d","dweb:/ipfs/QmShuYv55wYHGi4EFkDB8QfF7ZCHoKk2efyz3AWY1ExSq7"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"keccak256":"0xce41876e78d1badc0512229b4d14e4daf83bc1003d7f83978d18e0e56f965b9c","license":"MIT","urls":["bzz-raw://a2608291cb038b388d80b79a06b6118a42f7894ff67b7da10ec0dbbf5b2973ba","dweb:/ipfs/QmWohqcBLbcxmA4eGPhZDXe5RYMMEEpFq22nfkaUMvTfw1"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol":{"keccak256":"0x666c704c58d4cf404eecd6e4a898a87e25b00b45416678de914e160582c3ff17","license":"MIT","urls":["bzz-raw://6def3cc823ae3f155da28a241a8ff91538222053ed9d78f415758a9133e211a1","dweb:/ipfs/QmSriniszojh4UP4WQqxCJhq2XsbCAULcB4qRij4EYw9Gi"]},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol":{"keccak256":"0xc42facb5094f2f35f066a7155bda23545e39a3156faef3ddc00185544443ba7d","license":"MIT","urls":["bzz-raw://d3b36282ab029b46bd082619a308a2ea11c309967b9425b7b7a6eb0b0c1c3196","dweb:/ipfs/QmP2YVfDB2FoREax3vJu7QhDnyYRMw52WPrCD4vdT2kuDA"]},"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol":{"keccak256":"0x8decfa54cec979c824b044b8128cd91d713f72c71fd7dfa54974624d8c949898","license":"MIT","urls":["bzz-raw://271f914261a19d87117a777e0924ada545c16191ef9b00cc40b0134fc14ebc70","dweb:/ipfs/QmdvVNWHGHQrGGPonZJs5NuzTevTjZRM2zayKrDJf7WBA2"]},"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol":{"keccak256":"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd","license":"MIT","urls":["bzz-raw://e73efb4c2ca655882dc237c6b4f234a9bd36d97159d8fcaa837eb01171f726ac","dweb:/ipfs/QmTNnnv7Gu5fs5G1ZMh7Fexp8N4XUs3XrNAngjcxgiss3e"]},"lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol":{"keccak256":"0xef92aebf99249a8ac1d682b9a0f04b6f2af2a8f631cb126625bab15bafcefda8","license":"MIT","urls":["bzz-raw://9a0709f54f682b4d22d3108e5951019145cd0b4abda4517638410d231f37d960","dweb:/ipfs/QmdR3oRXqheNuBVRW1cMqDCffBsV1DtuvRHuaDph4ZTku2"]},"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol":{"keccak256":"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c","license":"MIT","urls":["bzz-raw://5aa4f07e65444784c29cd7bfcc2341b34381e4e5b5da9f0c5bd00d7f430e66fa","dweb:/ipfs/QmWRMh4Q9DpaU9GvsiXmDdoNYMyyece9if7hnfLz7uqzWM"]},"lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol":{"keccak256":"0x5920bac7215d12961e23b207f6e81a1d64aa4935a4469abe95b64a96a3c3007b","license":"MIT","urls":["bzz-raw://b34bb828c45c3a4ebf6c2c585971abf5089e61357a3818a2900c7e85b74a1299","dweb:/ipfs/QmewGAzKsPXYfSjCKxuH1SekKxtdyzhdbdyxjF5gohLigt"]},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"keccak256":"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7","license":"MIT","urls":["bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db","dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9"]},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"keccak256":"0x70f2f713b13b7ce4610bcd0ac9fec0f3cc43693b043abcb8dc40a42a726eb330","license":"MIT","urls":["bzz-raw://c13d13304ac79a83ab1c30168967d19e2203342ebbd6a9bbce4db7550522dcbf","dweb:/ipfs/QmeN5jKMN2vw5bhacr6tkg78afbTTZUeaacNHqjWt4Ew1r"]},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x4ea01544758fd2c7045961904686bfe232d2220a04ecaa2d6b08dac17827febf","license":"MIT","urls":["bzz-raw://fabe6bef5167ae741dd8c22d7f81d3f9120bd61b290762a2e8f176712567d329","dweb:/ipfs/QmSnEitJ6xmf1SSAUeZozD7Gx7h8bNnX3a1ZBzqeivsvVg"]},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"keccak256":"0xaaa1d17c1129b127a4a401db2fbd72960e2671474be3d08cae71ccdc42f7624c","license":"MIT","urls":["bzz-raw://cb2f27cd3952aa667e198fba0d9b7bcec52fbb12c16f013c25fe6fb52b29cc0e","dweb:/ipfs/QmeuohBFoeyDPZA9JNCTEDz3VBfBD4EABWuWXVhHAuEpKR"]},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"keccak256":"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2","license":"MIT","urls":["bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12","dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF"]},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"keccak256":"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123","license":"MIT","urls":["bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf","dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB"]},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","license":"MIT","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"]},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","license":"MIT","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"]},"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol":{"keccak256":"0x9303ef5a2beb555e52ce56598de205ce07ca8988fc67d073687c06cb8fc973d1","license":"MIT","urls":["bzz-raw://8b2e48fb42844c25e6cb38e7cfa1d91dcdc054613fd10f608833dbc677acf889","dweb:/ipfs/QmT4HQxbgpWA3fZnK4dY3eXHNCoyBvpvzNq5k7eSt5mR5t"]},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8","license":"MIT","urls":["bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621","dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL"]},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"keccak256":"0xa00be322d7db5786750ce0ac7e2f5b633ac30a5ed5fa1ced1e74acfc19acecea","license":"MIT","urls":["bzz-raw://6c84e822f87cbdc4082533b626667b6928715bb2b1e8e7eb96954cebb9e38c8d","dweb:/ipfs/QmZmy9dgxLTerBAQDuuHqbL6EpgRxddqgv5KmwpXYVbKz1"]},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"keccak256":"0x195533c86d0ef72bcc06456a4f66a9b941f38eb403739b00f21fd7c1abd1ae54","license":"MIT","urls":["bzz-raw://b1d578337048cad08c1c03041cca5978eff5428aa130c781b271ad9e5566e1f8","dweb:/ipfs/QmPFKL2r9CBsMwmUqqdcFPfHZB2qcs9g1HDrPxzWSxomvy"]},"lib/solady/src/auth/Ownable.sol":{"keccak256":"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3","license":"MIT","urls":["bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3","dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs"]},"lib/solady/src/utils/CREATE3.sol":{"keccak256":"0x7c5f5a0bd6f3cfa30101ed769ac090e54e1235d412d2859ea11c5de8f00a094d","license":"MIT","urls":["bzz-raw://e64e6905a9b7cb5663468dd00ef5805cb09238e55a075e7a040f46f576203146","dweb:/ipfs/QmTYPZtg5RyozzMHtkrnCy7mC7DoUde4Qdc8Yc9rgS62Yz"]},"lib/solady/src/utils/EnumerableSetLib.sol":{"keccak256":"0x9cb48b991323228021af1044398e837a6f073839af296c1dd4b0ace80820279b","license":"MIT","urls":["bzz-raw://307e592c572f2138f725936da9e1e4564c14b5d3ce07202b1425f807e881a07f","dweb:/ipfs/QmWds35sTi62ZjUkG3ZmAZ1PBCG3R4xw9utKJKb37NxGtp"]},"src/beacon-factory/BeaconFactory.sol":{"keccak256":"0x4603acf4cda2fb488e0a341036b6ad76d63571a34da41488293c839a04c98715","license":"MIT","urls":["bzz-raw://b4ce3a5664f35ba99be16d0e3ab45b9c148557bb04ef0b2eb3ba666756938082","dweb:/ipfs/QmXg75jrVVMPJkMT6iWiif3xiMfs9wsBH5tTQuB7iroFpW"]},"src/interfaces/IRoleRegistry.sol":{"keccak256":"0x2e369821a9f6e1b8958d537c844e2abd3fb09d3addd561cfdc7baaa4b416ea68","license":"MIT","urls":["bzz-raw://6adce508bb7fa5aba57aeb709fb857f95baa35349f34d20daec03caa867e7dda","dweb:/ipfs/QmdZwR4YLc3vpUVL1e9MfUsCuyysoJMryYqgckNnNxcHqw"]},"src/interfaces/ITopUpFactory.sol":{"keccak256":"0xf4ea919b1733e2df7174c33b5c967852c41fda199fe870cf18a708d35391c1ea","license":"MIT","urls":["bzz-raw://0f068447d4de992c9c738e83e07ea0b68ec27d96f94d7981a7b6ce28904e9e40","dweb:/ipfs/QmRLQsRZuijEfL1zzdTBYiyKRm8kqZQSGfyfB8BmRZLB9r"]},"src/interfaces/ITradingSafeFactory.sol":{"keccak256":"0x7be89123105918be41d56bb7447612fedae4fff8ab9a44d020c00b58122e7b75","license":"MIT","urls":["bzz-raw://9e8504a2387d33fa6209d61a9b6cb0a21d82e92304e8f5e430d9ee65a6cfdd37","dweb:/ipfs/QmYMbLnkdLoqtUALbKcR5kQRP1JP3o8aJ32nEHBmxWbepa"]},"src/interfaces/IWETH.sol":{"keccak256":"0xb9f59ab3ddc8a1ad944a60859f27725c968e2b88df88e284b6818145c54a9ea9","license":"MIT","urls":["bzz-raw://53abbb5486337ee7f677005c1f2ca393eda5f35bd8ef7fd9647f1d87a1b39266","dweb:/ipfs/QmdZdcoXGKDuVpvHLj3EqK2vYz4vRoGMzq2AeSv8XMBjAd"]},"src/libraries/DelegateCallLib.sol":{"keccak256":"0x16b5f7bd059b268e4968daeefd0b7708f4e1d651f886aca937aa85b5b6dd7f93","license":"MIT","urls":["bzz-raw://db2b1df646c3eef79db0a710dee9a038c86d715174bfa33cc8aca190b6f75f75","dweb:/ipfs/QmS24xvd1UwAxJzqgPQ8Wg1fH8U7thQyRdqL7mi8csjVum"]},"src/top-up/TopUp.sol":{"keccak256":"0xc1e05574c47b265fc733c0314e893fedf198e96b1a2849bca6a6bf5b0d84ee60","license":"MIT","urls":["bzz-raw://da9a12eba3f315a3257d02d59e16e5784b293f1760b3ed0833436d814e178b98","dweb:/ipfs/QmbVSxXhTASb4rdJawZJF88FJ2UCuCaGjbZUWghnpGdzBN"]},"src/top-up/TopUpFactory.sol":{"keccak256":"0x30066211df433182dadc80c659c116b50a362f6d2a08ad0de4fd437ebc749acc","license":"MIT","urls":["bzz-raw://caf09c93b87c2aeacbbcbc8abbb455b53129364dc7ec30418fba7e8b2bde6455","dweb:/ipfs/QmYQrNAWE7mt6T4axuJ9Dt85fUcZcAxtYKA8vS8kYVxZPt"]},"src/top-up/bridge/BridgeAdapterBase.sol":{"keccak256":"0xfc647bd2ef7d91008a7214f9a2c2f6db72fcda451cb0ef43e2c13e074b6a1252","license":"MIT","urls":["bzz-raw://b772b2970b1895af9ad5ff6d5719a847ecefd7edd342d51f8833322e962a1beb","dweb:/ipfs/QmQrtR2dA31vraViw9V7SrGAHHF4DWM5DD5u2N1D6usEi2"]},"src/utils/Constants.sol":{"keccak256":"0x19cf1a031743f6db22d6e3171a7880c6b1b431a4ded2d54a8c7597165d3e2b5a","license":"MIT","urls":["bzz-raw://985e1e8c978fd3d0d18ea7f74be9c28db13dd91d59f56e37b320f29162d57501","dweb:/ipfs/QmewvHSYfkYMfjyF4SnTusMgHsxCTzYRbWHc2g8vePASkS"]},"src/utils/UpgradeableProxy.sol":{"keccak256":"0x308b5e52b4eeab86c2b27890faf5ea0e680ab8999c7279a7a8b018e5549f5d4a","license":"MIT","urls":["bzz-raw://3b68d1861a19fcf3c02b9c03c7dd752b3462708678d2960c2aac95fc15ea174e","dweb:/ipfs/QmX2hyumrw9GsaPm2XpzPys5V3phagCv8JJN3HVFVFFAZa"]}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","errors":{"InvalidInput()":[{"notice":"Thrown when input is invalid"}],"Unauthorized()":[{"notice":"Error thrown when caller is unauthorized to perform an operation"}],"InvalidConfig()":[{"notice":"Error thrown when the token config passed is invalid"}],"OnlyRedirectRole()":[{"notice":"Error thrown when `redirectToTradingSafe` is called by an account lacking the redirect role."}],"InvalidStartIndex()":[{"notice":"Error thrown when the start index is invalid"}],"TokenConfigNotSet()":[{"notice":"Error thrown when attempting to bridge a token without configuration"}],"WrapMintedNothing()":[{"notice":"Reverts when the wrap leg credited the TradingSafe no shares at all."}],"AmountCannotBeZero()":[{"notice":"Error thrown when attempting to bridge with zero amount"}],"ArrayLengthMismatch()":[{"notice":"Error thrown when array lengths mismatch"}],"ChainIdCannotBeZero()":[{"notice":"Error thrown when chain ID is zero"}],"InsufficientBalance()":[{"notice":"Error thrown when attempting to bridge with insufficient balance"}],"InvalidTopUpAddress()":[{"notice":"Error thrown when trying to pull funds from an address not registered as deployedAddresses"}],"OnlySupportedTokens()":[{"notice":"Reverts when a sweep entry point is handed a token this factory has no topup         configuration for — the redirect path owns those, not `processTopUp`."}],"InitializationFailed()":[{"notice":"Thrown when initialize fails on the deployed contract"}],"NativeTransferFailed()":[{"notice":"Error thrown when ETH transfer fails"}],"RecoveryWalletNotSet()":[{"notice":"Error thrown when recovery wallet is not set"}],"InsufficientFeePassed()":[{"notice":"Error thrown when insufficient fee is passed for bridging"}],"OnlyRoleRegistryOwner()":[{"notice":"Error thrown when caller is not the role registry owner"}],"OnlyUnsupportedTokens()":[{"notice":"Error thrown when attempting to recover token which is a supported asset"}],"RedirectWrapperNotSet()":[{"notice":"Reverts when `wrapStocks` is asked to wrap a token with no registered wrapper —         there is nothing to deposit into, and silently skipping would hide the missing         `setRedirectWrappers` entry."}],"InvalidRedirectWrapper()":[{"notice":"Reverts when `setRedirectWrappers` is given a vault that is not an ERC-4626 over         the very token it is being registered for."}],"TradingSafeNotDeployed()":[{"notice":"Error thrown when the resolved destination is not a deployed, registered TradingSafe."}],"TokenCannotBeZeroAddress()":[{"notice":"Error thrown when zero address is provided for a token"}],"TokenNotTradingSupported()":[{"notice":"Error thrown when redirecting a token that isn't supported for trading."}],"TradingSafeFactoryNotSet()":[{"notice":"Reverts when `redirectDestinationFor` is called before         `setTradingSafeFactory` has been configured."}],"RecoveryWalletCannotBeZeroAddress()":[{"notice":"Error thrown when attempting to set zero address as recovery wallet"}],"DeployedAddressDifferentFromExpected()":[{"notice":"Thrown when the deployed address doesn't match the predicted address"}],"TradingSafeFactoryCannotBeZeroAddress()":[{"notice":"Reverts when `setTradingSafeFactory` is called with the zero address."}]},"events":{"Bridge(address,uint256,uint256)":{"notice":"Emitted when tokens are bridged to the destination chain"},"Recovery(address,address,uint256)":{"notice":"Emitted when funds are recovered to the recovery wallet"},"RecoveryWalletSet(address,address)":{"notice":"Emitted when the recovery wallet address is updated"},"BeaconProxyDeployed(bytes32,address)":{"notice":"Emitted when a new beacon proxy is deployed"},"TradingSafeFactorySet(address,address)":{"notice":"Emitted when the destination-chain TradingSafeFactory address is updated."},"TokenConfigRemoved(address[],uint256[])":{"notice":"Emitted when tokens are retired from the topup lane — their route for the paired         chain cleared and the token dropped from the supported set."},"RedirectWrapperSet(address,address,address)":{"notice":"Emitted when a token's redirect wrapper is configured or cleared."},"BeaconImplemenationUpgraded(address,address)":{"notice":"Emitted when the implementation in the beacon address is updated"},"RedirectFunds(address,address,address,uint256)":{"notice":"Emitted on a successful `redirectToTradingSafe` invocation. Single canonical         event for every TopUp → TradingSafe redirect on this chain."},"WrapStock(address,address,address,uint256,uint256)":{"notice":"Emitted for each token `wrapStocks` converted in place at a TopUp. Distinct from         `WrapOnRedirect`: nothing left the TopUp here, so there is no accompanying         `RedirectFunds` — the TopUp simply holds the wrapper instead of the raw stock."},"WrapOnRedirect(address,address,address,uint256,uint256)":{"notice":"Emitted when a redirect wrapped a raw stock into its ERC-4626 wrapper on the way         out. Names the conversion the accompanying `RedirectFunds` can't convey: that one         reports the wrapper and the shares the TradingSafe received, this one what the         TopUp actually gave up."},"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])":{"notice":"Emitted when the tokens are configured"}},"notice":"Factory contract for deploying TopUp instances using the beacon proxy pattern","methods":{"ETH()":{"notice":"Special address used to represent native ETH in the protocol"},"pause()":{"notice":"Pauses the contract"},"beacon()":{"notice":"Returns the address of the beacon which stores the implementation"},"unpause()":{"notice":"Unpauses the contract"},"roleRegistry()":{"notice":"Returns the address of the Role Registry contract"},"getRecoveryWallet()":{"notice":"Gets the current recovery wallet address"},"wrapperFor(address)":{"notice":"Returns the ERC-4626 vault a redirect of `token` deposits into, or zero when the         token is redirected as-is."},"tradingSafeFactory()":{"notice":"Returns the destination-chain `TradingSafeFactory` address."},"MAX_ALLOWED_SLIPPAGE()":{"notice":"Max slippage allowed for bridging"},"numContractsDeployed()":{"notice":"Gets the number of contracts deployed"},"isTopUpContract(address)":{"notice":"Checks if an address is a deployed TopUp contract"},"isTokenSupported(address)":{"notice":"Checks if a given token is supported for bridging"},"setRecoveryWallet(address)":{"notice":"Sets the recovery wallet address for emergency fund recovery"},"initialize(address,address)":{"notice":"Initializes the TopUpFactory contract"},"TOPUP_FACTORY_BRIDGER_ROLE()":{"notice":"Role identifier for accounts authorized to bridge tokens"},"deployTopUpContract(bytes32)":{"notice":"Deploys a new TopUp contract instance"},"TOPUP_FACTORY_REDIRECT_ROLE()":{"notice":"Role allowed to drive `redirectToTradingSafe`"},"recoverFunds(address,uint256)":{"notice":"Recovers ERC20 tokens to the designated recovery wallet"},"wrapStocks(address,address[])":{"notice":"Wraps every `tokens[i]` a TopUp holds into that token's registered ERC-4626         wrapper, in place — the TopUp itself receives the shares."},"setTradingSafeFactory(address)":{"notice":"Sets the destination-chain `TradingSafeFactory` address used by every TopUp         instance when computing the redirect destination."},"bridge(address,uint256,uint256)":{"notice":"Bridges tokens to the destination chain using the configured bridge adapter"},"getTokenConfig(address,uint256)":{"notice":"Gets the bridge configuration for a specific token"},"redirectDestinationFor(address)":{"notice":"Returns the destination-chain TradingSafe address that `topUp` redirects to,         derived from the configured `TradingSafeFactory` using the TopUp's own         address as the salt seed. Reverts if `TradingSafeFactory` hasn't been set."},"getDeterministicAddress(bytes32)":{"notice":"Predicts the deterministic address for a given salt"},"upgradeBeaconImplementation(address)":{"notice":"Function to set the new implementation in the beacon contract"},"getBridgeFee(address,uint256,uint256)":{"notice":"Gets the bridge fee for a token transfer"},"getDeployedAddresses(uint256,uint256)":{"notice":"Gets deployed TopUp contract addresses"},"removeTokenConfig(address[],uint256[])":{"notice":"Takes each `tokens[i]` off the topup lane for `chainIds[i]`: clears its bridge         configuration for that destination and drops it from the supported set."},"processTopUp(address[],uint256,uint256)":{"notice":"Processes specified tokens from a range of deployed topUp contracts"},"setRedirectWrappers(address[],address[])":{"notice":"Registers, for each `tokens[i]`, the ERC-4626 vault a redirect must deposit it         into instead of transferring it — or clears that with the zero address."},"processTopUpFromContracts(address[],address[])":{"notice":"Processes specified tokens from a given topUp contract"},"redirectToTradingSafe(address,address,uint256)":{"notice":"Redirects `amount` of `token` from `topUp` to that user's TradingSafe on the         destination chain. Recovery path for trading-supported, not-topup-supported         tokens that landed at the TopUp address by mistake."},"batchRedirectToTradingSafe(address[],address[],uint256[])":{"notice":"Batch variant of `redirectToTradingSafe`. Each parallel-array slot identifies         one redirect operation `(topUps[i], tokens[i], amounts[i])`. Any combination         is allowed — same TopUp multiple times for different tokens, multiple TopUps         for the same token, etc."},"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])":{"notice":"Sets configuration parameters for multiple tokens"}},"version":1},"devdoc":{"kind":"dev","title":"TopUpFactory","author":"ether.fi","errors":{"FailedCall()":[{"details":"A call to an address target failed. The target may have reverted."}],"EnforcedPause()":[{"details":"The operation failed because the contract is paused."}],"ExpectedPause()":[{"details":"The operation failed because the contract is not paused."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"IndexOutOfBounds()":[{"details":"The index must be less than the length."}],"ERC1967NonPayable()":[{"details":"An upgrade function sees `msg.value > 0` that may be lost."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"AddressEmptyCode(address)":[{"details":"There's no code at `target` (it is not a contract)."}],"UUPSUnauthorizedCallContext()":[{"details":"The call is from an unauthorized context."}],"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"ERC1967InvalidImplementation(address)":[{"details":"The `implementation` of the proxy is invalid."}],"UUPSUnsupportedProxiableUUID(bytes32)":[{"details":"The storage `slot` is unsupported as a UUID."}]},"events":{"Paused(address)":{"details":"Emitted when the pause is triggered by `account`."},"Unpaused(address)":{"details":"Emitted when the pause is lifted by `account`."},"Upgraded(address)":{"details":"Emitted when the implementation is upgraded."},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized or reinitialized."},"Bridge(address,uint256,uint256)":{"params":{"token":"The address of the token being bridged","amount":"The amount of tokens being bridged"}},"Recovery(address,address,uint256)":{"params":{"token":"The token being recovered","amount":"The amount of tokens recovered","recoveryWallet":"The address receiving the recovered funds"}},"RecoveryWalletSet(address,address)":{"params":{"newRecoveryWallet":"The new recovery wallet address","oldRecoveryWallet":"The previous recovery wallet address"}},"BeaconProxyDeployed(bytes32,address)":{"params":{"salt":"The salt for deterministic deployment","deployed":"The address of the newly deployed proxy"}},"TradingSafeFactorySet(address,address)":{"params":{"newFactory":"New address.","oldFactory":"Previous address (zero on first set)."}},"TokenConfigRemoved(address[],uint256[])":{"params":{"tokens":"Tokens retired.","chainIds":"Per-entry destination chain whose route was cleared."}},"RedirectWrapperSet(address,address,address)":{"params":{"token":"The token being redirected.","newWrapper":"New vault, or zero to go back to a plain transfer.","oldWrapper":"Previous vault (zero when the token used to travel as-is)."}},"BeaconImplemenationUpgraded(address,address)":{"params":{"newImpl":"The new impl address","oldImpl":"The previous impl address"}},"RedirectFunds(address,address,address,uint256)":{"params":{"token":"ERC20 redirected.","topUp":"The TopUp instance that the funds were redirected from.","amount":"Amount transferred.","tradingSafe":"The destination TradingSafe that received the funds."}},"WrapStock(address,address,address,uint256,uint256)":{"params":{"topUp":"The TopUp whose raw stock was wrapped, and the receiver of the shares.","assets":"Amount of `underlying` deposited — the TopUp's entire balance of it.","shares":"Amount of `wrapper` the TopUp was credited.","wrapper":"The ERC-4626 vault the stock was deposited into.","underlying":"The raw stock that was wrapped."}},"WrapOnRedirect(address,address,address,uint256,uint256)":{"params":{"topUp":"The TopUp the underlying was pulled from.","assets":"Amount of `underlying` deposited.","shares":"Amount of `wrapper` credited to the TradingSafe.","wrapper":"The ERC-4626 vault — the trading-supported token the TradingSafe receives.","underlying":"The raw token that was wrapped."}},"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])":{"params":{"config":"Array of TokenConfig struct","tokens":"Array of token addresses"}}},"details":"Extends BeaconFactory to provide Beacon Proxy deployment functionality","methods":{"pause()":{"details":"Only callable by accounts with the pauser role"},"beacon()":{"returns":{"_0":"beacon Address of the beacon contract"}},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"unpause()":{"details":"Only callable by accounts with the unpauser role"},"constructor":{"custom:oz-upgrades-unsafe-allow":"constructor"},"roleRegistry()":{"returns":{"_0":"roleRegistry Reference to the role registry contract"}},"proxiableUUID()":{"details":"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."},"getRecoveryWallet()":{"details":"Returns the address where funds can be recovered to","returns":{"_0":"The configured recovery wallet address"}},"wrapperFor(address)":{"details":"Read by every `TopUp` on this factory during `redirectToTradingSafe`."},"numContractsDeployed()":{"returns":{"_0":"Number of contracts deployed"}},"isTopUpContract(address)":{"params":{"topUpContract":"The address to check"},"details":"Returns whether the address is in the deployed addresses set","returns":{"_0":"True if the address is a deployed TopUp contract, false otherwise"}},"isTokenSupported(address)":{"params":{"token":"The address of the token to check"},"details":"Returns whether the token is in the supported tokens set","returns":{"_0":"True if the token is supported, false otherwise"}},"setRecoveryWallet(address)":{"params":{"_recoveryWallet":"The new recovery wallet address"},"details":"Only callable by admin role","custom:throws":"OnlyAdminTimelock if the caller does not have ADMIN_TIMELOCK_ROLERecoveryWalletCannotBeZeroAddress if provided address is zero"},"initialize(address,address)":{"params":{"_topUpImpl":"Address of the topUp implementation contract","_roleRegistry":"Address of the role registry contract"},"details":"Sets up the role registry, admin, and beacon implementation"},"deployTopUpContract(bytes32)":{"params":{"salt":"The salt value used for deterministic deployment"}},"recoverFunds(address,uint256)":{"params":{"token":"The address of the token to recover","amount":"The amount of tokens to recover"},"details":"Only callable by admin role","custom:throws":"OnlyAdmin if caller doesn't have admin roleTokenCannotBeZeroAddress if token address is zeroOnlyUnsupportedTokens if token is a supported bridge assetRecoveryWalletNotSet if recovery wallet is not configured"},"wrapStocks(address,address[])":{"params":{"topUp":"The TopUp instance holding the raw stocks. Must be factory-deployed.","tokens":"Raw stocks to wrap. Each must NOT be topup-supported and MUST have a wrapper               registered via `setRedirectWrappers`."},"details":"Permissionless. Nothing leaves the TopUp: a raw Backed xStock (TSLAx) it was sent      becomes the wrapper (wTSLAx) held by the same TopUp, at the same address, so there is      no recipient for a caller to choose and nothing to gain from calling it. What may be      wrapped is fixed by `setRedirectWrappers`, which is admin-curated and validates the      `asset()` pairing, so the deposit target is never an arbitrary address.      The point is the raw stock's dead end: it is trading-supported in no form of its own      and topup-supported in none either, so left as-is it can neither be swept by      `processTopUp` nor redirected. Converting it to the form the catalogs do list hands it      back to whichever rail should carry it — and that rail runs its own support checks, so      this one deliberately asserts nothing about the wrapper beyond the vault minting.      Each entry wraps the TopUp's whole balance, so the caller needs no amounts and the      TopUp is left holding none of the raw stock. A zero balance is skipped rather than      reverted: the caller can pass a user's full stock list without knowing which of them      actually arrived. Shares are read as the TopUp's own balance delta rather than the      vault's return value, the same way `_executeRedirect` does it.      The conversion itself is `TopUp.wrap`, which has no recipient parameter at all: the      shares can only ever be credited to the TopUp doing the wrapping, so no caller of this      function — and no future caller of the TopUp's own entry point — can route them      anywhere. Moving funds off a TopUp remains the redirect path's job alone.","custom:throws":"InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on this                factory (it belongs on the `processTopUp` rail, unwrapped).RedirectWrapperNotSet If any `tokens[i]` has no registered wrapper.WrapMintedNothing If a wrap credited the TopUp no shares."},"setTradingSafeFactory(address)":{"params":{"_tradingSafeFactory":"Address of the destination-chain TradingSafeFactory."},"details":"Routes user-fund redirects, so it is gated like an upgrade: only the RoleRegistry      owner (the upgrade timelock) may call it. Read by `TopUp.redirectToTradingSafe` via the `tradingSafeFactory()`      view below.","custom:throws":"TradingSafeFactoryCannotBeZeroAddress If `_tradingSafeFactory == address(0)`."},"bridge(address,uint256,uint256)":{"params":{"token":"The address of the token to bridge"},"details":"Uses delegate call to execute the bridge operation through the appropriate adapter","custom:throws":"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if amount passed is zeroInsufficientBalance if contract has insufficient balance of the specified token"},"getTokenConfig(address,uint256)":{"params":{"token":"The address of the token to query"},"details":"Returns the TokenConfig struct containing bridge settings","returns":{"_0":"Configuration parameters for the specified token"}},"redirectDestinationFor(address)":{"params":{"topUp":"The per-user TopUp instance."},"details":"Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the      TopUp impl stateless.","custom:throws":"TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been                called."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.","custom:oz-upgrades-unsafe-allow-reachable":"delegatecall"},"getDeterministicAddress(bytes32)":{"params":{"salt":"The salt value used for address prediction"},"returns":{"_0":"The predicted deployment address"}},"upgradeBeaconImplementation(address)":{"params":{"_newImpl":"New implementation for the beacon contract"},"details":"Only callable by owner of RoleRegistry","custom:throws":"OnlyRoleRegistryOwner when msg.sender is not the owner of the RoleRegistry contractInvalidInput when _beacon == address(0)"},"getBridgeFee(address,uint256,uint256)":{"params":{"token":"The address of the token to bridge","amount":"The amount of the token to bridge"},"details":"Queries the bridge adapter for the fee estimation","returns":{"_token":"The fee token address","_amount":"The fee amount in the _token's decimals"},"custom:throws":"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if contract has no balance of the specified token"},"getDeployedAddresses(uint256,uint256)":{"params":{"n":"Number of topUp contracts to get","start":"Starting index in the deployedAddresses array"},"details":"Returns an array of TopUp contracts deployed by this factory","returns":{"_0":"An array of deployed TopUp contract addresses"},"custom:throws":"InvalidStartIndex if start index is invalid"},"removeTokenConfig(address[],uint256[])":{"params":{"tokens":"Tokens to retire.","chainIds":"Per-entry destination chain whose route is being cleared."},"details":"Only callable by addresses with ADMIN_TIMELOCK_ROLE      it only ever adds to `supportedTokens`, and rejects a zeroed config, so before this      there was no way to retire an asset from the lane at all.      Both halves matter and neither is sufficient alone. `bridge` gates on      `tokenChainConfig[token][destChainId].bridgeAdapter`, never on the supported set, so      leaving the config in place would keep the route open to the bridger role; while      `processTopUp`, `recoverFunds`, the redirects and `wrapStocks` all gate on the set, so      leaving the token in it would keep sweeping the asset the config no longer routes.      A token leaves the supported set as soon as one of its routes is removed, because the      set has no per-chain granularity and the chains a token is configured for are not      enumerable on-chain. A token with routes on several destinations must therefore have      all of them passed in — otherwise the leftover routes stay bridgeable while sweeping      stops, which is a half-retired asset. Removing a route that was never configured      reverts rather than passing silently, so a mistyped chain id can't read as a closed      route.","custom:emits":"TokenConfigRemoved","custom:throws":"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.ChainIdCannotBeZero If any `chainIds[i]` is zero.TokenConfigNotSet If any `(tokens[i], chainIds[i])` has no configured route."},"processTopUp(address[],uint256,uint256)":{"params":{"n":"Number of topUp contracts to process","start":"Starting index in the deployedAddresses array","tokens":"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`."},"details":"Iterates through deployed topUp contracts starting at index 'start' and calls processTopUp on each","custom:throws":"OnlySupportedTokens If any token has no topup configuration on this factoryIf start + n exceeds the number of deployed topUp contractsIf any topUp's processTopUp call fails"},"setRedirectWrappers(address[],address[])":{"params":{"tokens":"Tokens being redirected (the raw stock a TopUp receives).","wrappers":"Per-entry ERC-4626 vault over `tokens[i]`, or zero to transfer as-is."},"details":"Only callable by addresses with ADMIN_TIMELOCK_ROLE      tokenized equities a TradingSafe can hold are `WrappedBackedToken` vaults (wTSLAx),      while what a user sends to a TopUp address is the raw Backed xStock underneath      (TSLAx), which is trading-supported in no form of its own and would otherwise be      stranded at the TopUp. Registering TSLAx → wTSLAx makes the existing redirect wrap it      on the way out, with no change to how the backend calls it.      The pairing is verified here rather than trusted: `asset()` must name the very token      being configured, which both proves the vault is the right one and that it is a vault      at all (a non-4626 target reverts the call). That check is what lets      `TopUp.redirectToTradingSafe` approve and call the wrapper without re-validating it.      Curating this per token — rather than probing `asset()` at redirect time — keeps an      arbitrary 4626 that happens to wrap a valuable token from becoming a redirect target.","custom:throws":"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.InvalidRedirectWrapper If any non-zero `wrappers[i]` is not an ERC-4626                whose `asset()` is `tokens[i]`."},"processTopUpFromContracts(address[],address[])":{"params":{"tokens":"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`.","topUpContracts":"Array of addresses of the topUp contracts to process"},"details":"Verifies the topUp contract is valid before attempting to pull funds","custom:throws":"OnlySupportedTokens If any token has no topup configuration on this factoryInvalidTopUpAddress if the TopUp address is not a deployed TopUp contractIf the TopUp contracts's processTopUp call fails"},"redirectToTradingSafe(address,address,uint256)":{"params":{"token":"ERC20 to redirect. Must NOT be topup-supported, and the form it arrives in at              the safe — itself, or its configured wrapper — MUST be trading-supported.","topUp":"Address of the TopUp instance to redirect from.","amount":"Amount of `token` to transfer."},"details":"Backend-role gated (`TOPUP_FACTORY_REDIRECT_ROLE`). Destination is always the      user's own deployed TradingSafe (derived from the TopUp address); the token must      be NOT topup-supported AND trading-supported, and the destination must be an      already-deployed, registered TradingSafe (never a codeless prediction).      A token with a redirect wrapper configured (`setRedirectWrappers`) is deposited into      that vault instead of transferred, so a raw Backed xStock sitting at a TopUp lands in      the safe as the wrapper its trading catalog actually lists. The trading-supported      check then applies to the wrapper — the form the safe receives — since the raw stock      is trading-supported in no form of its own. Nothing about the call changes: `token`      and `amount` still describe what leaves the TopUp.","custom:throws":"OnlyRedirectRole If caller lacks `TOPUP_FACTORY_REDIRECT_ROLE`.InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If `token` has a topup configuration on this                factory (route it through `processTopUp` instead).TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If what the safe would receive is not a supported                trading asset.TradingSafeNotDeployed If the resolved TradingSafe isn't deployed/registered.WrapMintedNothing If a wrapped redirect credited the safe no shares."},"batchRedirectToTradingSafe(address[],address[],uint256[])":{"params":{"tokens":"Per-entry ERC20 to redirect. Each must NOT be topup-supported, and the form               it arrives in at the safe — itself, or its configured wrapper — MUST be               trading-supported.","topUps":"Per-entry TopUp instance.","amounts":"Per-entry amount of `tokens[i]` to transfer."},"details":"Backend-role gated (same rationale as the single-entry variant). Atomic      all-or-nothing: a revert on any entry rolls back the entire batch. Same      per-entry guards: rejects topup-supported tokens and requires trading-supported.      A token with a configured redirect wrapper wraps on the way out here exactly as it      does in the single-entry variant; both share `_executeRedirect`.","custom:throws":"ArrayLengthMismatch If the three arrays don't agree on length.InvalidTopUpAddress If any `topUps[i]` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on                this factory.TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If any `tokens[i]` is not a supported trading asset."},"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])":{"params":{"tokens":"Array of token addresses to configure","configs":"Array of TokenConfig structs containing bridge settings for each token"},"details":"Allows admin to configure bridge settings for multiple tokens in a single transaction","custom:emits":"TokenConfigSet when configs are updated","custom:throws":"ArrayLengthMismatch if tokens and configs arrays have different lengthsTokenCannotBeZeroAddress if any token address is zeroInvalidConfig if any config has invalid parameters:   - bridgeAdapter is zero address   - recipientOnDestChain is zero address   - maxSlippageInBps exceeds MAX_ALLOWED_SLIPPAGE"}},"version":1},"sourceIds":{"src/top-up/TopUp.sol":{"id":38},"src/utils/Constants.sol":{"id":41},"src/interfaces/IWETH.sol":{"id":36},"src/top-up/TopUpFactory.sol":{"id":39},"src/utils/UpgradeableProxy.sol":{"id":42},"lib/solady/src/auth/Ownable.sol":{"id":29},"lib/solady/src/utils/CREATE3.sol":{"id":30},"src/interfaces/IRoleRegistry.sol":{"id":33},"src/interfaces/ITopUpFactory.sol":{"id":34},"src/libraries/DelegateCallLib.sol":{"id":37},"src/beacon-factory/BeaconFactory.sol":{"id":32},"src/interfaces/ITradingSafeFactory.sol":{"id":35},"src/top-up/bridge/BridgeAdapterBase.sol":{"id":40},"lib/solady/src/utils/EnumerableSetLib.sol":{"id":31},"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol":{"id":13},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"id":23},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"id":22},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"id":20},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"id":21},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"id":5},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":27},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":9},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"id":24},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":7},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":17},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":6},"lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol":{"id":8},"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol":{"id":10},"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol":{"id":25},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":28},"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol":{"id":15},"lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol":{"id":14},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol":{"id":11},"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol":{"id":12},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":19},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":26},"lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol":{"id":16},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"id":2},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"id":0},"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol":{"id":3},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":18},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol":{"id":1},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardTransientUpgradeable.sol":{"id":4}},"additionalInput":null,"stdJsonInput":{"sources":{"src/top-up/TopUp.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { IERC4626 } from \"@openzeppelin/contracts/interfaces/IERC4626.sol\";\nimport { IERC20, SafeERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { Ownable } from \"solady/auth/Ownable.sol\";\n\nimport { ITopUpFactory } from \"../interfaces/ITopUpFactory.sol\";\nimport { IWETH } from \"../interfaces/IWETH.sol\";\nimport { Constants } from \"../utils/Constants.sol\";\n\n/**\n * @title TopUp\n * @notice A contract that allows the owner to withdraw both ETH and ERC20 tokens\n * @dev Inherits from Constants for ETH address constant and Solady's Ownable for access control\n * @author ether.fi\n */\ncontract TopUp is Constants, Ownable {\n    using SafeERC20 for IERC20;\n\n    /// @notice Error thrown when non-owner tries to access owner-only functions\n    error OnlyOwner();\n    /// @notice Error thrown when ETH transfer fails\n    error EthTransferFailed();\n    /// @notice Reverts when `redirectToTradingSafe` is called with zero amount.\n    error InvalidAmount();\n    /// @notice Reverts when `wrap` is called for a token the factory has registered no ERC-4626\n    ///         wrapper for — there is nothing to deposit into.\n    error WrapperNotSet();\n\n    /// @notice Emitted when funds are processed\n    /// @param token Address of the token processed\n    /// @param amount Amount of the token processed\n    event ProcessTopUp(address indexed token, uint256 amount);\n\n    address public immutable weth;\n\n    constructor(address _weth) {\n        // initialize with dead so the impl ownership cannot be taken over by someone\n        _initializeOwner(address(0xdead));\n\n        weth = _weth;\n    }\n\n    /**\n     * @notice Initializes the contract with an owner\n     * @dev Can only be called once, sets initial owner\n     * @param _owner Address that will be granted ownership of the contract\n     * @custom:throws AlreadyInitialized if already initialized\n     */\n    function initialize(address _owner) external {\n        if (owner() != address(0)) revert AlreadyInitialized();\n        _initializeOwner(_owner);\n    }\n\n    /**\n     * @notice Allows owner to withdraw multiple tokens including ETH\n     * @dev Handles both ETH (using ETH constant) and ERC20 tokens\n     * @param tokens Array of token addresses (use ETH constant for ETH)\n     * @custom:security Uses a gas limit of 10_000 for ETH transfers to prevent reentrancy\n     * @custom:throws OnlyOwner if caller is not the owner\n     * @custom:throws EthTransferFailed if ETH transfer fails\n     */\n    function processTopUp(address[] memory tokens) external {\n        address _owner = owner();\n        if (_owner != msg.sender) revert OnlyOwner();\n\n        uint256 len = tokens.length;\n\n        for (uint256 i = 0; i < len;) {\n            uint256 balance;\n            if (tokens[i] == ETH) {\n                balance = address(this).balance;\n                if (balance > 0) _handleETH(balance);\n                \n                tokens[i] = weth;\n            }\n\n            balance = IERC20(tokens[i]).balanceOf(address(this));\n            if (balance > 0) { \n                IERC20(tokens[i]).safeTransfer(_owner, balance);\n                emit ProcessTopUp(tokens[i], balance);\n            }\n            \n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    function _handleETH(uint256 amount) internal {\n        if (amount > 0) {\n            IWETH(weth).deposit{value: amount}();\n            // This is done to emit a transfer event so we can just track WETH transfers to this contract\n            IWETH(weth).transfer(address(this), amount);\n        }\n    }\n\n    /**\n     * @notice Moves `amount` of `token` from this TopUp to `tradingSafe`. Recovery path\n     *         for trading-supported, not-topup-supported tokens (e.g. Ondo SPY) that landed\n     *         at the TopUp address by mistake.\n     *\n     * @dev Whether the token travels as-is or gets wrapped on the way out is configuration, not\n     *      a parameter: the factory's `wrapperFor(token)` names the ERC-4626 vault a raw Backed\n     *      xStock must be deposited into, because the destination TradingSafe's catalog lists the\n     *      wrapper (wTSLAx) and not the raw stock (TSLAx) a user actually sends to a TopUp\n     *      address. An unconfigured token — every token today — is the plain transfer this has\n     *      always been. Reading the mapping off the owner rather than taking it as an argument\n     *      keeps the redirect a single call shape for the backend and this contract free of\n     *      per-token state.\n     *\n     *      On the wrap leg the vault mints straight to `tradingSafe`, so the shares never touch\n     *      this contract. The deposit itself is `_wrap`, shared with the in-place `wrap` — the\n     *      two differ only in who receives the shares.\n     *\n     * @param token ERC20 to redirect — always the token this TopUp holds, never its wrapper.\n     * @param tradingSafe Destination TradingSafe (resolved and supplied by the factory).\n     * @param amount Amount of `token` to move.\n     * @custom:throws OnlyOwner If caller is not the owner.\n     * @custom:throws InvalidAmount If `amount == 0`.\n     */\n    function redirectToTradingSafe(address token, address tradingSafe, uint256 amount) external {\n        address _owner = owner();\n        if (_owner != msg.sender) revert OnlyOwner();\n        if (amount == 0) revert InvalidAmount();\n\n        address wrapper = ITopUpFactory(_owner).wrapperFor(token);\n        if (wrapper == address(0)) {\n            IERC20(token).safeTransfer(tradingSafe, amount);\n            return;\n        }\n\n        _wrap(token, wrapper, tradingSafe, amount);\n    }\n\n    /**\n     * @notice Wraps `amount` of `token` into the ERC-4626 wrapper the factory has registered for\n     *         it, crediting the shares to this same TopUp.\n     *\n     * @dev Nothing leaves this contract: the raw Backed xStock (TSLAx) a user sent to their TopUp\n     *      address becomes the wrapper (wTSLAx) at that same address, which is the form both the\n     *      topup and trading catalogs actually list. The raw stock is listed in neither, so until\n     *      it is converted it can be neither swept nor redirected — this is what unsticks it, and\n     *      it is deliberately not a transfer of any kind.\n     *\n     *      Which vault a token may be deposited into is the factory's `wrapperFor(token)`, the\n     *      same admin-curated mapping the redirect path reads, so the approve/deposit target is\n     *      never an arbitrary address and this contract keeps no per-token state. Unlike the\n     *      redirect, a token with no registered wrapper reverts here: there is no as-is fallback\n     *      for a wrap, and silently doing nothing would hide the missing registration.\n     *\n     * @param token Raw ERC20 this TopUp holds — never its wrapper.\n     * @param amount Amount of `token` to wrap.\n     * @custom:throws OnlyOwner If caller is not the owner.\n     * @custom:throws InvalidAmount If `amount == 0`.\n     * @custom:throws WrapperNotSet If the factory has no wrapper registered for `token`.\n     */\n    function wrap(address token, uint256 amount) external {\n        address _owner = owner();\n        if (_owner != msg.sender) revert OnlyOwner();\n        if (amount == 0) revert InvalidAmount();\n\n        address wrapper = ITopUpFactory(_owner).wrapperFor(token);\n        if (wrapper == address(0)) revert WrapperNotSet();\n\n        _wrap(token, wrapper, address(this), amount);\n    }\n\n    /**\n     * @dev The ERC-4626 deposit both wrap paths share: `wrap` passes this contract as `receiver`\n     *      and `redirectToTradingSafe` passes the destination safe, and that is the only\n     *      difference between them.\n     *\n     *      The allowance is granted per call and zeroed after, so no standing approval survives\n     *      and a vault that pulls less than `amount` leaves no remainder behind to spend. Callers\n     *      resolve `wrapper` off the factory's `wrapperFor`, which validated the `asset()` pairing\n     *      when it was registered, so the approve/deposit target is never an arbitrary address —\n     *      this helper takes it as given and must not be reached with an unvalidated one.\n     * @param token Raw ERC20 being deposited.\n     * @param wrapper The token's registered ERC-4626 vault. Never the zero address.\n     * @param receiver Who the vault mints the shares to.\n     * @param amount Amount of `token` to deposit.\n     */\n    function _wrap(address token, address wrapper, address receiver, uint256 amount) internal {\n        IERC20(token).forceApprove(wrapper, amount);\n        IERC4626(wrapper).deposit(amount, receiver);\n        IERC20(token).forceApprove(wrapper, 0);\n    }\n\n    /**\n     * @notice Deposits all ETH into WETH\n     */\n    receive() external payable {\n        _handleETH(msg.value);\n    }\n}\n"},"src/utils/Constants.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title Constants\n * @author ether.fi\n * @notice Contract that defines commonly used constants across the ether.fi protocol\n * @dev This contract is not meant to be deployed but to be inherited by other contracts\n */\ncontract Constants {\n    /**\n     * @notice Special address used to represent native ETH in the protocol\n     * @dev This address is used as a marker since ETH is not an ERC20 token\n     */\n    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n}"},"src/interfaces/IWETH.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ninterface IWETH {\n    function deposit() external payable;\n    function transfer(address to, uint value) external returns (bool);\n    function withdraw(uint) external;\n}"},"src/top-up/TopUpFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { IERC4626 } from \"@openzeppelin/contracts/interfaces/IERC4626.sol\";\nimport { IERC20, SafeERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { EnumerableSetLib } from \"solady/utils/EnumerableSetLib.sol\";\n\nimport { BeaconFactory, UpgradeableBeacon } from \"../beacon-factory/BeaconFactory.sol\";\nimport { ITopUpFactory } from \"../interfaces/ITopUpFactory.sol\";\nimport { ITradingSafeFactory } from \"../interfaces/ITradingSafeFactory.sol\";\nimport { DelegateCallLib } from \"../libraries/DelegateCallLib.sol\";\nimport { TopUp, Constants } from \"./TopUp.sol\";\nimport { BridgeAdapterBase } from \"./bridge/BridgeAdapterBase.sol\";\n\n/**\n * @title TopUpFactory\n * @notice Factory contract for deploying TopUp instances using the beacon proxy pattern\n * @dev Extends BeaconFactory to provide Beacon Proxy deployment functionality\n * @author ether.fi\n */\ncontract TopUpFactory is BeaconFactory, Constants, ITopUpFactory {\n    using EnumerableSetLib for EnumerableSetLib.AddressSet;\n    using SafeERC20 for IERC20;\n\n    /**\n     * @dev Configuration parameters for supported tokens and their bridge settings\n     * @param bridgeAdapter Address of the bridge adapter contract for this token\n     * @param recipientOnDestChain Address that will receive tokens on the destination chain\n     * @param maxSlippageInBps Maximum allowed slippage in basis points (1 bps = 0.01%)\n     * @param additionalData Additional data specific to the bridge adapter\n     */\n    struct TokenConfig {\n        address bridgeAdapter;\n        address recipientOnDestChain;\n        uint96 maxSlippageInBps;\n        bytes additionalData;\n    }\n\n    /// @custom:storage-location erc7201:etherfi.storage.TopUpFactory\n    struct TopUpFactoryStorage {\n        /// @notice Set containing addresses of all deployed TopUp instances\n        EnumerableSetLib.AddressSet deployedAddresses;\n        /// @notice Mapping of token addresses to their bridge configuration (deprecated, use tokenChainConfig)\n        mapping(address token => TokenConfig config) tokenConfig;\n        /// @notice Address of the wallet used for emergency fund recovery\n        address recoveryWallet;\n        /// @notice Mapping of token + destination chain ID to bridge configuration\n        mapping(address token => mapping(uint256 chainId => TokenConfig config)) tokenChainConfig;\n        /// @notice Set of tokens that have at least one chain configured\n        EnumerableSetLib.AddressSet supportedTokens;\n        /// @notice Address of the destination-chain `TradingSafeFactory`. Used by\n        ///         `redirectDestinationFor` to derive each TopUp's destination address.\n        address tradingSafeFactory;\n        /// @notice Per-token ERC-4626 vault a redirect must deposit into instead of transferring\n        ///         the token itself. Set only for raw Backed xStocks whose trading-catalog form\n        ///         is the wrapper; zero (the default, and every other token) means transfer as-is.\n        mapping(address token => address wrapper) redirectWrapper;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"etherfi.storage.TopUpFactory\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant TopUpFactoryStorageLocation = 0xe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b100;\n\n    /// @notice Max slippage allowed for bridging\n    uint96 public constant MAX_ALLOWED_SLIPPAGE = 200; // 2%\n\n    /// @notice Role identifier for accounts authorized to bridge tokens\n    bytes32 public constant TOPUP_FACTORY_BRIDGER_ROLE = keccak256(\"TOPUP_FACTORY_BRIDGER_ROLE\");\n\n    /// @notice Role allowed to drive `redirectToTradingSafe`\n    bytes32 public constant TOPUP_FACTORY_REDIRECT_ROLE = keccak256(\"TOPUP_FACTORY_REDIRECT_ROLE\");\n\n    /// @notice Emitted when tokens are bridged to the destination chain\n    /// @param token The address of the token being bridged\n    /// @param amount The amount of tokens being bridged\n    event Bridge(address indexed token, uint256 amount, uint256 indexed destChainId);\n\n    /// @notice Emitted when funds are recovered to the recovery wallet\n    /// @param recoveryWallet The address receiving the recovered funds\n    /// @param token The token being recovered\n    /// @param amount The amount of tokens recovered\n    event Recovery(address recoveryWallet, address indexed token, uint256 amount);\n\n    /// @notice Emitted when the recovery wallet address is updated\n    /// @param oldRecoveryWallet The previous recovery wallet address\n    /// @param newRecoveryWallet The new recovery wallet address\n    event RecoveryWalletSet(address oldRecoveryWallet, address newRecoveryWallet);\n\n    /// @notice Emitted when the tokens are configured\n    /// @param tokens Array of token addresses\n    /// @param config Array of TokenConfig struct\n    event TokenConfigSet(address[] tokens, uint256[] chainIds, TokenConfig[] config);\n\n    /// @notice Emitted when tokens are retired from the topup lane — their route for the paired\n    ///         chain cleared and the token dropped from the supported set.\n    /// @param tokens Tokens retired.\n    /// @param chainIds Per-entry destination chain whose route was cleared.\n    event TokenConfigRemoved(address[] tokens, uint256[] chainIds);\n\n    /// @notice Emitted when the destination-chain TradingSafeFactory address is updated.\n    /// @param oldFactory Previous address (zero on first set).\n    /// @param newFactory New address.\n    event TradingSafeFactorySet(address oldFactory, address newFactory);\n\n    /// @notice Emitted on a successful `redirectToTradingSafe` invocation. Single canonical\n    ///         event for every TopUp → TradingSafe redirect on this chain.\n    /// @param topUp The TopUp instance that the funds were redirected from.\n    /// @param tradingSafe The destination TradingSafe that received the funds.\n    /// @param token ERC20 redirected.\n    /// @param amount Amount transferred.\n    event RedirectFunds(address indexed topUp, address indexed tradingSafe, address indexed token, uint256 amount);\n\n    /// @notice Emitted when a redirect wrapped a raw stock into its ERC-4626 wrapper on the way\n    ///         out. Names the conversion the accompanying `RedirectFunds` can't convey: that one\n    ///         reports the wrapper and the shares the TradingSafe received, this one what the\n    ///         TopUp actually gave up.\n    /// @param topUp The TopUp the underlying was pulled from.\n    /// @param wrapper The ERC-4626 vault — the trading-supported token the TradingSafe receives.\n    /// @param underlying The raw token that was wrapped.\n    /// @param assets Amount of `underlying` deposited.\n    /// @param shares Amount of `wrapper` credited to the TradingSafe.\n    event WrapOnRedirect(address indexed topUp, address indexed wrapper, address indexed underlying, uint256 assets, uint256 shares);\n\n    /// @notice Emitted when a token's redirect wrapper is configured or cleared.\n    /// @param token The token being redirected.\n    /// @param oldWrapper Previous vault (zero when the token used to travel as-is).\n    /// @param newWrapper New vault, or zero to go back to a plain transfer.\n    event RedirectWrapperSet(address indexed token, address oldWrapper, address newWrapper);\n\n    /// @notice Emitted for each token `wrapStocks` converted in place at a TopUp. Distinct from\n    ///         `WrapOnRedirect`: nothing left the TopUp here, so there is no accompanying\n    ///         `RedirectFunds` — the TopUp simply holds the wrapper instead of the raw stock.\n    /// @param topUp The TopUp whose raw stock was wrapped, and the receiver of the shares.\n    /// @param wrapper The ERC-4626 vault the stock was deposited into.\n    /// @param underlying The raw stock that was wrapped.\n    /// @param assets Amount of `underlying` deposited — the TopUp's entire balance of it.\n    /// @param shares Amount of `wrapper` the TopUp was credited.\n    event WrapStock(address indexed topUp, address indexed wrapper, address indexed underlying, uint256 assets, uint256 shares);\n\n    /// @notice Error thrown when trying to pull funds from an address not registered as deployedAddresses\n    error InvalidTopUpAddress();\n    /// @notice Error thrown when zero address is provided for a token\n    error TokenCannotBeZeroAddress();\n    /// @notice Error thrown when attempting to bridge a token without configuration\n    error TokenConfigNotSet();\n    /// @notice Error thrown when attempting to bridge with zero amount\n    error AmountCannotBeZero();\n    /// @notice Error thrown when attempting to bridge with insufficient balance\n    error InsufficientBalance();\n    /// @notice Error thrown when recovery wallet is not set\n    error RecoveryWalletNotSet();\n    /// @notice Error thrown when attempting to set zero address as recovery wallet\n    error RecoveryWalletCannotBeZeroAddress();\n    /// @notice Error thrown when attempting to recover token which is a supported asset\n    error OnlyUnsupportedTokens();\n    /// @notice Reverts when a sweep entry point is handed a token this factory has no topup\n    ///         configuration for — the redirect path owns those, not `processTopUp`.\n    error OnlySupportedTokens();\n    /// @notice Error thrown when redirecting a token that isn't supported for trading.\n    error TokenNotTradingSupported();\n    /// @notice Error thrown when `redirectToTradingSafe` is called by an account lacking the redirect role.\n    error OnlyRedirectRole();\n    /// @notice Error thrown when the resolved destination is not a deployed, registered TradingSafe.\n    error TradingSafeNotDeployed();\n    /// @notice Error thrown when array lengths mismatch\n    error ArrayLengthMismatch();\n    /// @notice Error thrown when the start index is invalid\n    error InvalidStartIndex();\n    /// @notice Error thrown when the token config passed is invalid\n    error InvalidConfig();\n    /// @notice Error thrown when insufficient fee is passed for bridging\n    error InsufficientFeePassed();\n    /// @notice Error thrown when ETH transfer fails\n    error NativeTransferFailed();\n    /// @notice Error thrown when chain ID is zero\n    error ChainIdCannotBeZero();\n    /// @notice Reverts when `setTradingSafeFactory` is called with the zero address.\n    error TradingSafeFactoryCannotBeZeroAddress();\n    /// @notice Reverts when `redirectDestinationFor` is called before\n    ///         `setTradingSafeFactory` has been configured.\n    error TradingSafeFactoryNotSet();\n    /// @notice Reverts when `setRedirectWrappers` is given a vault that is not an ERC-4626 over\n    ///         the very token it is being registered for.\n    error InvalidRedirectWrapper();\n    /// @notice Reverts when the wrap leg credited the TradingSafe no shares at all.\n    error WrapMintedNothing();\n    /// @notice Reverts when `wrapStocks` is asked to wrap a token with no registered wrapper —\n    ///         there is nothing to deposit into, and silently skipping would hide the missing\n    ///         `setRedirectWrappers` entry.\n    error RedirectWrapperNotSet();\n\n    /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        _disableInitializers();\n    }\n\n    /**\n     * @notice Initializes the TopUpFactory contract\n     * @dev Sets up the role registry, admin, and beacon implementation\n     * @param _roleRegistry Address of the role registry contract\n     * @param _topUpImpl Address of the topUp implementation contract\n     */\n    function initialize(address _roleRegistry, address _topUpImpl) external initializer {\n        __BeaconFactory_initialize(_roleRegistry, _topUpImpl);\n    }\n\n    /**\n     * @notice Deploys a new TopUp contract instance\n     * @param salt The salt value used for deterministic deployment\n     */\n    function deployTopUpContract(bytes32 salt) external whenNotPaused {\n        bytes memory initData = abi.encodeWithSelector(TopUp.initialize.selector, address(this));\n        address deployed = _deployBeacon(salt, initData);\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        $.deployedAddresses.add(deployed);\n    }\n\n    /**\n     * @notice Processes specified tokens from a range of deployed topUp contracts\n     * @dev Iterates through deployed topUp contracts starting at index 'start' and calls processTopUp on each\n     * @param tokens Array of token addresses to process. Every entry must be topup-supported\n     *               (or the native-ETH sentinel); see `_validateSweepTokens`.\n     * @param start Starting index in the deployedAddresses array\n     * @param n Number of topUp contracts to process\n     * @custom:throws OnlySupportedTokens If any token has no topup configuration on this factory\n     * @custom:throws If start + n exceeds the number of deployed topUp contracts\n     * @custom:throws If any topUp's processTopUp call fails\n     */\n    function processTopUp(address[] calldata tokens, uint256 start, uint256 n) external {\n        _validateSweepTokens(tokens);\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        uint256 length = $.deployedAddresses.length();\n        if (start >= length) revert InvalidStartIndex();\n        if (start + n > length) n = length - start;\n\n        for (uint256 i = 0; i < n;) {\n            TopUp(payable($.deployedAddresses.at(start + i))).processTopUp(tokens);\n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    /**\n     * @notice Processes specified tokens from a given topUp contract\n     * @dev Verifies the topUp contract is valid before attempting to pull funds\n     * @param tokens Array of token addresses to process. Every entry must be topup-supported\n     *               (or the native-ETH sentinel); see `_validateSweepTokens`.\n     * @param topUpContracts Array of addresses of the topUp contracts to process\n     * @custom:throws OnlySupportedTokens If any token has no topup configuration on this factory\n     * @custom:throws InvalidTopUpAddress if the TopUp address is not a deployed TopUp contract\n     * @custom:throws If the TopUp contracts's processTopUp call fails\n     */\n    function processTopUpFromContracts(address[] calldata tokens, address[] calldata topUpContracts) external {\n        _validateSweepTokens(tokens);\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 addrLength = topUpContracts.length;\n\n        for (uint256 i = 0; i < addrLength;) {\n            if (!$.deployedAddresses.contains(topUpContracts[i])) revert InvalidTopUpAddress();\n            TopUp(payable(topUpContracts[i])).processTopUp(tokens);\n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    /**\n     * @dev Shared guard for both sweep entry points: a sweep may only name tokens this factory\n     *      actually bridges. Both entry points are deliberately permissionless — anyone may pay\n     *      the gas to move a user's bridging asset along its intended path — but without this\n     *      check that openness extends to tokens the sweep was never meant to touch.\n     *\n     *      A token with no topup configuration reaches a TopUp address only by mistake, and the\n     *      redirect path (`redirectToTradingSafe`) owns getting it to the user's TradingSafe.\n     *      Naming one here pulls it into this factory instead, where the redirect can no longer\n     *      see it: the pending `redirectToTradingSafe` reverts on the drained balance, and because\n     *      the batch variant is all-or-nothing one griefed entry fails the whole batch. What is\n     *      left is a multisig-gated `recoverFunds` per incident to get the user made\n     *      whole off-chain. The range variant walks every deployed TopUp, so one transaction could\n     *      do this to every user holding a misrouted stock at once — cheap for the caller, who\n     *      gains nothing by it, and expensive for us.\n     *\n     *      Validated against the token list once rather than per TopUp: the list is the same for\n     *      every contract in the sweep, so an n-contract range pays for the check once.\n     *\n     *      The native-ETH sentinel is allowed without a configuration of its own. `TopUp`\n     *      converts it to WETH before transferring, so what arrives here is the configured WETH,\n     *      and the sentinel names no ERC20 a redirect could ever be configured for.\n     * @param tokens Token list handed to a sweep entry point.\n     * @custom:throws OnlySupportedTokens If any entry is neither topup-supported nor the ETH sentinel.\n     */\n    function _validateSweepTokens(address[] calldata tokens) internal view {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 len = tokens.length;\n\n        for (uint256 i = 0; i < len;) {\n            if (tokens[i] != ETH && !$.supportedTokens.contains(tokens[i])) revert OnlySupportedTokens();\n            unchecked {\n                ++i;\n            }\n        }\n    }\n\n    /**\n     * @notice Sets configuration parameters for multiple tokens\n     * @dev Allows admin to configure bridge settings for multiple tokens in a single transaction\n     * @param tokens Array of token addresses to configure\n     * @param configs Array of TokenConfig structs containing bridge settings for each token\n     * @custom:throws ArrayLengthMismatch if tokens and configs arrays have different lengths\n     * @custom:throws TokenCannotBeZeroAddress if any token address is zero\n     * @custom:throws InvalidConfig if any config has invalid parameters:\n     *   - bridgeAdapter is zero address\n     *   - recipientOnDestChain is zero address\n     *   - maxSlippageInBps exceeds MAX_ALLOWED_SLIPPAGE\n     * @custom:emits TokenConfigSet when configs are updated\n     */\n    function setTokenConfig(address[] calldata tokens, uint256[] calldata chainIds, TokenConfig[] calldata configs) external onlyAdminTimelock {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 len = tokens.length;\n        if (len != configs.length || len != chainIds.length) revert ArrayLengthMismatch();\n\n        for (uint256 i = 0; i < len;) {\n            if (tokens[i] == address(0)) revert TokenCannotBeZeroAddress();\n            if (chainIds[i] == 0) revert ChainIdCannotBeZero();\n            if (configs[i].bridgeAdapter == address(0) || configs[i].recipientOnDestChain == address(0) || configs[i].maxSlippageInBps > MAX_ALLOWED_SLIPPAGE) revert InvalidConfig();\n\n            $.tokenChainConfig[tokens[i]][chainIds[i]] = configs[i];\n            $.supportedTokens.add(tokens[i]);\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit TokenConfigSet(tokens, chainIds, configs);\n    }\n\n    /**\n     * @notice Takes each `tokens[i]` off the topup lane for `chainIds[i]`: clears its bridge\n     *         configuration for that destination and drops it from the supported set.\n     * @dev Only callable by addresses with ADMIN_TIMELOCK_ROLE\n     *      it only ever adds to `supportedTokens`, and rejects a zeroed config, so before this\n     *      there was no way to retire an asset from the lane at all.\n     *\n     *      Both halves matter and neither is sufficient alone. `bridge` gates on\n     *      `tokenChainConfig[token][destChainId].bridgeAdapter`, never on the supported set, so\n     *      leaving the config in place would keep the route open to the bridger role; while\n     *      `processTopUp`, `recoverFunds`, the redirects and `wrapStocks` all gate on the set, so\n     *      leaving the token in it would keep sweeping the asset the config no longer routes.\n     *\n     *      A token leaves the supported set as soon as one of its routes is removed, because the\n     *      set has no per-chain granularity and the chains a token is configured for are not\n     *      enumerable on-chain. A token with routes on several destinations must therefore have\n     *      all of them passed in — otherwise the leftover routes stay bridgeable while sweeping\n     *      stops, which is a half-retired asset. Removing a route that was never configured\n     *      reverts rather than passing silently, so a mistyped chain id can't read as a closed\n     *      route.\n     * @param tokens Tokens to retire.\n     * @param chainIds Per-entry destination chain whose route is being cleared.\n     * @custom:throws ArrayLengthMismatch If the two arrays don't agree on length.\n     * @custom:throws TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.\n     * @custom:throws ChainIdCannotBeZero If any `chainIds[i]` is zero.\n     * @custom:throws TokenConfigNotSet If any `(tokens[i], chainIds[i])` has no configured route.\n     * @custom:emits TokenConfigRemoved\n     */\n    function removeTokenConfig(address[] calldata tokens, uint256[] calldata chainIds) external onlyAdminTimelock {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 len = tokens.length;\n        if (len != chainIds.length) revert ArrayLengthMismatch();\n\n        for (uint256 i = 0; i < len;) {\n            address token = tokens[i];\n            if (token == address(0)) revert TokenCannotBeZeroAddress();\n            if (chainIds[i] == 0) revert ChainIdCannotBeZero();\n            if ($.tokenChainConfig[token][chainIds[i]].bridgeAdapter == address(0)) revert TokenConfigNotSet();\n\n            delete $.tokenChainConfig[token][chainIds[i]];\n            $.supportedTokens.remove(token);\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit TokenConfigRemoved(tokens, chainIds);\n    }\n\n    /**\n     * @notice Bridges tokens to the destination chain using the configured bridge adapter\n     * @dev Uses delegate call to execute the bridge operation through the appropriate adapter\n     * @param token The address of the token to bridge\n     * @custom:throws TokenCannotBeZeroAddress if token address is zero\n     * @custom:throws TokenConfigNotSet if bridge configuration is not set for the token\n     * @custom:throws AmountCannotBeZero if amount passed is zero\n     * @custom:throws InsufficientBalance if contract has insufficient balance of the specified token\n     */\n    function bridge(address token, uint256 amount, uint256 destChainId) external payable whenNotPaused onlyRole(TOPUP_FACTORY_BRIDGER_ROLE) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (token == address(0)) revert TokenCannotBeZeroAddress();\n        if (destChainId == 0) revert ChainIdCannotBeZero();\n        if (amount == 0) revert AmountCannotBeZero();\n\n        TokenConfig storage config = $.tokenChainConfig[token][destChainId];\n        if (config.bridgeAdapter == address(0)) revert TokenConfigNotSet();\n\n        uint256 balance = token == ETH ? address(this).balance : IERC20(token).balanceOf(address(this));\n        if (balance < amount) revert InsufficientBalance();\n\n        (, uint256 bridgeFee) = getBridgeFee(token, amount, destChainId);\n        if (bridgeFee > msg.value) revert InsufficientFeePassed();\n\n        DelegateCallLib.delegateCall(config.bridgeAdapter, abi.encodeWithSelector(BridgeAdapterBase.bridge.selector, token, amount, config.recipientOnDestChain, config.maxSlippageInBps, config.additionalData));\n\n        emit Bridge(token, amount, destChainId);\n    }\n\n    /**\n     * @notice Recovers ERC20 tokens to the designated recovery wallet\n     * @dev Only callable by admin role\n     * @param token The address of the token to recover\n     * @param amount The amount of tokens to recover\n     * @custom:throws OnlyAdmin if caller doesn't have admin role\n     * @custom:throws TokenCannotBeZeroAddress if token address is zero\n     * @custom:throws OnlyUnsupportedTokens if token is a supported bridge asset\n     * @custom:throws RecoveryWalletNotSet if recovery wallet is not configured\n     */\n    function recoverFunds(address token, uint256 amount) external nonReentrant onlyAdmin {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (token == address(0)) revert TokenCannotBeZeroAddress();\n        if ($.supportedTokens.contains(token)) revert OnlyUnsupportedTokens();\n        if ($.recoveryWallet == address(0)) revert RecoveryWalletNotSet();\n\n        if (token == ETH) {\n            (bool success, ) = payable($.recoveryWallet).call{value: amount}(\"\");\n            if (!success) revert NativeTransferFailed();\n        } else IERC20(token).safeTransfer($.recoveryWallet, amount);\n\n        emit Recovery($.recoveryWallet, token, amount);\n    }\n\n    /**\n     * @notice Sets the recovery wallet address for emergency fund recovery\n     * @dev Only callable by admin role\n     * @param _recoveryWallet The new recovery wallet address\n     * @custom:throws OnlyAdminTimelock if the caller does not have ADMIN_TIMELOCK_ROLE\n     * @custom:throws RecoveryWalletCannotBeZeroAddress if provided address is zero\n     */\n    function setRecoveryWallet(address _recoveryWallet) external onlyAdminTimelock {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (_recoveryWallet == address(0)) revert RecoveryWalletCannotBeZeroAddress();\n        emit RecoveryWalletSet($.recoveryWallet, _recoveryWallet);\n        $.recoveryWallet = _recoveryWallet;\n    }\n\n    /**\n     * @notice Sets the destination-chain `TradingSafeFactory` address used by every TopUp\n     *         instance when computing the redirect destination.\n     * @dev Routes user-fund redirects, so it is gated like an upgrade: only the RoleRegistry\n     *      owner (the upgrade timelock) may call it. Read by `TopUp.redirectToTradingSafe` via the `tradingSafeFactory()`\n     *      view below.\n     * @param _tradingSafeFactory Address of the destination-chain TradingSafeFactory.\n     * @custom:throws TradingSafeFactoryCannotBeZeroAddress If `_tradingSafeFactory == address(0)`.\n     */\n    function setTradingSafeFactory(address _tradingSafeFactory) external onlyRoleRegistryOwner {\n        if (_tradingSafeFactory == address(0)) revert TradingSafeFactoryCannotBeZeroAddress();\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        emit TradingSafeFactorySet($.tradingSafeFactory, _tradingSafeFactory);\n        $.tradingSafeFactory = _tradingSafeFactory;\n    }\n\n    /**\n     * @notice Returns the destination-chain `TradingSafeFactory` address.\n     */\n    function tradingSafeFactory() external view returns (address) {\n        return _getTopUpFactoryStorage().tradingSafeFactory;\n    }\n\n    /**\n     * @notice Registers, for each `tokens[i]`, the ERC-4626 vault a redirect must deposit it\n     *         into instead of transferring it — or clears that with the zero address.\n     * @dev Only callable by addresses with ADMIN_TIMELOCK_ROLE\n     *      tokenized equities a TradingSafe can hold are `WrappedBackedToken` vaults (wTSLAx),\n     *      while what a user sends to a TopUp address is the raw Backed xStock underneath\n     *      (TSLAx), which is trading-supported in no form of its own and would otherwise be\n     *      stranded at the TopUp. Registering TSLAx → wTSLAx makes the existing redirect wrap it\n     *      on the way out, with no change to how the backend calls it.\n     *\n     *      The pairing is verified here rather than trusted: `asset()` must name the very token\n     *      being configured, which both proves the vault is the right one and that it is a vault\n     *      at all (a non-4626 target reverts the call). That check is what lets\n     *      `TopUp.redirectToTradingSafe` approve and call the wrapper without re-validating it.\n     *      Curating this per token — rather than probing `asset()` at redirect time — keeps an\n     *      arbitrary 4626 that happens to wrap a valuable token from becoming a redirect target.\n     * @param tokens Tokens being redirected (the raw stock a TopUp receives).\n     * @param wrappers Per-entry ERC-4626 vault over `tokens[i]`, or zero to transfer as-is.\n     * @custom:throws ArrayLengthMismatch If the two arrays don't agree on length.\n     * @custom:throws TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.\n     * @custom:throws InvalidRedirectWrapper If any non-zero `wrappers[i]` is not an ERC-4626\n     *                whose `asset()` is `tokens[i]`.\n     */\n    function setRedirectWrappers(address[] calldata tokens, address[] calldata wrappers) external onlyAdminTimelock {\n        uint256 len = tokens.length;\n        if (len != wrappers.length) revert ArrayLengthMismatch();\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        for (uint256 i = 0; i < len;) {\n            address token = tokens[i];\n            address wrapper = wrappers[i];\n            if (token == address(0)) revert TokenCannotBeZeroAddress();\n            if (wrapper != address(0) && IERC4626(wrapper).asset() != token) revert InvalidRedirectWrapper();\n\n            emit RedirectWrapperSet(token, $.redirectWrapper[token], wrapper);\n            $.redirectWrapper[token] = wrapper;\n            unchecked { ++i; }\n        }\n    }\n\n    /**\n     * @notice Returns the ERC-4626 vault a redirect of `token` deposits into, or zero when the\n     *         token is redirected as-is.\n     * @dev Read by every `TopUp` on this factory during `redirectToTradingSafe`.\n     */\n    function wrapperFor(address token) external view returns (address) {\n        return _getTopUpFactoryStorage().redirectWrapper[token];\n    }\n\n    /**\n     * @notice Returns the destination-chain TradingSafe address that `topUp` redirects to,\n     *         derived from the configured `TradingSafeFactory` using the TopUp's own\n     *         address as the salt seed. Reverts if `TradingSafeFactory` hasn't been set.\n     * @dev Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the\n     *      TopUp impl stateless.\n     * @param topUp The per-user TopUp instance.\n     * @custom:throws TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been\n     *                called.\n     */\n    function redirectDestinationFor(address topUp) external view returns (address) {\n        address tsFactory = _getTopUpFactoryStorage().tradingSafeFactory;\n        if (tsFactory == address(0)) revert TradingSafeFactoryNotSet();\n        // The TopUp's own address is the user identity driving the TradingSafe salt — no\n        // separate binding needed; off-chain knowledge of \"user → TopUp\" is enough to know\n        // \"user → TradingSafe.\"\n        return ITradingSafeFactory(tsFactory).getDeterministicAddress(topUp);\n    }\n\n    /**\n     * @notice Redirects `amount` of `token` from `topUp` to that user's TradingSafe on the\n     *         destination chain. Recovery path for trading-supported, not-topup-supported\n     *         tokens that landed at the TopUp address by mistake.\n     * @dev Backend-role gated (`TOPUP_FACTORY_REDIRECT_ROLE`). Destination is always the\n     *      user's own deployed TradingSafe (derived from the TopUp address); the token must\n     *      be NOT topup-supported AND trading-supported, and the destination must be an\n     *      already-deployed, registered TradingSafe (never a codeless prediction).\n     *\n     *      A token with a redirect wrapper configured (`setRedirectWrappers`) is deposited into\n     *      that vault instead of transferred, so a raw Backed xStock sitting at a TopUp lands in\n     *      the safe as the wrapper its trading catalog actually lists. The trading-supported\n     *      check then applies to the wrapper — the form the safe receives — since the raw stock\n     *      is trading-supported in no form of its own. Nothing about the call changes: `token`\n     *      and `amount` still describe what leaves the TopUp.\n     * @param topUp Address of the TopUp instance to redirect from.\n     * @param token ERC20 to redirect. Must NOT be topup-supported, and the form it arrives in at\n     *              the safe — itself, or its configured wrapper — MUST be trading-supported.\n     * @param amount Amount of `token` to transfer.\n     * @custom:throws OnlyRedirectRole If caller lacks `TOPUP_FACTORY_REDIRECT_ROLE`.\n     * @custom:throws InvalidTopUpAddress If `topUp` was not deployed by this factory.\n     * @custom:throws OnlyUnsupportedTokens If `token` has a topup configuration on this\n     *                factory (route it through `processTopUp` instead).\n     * @custom:throws TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.\n     * @custom:throws TokenNotTradingSupported If what the safe would receive is not a supported\n     *                trading asset.\n     * @custom:throws TradingSafeNotDeployed If the resolved TradingSafe isn't deployed/registered.\n     * @custom:throws WrapMintedNothing If a wrapped redirect credited the safe no shares.\n     */\n    function redirectToTradingSafe(address topUp, address token, uint256 amount) external nonReentrant whenNotPaused {\n        if (!roleRegistry().hasRole(TOPUP_FACTORY_REDIRECT_ROLE, msg.sender)) revert OnlyRedirectRole();\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        if (!$.deployedAddresses.contains(topUp)) revert InvalidTopUpAddress();\n        if ($.supportedTokens.contains(token)) revert OnlyUnsupportedTokens();\n\n        address tsFactory = $.tradingSafeFactory;\n        if (tsFactory == address(0)) revert TradingSafeFactoryNotSet();\n\n        address wrapper = $.redirectWrapper[token];\n        if (!ITradingSafeFactory(tsFactory).isSupportedToken(wrapper == address(0) ? token : wrapper)) revert TokenNotTradingSupported();\n\n        address tradingSafe = ITradingSafeFactory(tsFactory).getDeterministicAddress(topUp);\n        if (!ITradingSafeFactory(tsFactory).isEtherFiSafe(tradingSafe)) revert TradingSafeNotDeployed();\n\n        _executeRedirect(topUp, tradingSafe, token, wrapper, amount);\n    }\n\n    /**\n     * @notice Batch variant of `redirectToTradingSafe`. Each parallel-array slot identifies\n     *         one redirect operation `(topUps[i], tokens[i], amounts[i])`. Any combination\n     *         is allowed — same TopUp multiple times for different tokens, multiple TopUps\n     *         for the same token, etc.\n     * @dev Backend-role gated (same rationale as the single-entry variant). Atomic\n     *      all-or-nothing: a revert on any entry rolls back the entire batch. Same\n     *      per-entry guards: rejects topup-supported tokens and requires trading-supported.\n     *      A token with a configured redirect wrapper wraps on the way out here exactly as it\n     *      does in the single-entry variant; both share `_executeRedirect`.\n     * @param topUps Per-entry TopUp instance.\n     * @param tokens Per-entry ERC20 to redirect. Each must NOT be topup-supported, and the form\n     *               it arrives in at the safe — itself, or its configured wrapper — MUST be\n     *               trading-supported.\n     * @param amounts Per-entry amount of `tokens[i]` to transfer.\n     * @custom:throws ArrayLengthMismatch If the three arrays don't agree on length.\n     * @custom:throws InvalidTopUpAddress If any `topUps[i]` was not deployed by this factory.\n     * @custom:throws OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on\n     *                this factory.\n     * @custom:throws TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.\n     * @custom:throws TokenNotTradingSupported If any `tokens[i]` is not a supported trading asset.\n     */\n    function batchRedirectToTradingSafe(\n        address[] calldata topUps,\n        address[] calldata tokens,\n        uint256[] calldata amounts\n    ) external nonReentrant whenNotPaused {\n        if (!roleRegistry().hasRole(TOPUP_FACTORY_REDIRECT_ROLE, msg.sender)) revert OnlyRedirectRole();\n\n        uint256 len = topUps.length;\n        if (len != tokens.length || len != amounts.length) revert ArrayLengthMismatch();\n\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        address tsFactory = $.tradingSafeFactory;\n        if (tsFactory == address(0)) revert TradingSafeFactoryNotSet();\n\n        for (uint256 i = 0; i < len;) {\n            if (!$.deployedAddresses.contains(topUps[i])) revert InvalidTopUpAddress();\n            if ($.supportedTokens.contains(tokens[i])) revert OnlyUnsupportedTokens();\n\n            address wrapper = $.redirectWrapper[tokens[i]];\n            if (!ITradingSafeFactory(tsFactory).isSupportedToken(wrapper == address(0) ? tokens[i] : wrapper)) revert TokenNotTradingSupported();\n\n            address tradingSafe = ITradingSafeFactory(tsFactory).getDeterministicAddress(topUps[i]);\n            if (!ITradingSafeFactory(tsFactory).isEtherFiSafe(tradingSafe)) revert TradingSafeNotDeployed();\n\n            _executeRedirect(topUps[i], tradingSafe, tokens[i], wrapper, amounts[i]);\n            unchecked { ++i; }\n        }\n    }\n\n    /**\n     * @dev Shared execution leg for both redirect entry points, reached only once their guards\n     *      have passed. The TopUp call is the same one it has always been — `wrapper` is\n     *      configuration the TopUp reads back off this factory, not an argument — so this\n     *      function's job is only to report what happened.\n     *\n     *      Unwrapped tokens keep the event they have always emitted. A wrapped one cannot: what\n     *      leaves the TopUp is `amount` of the raw stock, while what the safe is credited is the\n     *      shares the vault minted for it, and `RedirectFunds` reports the latter so that summing\n     *      the event by token still tracks the safe's balance. `WrapOnRedirect` carries the other\n     *      half. Shares are read as the safe's balance delta rather than taken from the vault's\n     *      return value, so a vault that reports a mint it didn't make can't pass for a redirect.\n     * @param topUp TopUp instance to redirect from; already checked as factory-deployed.\n     * @param tradingSafe Destination TradingSafe; already checked as deployed and registered.\n     * @param token ERC20 leaving the TopUp, in the TopUp's units.\n     * @param wrapper Configured vault for `token`, or zero when it moves as-is.\n     * @param amount Amount of `token` to move.\n     * @custom:throws WrapMintedNothing If the wrap credited the TradingSafe no shares.\n     */\n    function _executeRedirect(address topUp, address tradingSafe, address token, address wrapper, uint256 amount) internal {\n        if (wrapper == address(0)) {\n            TopUp(payable(topUp)).redirectToTradingSafe(token, tradingSafe, amount);\n            emit RedirectFunds(topUp, tradingSafe, token, amount);\n            return;\n        }\n\n        uint256 balanceBefore = IERC20(wrapper).balanceOf(tradingSafe);\n        TopUp(payable(topUp)).redirectToTradingSafe(token, tradingSafe, amount);\n        uint256 shares = IERC20(wrapper).balanceOf(tradingSafe) - balanceBefore;\n        if (shares == 0) revert WrapMintedNothing();\n\n        emit WrapOnRedirect(topUp, wrapper, token, amount, shares);\n        emit RedirectFunds(topUp, tradingSafe, wrapper, shares);\n    }\n\n    /**\n     * @notice Wraps every `tokens[i]` a TopUp holds into that token's registered ERC-4626\n     *         wrapper, in place — the TopUp itself receives the shares.\n     * @dev Permissionless. Nothing leaves the TopUp: a raw Backed xStock (TSLAx) it was sent\n     *      becomes the wrapper (wTSLAx) held by the same TopUp, at the same address, so there is\n     *      no recipient for a caller to choose and nothing to gain from calling it. What may be\n     *      wrapped is fixed by `setRedirectWrappers`, which is admin-curated and validates the\n     *      `asset()` pairing, so the deposit target is never an arbitrary address.\n     *\n     *      The point is the raw stock's dead end: it is trading-supported in no form of its own\n     *      and topup-supported in none either, so left as-is it can neither be swept by\n     *      `processTopUp` nor redirected. Converting it to the form the catalogs do list hands it\n     *      back to whichever rail should carry it — and that rail runs its own support checks, so\n     *      this one deliberately asserts nothing about the wrapper beyond the vault minting.\n     *\n     *      Each entry wraps the TopUp's whole balance, so the caller needs no amounts and the\n     *      TopUp is left holding none of the raw stock. A zero balance is skipped rather than\n     *      reverted: the caller can pass a user's full stock list without knowing which of them\n     *      actually arrived. Shares are read as the TopUp's own balance delta rather than the\n     *      vault's return value, the same way `_executeRedirect` does it.\n     *\n     *      The conversion itself is `TopUp.wrap`, which has no recipient parameter at all: the\n     *      shares can only ever be credited to the TopUp doing the wrapping, so no caller of this\n     *      function — and no future caller of the TopUp's own entry point — can route them\n     *      anywhere. Moving funds off a TopUp remains the redirect path's job alone.\n     * @param topUp The TopUp instance holding the raw stocks. Must be factory-deployed.\n     * @param tokens Raw stocks to wrap. Each must NOT be topup-supported and MUST have a wrapper\n     *               registered via `setRedirectWrappers`.\n     * @custom:throws InvalidTopUpAddress If `topUp` was not deployed by this factory.\n     * @custom:throws OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on this\n     *                factory (it belongs on the `processTopUp` rail, unwrapped).\n     * @custom:throws RedirectWrapperNotSet If any `tokens[i]` has no registered wrapper.\n     * @custom:throws WrapMintedNothing If a wrap credited the TopUp no shares.\n     */\n    function wrapStocks(address topUp, address[] calldata tokens) external nonReentrant whenNotPaused {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        if (!$.deployedAddresses.contains(topUp)) revert InvalidTopUpAddress();\n\n        uint256 len = tokens.length;\n\n        for (uint256 i = 0; i < len;) {\n            address token = tokens[i];\n            if ($.supportedTokens.contains(token)) revert OnlyUnsupportedTokens();\n\n            address wrapper = $.redirectWrapper[token];\n            if (wrapper == address(0)) revert RedirectWrapperNotSet();\n\n            uint256 amount = IERC20(token).balanceOf(topUp);\n            if (amount != 0) {\n                uint256 balanceBefore = IERC20(wrapper).balanceOf(topUp);\n                TopUp(payable(topUp)).wrap(token, amount);\n                uint256 shares = IERC20(wrapper).balanceOf(topUp) - balanceBefore;\n                if (shares == 0) revert WrapMintedNothing();\n\n                emit WrapStock(topUp, wrapper, token, amount, shares);\n            }\n\n            unchecked { ++i; }\n        }\n    }\n\n    receive() external payable { }\n\n    /**\n     * @notice Gets the bridge fee for a token transfer\n     * @dev Queries the bridge adapter for the fee estimation\n     * @param token The address of the token to bridge\n     * @param amount The amount of the token to bridge\n     * @return _token The fee token address\n     * @return _amount The fee amount in the _token's decimals\n     * @custom:throws TokenCannotBeZeroAddress if token address is zero\n     * @custom:throws TokenConfigNotSet if bridge configuration is not set for the token\n     * @custom:throws AmountCannotBeZero if contract has no balance of the specified token\n     */\n    function getBridgeFee(address token, uint256 amount, uint256 destChainId) public view returns (address _token, uint256 _amount) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n\n        if (token == address(0)) revert TokenCannotBeZeroAddress();\n        if (destChainId == 0) revert ChainIdCannotBeZero();\n        if (amount == 0) revert AmountCannotBeZero();\n\n        TokenConfig storage config = $.tokenChainConfig[token][destChainId];\n        if (config.bridgeAdapter == address(0)) revert TokenConfigNotSet();\n\n        return BridgeAdapterBase(config.bridgeAdapter).getBridgeFee(token, amount, config.recipientOnDestChain, config.maxSlippageInBps, config.additionalData);\n    }\n\n    /**\n     * @notice Gets deployed TopUp contract addresses\n     * @dev Returns an array of TopUp contracts deployed by this factory\n     * @param start Starting index in the deployedAddresses array\n     * @param n Number of topUp contracts to get\n     * @return An array of deployed TopUp contract addresses\n     * @custom:throws InvalidStartIndex if start index is invalid\n     */\n    function getDeployedAddresses(uint256 start, uint256 n) external view returns (address[] memory) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        uint256 length = $.deployedAddresses.length();\n        if (start >= length) revert InvalidStartIndex();\n        if (start + n > length) n = length - start;\n        address[] memory addresses = new address[](n);\n\n        for (uint256 i = 0; i < n;) {\n            addresses[i] = $.deployedAddresses.at(start + i);\n            unchecked {\n                ++i;\n            }\n        }\n        return addresses;\n    }\n\n    /**\n     * @notice Gets the number of contracts deployed\n     * @return Number of contracts deployed\n     */\n    function numContractsDeployed() external view returns (uint256) {\n        return _getTopUpFactoryStorage().deployedAddresses.length();\n    }\n\n    /**\n     * @notice Gets the bridge configuration for a specific token\n     * @dev Returns the TokenConfig struct containing bridge settings\n     * @param token The address of the token to query\n     * @return Configuration parameters for the specified token\n     */\n    function getTokenConfig(address token, uint256 destChainId) external view returns (TokenConfig memory) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.tokenChainConfig[token][destChainId];\n    }\n\n    /**\n     * @notice Gets the current recovery wallet address\n     * @dev Returns the address where funds can be recovered to\n     * @return The configured recovery wallet address\n     */\n    function getRecoveryWallet() external view returns (address) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.recoveryWallet;\n    }\n\n    /**\n     * @notice Checks if a given token is supported for bridging\n     * @dev Returns whether the token is in the supported tokens set\n     * @param token The address of the token to check\n     * @return True if the token is supported, false otherwise\n     */\n    function isTokenSupported(address token) external view returns (bool) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.supportedTokens.contains(token);\n    }\n\n    function isTokenSupportedOnChain(address token, uint256 destChainId) external view returns (bool) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.tokenChainConfig[token][destChainId].bridgeAdapter != address(0);\n    }\n\n    /**\n     * @notice Checks if an address is a deployed TopUp contract\n     * @dev Returns whether the address is in the deployed addresses set\n     * @param topUpContract The address to check\n     * @return True if the address is a deployed TopUp contract, false otherwise\n     */\n    function isTopUpContract(address topUpContract) external view returns (bool) {\n        TopUpFactoryStorage storage $ = _getTopUpFactoryStorage();\n        return $.deployedAddresses.contains(topUpContract);\n    }\n\n    /**\n     * @dev Returns the storage struct for TopUpFactory\n     * @return $ Reference to the TopUpFactoryStorage struct\n     */\n    function _getTopUpFactoryStorage() internal pure returns (TopUpFactoryStorage storage $) {\n        assembly {\n            $.slot := TopUpFactoryStorageLocation\n        }\n    }\n}\n"},"src/utils/UpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { PausableUpgradeable } from \"@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol\";\nimport { ReentrancyGuardTransientUpgradeable } from \"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardTransientUpgradeable.sol\";\n\nimport { IRoleRegistry } from \"../interfaces/IRoleRegistry.sol\";\n\n/**\n * @title UpgradeableProxy\n * @author ether.fi\n * @notice An UpgradeableProxy contract which can be upgraded by RoleRegistry contract\n */\ncontract UpgradeableProxy is UUPSUpgradeable, PausableUpgradeable, ReentrancyGuardTransientUpgradeable {\n    /// @custom:storage-location erc7201:etherfi.storage.UpgradeableProxy\n    struct UpgradeableProxyStorage {\n        /// @notice Reference to the role registry contract for access control\n        IRoleRegistry roleRegistry;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"etherfi.storage.UpgradeableProxy\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant UpgradeableProxyStorageLocation = 0xa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f500;\n\n    /// @notice Error thrown when caller is unauthorized to perform an operation\n    error Unauthorized();\n\n    /// @notice Error thrown when caller is not the role registry owner\n    error OnlyRoleRegistryOwner();\n\n\n    /**\n     * @notice Returns the address of the Role Registry contract\n     * @return roleRegistry Reference to the role registry contract\n     */\n    function roleRegistry() public view returns (IRoleRegistry) {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        return $.roleRegistry;\n    }\n\n    /**\n     * @dev Initializes the contract with Role Registry\n     * @param _roleRegistry Address of the role registry contract\n     */\n    function __UpgradeableProxy_init(address _roleRegistry) internal onlyInitializing {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        $.roleRegistry = IRoleRegistry(_roleRegistry);\n\n        __ReentrancyGuardTransient_init();\n        __Pausable_init_unchained();\n    }\n\n    /**\n     * @dev Returns the storage struct from the specified storage slot\n     * @return $ Reference to the UpgradeableProxyStorage struct\n     */\n    function _getUpgradeableProxyStorage() internal pure returns (UpgradeableProxyStorage storage $) {\n        assembly {\n            $.slot := UpgradeableProxyStorageLocation\n        }\n    }\n\n    /**\n     * @dev Updates the role registry contract address\n     * @param _roleRegistry The address of the new role registry contract\n     * @custom:security This is a critical function that updates access control\n     */\n    function _setRoleRegistry(address _roleRegistry) internal {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        $.roleRegistry = IRoleRegistry(_roleRegistry);\n    }\n\n    /**\n     * @dev Ensures only authorized upgraders can upgrade the contract\n     * @param newImplementation Address of the new implementation contract\n     */\n    function _authorizeUpgrade(address newImplementation) internal view override {\n        UpgradeableProxyStorage storage $ = _getUpgradeableProxyStorage();\n        $.roleRegistry.onlyUpgrader(msg.sender);\n\n        // Silence compiler warning on unused variables.\n        newImplementation = newImplementation;\n    }\n\n    /**\n     * @notice Pauses the contract\n     * @dev Only callable by accounts with the pauser role\n     */\n    function pause() external {\n        roleRegistry().onlyPauser(msg.sender);\n        _pause();\n    }\n\n    /**\n     * @notice Unpauses the contract\n     * @dev Only callable by accounts with the unpauser role\n     */\n    function unpause() external {\n        roleRegistry().onlyUnpauser(msg.sender);\n        _unpause();\n    }\n\n    /**\n     * @dev Modifier to restrict access to specific roles\n     * @param role Role identifier\n     */\n    modifier onlyRole(bytes32 role) {\n        if (!roleRegistry().hasRole(role, msg.sender)) revert Unauthorized();\n        _;\n    }\n\n    /**\n     * @dev Modifier to restrict access to owner of the role registry\n     */\n    modifier onlyRoleRegistryOwner() {\n        if (roleRegistry().owner() != msg.sender) revert OnlyRoleRegistryOwner();\n        _;\n    }\n\n    /**\n     * @dev Modifier to restrict access to holders of the registry's ADMIN_ROLE\n     */\n    modifier onlyAdmin() {\n        roleRegistry().onlyAdmin(msg.sender);\n        _;\n    }\n\n    /**\n     * @dev Modifier to restrict access to holders of the registry's ADMIN_TIMELOCK_ROLE\n     */\n    modifier onlyAdminTimelock() {\n        roleRegistry().onlyAdminTimelock(msg.sender);\n        _;\n    }\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The caller is not authorized to call the function.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev The `pendingOwner` does not have a valid handover request.\n    error NoHandoverRequest();\n\n    /// @dev Cannot double-initialize.\n    error AlreadyInitialized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev An ownership handover to `pendingOwner` has been requested.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @dev The ownership handover to `pendingOwner` has been canceled.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The owner slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n    /// It is intentionally chosen to be a high value\n    /// to avoid collision with lower slots.\n    /// The choice of manual storage layout is to enable compatibility\n    /// with both regular and upgradeable contracts.\n    bytes32 internal constant _OWNER_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n    /// The ownership handover slot of `newOwner` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n    ///     let handoverSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// It stores the expiry timestamp of the two-step ownership handover.\n    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n    /// @dev Initializes the owner directly without authorization guard.\n    /// This function must be called upon initialization,\n    /// regardless of whether the contract is upgradeable or not.\n    /// This is to enable generalization to both regular and upgradeable contracts,\n    /// and to save gas in case the initial owner is not the caller.\n    /// For performance reasons, this function will not check if there\n    /// is an existing owner.\n    function _initializeOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                if sload(ownerSlot) {\n                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n                    revert(0x1c, 0x04)\n                }\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(_OWNER_SLOT, newOwner)\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        }\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, newOwner)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n    /// Override to return a different value if needed.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n        return 48 * 3600;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public payable virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Request a two-step ownership handover to the caller.\n    /// The request will automatically expire in 48 hours (172800 seconds) by default.\n    function requestOwnershipHandover() public payable virtual {\n        unchecked {\n            uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Compute and set the handover slot to `expires`.\n                mstore(0x0c, _HANDOVER_SLOT_SEED)\n                mstore(0x00, caller())\n                sstore(keccak256(0x0c, 0x20), expires)\n                // Emit the {OwnershipHandoverRequested} event.\n                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n            }\n        }\n    }\n\n    /// @dev Cancels the two-step ownership handover to the caller, if any.\n    function cancelOwnershipHandover() public payable virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, caller())\n            sstore(keccak256(0x0c, 0x20), 0)\n            // Emit the {OwnershipHandoverCanceled} event.\n            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n        }\n    }\n\n    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            let handoverSlot := keccak256(0x0c, 0x20)\n            // If the handover does not exist, or has expired.\n            if gt(timestamp(), sload(handoverSlot)) {\n                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n                revert(0x1c, 0x04)\n            }\n            // Set the handover slot to 0.\n            sstore(handoverSlot, 0)\n        }\n        _setOwner(pendingOwner);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the owner of the contract.\n    function owner() public view virtual returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n    function ownershipHandoverExpiresAt(address pendingOwner)\n        public\n        view\n        virtual\n        returns (uint256 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the handover slot.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            // Load the handover slot.\n            result := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n}\n"},"lib/solady/src/utils/CREATE3.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Deterministic deployments agnostic to the initialization code.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CREATE3.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/CREATE3.sol)\n/// @author Modified from 0xSequence (https://github.com/0xSequence/create3/blob/master/contracts/Create3.sol)\nlibrary CREATE3 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CUSTOM ERRORS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Unable to deploy the contract.\n    error DeploymentFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      BYTECODE CONSTANTS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /**\n     * -------------------------------------------------------------------+\n     * Opcode      | Mnemonic         | Stack        | Memory             |\n     * -------------------------------------------------------------------|\n     * 36          | CALLDATASIZE     | cds          |                    |\n     * 3d          | RETURNDATASIZE   | 0 cds        |                    |\n     * 3d          | RETURNDATASIZE   | 0 0 cds      |                    |\n     * 37          | CALLDATACOPY     |              | [0..cds): calldata |\n     * 36          | CALLDATASIZE     | cds          | [0..cds): calldata |\n     * 3d          | RETURNDATASIZE   | 0 cds        | [0..cds): calldata |\n     * 34          | CALLVALUE        | value 0 cds  | [0..cds): calldata |\n     * f0          | CREATE           | newContract  | [0..cds): calldata |\n     * -------------------------------------------------------------------|\n     * Opcode      | Mnemonic         | Stack        | Memory             |\n     * -------------------------------------------------------------------|\n     * 67 bytecode | PUSH8 bytecode   | bytecode     |                    |\n     * 3d          | RETURNDATASIZE   | 0 bytecode   |                    |\n     * 52          | MSTORE           |              | [0..8): bytecode   |\n     * 60 0x08     | PUSH1 0x08       | 0x08         | [0..8): bytecode   |\n     * 60 0x18     | PUSH1 0x18       | 0x18 0x08    | [0..8): bytecode   |\n     * f3          | RETURN           |              | [0..8): bytecode   |\n     * -------------------------------------------------------------------+\n     */\n\n    /// @dev The proxy initialization code.\n    uint256 private constant _PROXY_INITCODE = 0x67363d3d37363d34f03d5260086018f3;\n\n    /// @dev Hash of the `_PROXY_INITCODE`.\n    /// Equivalent to `keccak256(abi.encodePacked(hex\"67363d3d37363d34f03d5260086018f3\"))`.\n    bytes32 internal constant PROXY_INITCODE_HASH =\n        0x21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      CREATE3 OPERATIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys `initCode` deterministically with a `salt`.\n    /// Returns the deterministic address of the deployed contract,\n    /// which solely depends on `salt`.\n    function deployDeterministic(bytes memory initCode, bytes32 salt)\n        internal\n        returns (address deployed)\n    {\n        deployed = deployDeterministic(0, initCode, salt);\n    }\n\n    /// @dev Deploys `initCode` deterministically with a `salt`.\n    /// The deployed contract is funded with `value` (in wei) ETH.\n    /// Returns the deterministic address of the deployed contract,\n    /// which solely depends on `salt`.\n    function deployDeterministic(uint256 value, bytes memory initCode, bytes32 salt)\n        internal\n        returns (address deployed)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, _PROXY_INITCODE) // Store the `_PROXY_INITCODE`.\n            let proxy := create2(0, 0x10, 0x10, salt)\n            if iszero(proxy) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, proxy) // Store the proxy's address.\n            // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01).\n            // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex).\n            mstore(0x00, 0xd694)\n            mstore8(0x34, 0x01) // Nonce of the proxy contract (1).\n            deployed := keccak256(0x1e, 0x17)\n            if iszero(\n                mul( // The arguments of `mul` are evaluated last to first.\n                    extcodesize(deployed),\n                    call(gas(), proxy, value, add(initCode, 0x20), mload(initCode), 0x00, 0x00)\n                )\n            ) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns the deterministic address for `salt`.\n    function predictDeterministicAddress(bytes32 salt) internal view returns (address deployed) {\n        deployed = predictDeterministicAddress(salt, address(this));\n    }\n\n    /// @dev Returns the deterministic address for `salt` with `deployer`.\n    function predictDeterministicAddress(bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address deployed)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, deployer) // Store `deployer`.\n            mstore8(0x0b, 0xff) // Store the prefix.\n            mstore(0x20, salt) // Store the salt.\n            mstore(0x40, PROXY_INITCODE_HASH) // Store the bytecode hash.\n\n            mstore(0x14, keccak256(0x0b, 0x55)) // Store the proxy's address.\n            mstore(0x40, m) // Restore the free memory pointer.\n            // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01).\n            // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex).\n            mstore(0x00, 0xd694)\n            mstore8(0x34, 0x01) // Nonce of the proxy contract (1).\n            deployed := keccak256(0x1e, 0x17)\n        }\n    }\n}\n"},"src/interfaces/IRoleRegistry.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title IRoleRegistry\n * @notice Interface for role-based access control management\n * @dev Provides functions for managing and querying role assignments\n */\ninterface IRoleRegistry {\n    /**\n     * @notice Verifies if an account has pauser privileges\n     * @param account The address to check for pauser role\n     * @custom:throws Reverts if account is not an authorized pauser\n     */\n    function onlyPauser(address account) external view;\n\n    /**\n     * @notice Verifies if an account has unpauser privileges\n     * @param account The address to check for unpauser role\n     * @custom:throws Reverts if account is not an authorized unpauser\n     */\n    function onlyUnpauser(address account) external view;\n\n    /**\n     * @notice Verifies if an account has admin privileges\n     * @param account The address to check for the admin role\n     * @custom:throws Reverts if account does not have the ADMIN_ROLE\n     */\n    function onlyAdmin(address account) external view;\n\n    /**\n     * @notice Verifies if an account has admin-timelock privileges\n     * @param account The address to check for the admin-timelock role\n     * @custom:throws Reverts if account does not have the ADMIN_TIMELOCK_ROLE\n     */\n    function onlyAdminTimelock(address account) external view;\n\n    /**\n     * @notice Role identifier for the fast admin multisig\n     */\n    function ADMIN_ROLE() external pure returns (bytes32);\n\n    /**\n     * @notice Role identifier for the admin (operating) timelock\n     */\n    function ADMIN_TIMELOCK_ROLE() external pure returns (bytes32);\n\n    /**\n     * @notice Checks if an account has any of the specified roles\n     * @dev Reverts if the account doesn't have at least one of the roles\n     * @param account The address to check roles for\n     * @param encodedRoles ABI encoded roles using abi.encode(ROLE_1, ROLE_2, ...)\n     * @custom:throws Reverts if account has none of the specified roles\n     */\n    function checkRoles(address account, bytes memory encodedRoles) external view;\n\n    /**\n     * @notice Checks if an account has a specific role\n     * @dev Direct query for a single role status\n     * @param role The role identifier to check\n     * @param account The address to check the role for\n     * @return True if the account has the role, false otherwise\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @notice Grants a role to an account\n     * @dev Only callable by the contract owner\n     * @param role The role identifier to grant\n     * @param account The address to grant the role to\n     * @custom:access Restricted to contract owner\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @notice Revokes a role from an account\n     * @dev Only callable by the contract owner\n     * @param role The role identifier to revoke\n     * @param account The address to revoke the role from\n     * @custom:access Restricted to contract owner\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @notice Retrieves all addresses that have a specific role\n     * @dev Wrapper around EnumerableRoles roleHolders function\n     * @param role The role identifier to query\n     * @return Array of addresses that have the specified role\n     */\n    function roleHolders(bytes32 role) external view returns (address[] memory);\n\n    /**\n     * @notice Verifies if an account has upgrader privileges\n     * @dev Used for upgrade authorization checks\n     * @param account The address to check for upgrader role\n     * @custom:throws Reverts if account is not an authorized upgrader\n     */\n    function onlyUpgrader(address account) external view;\n\n    /**\n     * @notice Returns the owner of the contract\n     * @return result Owner of the contract\n     */\n    function owner() external view returns (address result);\n\n    /**\n     * @notice Generates a unique role identifier for safe administrators\n     * @dev Creates a unique bytes32 identifier by hashing the safe address with a role type\n     * @param safe The address of the safe for which to generate the admin role\n     * @return bytes32 A unique role identifier for the specified safe's admins\n     * @custom:throws InvalidInput if safe is a zero address\n     */\n    function getSafeAdminRole(address safe) external pure returns (bytes32);\n\n    /**\n     * @notice Configures admin roles for a specific safe\n     * @dev Grants/revokes admin privileges to specified addresses for a particular safe\n     * @param accounts Array of admin addresses to configure\n     * @param shouldAdd Array indicating whether to add or remove each admin\n     * @custom:throws OnlyEtherFiSafe if called by any address other than a registered EtherFiSafe\n     * @custom:throws InvalidInput if the admins array is empty or contains a zero address\n     * @custom:throws ArrayLengthMismatch if the array lengths mismatch\n     */\n    function configureSafeAdmins(address[] calldata accounts, bool[] calldata shouldAdd) external;\n\n    /**\n     * @notice Verifies if an account has safe admin privileges\n     * @param safe The address of the safe\n     * @param account The address to check for safe admin role\n     * @custom:throws OnlySafeAdmin if the account does not have the SafeAdmin role\n     */\n    function onlySafeAdmin(address safe, address account) external view;\n\n    /**\n     * @notice Returns if an account has safe admin privileges\n     * @param safe The address of the safe\n     * @param account The address to check for safe admin role\n     * @return bool suggesting if the account has the safe admin role\n     */\n    function isSafeAdmin(address safe, address account) external view returns (bool);\n\n    /**\n     * @notice Retrieves all addresses that have the safe admin role for a particular safe\n     * @param safe The address of the safe\n     * @return Array of addresses that have the safe admin role\n     */\n    function getSafeAdmins(address safe) external view returns (address[] memory);\n}\n"},"src/interfaces/ITopUpFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title ITopUpFactory\n * @author ether.fi\n * @notice Read surface that per-user `TopUp` instances consume from their factory owner.\n *         Defined here so the TopUp impl can stay decoupled from the full factory contract.\n */\ninterface ITopUpFactory {\n    /**\n     * @notice Returns whether `token` is configured as a bridge-supported token on this\n     *         factory. Used by `TopUpV2.executeRecovery` to gate recovery to non-supported\n     *         tokens only (supported tokens must use the normal claim path).\n     * @param token Address of the ERC20 to check.\n     */\n    function isTokenSupported(address token) external view returns (bool);\n\n    /**\n     * @notice Returns the destination-chain TradingSafe address that `topUp` redirects to,\n     *         derived from the per-TopUp `sourceSafe` binding + the factory's configured\n     *         `TradingSafeFactory`. Reverts if either is missing.\n     * @dev Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the\n     *      TopUp impl stateless.\n     * @param topUp The per-user TopUp instance.\n     */\n    function redirectDestinationFor(address topUp) external view returns (address);\n\n    /**\n     * @notice Returns the ERC-4626 vault a redirect of `token` must deposit into instead of\n     *         transferring `token` itself, or the zero address when the token travels as-is.\n     * @dev Read by `TopUp.redirectToTradingSafe` so that wrapping stays configuration rather\n     *      than a parameter, leaving the redirect one call shape for every asset.\n     * @param token Address of the ERC20 being redirected.\n     */\n    function wrapperFor(address token) external view returns (address);\n}\n"},"src/libraries/DelegateCallLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n/**\n * @title DelegateCallLib\n * @notice Library for delegatecall operations\n * @author ether.fi\n */\nlibrary DelegateCallLib {\n    /**\n     * @notice Performs a delegate call to the target contract\n     * @dev Internal function used for bridge adapter calls\n     * @param target The address of the contract to delegate call to\n     * @param data The calldata to execute\n     * @return result The returned data from the delegate call\n     */\n    function delegateCall(address target, bytes memory data) internal returns (bytes memory result) {\n        require(target != address(this), \"delegatecall to self\");\n\n        // solhint-disable-next-line no-inline-assembly\n        assembly (\"memory-safe\") {\n            // Perform delegatecall to the target contract\n            let success := delegatecall(gas(), target, add(data, 0x20), mload(data), 0, 0)\n\n            // Get the size of the returned data\n            let size := returndatasize()\n\n            // Allocate memory for the return data\n            result := mload(0x40)\n\n            // Set the length of the return data\n            mstore(result, size)\n\n            // Copy the return data to the allocated memory\n            returndatacopy(add(result, 0x20), 0, size)\n\n            // Update the free memory pointer\n            mstore(0x40, add(result, add(0x20, size)))\n\n            if iszero(success) { revert(result, returndatasize()) }\n        }\n    }\n}\n"},"src/beacon-factory/BeaconFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { BeaconProxy } from \"@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol\";\nimport { UpgradeableBeacon } from \"@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol\";\nimport { CREATE3 } from \"solady/utils/CREATE3.sol\";\n\nimport { IRoleRegistry } from \"../interfaces/IRoleRegistry.sol\";\nimport { UpgradeableProxy } from \"../utils/UpgradeableProxy.sol\";\n\n/**\n * @title BeaconFactory\n * @author ether.fi\n * @notice Factory contract for deploying beacon proxies with deterministic addresses\n * @dev This contract uses CREATE3 for deterministic deployments and implements UUPS upgradeability pattern\n */\ncontract BeaconFactory is UpgradeableProxy {\n    /// @custom:storage-location erc7201:etherfi.storage.BeaconFactory\n    struct BeaconFactoryStorage {\n        /// @notice The address of the beacon contract that stores the implementation\n        address beacon;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"etherfi.storage.BeaconFactory\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant BeaconFactoryStorageLocation = 0x644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae58200;\n\n    /// @notice Emitted when the implementation in the beacon address is updated\n    /// @param oldImpl The previous impl address\n    /// @param newImpl The new impl address\n    event BeaconImplemenationUpgraded(address oldImpl, address newImpl);\n\n    /// @notice Emitted when a new beacon proxy is deployed\n    /// @param salt The salt for deterministic deployment\n    /// @param deployed The address of the newly deployed proxy\n    event BeaconProxyDeployed(bytes32 salt, address indexed deployed);\n\n    /// @notice Thrown when the deployed address doesn't match the predicted address\n    error DeployedAddressDifferentFromExpected();\n\n    /// @notice Thrown when input is invalid\n    error InvalidInput();\n\n    /// @notice Thrown when initialize fails on the deployed contract\n    error InitializationFailed();\n\n    /**\n     * @dev Initializes the contract with required parameters\n     * @param _roleRegistry Address of the role registry contract\n     * @param _beaconImpl Address of the initial implementation contract\n     */\n    function __BeaconFactory_initialize(address _roleRegistry, address _beaconImpl) internal onlyInitializing {\n        __UpgradeableProxy_init(_roleRegistry);\n        __Pausable_init();\n        BeaconFactoryStorage storage $ = _getBeaconFactoryStorage();\n        $.beacon = address(new UpgradeableBeacon(_beaconImpl, address(this)));\n    }\n\n    /**\n     * @dev Returns the storage struct from the specified storage slot\n     * @return $ Reference to the BeaconFactoryStorage struct\n     */\n    function _getBeaconFactoryStorage() private pure returns (BeaconFactoryStorage storage $) {\n        assembly {\n            $.slot := BeaconFactoryStorageLocation\n        }\n    }\n\n    /**\n     * @dev Deploys a new beacon proxy with deterministic address\n     * @param salt The salt value used for deterministic deployment\n     * @param initData The initialization data for the proxy\n     * @return The address of the deployed proxy\n     * @custom:restriction Caller must have access control restrictions\n     */\n    function _deployBeacon(bytes32 salt, bytes memory initData) internal returns (address) {\n        address expectedAddr = getDeterministicAddress(salt);\n        address deployedAddr = address(CREATE3.deployDeterministic(abi.encodePacked(type(BeaconProxy).creationCode, abi.encode(beacon(), \"\")), salt));\n        if (initData.length > 0) {\n            (bool success, ) = deployedAddr.call(initData);\n            if (!success) revert InitializationFailed();\n        }\n        if (expectedAddr != deployedAddr) revert DeployedAddressDifferentFromExpected();\n\n        emit BeaconProxyDeployed(salt, deployedAddr);\n        return deployedAddr;\n    }\n\n    /**\n     * @notice Returns the address of the beacon which stores the implementation\n     * @return beacon Address of the beacon contract\n     */\n    function beacon() public view returns (address) {\n        BeaconFactoryStorage storage $ = _getBeaconFactoryStorage();\n        return $.beacon;\n    }\n\n    /**\n     * @notice Function to set the new implementation in the beacon contract\n     * @dev Only callable by owner of RoleRegistry\n     * @param _newImpl New implementation for the beacon contract\n     * @custom:throws OnlyRoleRegistryOwner when msg.sender is not the owner of the RoleRegistry contract\n     * @custom:throws InvalidInput when _beacon == address(0)\n     */\n    function upgradeBeaconImplementation(address _newImpl) external onlyRoleRegistryOwner() {\n        if (_newImpl == address(0)) revert InvalidInput();\n\n        UpgradeableBeacon upgradeableBeacon = UpgradeableBeacon(_getBeaconFactoryStorage().beacon);\n        emit BeaconImplemenationUpgraded(upgradeableBeacon.implementation(), _newImpl);\n        upgradeableBeacon.upgradeTo(_newImpl);\n    }\n\n\n    /**\n     * @notice Predicts the deterministic address for a given salt\n     * @param salt The salt value used for address prediction\n     * @return The predicted deployment address\n     */\n    function getDeterministicAddress(bytes32 salt) public view returns (address) {\n        return CREATE3.predictDeterministicAddress(salt);\n    }\n}\n"},"src/interfaces/ITradingSafeFactory.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.28;\n\n/**\n * @title ITradingSafeFactory\n * @author ether.fi\n * @notice Mainnet TradingSafe factory surface consumed by the TopUp redirect flow and\n *         token-support checks.\n * @dev Implementation lives in the TradingSafe project (COR-728). Defined here so that\n *      consumers can resolve `sourceSafe → tradingSafe` without taking a hard dependency\n *      on the full factory interface.\n */\ninterface ITradingSafeFactory {\n    /**\n     * @notice Returns the deterministic TradingSafe address for a given source-chain safe.\n     * @param sourceSafe Source-chain safe address.\n     * @return The pre-computed destination TradingSafe address (may not yet have code).\n     */\n    function getDeterministicAddress(address sourceSafe) external view returns (address);\n\n    /**\n     * @notice Returns whether `safeAddr` is a TradingSafe deployed by this factory.\n     * @dev Used by drain-style contracts to enforce that funds can only be routed to a\n     *      registered TradingSafe, never to an arbitrary recipient.\n     * @param safeAddr The address to check.\n     * @return True if the address was deployed by this factory.\n     */\n    function isEtherFiSafe(address safeAddr) external view returns (bool);\n\n    /**\n     * @notice Returns the TopUp address a deployed TradingSafe settles to, recorded at\n     *         deploy time (the identity the safe was derived from).\n     * @dev Reverts for addresses this factory didn't deploy — callers get a guaranteed\n     *      non-zero, deploy-time-bound destination for any registered TradingSafe.\n     * @param tradingSafe The TradingSafe to look up.\n     */\n    function getTopUpAddress(address tradingSafe) external view returns (address);\n\n    /**\n     * @notice Returns whether `token` is a supported trading asset.\n     * @dev Delegates to the configured TradingLens registry. Used by the TopUp source\n     *      factory to gate `redirectToTradingSafe` to trading-supported tokens only.\n     * @param token The token to check.\n     * @return True if `token` is supported for trading.\n     */\n    function isSupportedToken(address token) external view returns (bool);\n}\n"},"src/top-up/bridge/BridgeAdapterBase.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { Math } from \"@openzeppelin/contracts/utils/math/Math.sol\";\n\nimport {Constants} from \"../../utils/Constants.sol\";\n\n/**\n * @title BridgeAdapterBase\n * @notice Base contract for bridge adapter implementations\n * @dev Abstract contract providing common bridge adapter functionality\n * @author ether.fi\n */\nabstract contract BridgeAdapterBase is Constants {\n    using Math for uint256;\n\n    /// @notice Error thrown when provided native token fee is insufficient\n    error InsufficientNativeFee();\n\n    /// @notice Error thrown when received amount is less than minimum required\n    error InsufficientMinAmount();\n\n    /**\n     * @notice Calculates the minimum amount after applying slippage\n     * @dev Uses basis points for slippage calculation (100% = 10000 bps)\n     * @param amount The original amount\n     * @param slippage The maximum allowed slippage in basis points\n     * @return The minimum amount after slippage deduction\n     */\n    function deductSlippage(uint256 amount, uint256 slippage) internal pure returns (uint256) {\n        return amount.mulDiv(10_000 - slippage, 10_000);\n    }\n\n    /**\n     * @notice Bridges tokens to the destination chain\n     * @dev Must be implemented by specific bridge adapters\n     * @param token The address of the token to bridge\n     * @param amount The amount of tokens to bridge\n     * @param destRecipient The recipient address on the destination chain\n     * @param maxSlippage Maximum allowed slippage in basis points\n     * @param additionalData Bridge-specific data required for the operation\n     */\n    function bridge(address token, uint256 amount, address destRecipient, uint256 maxSlippage, bytes calldata additionalData) external payable virtual;\n\n    /**\n     * @notice Calculates the fee required for bridging\n     * @dev Must be implemented by specific bridge adapters\n     * @param token The address of the token to bridge\n     * @param amount The amount of tokens to bridge\n     * @param destRecipient The recipient address on the destination chain\n     * @param maxSlippage Maximum allowed slippage in basis points\n     * @param additionalData Bridge-specific data required for the calculation\n     * @return Token address and amount of the required fee\n     */\n    function getBridgeFee(address token, uint256 amount, address destRecipient, uint256 maxSlippage, bytes calldata additionalData) external view virtual returns (address, uint256);\n}\n"},"lib/solady/src/utils/EnumerableSetLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Library for managing enumerable sets in storage.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EnumerableSetLib.sol)\n///\n/// @dev Note:\n/// In many applications, the number of elements in an enumerable set is small.\n/// This enumerable set implementation avoids storing the length and indices\n/// for up to 3 elements. Once the length exceeds 3 for the first time, the length\n/// and indices will be initialized. The amortized cost of adding elements is O(1).\n///\n/// The AddressSet implementation packs the length with the 0th entry.\n///\n/// All enumerable sets except Uint8Set use a pop and swap mechanism to remove elements.\n/// This means that the iteration order of elements can change between element removals.\nlibrary EnumerableSetLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The index must be less than the length.\n    error IndexOutOfBounds();\n\n    /// @dev The value cannot be the zero sentinel.\n    error ValueIsZeroSentinel();\n\n    /// @dev Cannot accommodate a new unique value with the capacity.\n    error ExceedsCapacity();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev A sentinel value to denote the zero value in storage.\n    /// No elements can be equal to this value.\n    /// `uint72(bytes9(keccak256(bytes(\"_ZERO_SENTINEL\"))))`.\n    uint256 private constant _ZERO_SENTINEL = 0xfbb67fda52d4bfb8bf;\n\n    /// @dev The storage layout is given by:\n    /// ```\n    ///     mstore(0x04, _ENUMERABLE_ADDRESS_SET_SLOT_SEED)\n    ///     mstore(0x00, set.slot)\n    ///     let rootSlot := keccak256(0x00, 0x24)\n    ///     mstore(0x20, rootSlot)\n    ///     mstore(0x00, shr(96, shl(96, value)))\n    ///     let positionSlot := keccak256(0x00, 0x40)\n    ///     let valueSlot := add(rootSlot, sload(positionSlot))\n    ///     let valueInStorage := shr(96, sload(valueSlot))\n    ///     let lazyLength := shr(160, shl(160, sload(rootSlot)))\n    /// ```\n    uint256 private constant _ENUMERABLE_ADDRESS_SET_SLOT_SEED = 0x978aab92;\n\n    /// @dev The storage layout is given by:\n    /// ```\n    ///     mstore(0x04, _ENUMERABLE_WORD_SET_SLOT_SEED)\n    ///     mstore(0x00, set.slot)\n    ///     let rootSlot := keccak256(0x00, 0x24)\n    ///     mstore(0x20, rootSlot)\n    ///     mstore(0x00, value)\n    ///     let positionSlot := keccak256(0x00, 0x40)\n    ///     let valueSlot := add(rootSlot, sload(positionSlot))\n    ///     let valueInStorage := sload(valueSlot)\n    ///     let lazyLength := sload(not(rootSlot))\n    /// ```\n    uint256 private constant _ENUMERABLE_WORD_SET_SLOT_SEED = 0x18fb5864;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STRUCTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev An enumerable address set in storage.\n    struct AddressSet {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable bytes32 set in storage.\n    struct Bytes32Set {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable uint256 set in storage.\n    struct Uint256Set {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable int256 set in storage.\n    struct Int256Set {\n        uint256 _spacer;\n    }\n\n    /// @dev An enumerable uint8 set in storage. Useful for enums.\n    struct Uint8Set {\n        uint256 data;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     GETTERS / SETTERS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the number of elements in the set.\n    function length(AddressSet storage set) internal view returns (uint256 result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let rootPacked := sload(rootSlot)\n            let n := shr(160, shl(160, rootPacked))\n            result := shr(1, n)\n            for {} iszero(or(iszero(shr(96, rootPacked)), n)) {} {\n                result := 1\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 2\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 3\n                break\n            }\n        }\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Bytes32Set storage set) internal view returns (uint256 result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let n := sload(not(rootSlot))\n            result := shr(1, n)\n            for {} iszero(n) {} {\n                result := 0\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 1\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 2\n                if iszero(sload(add(rootSlot, result))) { break }\n                result := 3\n                break\n            }\n        }\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Uint256Set storage set) internal view returns (uint256 result) {\n        result = length(_toBytes32Set(set));\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Int256Set storage set) internal view returns (uint256 result) {\n        result = length(_toBytes32Set(set));\n    }\n\n    /// @dev Returns the number of elements in the set.\n    function length(Uint8Set storage set) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let packed := sload(set.slot) } packed { result := add(1, result) } {\n                packed := xor(packed, and(packed, add(1, not(packed))))\n            }\n        }\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(AddressSet storage set, address value) internal view returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            value := shr(96, shl(96, value))\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            let rootPacked := sload(rootSlot)\n            for {} 1 {} {\n                if iszero(shr(160, shl(160, rootPacked))) {\n                    result := 1\n                    if eq(shr(96, rootPacked), value) { break }\n                    if eq(shr(96, sload(add(rootSlot, 1))), value) { break }\n                    if eq(shr(96, sload(add(rootSlot, 2))), value) { break }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                result := iszero(iszero(sload(keccak256(0x00, 0x40))))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            for {} 1 {} {\n                if iszero(sload(not(rootSlot))) {\n                    result := 1\n                    if eq(sload(rootSlot), value) { break }\n                    if eq(sload(add(rootSlot, 1)), value) { break }\n                    if eq(sload(add(rootSlot, 2)), value) { break }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                result := iszero(iszero(sload(keccak256(0x00, 0x40))))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Uint256Set storage set, uint256 value) internal view returns (bool result) {\n        result = contains(_toBytes32Set(set), bytes32(value));\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Int256Set storage set, int256 value) internal view returns (bool result) {\n        result = contains(_toBytes32Set(set), bytes32(uint256(value)));\n    }\n\n    /// @dev Returns whether `value` is in the set.\n    function contains(Uint8Set storage set, uint8 value) internal view returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := and(1, shr(and(0xff, value), sload(set.slot)))\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(AddressSet storage set, address value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            value := shr(96, shl(96, value))\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            let rootPacked := sload(rootSlot)\n            for { let n := shr(160, shl(160, rootPacked)) } 1 {} {\n                mstore(0x20, rootSlot)\n                if iszero(n) {\n                    let v0 := shr(96, rootPacked)\n                    if iszero(v0) {\n                        sstore(rootSlot, shl(96, value))\n                        result := 1\n                        break\n                    }\n                    if eq(v0, value) { break }\n                    let v1 := shr(96, sload(add(rootSlot, 1)))\n                    if iszero(v1) {\n                        sstore(add(rootSlot, 1), shl(96, value))\n                        result := 1\n                        break\n                    }\n                    if eq(v1, value) { break }\n                    let v2 := shr(96, sload(add(rootSlot, 2)))\n                    if iszero(v2) {\n                        sstore(add(rootSlot, 2), shl(96, value))\n                        result := 1\n                        break\n                    }\n                    if eq(v2, value) { break }\n                    mstore(0x00, v0)\n                    sstore(keccak256(0x00, 0x40), 1)\n                    mstore(0x00, v1)\n                    sstore(keccak256(0x00, 0x40), 2)\n                    mstore(0x00, v2)\n                    sstore(keccak256(0x00, 0x40), 3)\n                    rootPacked := or(rootPacked, 7)\n                    n := 7\n                }\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                if iszero(sload(p)) {\n                    n := shr(1, n)\n                    result := 1\n                    sstore(p, add(1, n))\n                    if iszero(n) {\n                        sstore(rootSlot, or(3, shl(96, value)))\n                        break\n                    }\n                    sstore(add(rootSlot, n), shl(96, value))\n                    sstore(rootSlot, add(2, rootPacked))\n                    break\n                }\n                break\n            }\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Bytes32Set storage set, bytes32 value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            for { let n := sload(not(rootSlot)) } 1 {} {\n                mstore(0x20, rootSlot)\n                if iszero(n) {\n                    let v0 := sload(rootSlot)\n                    if iszero(v0) {\n                        sstore(rootSlot, value)\n                        result := 1\n                        break\n                    }\n                    if eq(v0, value) { break }\n                    let v1 := sload(add(rootSlot, 1))\n                    if iszero(v1) {\n                        sstore(add(rootSlot, 1), value)\n                        result := 1\n                        break\n                    }\n                    if eq(v1, value) { break }\n                    let v2 := sload(add(rootSlot, 2))\n                    if iszero(v2) {\n                        sstore(add(rootSlot, 2), value)\n                        result := 1\n                        break\n                    }\n                    if eq(v2, value) { break }\n                    mstore(0x00, v0)\n                    sstore(keccak256(0x00, 0x40), 1)\n                    mstore(0x00, v1)\n                    sstore(keccak256(0x00, 0x40), 2)\n                    mstore(0x00, v2)\n                    sstore(keccak256(0x00, 0x40), 3)\n                    n := 7\n                }\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                if iszero(sload(p)) {\n                    n := shr(1, n)\n                    sstore(add(rootSlot, n), value)\n                    sstore(p, add(1, n))\n                    sstore(not(rootSlot), or(1, shl(1, add(1, n))))\n                    result := 1\n                    break\n                }\n                break\n            }\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Uint256Set storage set, uint256 value) internal returns (bool result) {\n        result = add(_toBytes32Set(set), bytes32(value));\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Int256Set storage set, int256 value) internal returns (bool result) {\n        result = add(_toBytes32Set(set), bytes32(uint256(value)));\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    function add(Uint8Set storage set, uint8 value) internal returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(set.slot)\n            let mask := shl(and(0xff, value), 1)\n            sstore(set.slot, or(result, mask))\n            result := iszero(and(result, mask))\n        }\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(AddressSet storage set, address value, uint256 cap)\n        internal\n        returns (bool result)\n    {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Bytes32Set storage set, bytes32 value, uint256 cap)\n        internal\n        returns (bool result)\n    {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Uint256Set storage set, uint256 value, uint256 cap)\n        internal\n        returns (bool result)\n    {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Int256Set storage set, int256 value, uint256 cap) internal returns (bool result) {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Adds `value` to the set. Returns whether `value` was not in the set.\n    /// Reverts if the set grows bigger than the custom on-the-fly capacity `cap`.\n    function add(Uint8Set storage set, uint8 value, uint256 cap) internal returns (bool result) {\n        if (result = add(set, value)) if (length(set) > cap) revert ExceedsCapacity();\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(AddressSet storage set, address value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            value := shr(96, shl(96, value))\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            let rootPacked := sload(rootSlot)\n            for { let n := shr(160, shl(160, rootPacked)) } 1 {} {\n                if iszero(n) {\n                    result := 1\n                    if eq(shr(96, rootPacked), value) {\n                        sstore(rootSlot, sload(add(rootSlot, 1)))\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(shr(96, sload(add(rootSlot, 1))), value) {\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(shr(96, sload(add(rootSlot, 2))), value) {\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                let position := sload(p)\n                if iszero(position) { break }\n                n := sub(shr(1, n), 1)\n                if iszero(eq(sub(position, 1), n)) {\n                    let lastValue := shr(96, sload(add(rootSlot, n)))\n                    sstore(add(rootSlot, sub(position, 1)), shl(96, lastValue))\n                    mstore(0x00, lastValue)\n                    sstore(keccak256(0x00, 0x40), position)\n                }\n                sstore(rootSlot, or(shl(96, shr(96, sload(rootSlot))), or(shl(1, n), 1)))\n                sstore(p, 0)\n                result := 1\n                break\n            }\n        }\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            if eq(value, _ZERO_SENTINEL) {\n                mstore(0x00, 0xf5a267f1) // `ValueIsZeroSentinel()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(value) { value := _ZERO_SENTINEL }\n            for { let n := sload(not(rootSlot)) } 1 {} {\n                if iszero(n) {\n                    result := 1\n                    if eq(sload(rootSlot), value) {\n                        sstore(rootSlot, sload(add(rootSlot, 1)))\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(sload(add(rootSlot, 1)), value) {\n                        sstore(add(rootSlot, 1), sload(add(rootSlot, 2)))\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    if eq(sload(add(rootSlot, 2)), value) {\n                        sstore(add(rootSlot, 2), 0)\n                        break\n                    }\n                    result := 0\n                    break\n                }\n                mstore(0x20, rootSlot)\n                mstore(0x00, value)\n                let p := keccak256(0x00, 0x40)\n                let position := sload(p)\n                if iszero(position) { break }\n                n := sub(shr(1, n), 1)\n                if iszero(eq(sub(position, 1), n)) {\n                    let lastValue := sload(add(rootSlot, n))\n                    sstore(add(rootSlot, sub(position, 1)), lastValue)\n                    mstore(0x00, lastValue)\n                    sstore(keccak256(0x00, 0x40), position)\n                }\n                sstore(not(rootSlot), or(shl(1, n), 1))\n                sstore(p, 0)\n                result := 1\n                break\n            }\n        }\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Uint256Set storage set, uint256 value) internal returns (bool result) {\n        result = remove(_toBytes32Set(set), bytes32(value));\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Int256Set storage set, int256 value) internal returns (bool result) {\n        result = remove(_toBytes32Set(set), bytes32(uint256(value)));\n    }\n\n    /// @dev Removes `value` from the set. Returns whether `value` was in the set.\n    function remove(Uint8Set storage set, uint8 value) internal returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(set.slot)\n            let mask := shl(and(0xff, value), 1)\n            sstore(set.slot, and(result, not(mask)))\n            result := iszero(iszero(and(result, mask)))\n        }\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(AddressSet storage set, address value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Bytes32Set storage set, bytes32 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Uint256Set storage set, uint256 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Int256Set storage set, int256 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Shorthand for `isAdd ? set.add(value, cap) : set.remove(value)`.\n    function update(Uint8Set storage set, uint8 value, bool isAdd, uint256 cap)\n        internal\n        returns (bool)\n    {\n        return isAdd ? add(set, value, cap) : remove(set, value);\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(AddressSet storage set) internal view returns (address[] memory result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let zs := _ZERO_SENTINEL\n            let rootPacked := sload(rootSlot)\n            let n := shr(160, shl(160, rootPacked))\n            result := mload(0x40)\n            let o := add(0x20, result)\n            let v := shr(96, rootPacked)\n            mstore(o, mul(v, iszero(eq(v, zs))))\n            for {} 1 {} {\n                if iszero(n) {\n                    if v {\n                        n := 1\n                        v := shr(96, sload(add(rootSlot, n)))\n                        if v {\n                            n := 2\n                            mstore(add(o, 0x20), mul(v, iszero(eq(v, zs))))\n                            v := shr(96, sload(add(rootSlot, n)))\n                            if v {\n                                n := 3\n                                mstore(add(o, 0x40), mul(v, iszero(eq(v, zs))))\n                            }\n                        }\n                    }\n                    break\n                }\n                n := shr(1, n)\n                for { let i := 1 } lt(i, n) { i := add(i, 1) } {\n                    v := shr(96, sload(add(rootSlot, i)))\n                    mstore(add(o, shl(5, i)), mul(v, iszero(eq(v, zs))))\n                }\n                break\n            }\n            mstore(result, n)\n            mstore(0x40, add(o, shl(5, n)))\n        }\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(Bytes32Set storage set) internal view returns (bytes32[] memory result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            let zs := _ZERO_SENTINEL\n            let n := sload(not(rootSlot))\n            result := mload(0x40)\n            let o := add(0x20, result)\n            for {} 1 {} {\n                if iszero(n) {\n                    let v := sload(rootSlot)\n                    if v {\n                        n := 1\n                        mstore(o, mul(v, iszero(eq(v, zs))))\n                        v := sload(add(rootSlot, n))\n                        if v {\n                            n := 2\n                            mstore(add(o, 0x20), mul(v, iszero(eq(v, zs))))\n                            v := sload(add(rootSlot, n))\n                            if v {\n                                n := 3\n                                mstore(add(o, 0x40), mul(v, iszero(eq(v, zs))))\n                            }\n                        }\n                    }\n                    break\n                }\n                n := shr(1, n)\n                for { let i := 0 } lt(i, n) { i := add(i, 1) } {\n                    let v := sload(add(rootSlot, i))\n                    mstore(add(o, shl(5, i)), mul(v, iszero(eq(v, zs))))\n                }\n                break\n            }\n            mstore(result, n)\n            mstore(0x40, add(o, shl(5, n)))\n        }\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(Uint256Set storage set) internal view returns (uint256[] memory result) {\n        result = _toUints(values(_toBytes32Set(set)));\n    }\n\n    /// @dev Returns all of the values in the set.\n    /// Note: This can consume more gas than the block gas limit for large sets.\n    function values(Int256Set storage set) internal view returns (int256[] memory result) {\n        result = _toInts(values(_toBytes32Set(set)));\n    }\n\n    /// @dev Returns all of the values in the set.\n    function values(Uint8Set storage set) internal view returns (uint8[] memory result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(0x40)\n            let ptr := add(result, 0x20)\n            let o := 0\n            for { let packed := sload(set.slot) } packed {} {\n                if iszero(and(packed, 0xffff)) {\n                    o := add(o, 16)\n                    packed := shr(16, packed)\n                    continue\n                }\n                mstore(ptr, o)\n                ptr := add(ptr, shl(5, and(packed, 1)))\n                o := add(o, 1)\n                packed := shr(1, packed)\n            }\n            mstore(result, shr(5, sub(ptr, add(result, 0x20))))\n            mstore(0x40, ptr)\n        }\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(AddressSet storage set, uint256 i) internal view returns (address result) {\n        bytes32 rootSlot = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := shr(96, sload(add(rootSlot, i)))\n            result := mul(result, iszero(eq(result, _ZERO_SENTINEL)))\n        }\n        if (i >= length(set)) revert IndexOutOfBounds();\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Bytes32Set storage set, uint256 i) internal view returns (bytes32 result) {\n        result = _rootSlot(set);\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(add(result, i))\n            result := mul(result, iszero(eq(result, _ZERO_SENTINEL)))\n        }\n        if (i >= length(set)) revert IndexOutOfBounds();\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Uint256Set storage set, uint256 i) internal view returns (uint256 result) {\n        result = uint256(at(_toBytes32Set(set), i));\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Int256Set storage set, uint256 i) internal view returns (int256 result) {\n        result = int256(uint256(at(_toBytes32Set(set), i)));\n    }\n\n    /// @dev Returns the element at index `i` in the set. Reverts if `i` is out-of-bounds.\n    function at(Uint8Set storage set, uint256 i) internal view returns (uint8 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let packed := sload(set.slot)\n            for {} 1 {\n                mstore(0x00, 0x4e23d035) // `IndexOutOfBounds()`.\n                revert(0x1c, 0x04)\n            } {\n                if iszero(lt(i, 256)) { continue }\n                for { let j := 0 } iszero(eq(i, j)) {} {\n                    packed := xor(packed, and(packed, add(1, not(packed))))\n                    j := add(j, 1)\n                }\n                if iszero(packed) { continue }\n                break\n            }\n            // Find first set subroutine, optimized for smaller bytecode size.\n            let x := and(packed, add(1, not(packed)))\n            let r := shl(7, iszero(iszero(shr(128, x))))\n            r := or(r, shl(6, iszero(iszero(shr(64, shr(r, x))))))\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n            // For the lower 5 bits of the result, use a De Bruijn lookup.\n            // forgefmt: disable-next-item\n            result := or(r, byte(and(div(0xd76453e0, shr(r, x)), 0x1f),\n                0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the root slot.\n    function _rootSlot(AddressSet storage s) private pure returns (bytes32 r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x04, _ENUMERABLE_ADDRESS_SET_SLOT_SEED)\n            mstore(0x00, s.slot)\n            r := keccak256(0x00, 0x24)\n        }\n    }\n\n    /// @dev Returns the root slot.\n    function _rootSlot(Bytes32Set storage s) private pure returns (bytes32 r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x04, _ENUMERABLE_WORD_SET_SLOT_SEED)\n            mstore(0x00, s.slot)\n            r := keccak256(0x00, 0x24)\n        }\n    }\n\n    /// @dev Casts to a Bytes32Set.\n    function _toBytes32Set(Uint256Set storage s) private pure returns (Bytes32Set storage c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c.slot := s.slot\n        }\n    }\n\n    /// @dev Casts to a Bytes32Set.\n    function _toBytes32Set(Int256Set storage s) private pure returns (Bytes32Set storage c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c.slot := s.slot\n        }\n    }\n\n    /// @dev Casts to a uint256 array.\n    function _toUints(bytes32[] memory a) private pure returns (uint256[] memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := a\n        }\n    }\n\n    /// @dev Casts to a int256 array.\n    function _toInts(bytes32[] memory a) private pure returns (int256[] memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := a\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\n * be specified by overriding the virtual {_implementation} function.\n *\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\n * different contract through the {_delegate} function.\n *\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\n */\nabstract contract Proxy {\n    /**\n     * @dev Delegates the current call to `implementation`.\n     *\n     * This function does not return to its internal call site, it will return directly to the external caller.\n     */\n    function _delegate(address implementation) internal virtual {\n        assembly {\n            // Copy msg.data. We take full control of memory in this inline assembly\n            // block because it will not return to Solidity code. We overwrite the\n            // Solidity scratch pad at memory position 0.\n            calldatacopy(0, 0, calldatasize())\n\n            // Call the implementation.\n            // out and outsize are 0 because we don't know the size yet.\n            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\n\n            // Copy the returned data.\n            returndatacopy(0, 0, returndatasize())\n\n            switch result\n            // delegatecall returns 0 on error.\n            case 0 {\n                revert(0, returndatasize())\n            }\n            default {\n                return(0, returndatasize())\n            }\n        }\n    }\n\n    /**\n     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\n     * function and {_fallback} should delegate.\n     */\n    function _implementation() internal view virtual returns (address);\n\n    /**\n     * @dev Delegates the current call to the address returned by `_implementation()`.\n     *\n     * This function does not return to its internal call site, it will return directly to the external caller.\n     */\n    function _fallback() internal virtual {\n        _delegate(_implementation());\n    }\n\n    /**\n     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\n     * function in the contract matches the call data.\n     */\n    fallback() external payable virtual {\n        _fallback();\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error InsufficientBalance(uint256 balance, uint256 needed);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedCall();\n\n    /**\n     * @dev The deployment failed.\n     */\n    error FailedDeployment();\n\n    /**\n     * @dev A necessary precompile is missing.\n     */\n    error MissingPrecompile(address);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev There's no code at `target` (it is not a contract).\n     */\n    error AddressEmptyCode(address target);\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        if (address(this).balance < amount) {\n            revert Errors.InsufficientBalance(address(this).balance, amount);\n        }\n\n        (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n        if (!success) {\n            _revert(returndata);\n        }\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason or custom error, it is bubbled\n     * up by this function (like regular Solidity function calls). However, if\n     * the call reverted with no returned reason, this function reverts with a\n     * {Errors.FailedCall} error.\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        if (address(this).balance < value) {\n            revert Errors.InsufficientBalance(address(this).balance, value);\n        }\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n     * of an unsuccessful call.\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata\n    ) internal view returns (bytes memory) {\n        if (!success) {\n            _revert(returndata);\n        } else {\n            // only check if target is a contract if the call was successful and the return data is empty\n            // otherwise we already know that it was a contract\n            if (returndata.length == 0 && target.code.length == 0) {\n                revert AddressEmptyCode(target);\n            }\n            return returndata;\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n     * revert reason or with a default {Errors.FailedCall} error.\n     */\n    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n        if (!success) {\n            _revert(returndata);\n        } else {\n            return returndata;\n        }\n    }\n\n    /**\n     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n     */\n    function _revert(bytes memory returndata) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            assembly (\"memory-safe\") {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert Errors.FailedCall();\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with an success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n            // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2²⁵⁶ + prod0.\n            uint256 prod0 = x * y; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= prod1) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n        for (uint256 i = 0; i < byteArray.length; ++i) {\n            if (byteArray[i] != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        uint256 exp;\n        unchecked {\n            exp = 128 * SafeCast.toUint(value > (1 << 128) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 64 * SafeCast.toUint(value > (1 << 64) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 32 * SafeCast.toUint(value > (1 << 32) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 16 * SafeCast.toUint(value > (1 << 16) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 8 * SafeCast.toUint(value > (1 << 8) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 4 * SafeCast.toUint(value > (1 << 4) - 1);\n            value >>= exp;\n            result += exp;\n\n            exp = 2 * SafeCast.toUint(value > (1 << 2) - 1);\n            value >>= exp;\n            result += exp;\n\n            result += SafeCast.toUint(value > 1);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        uint256 isGt;\n        unchecked {\n            isGt = SafeCast.toUint(value > (1 << 128) - 1);\n            value >>= isGt * 128;\n            result += isGt * 16;\n\n            isGt = SafeCast.toUint(value > (1 << 64) - 1);\n            value >>= isGt * 64;\n            result += isGt * 8;\n\n            isGt = SafeCast.toUint(value > (1 << 32) - 1);\n            value >>= isGt * 32;\n            result += isGt * 4;\n\n            isGt = SafeCast.toUint(value > (1 << 16) - 1);\n            value >>= isGt * 16;\n            result += isGt * 2;\n\n            result += SafeCast.toUint(value > (1 << 8) - 1);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct Int256Slot {\n        int256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n     */\n    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n    /**\n     * @dev Emitted when the implementation is upgraded.\n     */\n    event Upgraded(address indexed implementation);\n\n    /**\n     * @dev Emitted when the admin account has changed.\n     */\n    event AdminChanged(address previousAdmin, address newAdmin);\n\n    /**\n     * @dev Emitted when the beacon is changed.\n     */\n    event BeaconUpgraded(address indexed beacon);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC4626.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n\n/**\n * @dev Interface of the ERC-4626 \"Tokenized Vault Standard\", as defined in\n * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].\n */\ninterface IERC4626 is IERC20, IERC20Metadata {\n    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);\n\n    event Withdraw(\n        address indexed sender,\n        address indexed receiver,\n        address indexed owner,\n        uint256 assets,\n        uint256 shares\n    );\n\n    /**\n     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.\n     *\n     * - MUST be an ERC-20 token contract.\n     * - MUST NOT revert.\n     */\n    function asset() external view returns (address assetTokenAddress);\n\n    /**\n     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.\n     *\n     * - SHOULD include any compounding that occurs from yield.\n     * - MUST be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT revert.\n     */\n    function totalAssets() external view returns (uint256 totalManagedAssets);\n\n    /**\n     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal\n     * scenario where all the conditions are met.\n     *\n     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT show any variations depending on the caller.\n     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.\n     * - MUST NOT revert.\n     *\n     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the\n     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and\n     * from.\n     */\n    function convertToShares(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal\n     * scenario where all the conditions are met.\n     *\n     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT show any variations depending on the caller.\n     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.\n     * - MUST NOT revert.\n     *\n     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the\n     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and\n     * from.\n     */\n    function convertToAssets(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,\n     * through a deposit call.\n     *\n     * - MUST return a limited value if receiver is subject to some deposit limit.\n     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.\n     * - MUST NOT revert.\n     */\n    function maxDeposit(address receiver) external view returns (uint256 maxAssets);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given\n     * current on-chain conditions.\n     *\n     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit\n     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called\n     *   in the same transaction.\n     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the\n     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.\n     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by depositing.\n     */\n    function previewDeposit(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.\n     *\n     * - MUST emit the Deposit event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   deposit execution, and are accounted for during deposit.\n     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not\n     *   approving enough underlying tokens to the Vault contract, etc).\n     *\n     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.\n     */\n    function deposit(uint256 assets, address receiver) external returns (uint256 shares);\n\n    /**\n     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.\n     * - MUST return a limited value if receiver is subject to some mint limit.\n     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.\n     * - MUST NOT revert.\n     */\n    function maxMint(address receiver) external view returns (uint256 maxShares);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given\n     * current on-chain conditions.\n     *\n     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call\n     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the\n     *   same transaction.\n     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint\n     *   would be accepted, regardless if the user has enough tokens approved, etc.\n     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by minting.\n     */\n    function previewMint(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.\n     *\n     * - MUST emit the Deposit event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint\n     *   execution, and are accounted for during mint.\n     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not\n     *   approving enough underlying tokens to the Vault contract, etc).\n     *\n     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.\n     */\n    function mint(uint256 shares, address receiver) external returns (uint256 assets);\n\n    /**\n     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the\n     * Vault, through a withdraw call.\n     *\n     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.\n     * - MUST NOT revert.\n     */\n    function maxWithdraw(address owner) external view returns (uint256 maxAssets);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,\n     * given current on-chain conditions.\n     *\n     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw\n     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if\n     *   called\n     *   in the same transaction.\n     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though\n     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.\n     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by depositing.\n     */\n    function previewWithdraw(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.\n     *\n     * - MUST emit the Withdraw event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   withdraw execution, and are accounted for during withdraw.\n     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner\n     *   not having enough shares, etc).\n     *\n     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.\n     * Those methods should be performed separately.\n     */\n    function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);\n\n    /**\n     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,\n     * through a redeem call.\n     *\n     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.\n     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.\n     * - MUST NOT revert.\n     */\n    function maxRedeem(address owner) external view returns (uint256 maxShares);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,\n     * given current on-chain conditions.\n     *\n     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call\n     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the\n     *   same transaction.\n     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the\n     *   redemption would be accepted, regardless if the user has enough shares, etc.\n     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.\n     */\n    function previewRedeem(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.\n     *\n     * - MUST emit the Withdraw event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   redeem execution, and are accounted for during redeem.\n     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner\n     *   not having enough shares, etc).\n     *\n     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.\n     * Those methods should be performed separately.\n     */\n    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/TransientSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/TransientSlot.js.\n\npragma solidity ^0.8.24;\n\n/**\n * @dev Library for reading and writing value-types to specific transient storage slots.\n *\n * Transient slots are often used to store temporary values that are removed after the current transaction.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n *  * Example reading and writing values using transient storage:\n * ```solidity\n * contract Lock {\n *     using TransientSlot for *;\n *\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _LOCK_SLOT = 0xf4678858b2b588224636b8522b729e7722d32fc491da849ed75b3fdf3c84f542;\n *\n *     modifier locked() {\n *         require(!_LOCK_SLOT.asBoolean().tload());\n *\n *         _LOCK_SLOT.asBoolean().tstore(true);\n *         _;\n *         _LOCK_SLOT.asBoolean().tstore(false);\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary TransientSlot {\n    /**\n     * @dev UDVT that represent a slot holding a address.\n     */\n    type AddressSlot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a AddressSlot.\n     */\n    function asAddress(bytes32 slot) internal pure returns (AddressSlot) {\n        return AddressSlot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a bool.\n     */\n    type BooleanSlot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a BooleanSlot.\n     */\n    function asBoolean(bytes32 slot) internal pure returns (BooleanSlot) {\n        return BooleanSlot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a bytes32.\n     */\n    type Bytes32Slot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a Bytes32Slot.\n     */\n    function asBytes32(bytes32 slot) internal pure returns (Bytes32Slot) {\n        return Bytes32Slot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a uint256.\n     */\n    type Uint256Slot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a Uint256Slot.\n     */\n    function asUint256(bytes32 slot) internal pure returns (Uint256Slot) {\n        return Uint256Slot.wrap(slot);\n    }\n\n    /**\n     * @dev UDVT that represent a slot holding a int256.\n     */\n    type Int256Slot is bytes32;\n\n    /**\n     * @dev Cast an arbitrary slot to a Int256Slot.\n     */\n    function asInt256(bytes32 slot) internal pure returns (Int256Slot) {\n        return Int256Slot.wrap(slot);\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(AddressSlot slot) internal view returns (address value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(AddressSlot slot, address value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(BooleanSlot slot) internal view returns (bool value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(BooleanSlot slot, bool value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(Bytes32Slot slot) internal view returns (bytes32 value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(Bytes32Slot slot, bytes32 value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(Uint256Slot slot) internal view returns (uint256 value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(Uint256Slot slot, uint256 value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n\n    /**\n     * @dev Load the value held at location `slot` in transient storage.\n     */\n    function tload(Int256Slot slot) internal view returns (int256 value) {\n        assembly (\"memory-safe\") {\n            value := tload(slot)\n        }\n    }\n\n    /**\n     * @dev Store `value` at location `slot` in transient storage.\n     */\n    function tstore(Int256Slot slot, int256 value) internal {\n        assembly (\"memory-safe\") {\n            tstore(slot, value)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in an uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in an uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev An uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeacon {\n    /**\n     * @dev Must return an address that can be used as a delegate call target.\n     *\n     * {UpgradeableBeacon} will check that this address is a contract.\n     */\n    function implementation() external view returns (address);\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/beacon/BeaconProxy.sol)\n\npragma solidity ^0.8.22;\n\nimport {IBeacon} from \"./IBeacon.sol\";\nimport {Proxy} from \"../Proxy.sol\";\nimport {ERC1967Utils} from \"../ERC1967/ERC1967Utils.sol\";\n\n/**\n * @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.\n *\n * The beacon address can only be set once during construction, and cannot be changed afterwards. It is stored in an\n * immutable variable to avoid unnecessary storage reads, and also in the beacon storage slot specified by\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] so that it can be accessed externally.\n *\n * CAUTION: Since the beacon address can never be changed, you must ensure that you either control the beacon, or trust\n * the beacon to not upgrade the implementation maliciously.\n *\n * IMPORTANT: Do not use the implementation logic to modify the beacon storage slot. Doing so would leave the proxy in\n * an inconsistent state where the beacon storage slot does not match the beacon address.\n */\ncontract BeaconProxy is Proxy {\n    // An immutable address for the beacon to avoid unnecessary SLOADs before each delegate call.\n    address private immutable _beacon;\n\n    /**\n     * @dev Initializes the proxy with `beacon`.\n     *\n     * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This\n     * will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity\n     * constructor.\n     *\n     * Requirements:\n     *\n     * - `beacon` must be a contract with the interface {IBeacon}.\n     * - If `data` is empty, `msg.value` must be zero.\n     */\n    constructor(address beacon, bytes memory data) payable {\n        ERC1967Utils.upgradeBeaconToAndCall(beacon, data);\n        _beacon = beacon;\n    }\n\n    /**\n     * @dev Returns the current implementation address of the associated beacon.\n     */\n    function _implementation() internal view virtual override returns (address) {\n        return IBeacon(_getBeacon()).implementation();\n    }\n\n    /**\n     * @dev Returns the beacon.\n     */\n    function _getBeacon() internal view virtual returns (address) {\n        return _beacon;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n    /**\n     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n     * address.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy.\n     */\n    function proxiableUUID() external view returns (bytes32);\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.22;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\n    /**\n     * @dev Storage slot with the address of the current implementation.\n     * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /**\n     * @dev The `implementation` of the proxy is invalid.\n     */\n    error ERC1967InvalidImplementation(address implementation);\n\n    /**\n     * @dev The `admin` of the proxy is invalid.\n     */\n    error ERC1967InvalidAdmin(address admin);\n\n    /**\n     * @dev The `beacon` of the proxy is invalid.\n     */\n    error ERC1967InvalidBeacon(address beacon);\n\n    /**\n     * @dev An upgrade function sees `msg.value > 0` that may be lost.\n     */\n    error ERC1967NonPayable();\n\n    /**\n     * @dev Returns the current implementation address.\n     */\n    function getImplementation() internal view returns (address) {\n        return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the ERC-1967 implementation slot.\n     */\n    function _setImplementation(address newImplementation) private {\n        if (newImplementation.code.length == 0) {\n            revert ERC1967InvalidImplementation(newImplementation);\n        }\n        StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n    }\n\n    /**\n     * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n     * to avoid stuck value in the contract.\n     *\n     * Emits an {IERC1967-Upgraded} event.\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n        _setImplementation(newImplementation);\n        emit IERC1967.Upgraded(newImplementation);\n\n        if (data.length > 0) {\n            Address.functionDelegateCall(newImplementation, data);\n        } else {\n            _checkNonPayable();\n        }\n    }\n\n    /**\n     * @dev Storage slot with the admin of the contract.\n     * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n    /**\n     * @dev Returns the current admin.\n     *\n     * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n     * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\n     */\n    function getAdmin() internal view returns (address) {\n        return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the ERC-1967 admin slot.\n     */\n    function _setAdmin(address newAdmin) private {\n        if (newAdmin == address(0)) {\n            revert ERC1967InvalidAdmin(address(0));\n        }\n        StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n    }\n\n    /**\n     * @dev Changes the admin of the proxy.\n     *\n     * Emits an {IERC1967-AdminChanged} event.\n     */\n    function changeAdmin(address newAdmin) internal {\n        emit IERC1967.AdminChanged(getAdmin(), newAdmin);\n        _setAdmin(newAdmin);\n    }\n\n    /**\n     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n     * This is the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n    /**\n     * @dev Returns the current beacon.\n     */\n    function getBeacon() internal view returns (address) {\n        return StorageSlot.getAddressSlot(BEACON_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new beacon in the ERC-1967 beacon slot.\n     */\n    function _setBeacon(address newBeacon) private {\n        if (newBeacon.code.length == 0) {\n            revert ERC1967InvalidBeacon(newBeacon);\n        }\n\n        StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n        address beaconImplementation = IBeacon(newBeacon).implementation();\n        if (beaconImplementation.code.length == 0) {\n            revert ERC1967InvalidImplementation(beaconImplementation);\n        }\n    }\n\n    /**\n     * @dev Change the beacon and trigger a setup call if data is nonempty.\n     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n     * to avoid stuck value in the contract.\n     *\n     * Emits an {IERC1967-BeaconUpgraded} event.\n     *\n     * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n     * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n     * efficiency.\n     */\n    function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n        _setBeacon(newBeacon);\n        emit IERC1967.BeaconUpgraded(newBeacon);\n\n        if (data.length > 0) {\n            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n        } else {\n            _checkNonPayable();\n        }\n    }\n\n    /**\n     * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n     * if an upgrade doesn't perform an initialization call.\n     */\n    function _checkNonPayable() private {\n        if (msg.value > 0) {\n            revert ERC1967NonPayable();\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            // bubble errors\n            if iszero(success) {\n                let ptr := mload(0x40)\n                returndatacopy(ptr, 0, returndatasize())\n                revert(ptr, returndatasize())\n            }\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n\n        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        bool success;\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/UpgradeableBeacon.sol)\n\npragma solidity ^0.8.20;\n\nimport {IBeacon} from \"./IBeacon.sol\";\nimport {Ownable} from \"../../access/Ownable.sol\";\n\n/**\n * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their\n * implementation contract, which is where they will delegate all function calls.\n *\n * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.\n */\ncontract UpgradeableBeacon is IBeacon, Ownable {\n    address private _implementation;\n\n    /**\n     * @dev The `implementation` of the beacon is invalid.\n     */\n    error BeaconInvalidImplementation(address implementation);\n\n    /**\n     * @dev Emitted when the implementation returned by the beacon is changed.\n     */\n    event Upgraded(address indexed implementation);\n\n    /**\n     * @dev Sets the address of the initial implementation, and the initial owner who can upgrade the beacon.\n     */\n    constructor(address implementation_, address initialOwner) Ownable(initialOwner) {\n        _setImplementation(implementation_);\n    }\n\n    /**\n     * @dev Returns the current implementation address.\n     */\n    function implementation() public view virtual returns (address) {\n        return _implementation;\n    }\n\n    /**\n     * @dev Upgrades the beacon to a new implementation.\n     *\n     * Emits an {Upgraded} event.\n     *\n     * Requirements:\n     *\n     * - msg.sender must be the owner of the contract.\n     * - `newImplementation` must be a contract.\n     */\n    function upgradeTo(address newImplementation) public virtual onlyOwner {\n        _setImplementation(newImplementation);\n    }\n\n    /**\n     * @dev Sets the implementation contract address for this beacon\n     *\n     * Requirements:\n     *\n     * - `newImplementation` must be a contract.\n     */\n    function _setImplementation(address newImplementation) private {\n        if (newImplementation.code.length == 0) {\n            revert BeaconInvalidImplementation(newImplementation);\n        }\n        _implementation = newImplementation;\n        emit Upgraded(newImplementation);\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Storage of the initializable contract.\n     *\n     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n     * when using with upgradeable contracts.\n     *\n     * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n     */\n    struct InitializableStorage {\n        /**\n         * @dev Indicates that the contract has been initialized.\n         */\n        uint64 _initialized;\n        /**\n         * @dev Indicates that the contract is in the process of being initialized.\n         */\n        bool _initializing;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n    /**\n     * @dev The contract is already initialized.\n     */\n    error InvalidInitialization();\n\n    /**\n     * @dev The contract is not initializing.\n     */\n    error NotInitializing();\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint64 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n     * production.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        // Cache values to avoid duplicated sloads\n        bool isTopLevelCall = !$._initializing;\n        uint64 initialized = $._initialized;\n\n        // Allowed calls:\n        // - initialSetup: the contract is not in the initializing state and no previous version was\n        //                 initialized\n        // - construction: the contract is initialized at version 1 (no reininitialization) and the\n        //                 current contract is just being deployed\n        bool initialSetup = initialized == 0 && isTopLevelCall;\n        bool construction = initialized == 1 && address(this).code.length == 0;\n\n        if (!initialSetup && !construction) {\n            revert InvalidInitialization();\n        }\n        $._initialized = 1;\n        if (isTopLevelCall) {\n            $._initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            $._initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint64 version) {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        if ($._initializing || $._initialized >= version) {\n            revert InvalidInitialization();\n        }\n        $._initialized = version;\n        $._initializing = true;\n        _;\n        $._initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        _checkInitializing();\n        _;\n    }\n\n    /**\n     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n     */\n    function _checkInitializing() internal view virtual {\n        if (!_isInitializing()) {\n            revert NotInitializing();\n        }\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        if ($._initializing) {\n            revert InvalidInitialization();\n        }\n        if ($._initialized != type(uint64).max) {\n            $._initialized = type(uint64).max;\n            emit Initialized(type(uint64).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint64) {\n        return _getInitializableStorage()._initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _getInitializableStorage()._initializing;\n    }\n\n    /**\n     * @dev Returns a pointer to the storage namespace.\n     */\n    // solhint-disable-next-line var-name-mixedcase\n    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n        assembly {\n            $.slot := INITIALIZABLE_STORAGE\n        }\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n    /// @custom:storage-location erc7201:openzeppelin.storage.Pausable\n    struct PausableStorage {\n        bool _paused;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Pausable\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant PausableStorageLocation = 0xcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300;\n\n    function _getPausableStorage() private pure returns (PausableStorage storage $) {\n        assembly {\n            $.slot := PausableStorageLocation\n        }\n    }\n\n    /**\n     * @dev Emitted when the pause is triggered by `account`.\n     */\n    event Paused(address account);\n\n    /**\n     * @dev Emitted when the pause is lifted by `account`.\n     */\n    event Unpaused(address account);\n\n    /**\n     * @dev The operation failed because the contract is paused.\n     */\n    error EnforcedPause();\n\n    /**\n     * @dev The operation failed because the contract is not paused.\n     */\n    error ExpectedPause();\n\n    /**\n     * @dev Initializes the contract in unpaused state.\n     */\n    function __Pausable_init() internal onlyInitializing {\n        __Pausable_init_unchained();\n    }\n\n    function __Pausable_init_unchained() internal onlyInitializing {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = false;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    modifier whenNotPaused() {\n        _requireNotPaused();\n        _;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is paused.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    modifier whenPaused() {\n        _requirePaused();\n        _;\n    }\n\n    /**\n     * @dev Returns true if the contract is paused, and false otherwise.\n     */\n    function paused() public view virtual returns (bool) {\n        PausableStorage storage $ = _getPausableStorage();\n        return $._paused;\n    }\n\n    /**\n     * @dev Throws if the contract is paused.\n     */\n    function _requireNotPaused() internal view virtual {\n        if (paused()) {\n            revert EnforcedPause();\n        }\n    }\n\n    /**\n     * @dev Throws if the contract is not paused.\n     */\n    function _requirePaused() internal view virtual {\n        if (!paused()) {\n            revert ExpectedPause();\n        }\n    }\n\n    /**\n     * @dev Triggers stopped state.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    function _pause() internal virtual whenNotPaused {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = true;\n        emit Paused(_msgSender());\n    }\n\n    /**\n     * @dev Returns to normal state.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    function _unpause() internal virtual whenPaused {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = false;\n        emit Unpaused(_msgSender());\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n    address private immutable __self = address(this);\n\n    /**\n     * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n     * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n     * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n     * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n     * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n     * during an upgrade.\n     */\n    string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n    /**\n     * @dev The call is from an unauthorized context.\n     */\n    error UUPSUnauthorizedCallContext();\n\n    /**\n     * @dev The storage `slot` is unsupported as a UUID.\n     */\n    error UUPSUnsupportedProxiableUUID(bytes32 slot);\n\n    /**\n     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\n     * a proxy contract with an implementation (as defined in ERC-1967) pointing to self. This should only be the case\n     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\n     * function through ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n     * fail.\n     */\n    modifier onlyProxy() {\n        _checkProxy();\n        _;\n    }\n\n    /**\n     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n     * callable on the implementing contract but not through proxies.\n     */\n    modifier notDelegated() {\n        _checkNotDelegated();\n        _;\n    }\n\n    function __UUPSUpgradeable_init() internal onlyInitializing {\n    }\n\n    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n    }\n    /**\n     * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n     */\n    function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n        return ERC1967Utils.IMPLEMENTATION_SLOT;\n    }\n\n    /**\n     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\n     * encoded in `data`.\n     *\n     * Calls {_authorizeUpgrade}.\n     *\n     * Emits an {Upgraded} event.\n     *\n     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n        _authorizeUpgrade(newImplementation);\n        _upgradeToAndCallUUPS(newImplementation, data);\n    }\n\n    /**\n     * @dev Reverts if the execution is not performed via delegatecall or the execution\n     * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n     * See {_onlyProxy}.\n     */\n    function _checkProxy() internal view virtual {\n        if (\n            address(this) == __self || // Must be called through delegatecall\n            ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n        ) {\n            revert UUPSUnauthorizedCallContext();\n        }\n    }\n\n    /**\n     * @dev Reverts if the execution is performed via delegatecall.\n     * See {notDelegated}.\n     */\n    function _checkNotDelegated() internal view virtual {\n        if (address(this) != __self) {\n            // Must not be called through delegatecall\n            revert UUPSUnauthorizedCallContext();\n        }\n    }\n\n    /**\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n     * {upgradeToAndCall}.\n     *\n     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\n     *\n     * ```solidity\n     * function _authorizeUpgrade(address) internal onlyOwner {}\n     * ```\n     */\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /**\n     * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n     *\n     * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n     * is expected to be the implementation slot in ERC-1967.\n     *\n     * Emits an {IERC1967-Upgraded} event.\n     */\n    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n        try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n            if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n                revert UUPSUnsupportedProxiableUUID(slot);\n            }\n            ERC1967Utils.upgradeToAndCall(newImplementation, data);\n        } catch {\n            // The implementation is not UUPS\n            revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardTransientUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuardTransient.sol)\n\npragma solidity ^0.8.24;\n\nimport {TransientSlot} from \"@openzeppelin/contracts/utils/TransientSlot.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Variant of {ReentrancyGuard} that uses transient storage.\n *\n * NOTE: This variant only works on networks where EIP-1153 is available.\n *\n * _Available since v5.1._\n */\nabstract contract ReentrancyGuardTransientUpgradeable is Initializable {\n    using TransientSlot for *;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function __ReentrancyGuardTransient_init() internal onlyInitializing {\n    }\n\n    function __ReentrancyGuardTransient_init_unchained() internal onlyInitializing {\n    }\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n\n        // Any calls to nonReentrant after this point will fail\n        REENTRANCY_GUARD_STORAGE.asBoolean().tstore(true);\n    }\n\n    function _nonReentrantAfter() private {\n        REENTRANCY_GUARD_STORAGE.asBoolean().tstore(false);\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return REENTRANCY_GUARD_STORAGE.asBoolean().tload();\n    }\n}\n"}},"language":"Solidity","settings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"runs":0,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/","solady/=lib/solady/src/","aave-v4/=lib/aave-v4/src/","lib/aave-v4/:src/=lib/aave-v4/src/","@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/","@layerzerolabs/oapp-evm-upgradeable/=lib/devtools/packages/oapp-evm-upgradeable/","@layerzerolabs/lz-evm-protocol-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/protocol/","@layerzerolabs/lz-evm-messagelib-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/messagelib/","@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/","solidity-bytes-utils/=lib/solidity-bytes-utils/","LayerZero-v2/=lib/LayerZero-v2/","devtools/=lib/devtools/packages/toolbox-foundry/src/","ds-test/=lib/solidity-bytes-utils/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/aave-v4/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/"]}},"stdJsonOutput":{"sources":{"src/top-up/TopUp.sol":{"id":38},"src/utils/Constants.sol":{"id":41},"src/interfaces/IWETH.sol":{"id":36},"src/top-up/TopUpFactory.sol":{"id":39},"src/utils/UpgradeableProxy.sol":{"id":42},"lib/solady/src/auth/Ownable.sol":{"id":29},"lib/solady/src/utils/CREATE3.sol":{"id":30},"src/interfaces/IRoleRegistry.sol":{"id":33},"src/interfaces/ITopUpFactory.sol":{"id":34},"src/libraries/DelegateCallLib.sol":{"id":37},"src/beacon-factory/BeaconFactory.sol":{"id":32},"src/interfaces/ITradingSafeFactory.sol":{"id":35},"src/top-up/bridge/BridgeAdapterBase.sol":{"id":40},"lib/solady/src/utils/EnumerableSetLib.sol":{"id":31},"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol":{"id":13},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"id":23},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"id":22},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"id":20},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"id":21},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"id":5},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":27},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":9},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"id":24},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":7},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":17},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":6},"lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol":{"id":8},"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol":{"id":10},"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol":{"id":25},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":28},"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol":{"id":15},"lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol":{"id":14},"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol":{"id":11},"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol":{"id":12},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":19},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":26},"lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol":{"id":16},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol":{"id":2},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol":{"id":0},"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol":{"id":3},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":18},"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol":{"id":1},"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardTransientUpgradeable.sol":{"id":4}},"contracts":{"src/top-up/TopUpFactory.sol":{"TopUpFactory":{"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"AddressEmptyCode","type":"error","inputs":[{"name":"target","type":"address","internalType":"address"}]},{"name":"AmountCannotBeZero","type":"error","inputs":[]},{"name":"ArrayLengthMismatch","type":"error","inputs":[]},{"name":"ChainIdCannotBeZero","type":"error","inputs":[]},{"name":"DeployedAddressDifferentFromExpected","type":"error","inputs":[]},{"name":"ERC1967InvalidImplementation","type":"error","inputs":[{"name":"implementation","type":"address","internalType":"address"}]},{"name":"ERC1967NonPayable","type":"error","inputs":[]},{"name":"EnforcedPause","type":"error","inputs":[]},{"name":"ExpectedPause","type":"error","inputs":[]},{"name":"FailedCall","type":"error","inputs":[]},{"name":"IndexOutOfBounds","type":"error","inputs":[]},{"name":"InitializationFailed","type":"error","inputs":[]},{"name":"InsufficientBalance","type":"error","inputs":[]},{"name":"InsufficientFeePassed","type":"error","inputs":[]},{"name":"InvalidConfig","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidInput","type":"error","inputs":[]},{"name":"InvalidRedirectWrapper","type":"error","inputs":[]},{"name":"InvalidStartIndex","type":"error","inputs":[]},{"name":"InvalidTopUpAddress","type":"error","inputs":[]},{"name":"NativeTransferFailed","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"OnlyRedirectRole","type":"error","inputs":[]},{"name":"OnlyRoleRegistryOwner","type":"error","inputs":[]},{"name":"OnlySupportedTokens","type":"error","inputs":[]},{"name":"OnlyUnsupportedTokens","type":"error","inputs":[]},{"name":"RecoveryWalletCannotBeZeroAddress","type":"error","inputs":[]},{"name":"RecoveryWalletNotSet","type":"error","inputs":[]},{"name":"RedirectWrapperNotSet","type":"error","inputs":[]},{"name":"ReentrancyGuardReentrantCall","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"TokenCannotBeZeroAddress","type":"error","inputs":[]},{"name":"TokenConfigNotSet","type":"error","inputs":[]},{"name":"TokenNotTradingSupported","type":"error","inputs":[]},{"name":"TradingSafeFactoryCannotBeZeroAddress","type":"error","inputs":[]},{"name":"TradingSafeFactoryNotSet","type":"error","inputs":[]},{"name":"TradingSafeNotDeployed","type":"error","inputs":[]},{"name":"UUPSUnauthorizedCallContext","type":"error","inputs":[]},{"name":"UUPSUnsupportedProxiableUUID","type":"error","inputs":[{"name":"slot","type":"bytes32","internalType":"bytes32"}]},{"name":"Unauthorized","type":"error","inputs":[]},{"name":"WrapMintedNothing","type":"error","inputs":[]},{"name":"BeaconImplemenationUpgraded","type":"event","inputs":[{"name":"oldImpl","type":"address","indexed":false,"internalType":"address"},{"name":"newImpl","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"BeaconProxyDeployed","type":"event","inputs":[{"name":"salt","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"deployed","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Bridge","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"destChainId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"Paused","type":"event","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Recovery","type":"event","inputs":[{"name":"recoveryWallet","type":"address","indexed":false,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"RecoveryWalletSet","type":"event","inputs":[{"name":"oldRecoveryWallet","type":"address","indexed":false,"internalType":"address"},{"name":"newRecoveryWallet","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"RedirectFunds","type":"event","inputs":[{"name":"topUp","type":"address","indexed":true,"internalType":"address"},{"name":"tradingSafe","type":"address","indexed":true,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"RedirectWrapperSet","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"oldWrapper","type":"address","indexed":false,"internalType":"address"},{"name":"newWrapper","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"TokenConfigRemoved","type":"event","inputs":[{"name":"tokens","type":"address[]","indexed":false,"internalType":"address[]"},{"name":"chainIds","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"name":"TokenConfigSet","type":"event","inputs":[{"name":"tokens","type":"address[]","indexed":false,"internalType":"address[]"},{"name":"chainIds","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"config","type":"tuple[]","indexed":false,"components":[{"name":"bridgeAdapter","type":"address","internalType":"address"},{"name":"recipientOnDestChain","type":"address","internalType":"address"},{"name":"maxSlippageInBps","type":"uint96","internalType":"uint96"},{"name":"additionalData","type":"bytes","internalType":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig[]"}],"anonymous":false},{"name":"TradingSafeFactorySet","type":"event","inputs":[{"name":"oldFactory","type":"address","indexed":false,"internalType":"address"},{"name":"newFactory","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Unpaused","type":"event","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Upgraded","type":"event","inputs":[{"name":"implementation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"WrapOnRedirect","type":"event","inputs":[{"name":"topUp","type":"address","indexed":true,"internalType":"address"},{"name":"wrapper","type":"address","indexed":true,"internalType":"address"},{"name":"underlying","type":"address","indexed":true,"internalType":"address"},{"name":"assets","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"WrapStock","type":"event","inputs":[{"name":"topUp","type":"address","indexed":true,"internalType":"address"},{"name":"wrapper","type":"address","indexed":true,"internalType":"address"},{"name":"underlying","type":"address","indexed":true,"internalType":"address"},{"name":"assets","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ETH","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"MAX_ALLOWED_SLIPPAGE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint96","internalType":"uint96"}],"stateMutability":"view"},{"name":"TOPUP_FACTORY_BRIDGER_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"TOPUP_FACTORY_REDIRECT_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"UPGRADE_INTERFACE_VERSION","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"batchRedirectToTradingSafe","type":"function","inputs":[{"name":"topUps","type":"address[]","internalType":"address[]"},{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"beacon","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"bridge","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"deployTopUpContract","type":"function","inputs":[{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"getBridgeFee","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getDeployedAddresses","type":"function","inputs":[{"name":"start","type":"uint256","internalType":"uint256"},{"name":"n","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"getDeterministicAddress","type":"function","inputs":[{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getRecoveryWallet","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getTokenConfig","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"bridgeAdapter","type":"address","internalType":"address"},{"name":"recipientOnDestChain","type":"address","internalType":"address"},{"name":"maxSlippageInBps","type":"uint96","internalType":"uint96"},{"name":"additionalData","type":"bytes","internalType":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_roleRegistry","type":"address","internalType":"address"},{"name":"_topUpImpl","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isTokenSupported","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isTokenSupportedOnChain","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"destChainId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isTopUpContract","type":"function","inputs":[{"name":"topUpContract","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"numContractsDeployed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"paused","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"processTopUp","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"start","type":"uint256","internalType":"uint256"},{"name":"n","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"processTopUpFromContracts","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"topUpContracts","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"proxiableUUID","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"recoverFunds","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"redirectDestinationFor","type":"function","inputs":[{"name":"topUp","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"redirectToTradingSafe","type":"function","inputs":[{"name":"topUp","type":"address","internalType":"address"},{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"removeTokenConfig","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"chainIds","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"roleRegistry","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IRoleRegistry"}],"stateMutability":"view"},{"name":"setRecoveryWallet","type":"function","inputs":[{"name":"_recoveryWallet","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRedirectWrappers","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"wrappers","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setTokenConfig","type":"function","inputs":[{"name":"tokens","type":"address[]","internalType":"address[]"},{"name":"chainIds","type":"uint256[]","internalType":"uint256[]"},{"name":"configs","type":"tuple[]","components":[{"name":"bridgeAdapter","type":"address","internalType":"address"},{"name":"recipientOnDestChain","type":"address","internalType":"address"},{"name":"maxSlippageInBps","type":"uint96","internalType":"uint96"},{"name":"additionalData","type":"bytes","internalType":"bytes"}],"internalType":"struct TopUpFactory.TokenConfig[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setTradingSafeFactory","type":"function","inputs":[{"name":"_tradingSafeFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"tradingSafeFactory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"unpause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgradeBeaconImplementation","type":"function","inputs":[{"name":"_newImpl","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgradeToAndCall","type":"function","inputs":[{"name":"newImplementation","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"name":"wrapStocks","type":"function","inputs":[{"name":"topUp","type":"address","internalType":"address"},{"name":"tokens","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"wrapperFor","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"receive","stateMutability":"payable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.28+commit.7893614a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AmountCannotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ArrayLengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChainIdCannotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DeployedAddressDifferentFromExpected\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EnforcedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExpectedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IndexOutOfBounds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InitializationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFeePassed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidConfig\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInput\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidRedirectWrapper\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidStartIndex\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTopUpAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NativeTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRedirectRole\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRoleRegistryOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlySupportedTokens\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyUnsupportedTokens\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RecoveryWalletCannotBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RecoveryWalletNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RedirectWrapperNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenCannotBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenConfigNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenNotTradingSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TradingSafeFactoryCannotBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TradingSafeFactoryNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TradingSafeNotDeployed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WrapMintedNothing\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldImpl\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newImpl\",\"type\":\"address\"}],\"name\":\"BeaconImplemenationUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"deployed\",\"type\":\"address\"}],\"name\":\"BeaconProxyDeployed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"}],\"name\":\"Bridge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recoveryWallet\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Recovery\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldRecoveryWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newRecoveryWallet\",\"type\":\"address\"}],\"name\":\"RecoveryWalletSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"topUp\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tradingSafe\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RedirectFunds\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldWrapper\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newWrapper\",\"type\":\"address\"}],\"name\":\"RedirectWrapperSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"chainIds\",\"type\":\"uint256[]\"}],\"name\":\"TokenConfigRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"chainIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"bridgeAdapter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipientOnDestChain\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"maxSlippageInBps\",\"type\":\"uint96\"},{\"internalType\":\"bytes\",\"name\":\"additionalData\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"struct TopUpFactory.TokenConfig[]\",\"name\":\"config\",\"type\":\"tuple[]\"}],\"name\":\"TokenConfigSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFactory\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFactory\",\"type\":\"address\"}],\"name\":\"TradingSafeFactorySet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"topUp\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"wrapper\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"WrapOnRedirect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"topUp\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"wrapper\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"WrapStock\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_ALLOWED_SLIPPAGE\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOPUP_FACTORY_BRIDGER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOPUP_FACTORY_REDIRECT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"topUps\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"batchRedirectToTradingSafe\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"beacon\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"}],\"name\":\"bridge\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"deployTopUpContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"}],\"name\":\"getBridgeFee\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"n\",\"type\":\"uint256\"}],\"name\":\"getDeployedAddresses\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"getDeterministicAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRecoveryWallet\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"}],\"name\":\"getTokenConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"bridgeAdapter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipientOnDestChain\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"maxSlippageInBps\",\"type\":\"uint96\"},{\"internalType\":\"bytes\",\"name\":\"additionalData\",\"type\":\"bytes\"}],\"internalType\":\"struct TopUpFactory.TokenConfig\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_roleRegistry\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_topUpImpl\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isTokenSupported\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"}],\"name\":\"isTokenSupportedOnChain\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"topUpContract\",\"type\":\"address\"}],\"name\":\"isTopUpContract\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"numContractsDeployed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"n\",\"type\":\"uint256\"}],\"name\":\"processTopUp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"topUpContracts\",\"type\":\"address[]\"}],\"name\":\"processTopUpFromContracts\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recoverFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"topUp\",\"type\":\"address\"}],\"name\":\"redirectDestinationFor\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"topUp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redirectToTradingSafe\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"chainIds\",\"type\":\"uint256[]\"}],\"name\":\"removeTokenConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roleRegistry\",\"outputs\":[{\"internalType\":\"contract IRoleRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_recoveryWallet\",\"type\":\"address\"}],\"name\":\"setRecoveryWallet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"wrappers\",\"type\":\"address[]\"}],\"name\":\"setRedirectWrappers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"chainIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"bridgeAdapter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipientOnDestChain\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"maxSlippageInBps\",\"type\":\"uint96\"},{\"internalType\":\"bytes\",\"name\":\"additionalData\",\"type\":\"bytes\"}],\"internalType\":\"struct TopUpFactory.TokenConfig[]\",\"name\":\"configs\",\"type\":\"tuple[]\"}],\"name\":\"setTokenConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tradingSafeFactory\",\"type\":\"address\"}],\"name\":\"setTradingSafeFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tradingSafeFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newImpl\",\"type\":\"address\"}],\"name\":\"upgradeBeaconImplementation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"topUp\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"wrapStocks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"wrapperFor\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"ether.fi\",\"details\":\"Extends BeaconFactory to provide Beacon Proxy deployment functionality\",\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"EnforcedPause()\":[{\"details\":\"The operation failed because the contract is paused.\"}],\"ExpectedPause()\":[{\"details\":\"The operation failed because the contract is not paused.\"}],\"FailedCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"IndexOutOfBounds()\":[{\"details\":\"The index must be less than the length.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}],\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"BeaconImplemenationUpgraded(address,address)\":{\"params\":{\"newImpl\":\"The new impl address\",\"oldImpl\":\"The previous impl address\"}},\"BeaconProxyDeployed(bytes32,address)\":{\"params\":{\"deployed\":\"The address of the newly deployed proxy\",\"salt\":\"The salt for deterministic deployment\"}},\"Bridge(address,uint256,uint256)\":{\"params\":{\"amount\":\"The amount of tokens being bridged\",\"token\":\"The address of the token being bridged\"}},\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"Recovery(address,address,uint256)\":{\"params\":{\"amount\":\"The amount of tokens recovered\",\"recoveryWallet\":\"The address receiving the recovered funds\",\"token\":\"The token being recovered\"}},\"RecoveryWalletSet(address,address)\":{\"params\":{\"newRecoveryWallet\":\"The new recovery wallet address\",\"oldRecoveryWallet\":\"The previous recovery wallet address\"}},\"RedirectFunds(address,address,address,uint256)\":{\"params\":{\"amount\":\"Amount transferred.\",\"token\":\"ERC20 redirected.\",\"topUp\":\"The TopUp instance that the funds were redirected from.\",\"tradingSafe\":\"The destination TradingSafe that received the funds.\"}},\"RedirectWrapperSet(address,address,address)\":{\"params\":{\"newWrapper\":\"New vault, or zero to go back to a plain transfer.\",\"oldWrapper\":\"Previous vault (zero when the token used to travel as-is).\",\"token\":\"The token being redirected.\"}},\"TokenConfigRemoved(address[],uint256[])\":{\"params\":{\"chainIds\":\"Per-entry destination chain whose route was cleared.\",\"tokens\":\"Tokens retired.\"}},\"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])\":{\"params\":{\"config\":\"Array of TokenConfig struct\",\"tokens\":\"Array of token addresses\"}},\"TradingSafeFactorySet(address,address)\":{\"params\":{\"newFactory\":\"New address.\",\"oldFactory\":\"Previous address (zero on first set).\"}},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"},\"WrapOnRedirect(address,address,address,uint256,uint256)\":{\"params\":{\"assets\":\"Amount of `underlying` deposited.\",\"shares\":\"Amount of `wrapper` credited to the TradingSafe.\",\"topUp\":\"The TopUp the underlying was pulled from.\",\"underlying\":\"The raw token that was wrapped.\",\"wrapper\":\"The ERC-4626 vault — the trading-supported token the TradingSafe receives.\"}},\"WrapStock(address,address,address,uint256,uint256)\":{\"params\":{\"assets\":\"Amount of `underlying` deposited — the TopUp's entire balance of it.\",\"shares\":\"Amount of `wrapper` the TopUp was credited.\",\"topUp\":\"The TopUp whose raw stock was wrapped, and the receiver of the shares.\",\"underlying\":\"The raw stock that was wrapped.\",\"wrapper\":\"The ERC-4626 vault the stock was deposited into.\"}}},\"kind\":\"dev\",\"methods\":{\"batchRedirectToTradingSafe(address[],address[],uint256[])\":{\"custom:throws\":\"ArrayLengthMismatch If the three arrays don't agree on length.InvalidTopUpAddress If any `topUps[i]` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on                this factory.TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If any `tokens[i]` is not a supported trading asset.\",\"details\":\"Backend-role gated (same rationale as the single-entry variant). Atomic      all-or-nothing: a revert on any entry rolls back the entire batch. Same      per-entry guards: rejects topup-supported tokens and requires trading-supported.      A token with a configured redirect wrapper wraps on the way out here exactly as it      does in the single-entry variant; both share `_executeRedirect`.\",\"params\":{\"amounts\":\"Per-entry amount of `tokens[i]` to transfer.\",\"tokens\":\"Per-entry ERC20 to redirect. Each must NOT be topup-supported, and the form               it arrives in at the safe — itself, or its configured wrapper — MUST be               trading-supported.\",\"topUps\":\"Per-entry TopUp instance.\"}},\"beacon()\":{\"returns\":{\"_0\":\"beacon Address of the beacon contract\"}},\"bridge(address,uint256,uint256)\":{\"custom:throws\":\"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if amount passed is zeroInsufficientBalance if contract has insufficient balance of the specified token\",\"details\":\"Uses delegate call to execute the bridge operation through the appropriate adapter\",\"params\":{\"token\":\"The address of the token to bridge\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"deployTopUpContract(bytes32)\":{\"params\":{\"salt\":\"The salt value used for deterministic deployment\"}},\"getBridgeFee(address,uint256,uint256)\":{\"custom:throws\":\"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if contract has no balance of the specified token\",\"details\":\"Queries the bridge adapter for the fee estimation\",\"params\":{\"amount\":\"The amount of the token to bridge\",\"token\":\"The address of the token to bridge\"},\"returns\":{\"_amount\":\"The fee amount in the _token's decimals\",\"_token\":\"The fee token address\"}},\"getDeployedAddresses(uint256,uint256)\":{\"custom:throws\":\"InvalidStartIndex if start index is invalid\",\"details\":\"Returns an array of TopUp contracts deployed by this factory\",\"params\":{\"n\":\"Number of topUp contracts to get\",\"start\":\"Starting index in the deployedAddresses array\"},\"returns\":{\"_0\":\"An array of deployed TopUp contract addresses\"}},\"getDeterministicAddress(bytes32)\":{\"params\":{\"salt\":\"The salt value used for address prediction\"},\"returns\":{\"_0\":\"The predicted deployment address\"}},\"getRecoveryWallet()\":{\"details\":\"Returns the address where funds can be recovered to\",\"returns\":{\"_0\":\"The configured recovery wallet address\"}},\"getTokenConfig(address,uint256)\":{\"details\":\"Returns the TokenConfig struct containing bridge settings\",\"params\":{\"token\":\"The address of the token to query\"},\"returns\":{\"_0\":\"Configuration parameters for the specified token\"}},\"initialize(address,address)\":{\"details\":\"Sets up the role registry, admin, and beacon implementation\",\"params\":{\"_roleRegistry\":\"Address of the role registry contract\",\"_topUpImpl\":\"Address of the topUp implementation contract\"}},\"isTokenSupported(address)\":{\"details\":\"Returns whether the token is in the supported tokens set\",\"params\":{\"token\":\"The address of the token to check\"},\"returns\":{\"_0\":\"True if the token is supported, false otherwise\"}},\"isTopUpContract(address)\":{\"details\":\"Returns whether the address is in the deployed addresses set\",\"params\":{\"topUpContract\":\"The address to check\"},\"returns\":{\"_0\":\"True if the address is a deployed TopUp contract, false otherwise\"}},\"numContractsDeployed()\":{\"returns\":{\"_0\":\"Number of contracts deployed\"}},\"pause()\":{\"details\":\"Only callable by accounts with the pauser role\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"processTopUp(address[],uint256,uint256)\":{\"custom:throws\":\"OnlySupportedTokens If any token has no topup configuration on this factoryIf start + n exceeds the number of deployed topUp contractsIf any topUp's processTopUp call fails\",\"details\":\"Iterates through deployed topUp contracts starting at index 'start' and calls processTopUp on each\",\"params\":{\"n\":\"Number of topUp contracts to process\",\"start\":\"Starting index in the deployedAddresses array\",\"tokens\":\"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`.\"}},\"processTopUpFromContracts(address[],address[])\":{\"custom:throws\":\"OnlySupportedTokens If any token has no topup configuration on this factoryInvalidTopUpAddress if the TopUp address is not a deployed TopUp contractIf the TopUp contracts's processTopUp call fails\",\"details\":\"Verifies the topUp contract is valid before attempting to pull funds\",\"params\":{\"tokens\":\"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`.\",\"topUpContracts\":\"Array of addresses of the topUp contracts to process\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"recoverFunds(address,uint256)\":{\"custom:throws\":\"OnlyAdmin if caller doesn't have admin roleTokenCannotBeZeroAddress if token address is zeroOnlyUnsupportedTokens if token is a supported bridge assetRecoveryWalletNotSet if recovery wallet is not configured\",\"details\":\"Only callable by admin role\",\"params\":{\"amount\":\"The amount of tokens to recover\",\"token\":\"The address of the token to recover\"}},\"redirectDestinationFor(address)\":{\"custom:throws\":\"TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been                called.\",\"details\":\"Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the      TopUp impl stateless.\",\"params\":{\"topUp\":\"The per-user TopUp instance.\"}},\"redirectToTradingSafe(address,address,uint256)\":{\"custom:throws\":\"OnlyRedirectRole If caller lacks `TOPUP_FACTORY_REDIRECT_ROLE`.InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If `token` has a topup configuration on this                factory (route it through `processTopUp` instead).TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If what the safe would receive is not a supported                trading asset.TradingSafeNotDeployed If the resolved TradingSafe isn't deployed/registered.WrapMintedNothing If a wrapped redirect credited the safe no shares.\",\"details\":\"Backend-role gated (`TOPUP_FACTORY_REDIRECT_ROLE`). Destination is always the      user's own deployed TradingSafe (derived from the TopUp address); the token must      be NOT topup-supported AND trading-supported, and the destination must be an      already-deployed, registered TradingSafe (never a codeless prediction).      A token with a redirect wrapper configured (`setRedirectWrappers`) is deposited into      that vault instead of transferred, so a raw Backed xStock sitting at a TopUp lands in      the safe as the wrapper its trading catalog actually lists. The trading-supported      check then applies to the wrapper — the form the safe receives — since the raw stock      is trading-supported in no form of its own. Nothing about the call changes: `token`      and `amount` still describe what leaves the TopUp.\",\"params\":{\"amount\":\"Amount of `token` to transfer.\",\"token\":\"ERC20 to redirect. Must NOT be topup-supported, and the form it arrives in at              the safe — itself, or its configured wrapper — MUST be trading-supported.\",\"topUp\":\"Address of the TopUp instance to redirect from.\"}},\"removeTokenConfig(address[],uint256[])\":{\"custom:emits\":\"TokenConfigRemoved\",\"custom:throws\":\"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.ChainIdCannotBeZero If any `chainIds[i]` is zero.TokenConfigNotSet If any `(tokens[i], chainIds[i])` has no configured route.\",\"details\":\"Only callable by addresses with ADMIN_TIMELOCK_ROLE      it only ever adds to `supportedTokens`, and rejects a zeroed config, so before this      there was no way to retire an asset from the lane at all.      Both halves matter and neither is sufficient alone. `bridge` gates on      `tokenChainConfig[token][destChainId].bridgeAdapter`, never on the supported set, so      leaving the config in place would keep the route open to the bridger role; while      `processTopUp`, `recoverFunds`, the redirects and `wrapStocks` all gate on the set, so      leaving the token in it would keep sweeping the asset the config no longer routes.      A token leaves the supported set as soon as one of its routes is removed, because the      set has no per-chain granularity and the chains a token is configured for are not      enumerable on-chain. A token with routes on several destinations must therefore have      all of them passed in — otherwise the leftover routes stay bridgeable while sweeping      stops, which is a half-retired asset. Removing a route that was never configured      reverts rather than passing silently, so a mistyped chain id can't read as a closed      route.\",\"params\":{\"chainIds\":\"Per-entry destination chain whose route is being cleared.\",\"tokens\":\"Tokens to retire.\"}},\"roleRegistry()\":{\"returns\":{\"_0\":\"roleRegistry Reference to the role registry contract\"}},\"setRecoveryWallet(address)\":{\"custom:throws\":\"OnlyAdminTimelock if the caller does not have ADMIN_TIMELOCK_ROLERecoveryWalletCannotBeZeroAddress if provided address is zero\",\"details\":\"Only callable by admin role\",\"params\":{\"_recoveryWallet\":\"The new recovery wallet address\"}},\"setRedirectWrappers(address[],address[])\":{\"custom:throws\":\"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.InvalidRedirectWrapper If any non-zero `wrappers[i]` is not an ERC-4626                whose `asset()` is `tokens[i]`.\",\"details\":\"Only callable by addresses with ADMIN_TIMELOCK_ROLE      tokenized equities a TradingSafe can hold are `WrappedBackedToken` vaults (wTSLAx),      while what a user sends to a TopUp address is the raw Backed xStock underneath      (TSLAx), which is trading-supported in no form of its own and would otherwise be      stranded at the TopUp. Registering TSLAx → wTSLAx makes the existing redirect wrap it      on the way out, with no change to how the backend calls it.      The pairing is verified here rather than trusted: `asset()` must name the very token      being configured, which both proves the vault is the right one and that it is a vault      at all (a non-4626 target reverts the call). That check is what lets      `TopUp.redirectToTradingSafe` approve and call the wrapper without re-validating it.      Curating this per token — rather than probing `asset()` at redirect time — keeps an      arbitrary 4626 that happens to wrap a valuable token from becoming a redirect target.\",\"params\":{\"tokens\":\"Tokens being redirected (the raw stock a TopUp receives).\",\"wrappers\":\"Per-entry ERC-4626 vault over `tokens[i]`, or zero to transfer as-is.\"}},\"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])\":{\"custom:emits\":\"TokenConfigSet when configs are updated\",\"custom:throws\":\"ArrayLengthMismatch if tokens and configs arrays have different lengthsTokenCannotBeZeroAddress if any token address is zeroInvalidConfig if any config has invalid parameters:   - bridgeAdapter is zero address   - recipientOnDestChain is zero address   - maxSlippageInBps exceeds MAX_ALLOWED_SLIPPAGE\",\"details\":\"Allows admin to configure bridge settings for multiple tokens in a single transaction\",\"params\":{\"configs\":\"Array of TokenConfig structs containing bridge settings for each token\",\"tokens\":\"Array of token addresses to configure\"}},\"setTradingSafeFactory(address)\":{\"custom:throws\":\"TradingSafeFactoryCannotBeZeroAddress If `_tradingSafeFactory == address(0)`.\",\"details\":\"Routes user-fund redirects, so it is gated like an upgrade: only the RoleRegistry      owner (the upgrade timelock) may call it. Read by `TopUp.redirectToTradingSafe` via the `tradingSafeFactory()`      view below.\",\"params\":{\"_tradingSafeFactory\":\"Address of the destination-chain TradingSafeFactory.\"}},\"unpause()\":{\"details\":\"Only callable by accounts with the unpauser role\"},\"upgradeBeaconImplementation(address)\":{\"custom:throws\":\"OnlyRoleRegistryOwner when msg.sender is not the owner of the RoleRegistry contractInvalidInput when _beacon == address(0)\",\"details\":\"Only callable by owner of RoleRegistry\",\"params\":{\"_newImpl\":\"New implementation for the beacon contract\"}},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"wrapStocks(address,address[])\":{\"custom:throws\":\"InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on this                factory (it belongs on the `processTopUp` rail, unwrapped).RedirectWrapperNotSet If any `tokens[i]` has no registered wrapper.WrapMintedNothing If a wrap credited the TopUp no shares.\",\"details\":\"Permissionless. Nothing leaves the TopUp: a raw Backed xStock (TSLAx) it was sent      becomes the wrapper (wTSLAx) held by the same TopUp, at the same address, so there is      no recipient for a caller to choose and nothing to gain from calling it. What may be      wrapped is fixed by `setRedirectWrappers`, which is admin-curated and validates the      `asset()` pairing, so the deposit target is never an arbitrary address.      The point is the raw stock's dead end: it is trading-supported in no form of its own      and topup-supported in none either, so left as-is it can neither be swept by      `processTopUp` nor redirected. Converting it to the form the catalogs do list hands it      back to whichever rail should carry it — and that rail runs its own support checks, so      this one deliberately asserts nothing about the wrapper beyond the vault minting.      Each entry wraps the TopUp's whole balance, so the caller needs no amounts and the      TopUp is left holding none of the raw stock. A zero balance is skipped rather than      reverted: the caller can pass a user's full stock list without knowing which of them      actually arrived. Shares are read as the TopUp's own balance delta rather than the      vault's return value, the same way `_executeRedirect` does it.      The conversion itself is `TopUp.wrap`, which has no recipient parameter at all: the      shares can only ever be credited to the TopUp doing the wrapping, so no caller of this      function — and no future caller of the TopUp's own entry point — can route them      anywhere. Moving funds off a TopUp remains the redirect path's job alone.\",\"params\":{\"tokens\":\"Raw stocks to wrap. Each must NOT be topup-supported and MUST have a wrapper               registered via `setRedirectWrappers`.\",\"topUp\":\"The TopUp instance holding the raw stocks. Must be factory-deployed.\"}},\"wrapperFor(address)\":{\"details\":\"Read by every `TopUp` on this factory during `redirectToTradingSafe`.\"}},\"title\":\"TopUpFactory\",\"version\":1},\"userdoc\":{\"errors\":{\"AmountCannotBeZero()\":[{\"notice\":\"Error thrown when attempting to bridge with zero amount\"}],\"ArrayLengthMismatch()\":[{\"notice\":\"Error thrown when array lengths mismatch\"}],\"ChainIdCannotBeZero()\":[{\"notice\":\"Error thrown when chain ID is zero\"}],\"DeployedAddressDifferentFromExpected()\":[{\"notice\":\"Thrown when the deployed address doesn't match the predicted address\"}],\"InitializationFailed()\":[{\"notice\":\"Thrown when initialize fails on the deployed contract\"}],\"InsufficientBalance()\":[{\"notice\":\"Error thrown when attempting to bridge with insufficient balance\"}],\"InsufficientFeePassed()\":[{\"notice\":\"Error thrown when insufficient fee is passed for bridging\"}],\"InvalidConfig()\":[{\"notice\":\"Error thrown when the token config passed is invalid\"}],\"InvalidInput()\":[{\"notice\":\"Thrown when input is invalid\"}],\"InvalidRedirectWrapper()\":[{\"notice\":\"Reverts when `setRedirectWrappers` is given a vault that is not an ERC-4626 over         the very token it is being registered for.\"}],\"InvalidStartIndex()\":[{\"notice\":\"Error thrown when the start index is invalid\"}],\"InvalidTopUpAddress()\":[{\"notice\":\"Error thrown when trying to pull funds from an address not registered as deployedAddresses\"}],\"NativeTransferFailed()\":[{\"notice\":\"Error thrown when ETH transfer fails\"}],\"OnlyRedirectRole()\":[{\"notice\":\"Error thrown when `redirectToTradingSafe` is called by an account lacking the redirect role.\"}],\"OnlyRoleRegistryOwner()\":[{\"notice\":\"Error thrown when caller is not the role registry owner\"}],\"OnlySupportedTokens()\":[{\"notice\":\"Reverts when a sweep entry point is handed a token this factory has no topup         configuration for — the redirect path owns those, not `processTopUp`.\"}],\"OnlyUnsupportedTokens()\":[{\"notice\":\"Error thrown when attempting to recover token which is a supported asset\"}],\"RecoveryWalletCannotBeZeroAddress()\":[{\"notice\":\"Error thrown when attempting to set zero address as recovery wallet\"}],\"RecoveryWalletNotSet()\":[{\"notice\":\"Error thrown when recovery wallet is not set\"}],\"RedirectWrapperNotSet()\":[{\"notice\":\"Reverts when `wrapStocks` is asked to wrap a token with no registered wrapper —         there is nothing to deposit into, and silently skipping would hide the missing         `setRedirectWrappers` entry.\"}],\"TokenCannotBeZeroAddress()\":[{\"notice\":\"Error thrown when zero address is provided for a token\"}],\"TokenConfigNotSet()\":[{\"notice\":\"Error thrown when attempting to bridge a token without configuration\"}],\"TokenNotTradingSupported()\":[{\"notice\":\"Error thrown when redirecting a token that isn't supported for trading.\"}],\"TradingSafeFactoryCannotBeZeroAddress()\":[{\"notice\":\"Reverts when `setTradingSafeFactory` is called with the zero address.\"}],\"TradingSafeFactoryNotSet()\":[{\"notice\":\"Reverts when `redirectDestinationFor` is called before         `setTradingSafeFactory` has been configured.\"}],\"TradingSafeNotDeployed()\":[{\"notice\":\"Error thrown when the resolved destination is not a deployed, registered TradingSafe.\"}],\"Unauthorized()\":[{\"notice\":\"Error thrown when caller is unauthorized to perform an operation\"}],\"WrapMintedNothing()\":[{\"notice\":\"Reverts when the wrap leg credited the TradingSafe no shares at all.\"}]},\"events\":{\"BeaconImplemenationUpgraded(address,address)\":{\"notice\":\"Emitted when the implementation in the beacon address is updated\"},\"BeaconProxyDeployed(bytes32,address)\":{\"notice\":\"Emitted when a new beacon proxy is deployed\"},\"Bridge(address,uint256,uint256)\":{\"notice\":\"Emitted when tokens are bridged to the destination chain\"},\"Recovery(address,address,uint256)\":{\"notice\":\"Emitted when funds are recovered to the recovery wallet\"},\"RecoveryWalletSet(address,address)\":{\"notice\":\"Emitted when the recovery wallet address is updated\"},\"RedirectFunds(address,address,address,uint256)\":{\"notice\":\"Emitted on a successful `redirectToTradingSafe` invocation. Single canonical         event for every TopUp → TradingSafe redirect on this chain.\"},\"RedirectWrapperSet(address,address,address)\":{\"notice\":\"Emitted when a token's redirect wrapper is configured or cleared.\"},\"TokenConfigRemoved(address[],uint256[])\":{\"notice\":\"Emitted when tokens are retired from the topup lane — their route for the paired         chain cleared and the token dropped from the supported set.\"},\"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])\":{\"notice\":\"Emitted when the tokens are configured\"},\"TradingSafeFactorySet(address,address)\":{\"notice\":\"Emitted when the destination-chain TradingSafeFactory address is updated.\"},\"WrapOnRedirect(address,address,address,uint256,uint256)\":{\"notice\":\"Emitted when a redirect wrapped a raw stock into its ERC-4626 wrapper on the way         out. Names the conversion the accompanying `RedirectFunds` can't convey: that one         reports the wrapper and the shares the TradingSafe received, this one what the         TopUp actually gave up.\"},\"WrapStock(address,address,address,uint256,uint256)\":{\"notice\":\"Emitted for each token `wrapStocks` converted in place at a TopUp. Distinct from         `WrapOnRedirect`: nothing left the TopUp here, so there is no accompanying         `RedirectFunds` — the TopUp simply holds the wrapper instead of the raw stock.\"}},\"kind\":\"user\",\"methods\":{\"ETH()\":{\"notice\":\"Special address used to represent native ETH in the protocol\"},\"MAX_ALLOWED_SLIPPAGE()\":{\"notice\":\"Max slippage allowed for bridging\"},\"TOPUP_FACTORY_BRIDGER_ROLE()\":{\"notice\":\"Role identifier for accounts authorized to bridge tokens\"},\"TOPUP_FACTORY_REDIRECT_ROLE()\":{\"notice\":\"Role allowed to drive `redirectToTradingSafe`\"},\"batchRedirectToTradingSafe(address[],address[],uint256[])\":{\"notice\":\"Batch variant of `redirectToTradingSafe`. Each parallel-array slot identifies         one redirect operation `(topUps[i], tokens[i], amounts[i])`. Any combination         is allowed — same TopUp multiple times for different tokens, multiple TopUps         for the same token, etc.\"},\"beacon()\":{\"notice\":\"Returns the address of the beacon which stores the implementation\"},\"bridge(address,uint256,uint256)\":{\"notice\":\"Bridges tokens to the destination chain using the configured bridge adapter\"},\"deployTopUpContract(bytes32)\":{\"notice\":\"Deploys a new TopUp contract instance\"},\"getBridgeFee(address,uint256,uint256)\":{\"notice\":\"Gets the bridge fee for a token transfer\"},\"getDeployedAddresses(uint256,uint256)\":{\"notice\":\"Gets deployed TopUp contract addresses\"},\"getDeterministicAddress(bytes32)\":{\"notice\":\"Predicts the deterministic address for a given salt\"},\"getRecoveryWallet()\":{\"notice\":\"Gets the current recovery wallet address\"},\"getTokenConfig(address,uint256)\":{\"notice\":\"Gets the bridge configuration for a specific token\"},\"initialize(address,address)\":{\"notice\":\"Initializes the TopUpFactory contract\"},\"isTokenSupported(address)\":{\"notice\":\"Checks if a given token is supported for bridging\"},\"isTopUpContract(address)\":{\"notice\":\"Checks if an address is a deployed TopUp contract\"},\"numContractsDeployed()\":{\"notice\":\"Gets the number of contracts deployed\"},\"pause()\":{\"notice\":\"Pauses the contract\"},\"processTopUp(address[],uint256,uint256)\":{\"notice\":\"Processes specified tokens from a range of deployed topUp contracts\"},\"processTopUpFromContracts(address[],address[])\":{\"notice\":\"Processes specified tokens from a given topUp contract\"},\"recoverFunds(address,uint256)\":{\"notice\":\"Recovers ERC20 tokens to the designated recovery wallet\"},\"redirectDestinationFor(address)\":{\"notice\":\"Returns the destination-chain TradingSafe address that `topUp` redirects to,         derived from the configured `TradingSafeFactory` using the TopUp's own         address as the salt seed. Reverts if `TradingSafeFactory` hasn't been set.\"},\"redirectToTradingSafe(address,address,uint256)\":{\"notice\":\"Redirects `amount` of `token` from `topUp` to that user's TradingSafe on the         destination chain. Recovery path for trading-supported, not-topup-supported         tokens that landed at the TopUp address by mistake.\"},\"removeTokenConfig(address[],uint256[])\":{\"notice\":\"Takes each `tokens[i]` off the topup lane for `chainIds[i]`: clears its bridge         configuration for that destination and drops it from the supported set.\"},\"roleRegistry()\":{\"notice\":\"Returns the address of the Role Registry contract\"},\"setRecoveryWallet(address)\":{\"notice\":\"Sets the recovery wallet address for emergency fund recovery\"},\"setRedirectWrappers(address[],address[])\":{\"notice\":\"Registers, for each `tokens[i]`, the ERC-4626 vault a redirect must deposit it         into instead of transferring it — or clears that with the zero address.\"},\"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])\":{\"notice\":\"Sets configuration parameters for multiple tokens\"},\"setTradingSafeFactory(address)\":{\"notice\":\"Sets the destination-chain `TradingSafeFactory` address used by every TopUp         instance when computing the redirect destination.\"},\"tradingSafeFactory()\":{\"notice\":\"Returns the destination-chain `TradingSafeFactory` address.\"},\"unpause()\":{\"notice\":\"Unpauses the contract\"},\"upgradeBeaconImplementation(address)\":{\"notice\":\"Function to set the new implementation in the beacon contract\"},\"wrapStocks(address,address[])\":{\"notice\":\"Wraps every `tokens[i]` a TopUp holds into that token's registered ERC-4626         wrapper, in place — the TopUp itself receives the shares.\"},\"wrapperFor(address)\":{\"notice\":\"Returns the ERC-4626 vault a redirect of `token` deposits into, or zero when the         token is redirected as-is.\"}},\"notice\":\"Factory contract for deploying TopUp instances using the beacon proxy pattern\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/top-up/TopUpFactory.sol\":\"TopUpFactory\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":0},\"remappings\":[\":@layerzerolabs/lz-evm-messagelib-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/messagelib/\",\":@layerzerolabs/lz-evm-protocol-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/protocol/\",\":@layerzerolabs/oapp-evm-upgradeable/=lib/devtools/packages/oapp-evm-upgradeable/\",\":@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/\",\":@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":LayerZero-v2/=lib/LayerZero-v2/\",\":aave-v4/=lib/aave-v4/src/\",\":devtools/=lib/devtools/packages/toolbox-foundry/src/\",\":ds-test/=lib/solidity-bytes-utils/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/aave-v4/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":solady/=lib/solady/src/\",\":solidity-bytes-utils/=lib/solidity-bytes-utils/\",\"lib/aave-v4/:src/=lib/aave-v4/src/\"]},\"sources\":{\"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7a61054ae84cd6c4d04c0c4450ba1d6de41e27e0a2c4f1bcdf58f796b401c609\",\"dweb:/ipfs/QmUvtdp7X1mRVyC3CsHrtPbgoqWaXHp3S1ZR24tpAQYJWM\"]},\"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol\":{\"keccak256\":\"0xd861907d1168dcaec2a7846edbaed12feb8bad2d6781dba987be01374f90b495\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://12ff809243040419e2fc2aa7ef0aaa60b3e6ebc901553ba1de970ceeef208c4c\",\"dweb:/ipfs/QmX2dwMVNrQAahqVzEx94gqcVB6Z8ovifPYdEfHZzj7aEb\"]},\"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9\",\"dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV\"]},\"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol\":{\"keccak256\":\"0x92915b7f7f642c6be3f65bfd1522feb5d5b6ef25f755f4dbb51df32c868f2f97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://85ad36d5cc7e190e1ee6c94b24659bc3a31396c4c36b6ffa6a509e10661f8007\",\"dweb:/ipfs/QmPFyc4zMh2zo6YWZt25gjm3YdR2hg6wGETaWw256fMmJJ\"]},\"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardTransientUpgradeable.sol\":{\"keccak256\":\"0x04b70c397e00597da0f023706f7c44ac8c7b4276a1ddff05d3ca5449775bc6f5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d4b8599331bffb75c9d40ad57cf5025c29d384099ece48758fea2f0f5b969eab\",\"dweb:/ipfs/QmXXMq1kgvMdUn3DiTS4zEZNy9EDXfevM2wvYHWwfSW6Yu\"]},\"lib/openzeppelin-contracts/contracts/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0x9b6b3e7803bc5f2f8cd7ad57db8ac1def61a9930a5a3107df4882e028a9605d7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da62d6be1f5c6edf577f0cb45666a8aa9c2086a4bac87d95d65f02e2f4c36a4b\",\"dweb:/ipfs/QmNkpvBpoCMvX8JwAFNSc5XxJ2q5BXJpL5L1txb4QkqVFF\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0xde7e9fd9aee8d4f40772f96bb3b58836cbc6dfc0227014a061947f8821ea9724\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://11fea9f8bc98949ac6709f0c1699db7430d2948137aa94d5a9e95a91f61a710a\",\"dweb:/ipfs/QmQdfRXxQjwP6yn3DVo1GHPpriKNcFghSPi94Z1oKEFUNS\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC1967.sol\":{\"keccak256\":\"0xb25a4f11fa80c702bf5cd85adec90e6f6f507f32f4a8e6f5dbc31e8c10029486\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6917f8a323e7811f041aecd4d9fd6e92455a6fba38a797ac6f6e208c7912b79d\",\"dweb:/ipfs/QmShuYv55wYHGi4EFkDB8QfF7ZCHoKk2efyz3AWY1ExSq7\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0xce41876e78d1badc0512229b4d14e4daf83bc1003d7f83978d18e0e56f965b9c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2608291cb038b388d80b79a06b6118a42f7894ff67b7da10ec0dbbf5b2973ba\",\"dweb:/ipfs/QmWohqcBLbcxmA4eGPhZDXe5RYMMEEpFq22nfkaUMvTfw1\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol\":{\"keccak256\":\"0x666c704c58d4cf404eecd6e4a898a87e25b00b45416678de914e160582c3ff17\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6def3cc823ae3f155da28a241a8ff91538222053ed9d78f415758a9133e211a1\",\"dweb:/ipfs/QmSriniszojh4UP4WQqxCJhq2XsbCAULcB4qRij4EYw9Gi\"]},\"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol\":{\"keccak256\":\"0xc42facb5094f2f35f066a7155bda23545e39a3156faef3ddc00185544443ba7d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d3b36282ab029b46bd082619a308a2ea11c309967b9425b7b7a6eb0b0c1c3196\",\"dweb:/ipfs/QmP2YVfDB2FoREax3vJu7QhDnyYRMw52WPrCD4vdT2kuDA\"]},\"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"keccak256\":\"0x8decfa54cec979c824b044b8128cd91d713f72c71fd7dfa54974624d8c949898\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://271f914261a19d87117a777e0924ada545c16191ef9b00cc40b0134fc14ebc70\",\"dweb:/ipfs/QmdvVNWHGHQrGGPonZJs5NuzTevTjZRM2zayKrDJf7WBA2\"]},\"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol\":{\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e73efb4c2ca655882dc237c6b4f234a9bd36d97159d8fcaa837eb01171f726ac\",\"dweb:/ipfs/QmTNnnv7Gu5fs5G1ZMh7Fexp8N4XUs3XrNAngjcxgiss3e\"]},\"lib/openzeppelin-contracts/contracts/proxy/beacon/BeaconProxy.sol\":{\"keccak256\":\"0xef92aebf99249a8ac1d682b9a0f04b6f2af2a8f631cb126625bab15bafcefda8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9a0709f54f682b4d22d3108e5951019145cd0b4abda4517638410d231f37d960\",\"dweb:/ipfs/QmdR3oRXqheNuBVRW1cMqDCffBsV1DtuvRHuaDph4ZTku2\"]},\"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol\":{\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5aa4f07e65444784c29cd7bfcc2341b34381e4e5b5da9f0c5bd00d7f430e66fa\",\"dweb:/ipfs/QmWRMh4Q9DpaU9GvsiXmDdoNYMyyece9if7hnfLz7uqzWM\"]},\"lib/openzeppelin-contracts/contracts/proxy/beacon/UpgradeableBeacon.sol\":{\"keccak256\":\"0x5920bac7215d12961e23b207f6e81a1d64aa4935a4469abe95b64a96a3c3007b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b34bb828c45c3a4ebf6c2c585971abf5089e61357a3818a2900c7e85b74a1299\",\"dweb:/ipfs/QmewGAzKsPXYfSjCKxuH1SekKxtdyzhdbdyxjF5gohLigt\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0x70f2f713b13b7ce4610bcd0ac9fec0f3cc43693b043abcb8dc40a42a726eb330\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c13d13304ac79a83ab1c30168967d19e2203342ebbd6a9bbce4db7550522dcbf\",\"dweb:/ipfs/QmeN5jKMN2vw5bhacr6tkg78afbTTZUeaacNHqjWt4Ew1r\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x4ea01544758fd2c7045961904686bfe232d2220a04ecaa2d6b08dac17827febf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fabe6bef5167ae741dd8c22d7f81d3f9120bd61b290762a2e8f176712567d329\",\"dweb:/ipfs/QmSnEitJ6xmf1SSAUeZozD7Gx7h8bNnX3a1ZBzqeivsvVg\"]},\"lib/openzeppelin-contracts/contracts/utils/Address.sol\":{\"keccak256\":\"0xaaa1d17c1129b127a4a401db2fbd72960e2671474be3d08cae71ccdc42f7624c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cb2f27cd3952aa667e198fba0d9b7bcec52fbb12c16f013c25fe6fb52b29cc0e\",\"dweb:/ipfs/QmeuohBFoeyDPZA9JNCTEDz3VBfBD4EABWuWXVhHAuEpKR\"]},\"lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]},\"lib/openzeppelin-contracts/contracts/utils/Errors.sol\":{\"keccak256\":\"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf\",\"dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB\"]},\"lib/openzeppelin-contracts/contracts/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol\":{\"keccak256\":\"0x9303ef5a2beb555e52ce56598de205ce07ca8988fc67d073687c06cb8fc973d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8b2e48fb42844c25e6cb38e7cfa1d91dcdc054613fd10f608833dbc677acf889\",\"dweb:/ipfs/QmT4HQxbgpWA3fZnK4dY3eXHNCoyBvpvzNq5k7eSt5mR5t\"]},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621\",\"dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL\"]},\"lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xa00be322d7db5786750ce0ac7e2f5b633ac30a5ed5fa1ced1e74acfc19acecea\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6c84e822f87cbdc4082533b626667b6928715bb2b1e8e7eb96954cebb9e38c8d\",\"dweb:/ipfs/QmZmy9dgxLTerBAQDuuHqbL6EpgRxddqgv5KmwpXYVbKz1\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0x195533c86d0ef72bcc06456a4f66a9b941f38eb403739b00f21fd7c1abd1ae54\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b1d578337048cad08c1c03041cca5978eff5428aa130c781b271ad9e5566e1f8\",\"dweb:/ipfs/QmPFKL2r9CBsMwmUqqdcFPfHZB2qcs9g1HDrPxzWSxomvy\"]},\"lib/solady/src/auth/Ownable.sol\":{\"keccak256\":\"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3\",\"dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs\"]},\"lib/solady/src/utils/CREATE3.sol\":{\"keccak256\":\"0x7c5f5a0bd6f3cfa30101ed769ac090e54e1235d412d2859ea11c5de8f00a094d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e64e6905a9b7cb5663468dd00ef5805cb09238e55a075e7a040f46f576203146\",\"dweb:/ipfs/QmTYPZtg5RyozzMHtkrnCy7mC7DoUde4Qdc8Yc9rgS62Yz\"]},\"lib/solady/src/utils/EnumerableSetLib.sol\":{\"keccak256\":\"0x9cb48b991323228021af1044398e837a6f073839af296c1dd4b0ace80820279b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://307e592c572f2138f725936da9e1e4564c14b5d3ce07202b1425f807e881a07f\",\"dweb:/ipfs/QmWds35sTi62ZjUkG3ZmAZ1PBCG3R4xw9utKJKb37NxGtp\"]},\"src/beacon-factory/BeaconFactory.sol\":{\"keccak256\":\"0x4603acf4cda2fb488e0a341036b6ad76d63571a34da41488293c839a04c98715\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b4ce3a5664f35ba99be16d0e3ab45b9c148557bb04ef0b2eb3ba666756938082\",\"dweb:/ipfs/QmXg75jrVVMPJkMT6iWiif3xiMfs9wsBH5tTQuB7iroFpW\"]},\"src/interfaces/IRoleRegistry.sol\":{\"keccak256\":\"0x2e369821a9f6e1b8958d537c844e2abd3fb09d3addd561cfdc7baaa4b416ea68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6adce508bb7fa5aba57aeb709fb857f95baa35349f34d20daec03caa867e7dda\",\"dweb:/ipfs/QmdZwR4YLc3vpUVL1e9MfUsCuyysoJMryYqgckNnNxcHqw\"]},\"src/interfaces/ITopUpFactory.sol\":{\"keccak256\":\"0xf4ea919b1733e2df7174c33b5c967852c41fda199fe870cf18a708d35391c1ea\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0f068447d4de992c9c738e83e07ea0b68ec27d96f94d7981a7b6ce28904e9e40\",\"dweb:/ipfs/QmRLQsRZuijEfL1zzdTBYiyKRm8kqZQSGfyfB8BmRZLB9r\"]},\"src/interfaces/ITradingSafeFactory.sol\":{\"keccak256\":\"0x7be89123105918be41d56bb7447612fedae4fff8ab9a44d020c00b58122e7b75\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9e8504a2387d33fa6209d61a9b6cb0a21d82e92304e8f5e430d9ee65a6cfdd37\",\"dweb:/ipfs/QmYMbLnkdLoqtUALbKcR5kQRP1JP3o8aJ32nEHBmxWbepa\"]},\"src/interfaces/IWETH.sol\":{\"keccak256\":\"0xb9f59ab3ddc8a1ad944a60859f27725c968e2b88df88e284b6818145c54a9ea9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://53abbb5486337ee7f677005c1f2ca393eda5f35bd8ef7fd9647f1d87a1b39266\",\"dweb:/ipfs/QmdZdcoXGKDuVpvHLj3EqK2vYz4vRoGMzq2AeSv8XMBjAd\"]},\"src/libraries/DelegateCallLib.sol\":{\"keccak256\":\"0x16b5f7bd059b268e4968daeefd0b7708f4e1d651f886aca937aa85b5b6dd7f93\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://db2b1df646c3eef79db0a710dee9a038c86d715174bfa33cc8aca190b6f75f75\",\"dweb:/ipfs/QmS24xvd1UwAxJzqgPQ8Wg1fH8U7thQyRdqL7mi8csjVum\"]},\"src/top-up/TopUp.sol\":{\"keccak256\":\"0xc1e05574c47b265fc733c0314e893fedf198e96b1a2849bca6a6bf5b0d84ee60\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da9a12eba3f315a3257d02d59e16e5784b293f1760b3ed0833436d814e178b98\",\"dweb:/ipfs/QmbVSxXhTASb4rdJawZJF88FJ2UCuCaGjbZUWghnpGdzBN\"]},\"src/top-up/TopUpFactory.sol\":{\"keccak256\":\"0x30066211df433182dadc80c659c116b50a362f6d2a08ad0de4fd437ebc749acc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://caf09c93b87c2aeacbbcbc8abbb455b53129364dc7ec30418fba7e8b2bde6455\",\"dweb:/ipfs/QmYQrNAWE7mt6T4axuJ9Dt85fUcZcAxtYKA8vS8kYVxZPt\"]},\"src/top-up/bridge/BridgeAdapterBase.sol\":{\"keccak256\":\"0xfc647bd2ef7d91008a7214f9a2c2f6db72fcda451cb0ef43e2c13e074b6a1252\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b772b2970b1895af9ad5ff6d5719a847ecefd7edd342d51f8833322e962a1beb\",\"dweb:/ipfs/QmQrtR2dA31vraViw9V7SrGAHHF4DWM5DD5u2N1D6usEi2\"]},\"src/utils/Constants.sol\":{\"keccak256\":\"0x19cf1a031743f6db22d6e3171a7880c6b1b431a4ded2d54a8c7597165d3e2b5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://985e1e8c978fd3d0d18ea7f74be9c28db13dd91d59f56e37b320f29162d57501\",\"dweb:/ipfs/QmewvHSYfkYMfjyF4SnTusMgHsxCTzYRbWHc2g8vePASkS\"]},\"src/utils/UpgradeableProxy.sol\":{\"keccak256\":\"0x308b5e52b4eeab86c2b27890faf5ea0e680ab8999c7279a7a8b018e5549f5d4a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3b68d1861a19fcf3c02b9c03c7dd752b3462708678d2960c2aac95fc15ea174e\",\"dweb:/ipfs/QmX2hyumrw9GsaPm2XpzPys5V3phagCv8JJN3HVFVFFAZa\"]}},\"version\":1}","userdoc":{"kind":"user","errors":{"InvalidInput()":[{"notice":"Thrown when input is invalid"}],"Unauthorized()":[{"notice":"Error thrown when caller is unauthorized to perform an operation"}],"InvalidConfig()":[{"notice":"Error thrown when the token config passed is invalid"}],"OnlyRedirectRole()":[{"notice":"Error thrown when `redirectToTradingSafe` is called by an account lacking the redirect role."}],"InvalidStartIndex()":[{"notice":"Error thrown when the start index is invalid"}],"TokenConfigNotSet()":[{"notice":"Error thrown when attempting to bridge a token without configuration"}],"WrapMintedNothing()":[{"notice":"Reverts when the wrap leg credited the TradingSafe no shares at all."}],"AmountCannotBeZero()":[{"notice":"Error thrown when attempting to bridge with zero amount"}],"ArrayLengthMismatch()":[{"notice":"Error thrown when array lengths mismatch"}],"ChainIdCannotBeZero()":[{"notice":"Error thrown when chain ID is zero"}],"InsufficientBalance()":[{"notice":"Error thrown when attempting to bridge with insufficient balance"}],"InvalidTopUpAddress()":[{"notice":"Error thrown when trying to pull funds from an address not registered as deployedAddresses"}],"OnlySupportedTokens()":[{"notice":"Reverts when a sweep entry point is handed a token this factory has no topup         configuration for — the redirect path owns those, not `processTopUp`."}],"InitializationFailed()":[{"notice":"Thrown when initialize fails on the deployed contract"}],"NativeTransferFailed()":[{"notice":"Error thrown when ETH transfer fails"}],"RecoveryWalletNotSet()":[{"notice":"Error thrown when recovery wallet is not set"}],"InsufficientFeePassed()":[{"notice":"Error thrown when insufficient fee is passed for bridging"}],"OnlyRoleRegistryOwner()":[{"notice":"Error thrown when caller is not the role registry owner"}],"OnlyUnsupportedTokens()":[{"notice":"Error thrown when attempting to recover token which is a supported asset"}],"RedirectWrapperNotSet()":[{"notice":"Reverts when `wrapStocks` is asked to wrap a token with no registered wrapper —         there is nothing to deposit into, and silently skipping would hide the missing         `setRedirectWrappers` entry."}],"InvalidRedirectWrapper()":[{"notice":"Reverts when `setRedirectWrappers` is given a vault that is not an ERC-4626 over         the very token it is being registered for."}],"TradingSafeNotDeployed()":[{"notice":"Error thrown when the resolved destination is not a deployed, registered TradingSafe."}],"TokenCannotBeZeroAddress()":[{"notice":"Error thrown when zero address is provided for a token"}],"TokenNotTradingSupported()":[{"notice":"Error thrown when redirecting a token that isn't supported for trading."}],"TradingSafeFactoryNotSet()":[{"notice":"Reverts when `redirectDestinationFor` is called before         `setTradingSafeFactory` has been configured."}],"RecoveryWalletCannotBeZeroAddress()":[{"notice":"Error thrown when attempting to set zero address as recovery wallet"}],"DeployedAddressDifferentFromExpected()":[{"notice":"Thrown when the deployed address doesn't match the predicted address"}],"TradingSafeFactoryCannotBeZeroAddress()":[{"notice":"Reverts when `setTradingSafeFactory` is called with the zero address."}]},"events":{"Bridge(address,uint256,uint256)":{"notice":"Emitted when tokens are bridged to the destination chain"},"Recovery(address,address,uint256)":{"notice":"Emitted when funds are recovered to the recovery wallet"},"RecoveryWalletSet(address,address)":{"notice":"Emitted when the recovery wallet address is updated"},"BeaconProxyDeployed(bytes32,address)":{"notice":"Emitted when a new beacon proxy is deployed"},"TradingSafeFactorySet(address,address)":{"notice":"Emitted when the destination-chain TradingSafeFactory address is updated."},"TokenConfigRemoved(address[],uint256[])":{"notice":"Emitted when tokens are retired from the topup lane — their route for the paired         chain cleared and the token dropped from the supported set."},"RedirectWrapperSet(address,address,address)":{"notice":"Emitted when a token's redirect wrapper is configured or cleared."},"BeaconImplemenationUpgraded(address,address)":{"notice":"Emitted when the implementation in the beacon address is updated"},"RedirectFunds(address,address,address,uint256)":{"notice":"Emitted on a successful `redirectToTradingSafe` invocation. Single canonical         event for every TopUp → TradingSafe redirect on this chain."},"WrapStock(address,address,address,uint256,uint256)":{"notice":"Emitted for each token `wrapStocks` converted in place at a TopUp. Distinct from         `WrapOnRedirect`: nothing left the TopUp here, so there is no accompanying         `RedirectFunds` — the TopUp simply holds the wrapper instead of the raw stock."},"WrapOnRedirect(address,address,address,uint256,uint256)":{"notice":"Emitted when a redirect wrapped a raw stock into its ERC-4626 wrapper on the way         out. Names the conversion the accompanying `RedirectFunds` can't convey: that one         reports the wrapper and the shares the TradingSafe received, this one what the         TopUp actually gave up."},"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])":{"notice":"Emitted when the tokens are configured"}},"notice":"Factory contract for deploying TopUp instances using the beacon proxy pattern","methods":{"ETH()":{"notice":"Special address used to represent native ETH in the protocol"},"pause()":{"notice":"Pauses the contract"},"beacon()":{"notice":"Returns the address of the beacon which stores the implementation"},"unpause()":{"notice":"Unpauses the contract"},"roleRegistry()":{"notice":"Returns the address of the Role Registry contract"},"getRecoveryWallet()":{"notice":"Gets the current recovery wallet address"},"wrapperFor(address)":{"notice":"Returns the ERC-4626 vault a redirect of `token` deposits into, or zero when the         token is redirected as-is."},"tradingSafeFactory()":{"notice":"Returns the destination-chain `TradingSafeFactory` address."},"MAX_ALLOWED_SLIPPAGE()":{"notice":"Max slippage allowed for bridging"},"numContractsDeployed()":{"notice":"Gets the number of contracts deployed"},"isTopUpContract(address)":{"notice":"Checks if an address is a deployed TopUp contract"},"isTokenSupported(address)":{"notice":"Checks if a given token is supported for bridging"},"setRecoveryWallet(address)":{"notice":"Sets the recovery wallet address for emergency fund recovery"},"initialize(address,address)":{"notice":"Initializes the TopUpFactory contract"},"TOPUP_FACTORY_BRIDGER_ROLE()":{"notice":"Role identifier for accounts authorized to bridge tokens"},"deployTopUpContract(bytes32)":{"notice":"Deploys a new TopUp contract instance"},"TOPUP_FACTORY_REDIRECT_ROLE()":{"notice":"Role allowed to drive `redirectToTradingSafe`"},"recoverFunds(address,uint256)":{"notice":"Recovers ERC20 tokens to the designated recovery wallet"},"wrapStocks(address,address[])":{"notice":"Wraps every `tokens[i]` a TopUp holds into that token's registered ERC-4626         wrapper, in place — the TopUp itself receives the shares."},"setTradingSafeFactory(address)":{"notice":"Sets the destination-chain `TradingSafeFactory` address used by every TopUp         instance when computing the redirect destination."},"bridge(address,uint256,uint256)":{"notice":"Bridges tokens to the destination chain using the configured bridge adapter"},"getTokenConfig(address,uint256)":{"notice":"Gets the bridge configuration for a specific token"},"redirectDestinationFor(address)":{"notice":"Returns the destination-chain TradingSafe address that `topUp` redirects to,         derived from the configured `TradingSafeFactory` using the TopUp's own         address as the salt seed. Reverts if `TradingSafeFactory` hasn't been set."},"getDeterministicAddress(bytes32)":{"notice":"Predicts the deterministic address for a given salt"},"upgradeBeaconImplementation(address)":{"notice":"Function to set the new implementation in the beacon contract"},"getBridgeFee(address,uint256,uint256)":{"notice":"Gets the bridge fee for a token transfer"},"getDeployedAddresses(uint256,uint256)":{"notice":"Gets deployed TopUp contract addresses"},"removeTokenConfig(address[],uint256[])":{"notice":"Takes each `tokens[i]` off the topup lane for `chainIds[i]`: clears its bridge         configuration for that destination and drops it from the supported set."},"processTopUp(address[],uint256,uint256)":{"notice":"Processes specified tokens from a range of deployed topUp contracts"},"setRedirectWrappers(address[],address[])":{"notice":"Registers, for each `tokens[i]`, the ERC-4626 vault a redirect must deposit it         into instead of transferring it — or clears that with the zero address."},"processTopUpFromContracts(address[],address[])":{"notice":"Processes specified tokens from a given topUp contract"},"redirectToTradingSafe(address,address,uint256)":{"notice":"Redirects `amount` of `token` from `topUp` to that user's TradingSafe on the         destination chain. Recovery path for trading-supported, not-topup-supported         tokens that landed at the TopUp address by mistake."},"batchRedirectToTradingSafe(address[],address[],uint256[])":{"notice":"Batch variant of `redirectToTradingSafe`. Each parallel-array slot identifies         one redirect operation `(topUps[i], tokens[i], amounts[i])`. Any combination         is allowed — same TopUp multiple times for different tokens, multiple TopUps         for the same token, etc."},"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])":{"notice":"Sets configuration parameters for multiple tokens"}},"version":1},"devdoc":{"kind":"dev","title":"TopUpFactory","author":"ether.fi","errors":{"FailedCall()":[{"details":"A call to an address target failed. The target may have reverted."}],"EnforcedPause()":[{"details":"The operation failed because the contract is paused."}],"ExpectedPause()":[{"details":"The operation failed because the contract is not paused."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"IndexOutOfBounds()":[{"details":"The index must be less than the length."}],"ERC1967NonPayable()":[{"details":"An upgrade function sees `msg.value > 0` that may be lost."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"AddressEmptyCode(address)":[{"details":"There's no code at `target` (it is not a contract)."}],"UUPSUnauthorizedCallContext()":[{"details":"The call is from an unauthorized context."}],"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"ERC1967InvalidImplementation(address)":[{"details":"The `implementation` of the proxy is invalid."}],"UUPSUnsupportedProxiableUUID(bytes32)":[{"details":"The storage `slot` is unsupported as a UUID."}]},"events":{"Paused(address)":{"details":"Emitted when the pause is triggered by `account`."},"Unpaused(address)":{"details":"Emitted when the pause is lifted by `account`."},"Upgraded(address)":{"details":"Emitted when the implementation is upgraded."},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized or reinitialized."},"Bridge(address,uint256,uint256)":{"params":{"token":"The address of the token being bridged","amount":"The amount of tokens being bridged"}},"Recovery(address,address,uint256)":{"params":{"token":"The token being recovered","amount":"The amount of tokens recovered","recoveryWallet":"The address receiving the recovered funds"}},"RecoveryWalletSet(address,address)":{"params":{"newRecoveryWallet":"The new recovery wallet address","oldRecoveryWallet":"The previous recovery wallet address"}},"BeaconProxyDeployed(bytes32,address)":{"params":{"salt":"The salt for deterministic deployment","deployed":"The address of the newly deployed proxy"}},"TradingSafeFactorySet(address,address)":{"params":{"newFactory":"New address.","oldFactory":"Previous address (zero on first set)."}},"TokenConfigRemoved(address[],uint256[])":{"params":{"tokens":"Tokens retired.","chainIds":"Per-entry destination chain whose route was cleared."}},"RedirectWrapperSet(address,address,address)":{"params":{"token":"The token being redirected.","newWrapper":"New vault, or zero to go back to a plain transfer.","oldWrapper":"Previous vault (zero when the token used to travel as-is)."}},"BeaconImplemenationUpgraded(address,address)":{"params":{"newImpl":"The new impl address","oldImpl":"The previous impl address"}},"RedirectFunds(address,address,address,uint256)":{"params":{"token":"ERC20 redirected.","topUp":"The TopUp instance that the funds were redirected from.","amount":"Amount transferred.","tradingSafe":"The destination TradingSafe that received the funds."}},"WrapStock(address,address,address,uint256,uint256)":{"params":{"topUp":"The TopUp whose raw stock was wrapped, and the receiver of the shares.","assets":"Amount of `underlying` deposited — the TopUp's entire balance of it.","shares":"Amount of `wrapper` the TopUp was credited.","wrapper":"The ERC-4626 vault the stock was deposited into.","underlying":"The raw stock that was wrapped."}},"WrapOnRedirect(address,address,address,uint256,uint256)":{"params":{"topUp":"The TopUp the underlying was pulled from.","assets":"Amount of `underlying` deposited.","shares":"Amount of `wrapper` credited to the TradingSafe.","wrapper":"The ERC-4626 vault — the trading-supported token the TradingSafe receives.","underlying":"The raw token that was wrapped."}},"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])":{"params":{"config":"Array of TokenConfig struct","tokens":"Array of token addresses"}}},"details":"Extends BeaconFactory to provide Beacon Proxy deployment functionality","methods":{"pause()":{"details":"Only callable by accounts with the pauser role"},"beacon()":{"returns":{"_0":"beacon Address of the beacon contract"}},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"unpause()":{"details":"Only callable by accounts with the unpauser role"},"constructor":{"custom:oz-upgrades-unsafe-allow":"constructor"},"roleRegistry()":{"returns":{"_0":"roleRegistry Reference to the role registry contract"}},"proxiableUUID()":{"details":"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."},"getRecoveryWallet()":{"details":"Returns the address where funds can be recovered to","returns":{"_0":"The configured recovery wallet address"}},"wrapperFor(address)":{"details":"Read by every `TopUp` on this factory during `redirectToTradingSafe`."},"numContractsDeployed()":{"returns":{"_0":"Number of contracts deployed"}},"isTopUpContract(address)":{"params":{"topUpContract":"The address to check"},"details":"Returns whether the address is in the deployed addresses set","returns":{"_0":"True if the address is a deployed TopUp contract, false otherwise"}},"isTokenSupported(address)":{"params":{"token":"The address of the token to check"},"details":"Returns whether the token is in the supported tokens set","returns":{"_0":"True if the token is supported, false otherwise"}},"setRecoveryWallet(address)":{"params":{"_recoveryWallet":"The new recovery wallet address"},"details":"Only callable by admin role","custom:throws":"OnlyAdminTimelock if the caller does not have ADMIN_TIMELOCK_ROLERecoveryWalletCannotBeZeroAddress if provided address is zero"},"initialize(address,address)":{"params":{"_topUpImpl":"Address of the topUp implementation contract","_roleRegistry":"Address of the role registry contract"},"details":"Sets up the role registry, admin, and beacon implementation"},"deployTopUpContract(bytes32)":{"params":{"salt":"The salt value used for deterministic deployment"}},"recoverFunds(address,uint256)":{"params":{"token":"The address of the token to recover","amount":"The amount of tokens to recover"},"details":"Only callable by admin role","custom:throws":"OnlyAdmin if caller doesn't have admin roleTokenCannotBeZeroAddress if token address is zeroOnlyUnsupportedTokens if token is a supported bridge assetRecoveryWalletNotSet if recovery wallet is not configured"},"wrapStocks(address,address[])":{"params":{"topUp":"The TopUp instance holding the raw stocks. Must be factory-deployed.","tokens":"Raw stocks to wrap. Each must NOT be topup-supported and MUST have a wrapper               registered via `setRedirectWrappers`."},"details":"Permissionless. Nothing leaves the TopUp: a raw Backed xStock (TSLAx) it was sent      becomes the wrapper (wTSLAx) held by the same TopUp, at the same address, so there is      no recipient for a caller to choose and nothing to gain from calling it. What may be      wrapped is fixed by `setRedirectWrappers`, which is admin-curated and validates the      `asset()` pairing, so the deposit target is never an arbitrary address.      The point is the raw stock's dead end: it is trading-supported in no form of its own      and topup-supported in none either, so left as-is it can neither be swept by      `processTopUp` nor redirected. Converting it to the form the catalogs do list hands it      back to whichever rail should carry it — and that rail runs its own support checks, so      this one deliberately asserts nothing about the wrapper beyond the vault minting.      Each entry wraps the TopUp's whole balance, so the caller needs no amounts and the      TopUp is left holding none of the raw stock. A zero balance is skipped rather than      reverted: the caller can pass a user's full stock list without knowing which of them      actually arrived. Shares are read as the TopUp's own balance delta rather than the      vault's return value, the same way `_executeRedirect` does it.      The conversion itself is `TopUp.wrap`, which has no recipient parameter at all: the      shares can only ever be credited to the TopUp doing the wrapping, so no caller of this      function — and no future caller of the TopUp's own entry point — can route them      anywhere. Moving funds off a TopUp remains the redirect path's job alone.","custom:throws":"InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on this                factory (it belongs on the `processTopUp` rail, unwrapped).RedirectWrapperNotSet If any `tokens[i]` has no registered wrapper.WrapMintedNothing If a wrap credited the TopUp no shares."},"setTradingSafeFactory(address)":{"params":{"_tradingSafeFactory":"Address of the destination-chain TradingSafeFactory."},"details":"Routes user-fund redirects, so it is gated like an upgrade: only the RoleRegistry      owner (the upgrade timelock) may call it. Read by `TopUp.redirectToTradingSafe` via the `tradingSafeFactory()`      view below.","custom:throws":"TradingSafeFactoryCannotBeZeroAddress If `_tradingSafeFactory == address(0)`."},"bridge(address,uint256,uint256)":{"params":{"token":"The address of the token to bridge"},"details":"Uses delegate call to execute the bridge operation through the appropriate adapter","custom:throws":"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if amount passed is zeroInsufficientBalance if contract has insufficient balance of the specified token"},"getTokenConfig(address,uint256)":{"params":{"token":"The address of the token to query"},"details":"Returns the TokenConfig struct containing bridge settings","returns":{"_0":"Configuration parameters for the specified token"}},"redirectDestinationFor(address)":{"params":{"topUp":"The per-user TopUp instance."},"details":"Called by `TopUp.redirectToTradingSafe`. Pure factory-side resolution keeps the      TopUp impl stateless.","custom:throws":"TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been                called."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.","custom:oz-upgrades-unsafe-allow-reachable":"delegatecall"},"getDeterministicAddress(bytes32)":{"params":{"salt":"The salt value used for address prediction"},"returns":{"_0":"The predicted deployment address"}},"upgradeBeaconImplementation(address)":{"params":{"_newImpl":"New implementation for the beacon contract"},"details":"Only callable by owner of RoleRegistry","custom:throws":"OnlyRoleRegistryOwner when msg.sender is not the owner of the RoleRegistry contractInvalidInput when _beacon == address(0)"},"getBridgeFee(address,uint256,uint256)":{"params":{"token":"The address of the token to bridge","amount":"The amount of the token to bridge"},"details":"Queries the bridge adapter for the fee estimation","returns":{"_token":"The fee token address","_amount":"The fee amount in the _token's decimals"},"custom:throws":"TokenCannotBeZeroAddress if token address is zeroTokenConfigNotSet if bridge configuration is not set for the tokenAmountCannotBeZero if contract has no balance of the specified token"},"getDeployedAddresses(uint256,uint256)":{"params":{"n":"Number of topUp contracts to get","start":"Starting index in the deployedAddresses array"},"details":"Returns an array of TopUp contracts deployed by this factory","returns":{"_0":"An array of deployed TopUp contract addresses"},"custom:throws":"InvalidStartIndex if start index is invalid"},"removeTokenConfig(address[],uint256[])":{"params":{"tokens":"Tokens to retire.","chainIds":"Per-entry destination chain whose route is being cleared."},"details":"Only callable by addresses with ADMIN_TIMELOCK_ROLE      it only ever adds to `supportedTokens`, and rejects a zeroed config, so before this      there was no way to retire an asset from the lane at all.      Both halves matter and neither is sufficient alone. `bridge` gates on      `tokenChainConfig[token][destChainId].bridgeAdapter`, never on the supported set, so      leaving the config in place would keep the route open to the bridger role; while      `processTopUp`, `recoverFunds`, the redirects and `wrapStocks` all gate on the set, so      leaving the token in it would keep sweeping the asset the config no longer routes.      A token leaves the supported set as soon as one of its routes is removed, because the      set has no per-chain granularity and the chains a token is configured for are not      enumerable on-chain. A token with routes on several destinations must therefore have      all of them passed in — otherwise the leftover routes stay bridgeable while sweeping      stops, which is a half-retired asset. Removing a route that was never configured      reverts rather than passing silently, so a mistyped chain id can't read as a closed      route.","custom:emits":"TokenConfigRemoved","custom:throws":"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.ChainIdCannotBeZero If any `chainIds[i]` is zero.TokenConfigNotSet If any `(tokens[i], chainIds[i])` has no configured route."},"processTopUp(address[],uint256,uint256)":{"params":{"n":"Number of topUp contracts to process","start":"Starting index in the deployedAddresses array","tokens":"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`."},"details":"Iterates through deployed topUp contracts starting at index 'start' and calls processTopUp on each","custom:throws":"OnlySupportedTokens If any token has no topup configuration on this factoryIf start + n exceeds the number of deployed topUp contractsIf any topUp's processTopUp call fails"},"setRedirectWrappers(address[],address[])":{"params":{"tokens":"Tokens being redirected (the raw stock a TopUp receives).","wrappers":"Per-entry ERC-4626 vault over `tokens[i]`, or zero to transfer as-is."},"details":"Only callable by addresses with ADMIN_TIMELOCK_ROLE      tokenized equities a TradingSafe can hold are `WrappedBackedToken` vaults (wTSLAx),      while what a user sends to a TopUp address is the raw Backed xStock underneath      (TSLAx), which is trading-supported in no form of its own and would otherwise be      stranded at the TopUp. Registering TSLAx → wTSLAx makes the existing redirect wrap it      on the way out, with no change to how the backend calls it.      The pairing is verified here rather than trusted: `asset()` must name the very token      being configured, which both proves the vault is the right one and that it is a vault      at all (a non-4626 target reverts the call). That check is what lets      `TopUp.redirectToTradingSafe` approve and call the wrapper without re-validating it.      Curating this per token — rather than probing `asset()` at redirect time — keeps an      arbitrary 4626 that happens to wrap a valuable token from becoming a redirect target.","custom:throws":"ArrayLengthMismatch If the two arrays don't agree on length.TokenCannotBeZeroAddress If any `tokens[i]` is the zero address.InvalidRedirectWrapper If any non-zero `wrappers[i]` is not an ERC-4626                whose `asset()` is `tokens[i]`."},"processTopUpFromContracts(address[],address[])":{"params":{"tokens":"Array of token addresses to process. Every entry must be topup-supported               (or the native-ETH sentinel); see `_validateSweepTokens`.","topUpContracts":"Array of addresses of the topUp contracts to process"},"details":"Verifies the topUp contract is valid before attempting to pull funds","custom:throws":"OnlySupportedTokens If any token has no topup configuration on this factoryInvalidTopUpAddress if the TopUp address is not a deployed TopUp contractIf the TopUp contracts's processTopUp call fails"},"redirectToTradingSafe(address,address,uint256)":{"params":{"token":"ERC20 to redirect. Must NOT be topup-supported, and the form it arrives in at              the safe — itself, or its configured wrapper — MUST be trading-supported.","topUp":"Address of the TopUp instance to redirect from.","amount":"Amount of `token` to transfer."},"details":"Backend-role gated (`TOPUP_FACTORY_REDIRECT_ROLE`). Destination is always the      user's own deployed TradingSafe (derived from the TopUp address); the token must      be NOT topup-supported AND trading-supported, and the destination must be an      already-deployed, registered TradingSafe (never a codeless prediction).      A token with a redirect wrapper configured (`setRedirectWrappers`) is deposited into      that vault instead of transferred, so a raw Backed xStock sitting at a TopUp lands in      the safe as the wrapper its trading catalog actually lists. The trading-supported      check then applies to the wrapper — the form the safe receives — since the raw stock      is trading-supported in no form of its own. Nothing about the call changes: `token`      and `amount` still describe what leaves the TopUp.","custom:throws":"OnlyRedirectRole If caller lacks `TOPUP_FACTORY_REDIRECT_ROLE`.InvalidTopUpAddress If `topUp` was not deployed by this factory.OnlyUnsupportedTokens If `token` has a topup configuration on this                factory (route it through `processTopUp` instead).TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If what the safe would receive is not a supported                trading asset.TradingSafeNotDeployed If the resolved TradingSafe isn't deployed/registered.WrapMintedNothing If a wrapped redirect credited the safe no shares."},"batchRedirectToTradingSafe(address[],address[],uint256[])":{"params":{"tokens":"Per-entry ERC20 to redirect. Each must NOT be topup-supported, and the form               it arrives in at the safe — itself, or its configured wrapper — MUST be               trading-supported.","topUps":"Per-entry TopUp instance.","amounts":"Per-entry amount of `tokens[i]` to transfer."},"details":"Backend-role gated (same rationale as the single-entry variant). Atomic      all-or-nothing: a revert on any entry rolls back the entire batch. Same      per-entry guards: rejects topup-supported tokens and requires trading-supported.      A token with a configured redirect wrapper wraps on the way out here exactly as it      does in the single-entry variant; both share `_executeRedirect`.","custom:throws":"ArrayLengthMismatch If the three arrays don't agree on length.InvalidTopUpAddress If any `topUps[i]` was not deployed by this factory.OnlyUnsupportedTokens If any `tokens[i]` has a topup configuration on                this factory.TradingSafeFactoryNotSet If `setTradingSafeFactory` has not been called.TokenNotTradingSupported If any `tokens[i]` is not a supported trading asset."},"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])":{"params":{"tokens":"Array of token addresses to configure","configs":"Array of TokenConfig structs containing bridge settings for each token"},"details":"Allows admin to configure bridge settings for multiple tokens in a single transaction","custom:emits":"TokenConfigSet when configs are updated","custom:throws":"ArrayLengthMismatch if tokens and configs arrays have different lengthsTokenCannotBeZeroAddress if any token address is zeroInvalidConfig if any config has invalid parameters:   - bridgeAdapter is zero address   - recipientOnDestChain is zero address   - maxSlippageInBps exceeds MAX_ALLOWED_SLIPPAGE"}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516153726100f95f395f81816132a9015281816132d2015261346101526153725ff3fe6080604052600436106101c2575f3560e01c80630345bdbe146101cd57806303c1288e146101ee57806308c732591461020d5780630bf5d35e14610237578063197f84f81461024a5780631becc420146102695780633d9d38671461027d5780633f4ba83a146102ab578063485cc955146102bf5780634f1ef286146102de57806352d1902d146102f1578063586097541461030557806359659e90146103245780635c975abb1461033857806360db28731461035c5780636c8bcb6a1461038857806375151b63146103a7578063760d0f9d146103c6578063770b69f6146103e55780637b0eb57d146104045780637f1a9904146104235780638322fff2146104505780638456cb5914610477578063886e89a51461048b578063922b8e221461049f57806395e12d61146104be578063a222dbbd146104dd578063a5116d9314610509578063a58dcc9514610529578063a783b50814610548578063ad3cb1cc1461055c578063ade78a1214610599578063b0b15c11146105b8578063b69fd599146105d7578063c8d9b28614610603578063c93d2b1d14610622578063cd00c53814610641578063de9d008d14610660578063e8d1f00f1461067f575f5ffd5b366101c957005b5f5ffd5b3480156101d8575f5ffd5b506101ec6101e7366004613de7565b61069e565b005b3480156101f9575f5ffd5b506101ec610208366004613e6c565b610996565b348015610218575f5ffd5b50610221610cd7565b60405161022e9190613f08565b60405180910390f35b6101ec610245366004613f1c565b610cf1565b348015610255575f5ffd5b506101ec610264366004613e6c565b61100e565b348015610274575f5ffd5b50610221611476565b348015610288575f5ffd5b5061029d5f5160206152e65f395f51905f5281565b60405190815260200161022e565b3480156102b6575f5ffd5b506101ec611493565b3480156102ca575f5ffd5b506101ec6102d9366004613f4e565b6114fc565b6101ec6102ec366004613f99565b6115f4565b3480156102fc575f5ffd5b5061029d611613565b348015610310575f5ffd5b506101ec61031f36600461405c565b61162e565b34801561032f575f5ffd5b5061022161182d565b348015610343575f5ffd5b5061034c611837565b604051901515815260200161022e565b348015610367575f5ffd5b5061037b610376366004614086565b61184b565b60405161022e91906140a6565b348015610393575f5ffd5b506102216103a23660046140f1565b611943565b3480156103b2575f5ffd5b5061034c6103c13660046140f1565b6119ec565b3480156103d1575f5ffd5b506101ec6103e036600461410c565b611a05565b3480156103f0575f5ffd5b506101ec6103ff366004614123565b611a84565b34801561040f575f5ffd5b506101ec61041e366004614123565b611ccb565b34801561042e575f5ffd5b5061044261043d366004613f1c565b611da9565b60405161022e92919061418d565b34801561045b575f5ffd5b5061022173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b348015610482575f5ffd5b506101ec611f01565b348015610496575f5ffd5b5061029d611f68565b3480156104aa575f5ffd5b506102216104b93660046140f1565b611f7e565b3480156104c9575f5ffd5b506101ec6104d83660046141a6565b611fac565b3480156104e8575f5ffd5b506104fc6104f736600461405c565b6122dd565b60405161022e9190614224565b348015610514575f5ffd5b5061029d5f5160206152c65f395f51905f5281565b348015610534575f5ffd5b5061022161054336600461410c565b612405565b348015610553575f5ffd5b5061022161240f565b348015610567575f5ffd5b5061058c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161022e919061427d565b3480156105a4575f5ffd5b506101ec6105b3366004614123565b61242a565b3480156105c3575f5ffd5b5061034c6105d23660046140f1565b61267d565b3480156105e2575f5ffd5b506105eb60c881565b6040516001600160601b03909116815260200161022e565b34801561060e575f5ffd5b506101ec61061d3660046140f1565b612693565b34801561062d575f5ffd5b506101ec61063c36600461428f565b6127bf565b34801561064c575f5ffd5b506101ec61065b3660046140f1565b6128a1565b34801561066b575f5ffd5b506101ec61067a3660046140f1565b61299e565b34801561068a575f5ffd5b5061034c61069936600461405c565b612b57565b6106a6612b95565b6106ae612bdc565b6106b6610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016106f09291906142db565b602060405180830381865afa15801561070b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061072f91906142f2565b61074c57604051631695365560e21b815260040160405180910390fd5b5f610755612c02565b90506107618185612c26565b61077e57604051631359be9560e11b815260040160405180910390fd5b61078b6004820184612c26565b156107a95760405163c6486ddf60e01b815260040160405180910390fd5b60058101546001600160a01b0316806107d557604051630d35236760e21b815260040160405180910390fd5b6001600160a01b038085165f908152600684016020526040902054811690821663240028e882156108065782610808565b865b6040518263ffffffff1660e01b81526004016108249190613f08565b602060405180830381865afa15801561083f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086391906142f2565b61088057604051632e0fe39f60e21b815260040160405180910390fd5b604051634b69571760e11b81525f906001600160a01b038416906396d2ae2e906108ae908a90600401613f08565b602060405180830381865afa1580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0384169063b7ca418b9061091c908490600401613f08565b602060405180830381865afa158015610937573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b91906142f2565b61097857604051635c5a136560e11b815260040160405180910390fd5b6109858782888589612ccb565b50505050610991612f92565b505050565b61099e610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016109c99190613f08565b5f6040518083038186803b1580156109df575f5ffd5b505afa1580156109f1573d5f5f3e3d5ffd5b505050505f6109fe612c02565b9050858281141580610a105750808514155b15610a2e5760405163512509d360e11b815260040160405180910390fd5b5f5b81811015610c8b575f898983818110610a4b57610a4b61432c565b9050602002016020810190610a6091906140f1565b6001600160a01b031603610a8757604051635f5d339960e01b815260040160405180910390fd5b868682818110610a9957610a9961432c565b905060200201355f03610abf5760405163080fa92760e31b815260040160405180910390fd5b5f858583818110610ad257610ad261432c565b9050602002810190610ae49190614340565b610af29060208101906140f1565b6001600160a01b03161480610b4357505f858583818110610b1557610b1561432c565b9050602002810190610b279190614340565b610b389060408101906020016140f1565b6001600160a01b0316145b80610b8b575060c8858583818110610b5d57610b5d61432c565b9050602002810190610b6f9190614340565b610b80906060810190604001614372565b6001600160601b0316115b15610ba9576040516306b7c75960e31b815260040160405180910390fd5b848482818110610bbb57610bbb61432c565b9050602002810190610bcd9190614340565b836003015f8b8b85818110610be457610be461432c565b9050602002016020810190610bf991906140f1565b6001600160a01b03166001600160a01b031681526020019081526020015f205f898985818110610c2b57610c2b61432c565b9050602002013581526020019081526020015f208181610c4b91906144e2565b905050610c82898983818110610c6357610c6361432c565b9050602002016020810190610c7891906140f1565b6004850190612fa9565b50600101610a30565b507f38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622888888888888604051610cc596959493929190614631565b60405180910390a15050505050505050565b5f5f610ce1613101565b546001600160a01b031692915050565b610cf9612bdc565b5f5160206152c65f395f51905f52610d0f610cd7565b6001600160a01b03166391d1485482336040518363ffffffff1660e01b8152600401610d3c9291906142db565b602060405180830381865afa158015610d57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7b91906142f2565b610d97576040516282b42960e81b815260040160405180910390fd5b5f610da0612c02565b90506001600160a01b038516610dc957604051635f5d339960e01b815260040160405180910390fd5b825f03610de95760405163080fa92760e31b815260040160405180910390fd5b835f03610e095760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038086165f908152600383016020908152604080832087845290915290208054909116610e50576040516317b428a360e01b815260040160405180910390fd5b5f6001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610ee5576040516370a0823160e01b81526001600160a01b038816906370a0823190610ea1903090600401613f08565b602060405180830381865afa158015610ebc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ee0919061476c565b610ee7565b475b905085811015610f0a57604051631e9acf1760e31b815260040160405180910390fd5b5f610f16888888611da9565b91505034811115610f3a57604051636a639da560e01b815260040160405180910390fd5b82546001840154604051610fbf926001600160a01b039081169263b14d361d60e01b92610f88928e928e9291811691600160a01b9091046001600160601b03169060028c0190602401614801565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613125565b5085886001600160a01b03167fdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa89604051610ffc91815260200190565b60405180910390a35050505050505050565b611016612b95565b61101e612bdc565b611026610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016110609291906142db565b602060405180830381865afa15801561107b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109f91906142f2565b6110bc57604051631695365560e21b815260040160405180910390fd5b8483811415806110cc5750808214155b156110ea5760405163512509d360e11b815260040160405180910390fd5b5f6110f3612c02565b60058101549091506001600160a01b03168061112257604051630d35236760e21b815260040160405180910390fd5b5f5b838110156114625761115d8a8a838181106111415761114161432c565b905060200201602081019061115691906140f1565b8490612c26565b61117a57604051631359be9560e11b815260040160405180910390fd5b6111ae88888381811061118f5761118f61432c565b90506020020160208101906111a491906140f1565b6004850190612c26565b156111cc5760405163c6486ddf60e01b815260040160405180910390fd5b5f836006015f8a8a858181106111e4576111e461432c565b90506020020160208101906111f991906140f1565b6001600160a01b03908116825260208201929092526040015f205481169150831663240028e8821561122b5782611252565b8a8a8581811061123d5761123d61432c565b905060200201602081019061125291906140f1565b6040518263ffffffff1660e01b815260040161126e9190613f08565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad91906142f2565b6112ca57604051632e0fe39f60e21b815260040160405180910390fd5b5f836001600160a01b03166396d2ae2e8d8d868181106112ec576112ec61432c565b905060200201602081019061130191906140f1565b6040518263ffffffff1660e01b815260040161131d9190613f08565b602060405180830381865afa158015611338573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061135c9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0385169063b7ca418b9061138b908490600401613f08565b602060405180830381865afa1580156113a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ca91906142f2565b6113e757604051635c5a136560e11b815260040160405180910390fd5b6114588c8c858181106113fc576113fc61432c565b905060200201602081019061141191906140f1565b828c8c878181106114245761142461432c565b905060200201602081019061143991906140f1565b858c8c8981811061144c5761144c61432c565b90506020020135612ccb565b5050600101611124565b5050505061146e612f92565b505050505050565b5f5f611480612c02565b600201546001600160a01b031692915050565b61149b610cd7565b6001600160a01b0316635efcc07c336040518263ffffffff1660e01b81526004016114c69190613f08565b5f6040518083038186803b1580156114dc575f5ffd5b505afa1580156114ee573d5f5f3e3d5ffd5b505050506114fa6131ae565b565b5f611505613204565b805490915060ff600160401b82041615906001600160401b03165f8115801561152b5750825b90505f826001600160401b031660011480156115465750303b155b905081158015611554575080155b156115725760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561159b57845460ff60401b1916600160401b1785555b6115a58787613228565b83156115eb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6115fc61329e565b61160582613342565b61160f82826133a3565b5050565b5f61161c613456565b505f5160206153065f395f51905f5290565b611636612b95565b61163e610cd7565b6001600160a01b031663a47fbb2a336040518263ffffffff1660e01b81526004016116699190613f08565b5f6040518083038186803b15801561167f575f5ffd5b505afa158015611691573d5f5f3e3d5ffd5b505050505f61169e612c02565b90506001600160a01b0383166116c757604051635f5d339960e01b815260040160405180910390fd5b6116d46004820184612c26565b156116f25760405163c6486ddf60e01b815260040160405180910390fd5b60028101546001600160a01b031661171d576040516315bc61ef60e31b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038416016117bb5760028101546040515f916001600160a01b03169084908381818185875af1925050503d805f811461178e576040519150601f19603f3d011682016040523d82523d5f602084013e611793565b606091505b50509050806117b557604051633d2cec6f60e21b815260040160405180910390fd5b506117d7565b60028101546117d7906001600160a01b0385811691168461349f565b60028101546040516001600160a01b03858116927fb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a773981729899239261181c9290911690869061418d565b60405180910390a25061160f612f92565b5f5f610ce16134f7565b5f5f61184161351b565b5460ff1692915050565b60605f611856612c02565b90505f6118628261353f565b9050808510611884576040516392c4425960e01b815260040160405180910390fd5b8061188f8587614861565b11156118a25761189f8582614874565b93505b5f846001600160401b038111156118bb576118bb613f85565b6040519080825280602002602001820160405280156118e4578160200160208202803683370190505b5090505f5b85811015611937576119056118fe8289614861565b859061358d565b8282815181106119175761191761432c565b6001600160a01b03909216602092830291909101909101526001016118e9565b50925050505b92915050565b5f5f61194d612c02565b600501546001600160a01b031690508061197a57604051630d35236760e21b815260040160405180910390fd5b604051634b69571760e11b81526001600160a01b038216906396d2ae2e906119a6908690600401613f08565b602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190614311565b9392505050565b5f5f6119f6612c02565b90506119e56004820184612c26565b611a0d612bdc565b5f63c4d66de860e01b30604051602401611a279190613f08565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505f611a6683836135dc565b90505f611a71612c02565b9050611a7d8183612fa9565b5050505050565b611a8c610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b8152600401611ab79190613f08565b5f6040518083038186803b158015611acd575f5ffd5b505afa158015611adf573d5f5f3e3d5ffd5b508592505050818114611b055760405163512509d360e11b815260040160405180910390fd5b5f611b0e612c02565b90505f5b828110156115eb575f878783818110611b2d57611b2d61432c565b9050602002016020810190611b4291906140f1565b90505f868684818110611b5757611b5761432c565b9050602002016020810190611b6c91906140f1565b90506001600160a01b038216611b9557604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03811615801590611c1e5750816001600160a01b0316816001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c129190614311565b6001600160a01b031614155b15611c3c57604051633cf654ef60e01b815260040160405180910390fd5b6001600160a01b038083165f8181526006870160205260409081902054905191927f8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb620192611c8e92909116908590614887565b60405180910390a26001600160a01b039182165f908152600685016020526040902080546001600160a01b03191691909216179055600101611b12565b611cd5848461376e565b5f611cde612c02565b9050815f5b818110156115eb57611d008585838181106111415761114161432c565b611d1d57604051631359be9560e11b815260040160405180910390fd5b848482818110611d2f57611d2f61432c565b9050602002016020810190611d4491906140f1565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b8152600401611d719291906148a1565b5f604051808303815f87803b158015611d88575f5ffd5b505af1158015611d9a573d5f5f3e3d5ffd5b50505050806001019050611ce3565b5f5f5f611db4612c02565b90506001600160a01b038616611ddd57604051635f5d339960e01b815260040160405180910390fd5b835f03611dfd5760405163080fa92760e31b815260040160405180910390fd5b845f03611e1d5760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038087165f908152600383016020908152604080832088845290915290208054909116611e64576040516317b428a360e01b815260040160405180910390fd5b80546001820154604051630bbfe4bf60e41b81526001600160a01b039283169263bbfe4bf092611eb5928c928c9290811691600160a01b9091046001600160601b0316906002890190600401614801565b6040805180830381865afa158015611ecf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ef391906148b4565b935093505050935093915050565b611f09610cd7565b6001600160a01b031663bf4019ec336040518263ffffffff1660e01b8152600401611f349190613f08565b5f6040518083038186803b158015611f4a575f5ffd5b505afa158015611f5c573d5f5f3e3d5ffd5b505050506114fa61380f565b5f611f79611f74612c02565b61353f565b905090565b5f611f87612c02565b6001600160a01b039283165f9081526006919091016020526040902054909116919050565b611fb4612b95565b611fbc612bdc565b5f611fc5612c02565b9050611fd18185612c26565b611fee57604051631359be9560e11b815260040160405180910390fd5b815f5b818110156122d2575f85858381811061200c5761200c61432c565b905060200201602081019061202191906140f1565b90506120306004850182612c26565b1561204e5760405163c6486ddf60e01b815260040160405180910390fd5b6001600160a01b038082165f908152600686016020526040902054168061208857604051633bc9491b60e11b815260040160405180910390fd5b6040516370a0823160e01b81525f906001600160a01b038416906370a08231906120b6908c90600401613f08565b602060405180830381865afa1580156120d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f5919061476c565b905080156122c4576040516370a0823160e01b81525f906001600160a01b038416906370a082319061212b908d90600401613f08565b602060405180830381865afa158015612146573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216a919061476c565b604051635f9bb63d60e11b81529091506001600160a01b038b169063bf376c7a9061219b908790869060040161418d565b5f604051808303815f87803b1580156121b2575f5ffd5b505af11580156121c4573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a082318d6040518263ffffffff1660e01b81526004016121f69190613f08565b602060405180830381865afa158015612211573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612235919061476c565b61223f9190614874565b9050805f03612261576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b03168c6001600160a01b03167ffc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc69051486856040516122b9929190918252602082015260400190565b60405180910390a450505b836001019350505050611ff1565b505050610991612f92565b604080516080810182525f8082526020820181905291810182905260608082015290612307612c02565b6001600160a01b038581165f90815260038301602090815260408083208884528252918290208251608081018452815485168152600182015494851692810192909252600160a01b9093046001600160601b031691810191909152600282018054939450909260608401919061237c906143ad565b80601f01602080910402602001604051908101604052809291908181526020018280546123a8906143ad565b80156123f35780601f106123ca576101008083540402835291602001916123f3565b820191905f5260205f20905b8154815290600101906020018083116123d657829003601f168201915b50505050508152505091505092915050565b5f61193d82613855565b5f612418612c02565b600501546001600160a01b0316919050565b612432610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b815260040161245d9190613f08565b5f6040518083038186803b158015612473575f5ffd5b505afa158015612485573d5f5f3e3d5ffd5b505050505f612492612c02565b9050838281146124b55760405163512509d360e11b815260040160405180910390fd5b5f5b81811015612637575f8787838181106124d2576124d261432c565b90506020020160208101906124e791906140f1565b90506001600160a01b03811661251057604051635f5d339960e01b815260040160405180910390fd5b8585838181106125225761252261432c565b905060200201355f036125485760405163080fa92760e31b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120818888868181106125745761257461432c565b602090810292909201358352508101919091526040015f20546001600160a01b0316036125b4576040516317b428a360e01b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120908787858181106125e0576125e061432c565b602090810292909201358352508101919091526040015f90812080546001600160a01b0319168155600181018290559061261d6002830182613d6a565b5061262d90506004850182613860565b50506001016124b7565b507f1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b8686868660405161266d94939291906148e0565b60405180910390a1505050505050565b5f5f612687612c02565b90506119e58184612c26565b3361269c610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126d7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126fb9190614311565b6001600160a01b0316146127225760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612749576040516371b06ceb60e11b815260040160405180910390fd5b5f612752612c02565b60058101546040519192507fd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e9914313339051919191612794916001600160a01b0316908590614887565b60405180910390a160050180546001600160a01b0319166001600160a01b0392909216919091179055565b6127c9848461376e565b5f6127d2612c02565b90505f6127de8261353f565b9050808410612800576040516392c4425960e01b815260040160405180910390fd5b8061280b8486614861565b111561281e5761281b8482614874565b92505b5f5b838110156115eb5761283c6128358287614861565b849061358d565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b81526004016128699291906148a1565b5f604051808303815f87803b158015612880575f5ffd5b505af1158015612892573d5f5f3e3d5ffd5b50505050806001019050612820565b6128a9610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016128d49190613f08565b5f6040518083038186803b1580156128ea575f5ffd5b505afa1580156128fc573d5f5f3e3d5ffd5b505050505f612909612c02565b90506001600160a01b038216612932576040516332ff4e5f60e11b815260040160405180910390fd5b60028101546040517fadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc623891612973916001600160a01b03909116908590614887565b60405180910390a160020180546001600160a01b0319166001600160a01b0392909216919091179055565b336129a7610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a069190614311565b6001600160a01b031614612a2d5760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612a545760405163b4fa3fb360e01b815260040160405180910390fd5b5f612a5d6134f7565b5460408051635c60da1b60e01b815290516001600160a01b0390921692507fd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a918391635c60da1b9160048083019260209291908290030181865afa158015612ac7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aeb9190614311565b83604051612afa929190614887565b60405180910390a1604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690612b2e908590600401613f08565b5f604051808303815f87803b158015612b45575f5ffd5b505af115801561146e573d5f5f3e3d5ffd5b5f5f612b61612c02565b6001600160a01b038581165f9081526003909201602090815260408084208785529091529091205416151591505092915050565b5f5160206153265f395f51905f525c15612bc257604051633ee5aeb560e01b815260040160405180910390fd5b6114fa60015f5160206153265f395f51905f525b90613990565b612be4611837565b156114fa5760405163d93c066560e01b815260040160405180910390fd5b7fe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b10090565b5f5f612c3184613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612c5d5763f5a267f15f526004601cfd5b82612c6f5768fbb67fda52d4bfb8bf92505b80546001600160601b038116612cb25760019250838160601c0315612cc357600182015460601c8414612cc357600282015460601c8414612cc3575f9250612cc3565b81602052835f5260405f2054151592505b505092915050565b6001600160a01b038216612d7f576040516301a2dedf60e11b81526001600160a01b03861690630345bdbe90612d0990869088908690600401614906565b5f604051808303815f87803b158015612d20575f5ffd5b505af1158015612d32573d5f5f3e3d5ffd5b50505050826001600160a01b0316846001600160a01b0316866001600160a01b03165f5160206153465f395f51905f5284604051612d7291815260200190565b60405180910390a4611a7d565b6040516370a0823160e01b81525f906001600160a01b038416906370a0823190612dad908890600401613f08565b602060405180830381865afa158015612dc8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dec919061476c565b6040516301a2dedf60e11b81529091506001600160a01b03871690630345bdbe90612e1f90879089908790600401614906565b5f604051808303815f87803b158015612e36575f5ffd5b505af1158015612e48573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a08231886040518263ffffffff1660e01b8152600401612e7a9190613f08565b602060405180830381865afa158015612e95573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eb9919061476c565b612ec39190614874565b9050805f03612ee5576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b0316886001600160a01b03167ff731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f8158685604051612f3d929190918252602082015260400190565b60405180910390a4836001600160a01b0316866001600160a01b0316886001600160a01b03165f5160206153465f395f51905f5284604051612f8191815260200190565b60405180910390a450505050505050565b6114fa5f5f5160206153265f395f51905f52612bd6565b5f5f612fb484613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612fe05763f5a267f15f526004601cfd5b82612ff25768fbb67fda52d4bfb8bf92505b80546001600160601b03811682602052806130b4578160601c80613020578560601b845560019450506130f8565b85810361302d57506130f8565b600184015460601c8061304e578660601b60018601556001955050506130f8565b86810361305c5750506130f8565b600285015460601c8061307e578760601b6002870155600196505050506130f8565b87810361308d575050506130f8565b5f928352604080842060019055918352818320600290558252902060039055506007908117905b845f5260405f2080546130f657600191821c8083018255919450816130e2578560601b6003178455506130f8565b8560601b82850155826002018455506130f8565b505b50505092915050565b7fa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f50090565b6060306001600160a01b0384160361317b5760405162461bcd60e51b81526020600482015260146024820152733232b632b3b0ba32b1b0b636103a379039b2b63360611b60448201526064015b60405180910390fd5b5f5f835160208501865af43d6040519250808352805f602085013e8201602001604052806131a7573d82fd5b5092915050565b6131b66139aa565b5f6131bf61351b565b805460ff1916815590507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516131f99190613f08565b60405180910390a150565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b6132306139cf565b613239826139f4565b613241613a30565b5f61324a6134f7565b9050813060405161325a90613da1565b613265929190614887565b604051809103905ff08015801561327e573d5f5f3e3d5ffd5b5081546001600160a01b0319166001600160a01b03919091161790555050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061332457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166133185f5160206153065f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156114fa5760405163703e46dd60e11b815260040160405180910390fd5b5f61334b613101565b8054604051634766d28760e01b81529192506001600160a01b031690634766d2879061337b903390600401613f08565b5f6040518083038186803b158015613391575f5ffd5b505afa15801561146e573d5f5f3e3d5ffd5b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156133fd575060408051601f3d908101601f191682019092526133fa9181019061476c565b60015b61341c5781604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f52811461344c57604051632a87526960e21b815260048101829052602401613172565b6109918383613a40565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114fa5760405163703e46dd60e11b815260040160405180910390fd5b61099183846001600160a01b031663a9059cbb85856040516024016134c592919061418d565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613a95565b7f644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae5820090565b7fcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f0330090565b5f5f61354a83613997565b905080548060a01b60a01c8060011c9350808260601c1517613585576001935083830154156135855760029350838301541561358557600393505b505050919050565b5f5f61359884613997565b90508281015460601c915068fbb67fda52d4bfb8bf821415820291506135bd8461353f565b83106131a757604051634e23d03560e01b815260040160405180910390fd5b5f5f6135e784612405565b90505f61366c604051806020016135fd90613dae565b601f1982820381018352601f9091011660405261361861182d565b604080516001600160a01b039092166020830152818101525f606082015260800160408051601f19818403018152908290526136579291602001614941565b60405160208183030381529060405286613afe565b8451909150156136f1575f816001600160a01b03168560405161368f9190614955565b5f604051808303815f865af19150503d805f81146136c8576040519150601f19603f3d011682016040523d82523d5f602084013e6136cd565b606091505b50509050806136ef57604051630337323560e31b815260040160405180910390fd5b505b806001600160a01b0316826001600160a01b0316146137235760405163169c822160e01b815260040160405180910390fd5b806001600160a01b03167f5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e8660405161375e91815260200190565b60405180910390a2949350505050565b5f613777612c02565b9050815f5b81811015611a7d5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8585838181106137ab576137ab61432c565b90506020020160208101906137c091906140f1565b6001600160a01b0316141580156137e957506137e785858381811061118f5761118f61432c565b155b15613807576040516318e9b75d60e01b815260040160405180910390fd5b60010161377c565b613817612bdc565b5f61382061351b565b805460ff1916600117815590507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131ec3390565b5f61193d8230613b0a565b5f5f61386b84613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be1983016138975763f5a267f15f526004601cfd5b826138a95768fbb67fda52d4bfb8bf92505b80546001600160601b038116806139235760019350848260601c036138e15760018301805484556002840180549091555f90556130f8565b84600184015460601c036139025760028301805460018501555f90556130f8565b84600284015460601c0361391b575f60028401556130f8565b5f93506130f8565b82602052845f5260405f2080548061393c5750506130f8565b60018360011c03925082600182031461396c578285015460601c8060601b60018303870155805f52508060405f20555b5083546001600160601b031916600192831b1782179093555f909255509392505050565b80825d5050565b63978aab926004525f9081526024902090565b6139b2611837565b6114fa57604051638dfc202b60e01b815260040160405180910390fd5b6139d7613b61565b6114fa57604051631afcd79f60e31b815260040160405180910390fd5b6139fc6139cf565b5f613a05613101565b80546001600160a01b0319166001600160a01b0384161781559050613a28613b7a565b61160f613b82565b613a386139cf565b6114fa613b82565b613a4982613b9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115613a8d576109918282613bf8565b61160f613c6a565b5f5f60205f8451602086015f885af180613ab4576040513d5f823e3d81fd5b50505f513d91508115613acb578060011415613ad8565b6001600160a01b0384163b155b15613af85783604051635274afe760e01b81526004016131729190613f08565b50505050565b5f6119e55f8484613c89565b5f604051825f5260ff600b53836020527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6040526055600b20601452806040525061d6945f52600160345350506017601e20919050565b5f613b6a613204565b54600160401b900460ff16919050565b6114fa6139cf565b613b8a6139cf565b5f613b9361351b565b805460ff1916905550565b806001600160a01b03163b5f03613bca5780604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051613c149190614955565b5f60405180830381855af49150503d805f8114613c4c576040519150601f19603f3d011682016040523d82523d5f602084013e613c51565b606091505b5091509150613c61858383613cf2565b95945050505050565b34156114fa5760405163b398979f60e01b815260040160405180910390fd5b5f6f67363d3d37363d34f03d5260086018f35f52816010805ff580613cb55763301164255f526004601cfd5b8060145261d6945f5260016034536017601e2091505f5f85516020870188855af1823b02613cea5763301164255f526004601cfd5b509392505050565b606082613d0757613d0282613d3e565b6119e5565b8151158015613d1e57506001600160a01b0384163b155b156131a75783604051639996b31560e01b81526004016131729190613f08565b805115613d4e5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b508054613d76906143ad565b5f825580601f10613d85575050565b601f0160209004905f5260205f2090810190613d679190613dbb565b61041c8061496183390190565b61054980614d7d83390190565b5b80821115613dcf575f8155600101613dbc565b5090565b6001600160a01b0381168114613d67575f5ffd5b5f5f5f60608486031215613df9575f5ffd5b8335613e0481613dd3565b92506020840135613e1481613dd3565b929592945050506040919091013590565b5f5f83601f840112613e35575f5ffd5b5081356001600160401b03811115613e4b575f5ffd5b6020830191508360208260051b8501011115613e65575f5ffd5b9250929050565b5f5f5f5f5f5f60608789031215613e81575f5ffd5b86356001600160401b03811115613e96575f5ffd5b613ea289828a01613e25565b90975095505060208701356001600160401b03811115613ec0575f5ffd5b613ecc89828a01613e25565b90955093505060408701356001600160401b03811115613eea575f5ffd5b613ef689828a01613e25565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b5f5f5f60608486031215613f2e575f5ffd5b8335613f3981613dd3565b95602085013595506040909401359392505050565b5f5f60408385031215613f5f575f5ffd5b8235613f6a81613dd3565b91506020830135613f7a81613dd3565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215613faa575f5ffd5b8235613fb581613dd3565b915060208301356001600160401b03811115613fcf575f5ffd5b8301601f81018513613fdf575f5ffd5b80356001600160401b03811115613ff857613ff8613f85565b604051601f8201601f19908116603f011681016001600160401b038111828210171561402657614026613f85565b60405281815282820160200187101561403d575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f6040838503121561406d575f5ffd5b823561407881613dd3565b946020939093013593505050565b5f5f60408385031215614097575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156140e65783516001600160a01b03168352602093840193909201916001016140bf565b509095945050505050565b5f60208284031215614101575f5ffd5b81356119e581613dd3565b5f6020828403121561411c575f5ffd5b5035919050565b5f5f5f5f60408587031215614136575f5ffd5b84356001600160401b0381111561414b575f5ffd5b61415787828801613e25565b90955093505060208501356001600160401b03811115614175575f5ffd5b61418187828801613e25565b95989497509550505050565b6001600160a01b03929092168252602082015260400190565b5f5f5f604084860312156141b8575f5ffd5b83356141c381613dd3565b925060208401356001600160401b038111156141dd575f5ffd5b6141e986828701613e25565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602080825282516001600160a01b039081168383015290830151166040808301919091528201516001600160601b03166060808301919091528201516080808301525f9061427560a08401826141f6565b949350505050565b602081525f6119e560208301846141f6565b5f5f5f5f606085870312156142a2575f5ffd5b84356001600160401b038111156142b7575f5ffd5b6142c387828801613e25565b90989097506020870135966040013595509350505050565b9182526001600160a01b0316602082015260400190565b5f60208284031215614302575f5ffd5b815180151581146119e5575f5ffd5b5f60208284031215614321575f5ffd5b81516119e581613dd3565b634e487b7160e01b5f52603260045260245ffd5b5f8235607e19833603018112614354575f5ffd5b9190910192915050565b6001600160601b0381168114613d67575f5ffd5b5f60208284031215614382575f5ffd5b81356119e58161435e565b80546001600160a01b0319166001600160a01b0392909216919091179055565b600181811c908216806143c157607f821691505b6020821081036143df57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561099157805f5260205f20601f840160051c8101602085101561440a5750805b601f840160051c820191505b81811015611a7d575f8155600101614416565b6001600160401b0383111561444057614440613f85565b6144548361444e83546143ad565b836143e5565b5f601f841160018114614485575f851561446e5750838201355b5f19600387901b1c1916600186901b178355611a7d565b5f83815260208120601f198716915b828110156144b45786850135825560209485019460019092019101614494565b50868210156144d0575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81356144ed81613dd3565b6144f7818361438d565b5060018101602083013561450a81613dd3565b614514818361438d565b5060408301356145238161435e565b81546001600160a01b031660a09190911b6001600160a01b031916179055606082013536839003601e19018112614558575f5ffd5b820180356001600160401b0381111561456f575f5ffd5b602082019150803603821315614583575f5ffd5b613af8818360028601614429565b8183526020830192505f815f5b848110156145cf5781356145b181613dd3565b6001600160a01b03168652602095860195919091019060010161459e565b5093949350505050565b8183525f6001600160fb1b038311156145f0575f5ffd5b8260051b80836020870137939093016020019392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b606081525f61464460608301888a614591565b82810360208401526146578187896145d9565b83810360408501528481529050602080820190600586901b830101865f36829003607e19015b8882101561475a57858403601f19018552823581811261469b575f5ffd5b8a0180356146a881613dd3565b6001600160a01b0316855260208101356146c181613dd3565b6001600160a01b0316602086015260408101356146dd8161435e565b6001600160601b03166040860152606081013536829003601e19018112614702575f5ffd5b016020810190356001600160401b0381111561471c575f5ffd5b80360382131561472a575f5ffd5b6080606087015261473f608087018284614609565b9550505060208301925060208501945060018201915061467d565b50919c9b505050505050505050505050565b5f6020828403121561477c575f5ffd5b5051919050565b5f815461478f816143ad565b8085526001821680156147a957600181146147c5576130f8565b60ff1983166020870152602082151560051b87010193506130f8565b845f5260205f205f5b838110156147f05781546020828a0101526001820191506020810190506147ce565b870160200194505050505092915050565b6001600160a01b03868116825260208201869052841660408201526001600160601b038316606082015260a0608082018190525f9061484290830184614783565b979650505050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561193d5761193d61484d565b8181038181111561193d5761193d61484d565b6001600160a01b0392831681529116602082015260400190565b602081525f614275602083018486614591565b5f5f604083850312156148c5575f5ffd5b82516148d081613dd3565b6020939093015192949293505050565b604081525f6148f3604083018688614591565b82810360208401526148428185876145d9565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f81518060208401855e5f93019283525090919050565b5f61427561494f838661492a565b8461492a565b5f6119e5828461492a56fe608060405234801561000f575f5ffd5b5060405161041c38038061041c83398101604081905261002e9161015a565b806001600160a01b038116610061575f604051631e4fbdf760e01b8152600401610058919061018b565b60405180910390fd5b61006a8161007b565b50610074826100ca565b505061019f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b5f036100f6578060405163211eb15960e21b8152600401610058919061018b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b80516001600160a01b0381168114610155575f5ffd5b919050565b5f5f6040838503121561016b575f5ffd5b6101748361013f565b91506101826020840161013f565b90509250929050565b6001600160a01b0391909116815260200190565b610270806101ac5f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c80633659cfe6146100595780635c60da1b1461006e578063715018a6146100915780638da5cb5b14610099578063f2fde38b146100a1575b5f5ffd5b61006c610067366004610222565b6100b4565b005b6001546001600160a01b03165b604051610088919061024f565b60405180910390f35b61006c6100c8565b61007b6100db565b61006c6100af366004610222565b6100e9565b6100bc61012c565b6100c58161015e565b50565b6100d061012c565b6100d95f6101d3565b565b5f546001600160a01b031690565b6100f161012c565b6001600160a01b038116610123575f604051631e4fbdf760e01b815260040161011a919061024f565b60405180910390fd5b6100c5816101d3565b336101356100db565b6001600160a01b0316146100d9573360405163118cdaa760e01b815260040161011a919061024f565b806001600160a01b03163b5f0361018a578060405163211eb15960e21b815260040161011a919061024f565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610232575f5ffd5b81356001600160a01b0381168114610248575f5ffd5b9392505050565b6001600160a01b039190911681526020019056fea164736f6c634300081c000a60a06040526040516105493803806105498339810160408190526100229161033d565b61002c828261003e565b506001600160a01b0316608052610442565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e491906103ff565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610418565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906103ff565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610418565b60605f5f846001600160a01b031684604051610217919061042c565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610418565b50805b9392505050565b8051156102f55780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b0381168114610324575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561034e575f5ffd5b6103578361030e565b60208401519092506001600160401b03811115610372575f5ffd5b8301601f81018513610382575f5ffd5b80516001600160401b0381111561039b5761039b610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103c9576103c9610329565b6040528181528282016020018710156103e0575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f6020828403121561040f575f5ffd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160f26104575f395f601d015260f25ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f5f375f5f365f845af43d5f5f3e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f5ffd5b81516001600160a01b038116811460de575f5ffd5b939250505056fea164736f6c634300081c000a832251a720f920327ebb0030fe996a27a683ebfc8003fe770d2131d205e231828b9348858251a55a2d12c35d356747690c724366409d6da2251f3fe26718d41d360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0093ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cba164736f6c634300081c000a","sourceMap":"932:46727:39:-:0;;;1171:4:1;1128:48;;11121:53:39;;;;;;;;;-1:-1:-1;11145:22:39;:20;:22::i;:::-;932:46727;;7711:422:0;8870:21;7900:15;;;;;;;7896:76;;;7938:23;;-1:-1:-1;;;7938:23:0;;;;;;;;;;;7896:76;7985:14;;-1:-1:-1;;;;;7985:14:0;;;:34;7981:146;;8035:33;;-1:-1:-1;;;;;;8035:33:0;-1:-1:-1;;;;;8035:33:0;;;;;8087:29;;158:50:43;;;8087:29:0;;146:2:43;131:18;8087:29:0;;;;;;;7981:146;7760:373;7711:422::o;14:200:43:-;932:46727:39;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"6080604052600436106101c2575f3560e01c80630345bdbe146101cd57806303c1288e146101ee57806308c732591461020d5780630bf5d35e14610237578063197f84f81461024a5780631becc420146102695780633d9d38671461027d5780633f4ba83a146102ab578063485cc955146102bf5780634f1ef286146102de57806352d1902d146102f1578063586097541461030557806359659e90146103245780635c975abb1461033857806360db28731461035c5780636c8bcb6a1461038857806375151b63146103a7578063760d0f9d146103c6578063770b69f6146103e55780637b0eb57d146104045780637f1a9904146104235780638322fff2146104505780638456cb5914610477578063886e89a51461048b578063922b8e221461049f57806395e12d61146104be578063a222dbbd146104dd578063a5116d9314610509578063a58dcc9514610529578063a783b50814610548578063ad3cb1cc1461055c578063ade78a1214610599578063b0b15c11146105b8578063b69fd599146105d7578063c8d9b28614610603578063c93d2b1d14610622578063cd00c53814610641578063de9d008d14610660578063e8d1f00f1461067f575f5ffd5b366101c957005b5f5ffd5b3480156101d8575f5ffd5b506101ec6101e7366004613de7565b61069e565b005b3480156101f9575f5ffd5b506101ec610208366004613e6c565b610996565b348015610218575f5ffd5b50610221610cd7565b60405161022e9190613f08565b60405180910390f35b6101ec610245366004613f1c565b610cf1565b348015610255575f5ffd5b506101ec610264366004613e6c565b61100e565b348015610274575f5ffd5b50610221611476565b348015610288575f5ffd5b5061029d5f5160206152e65f395f51905f5281565b60405190815260200161022e565b3480156102b6575f5ffd5b506101ec611493565b3480156102ca575f5ffd5b506101ec6102d9366004613f4e565b6114fc565b6101ec6102ec366004613f99565b6115f4565b3480156102fc575f5ffd5b5061029d611613565b348015610310575f5ffd5b506101ec61031f36600461405c565b61162e565b34801561032f575f5ffd5b5061022161182d565b348015610343575f5ffd5b5061034c611837565b604051901515815260200161022e565b348015610367575f5ffd5b5061037b610376366004614086565b61184b565b60405161022e91906140a6565b348015610393575f5ffd5b506102216103a23660046140f1565b611943565b3480156103b2575f5ffd5b5061034c6103c13660046140f1565b6119ec565b3480156103d1575f5ffd5b506101ec6103e036600461410c565b611a05565b3480156103f0575f5ffd5b506101ec6103ff366004614123565b611a84565b34801561040f575f5ffd5b506101ec61041e366004614123565b611ccb565b34801561042e575f5ffd5b5061044261043d366004613f1c565b611da9565b60405161022e92919061418d565b34801561045b575f5ffd5b5061022173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b348015610482575f5ffd5b506101ec611f01565b348015610496575f5ffd5b5061029d611f68565b3480156104aa575f5ffd5b506102216104b93660046140f1565b611f7e565b3480156104c9575f5ffd5b506101ec6104d83660046141a6565b611fac565b3480156104e8575f5ffd5b506104fc6104f736600461405c565b6122dd565b60405161022e9190614224565b348015610514575f5ffd5b5061029d5f5160206152c65f395f51905f5281565b348015610534575f5ffd5b5061022161054336600461410c565b612405565b348015610553575f5ffd5b5061022161240f565b348015610567575f5ffd5b5061058c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161022e919061427d565b3480156105a4575f5ffd5b506101ec6105b3366004614123565b61242a565b3480156105c3575f5ffd5b5061034c6105d23660046140f1565b61267d565b3480156105e2575f5ffd5b506105eb60c881565b6040516001600160601b03909116815260200161022e565b34801561060e575f5ffd5b506101ec61061d3660046140f1565b612693565b34801561062d575f5ffd5b506101ec61063c36600461428f565b6127bf565b34801561064c575f5ffd5b506101ec61065b3660046140f1565b6128a1565b34801561066b575f5ffd5b506101ec61067a3660046140f1565b61299e565b34801561068a575f5ffd5b5061034c61069936600461405c565b612b57565b6106a6612b95565b6106ae612bdc565b6106b6610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016106f09291906142db565b602060405180830381865afa15801561070b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061072f91906142f2565b61074c57604051631695365560e21b815260040160405180910390fd5b5f610755612c02565b90506107618185612c26565b61077e57604051631359be9560e11b815260040160405180910390fd5b61078b6004820184612c26565b156107a95760405163c6486ddf60e01b815260040160405180910390fd5b60058101546001600160a01b0316806107d557604051630d35236760e21b815260040160405180910390fd5b6001600160a01b038085165f908152600684016020526040902054811690821663240028e882156108065782610808565b865b6040518263ffffffff1660e01b81526004016108249190613f08565b602060405180830381865afa15801561083f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086391906142f2565b61088057604051632e0fe39f60e21b815260040160405180910390fd5b604051634b69571760e11b81525f906001600160a01b038416906396d2ae2e906108ae908a90600401613f08565b602060405180830381865afa1580156108c9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ed9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0384169063b7ca418b9061091c908490600401613f08565b602060405180830381865afa158015610937573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b91906142f2565b61097857604051635c5a136560e11b815260040160405180910390fd5b6109858782888589612ccb565b50505050610991612f92565b505050565b61099e610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016109c99190613f08565b5f6040518083038186803b1580156109df575f5ffd5b505afa1580156109f1573d5f5f3e3d5ffd5b505050505f6109fe612c02565b9050858281141580610a105750808514155b15610a2e5760405163512509d360e11b815260040160405180910390fd5b5f5b81811015610c8b575f898983818110610a4b57610a4b61432c565b9050602002016020810190610a6091906140f1565b6001600160a01b031603610a8757604051635f5d339960e01b815260040160405180910390fd5b868682818110610a9957610a9961432c565b905060200201355f03610abf5760405163080fa92760e31b815260040160405180910390fd5b5f858583818110610ad257610ad261432c565b9050602002810190610ae49190614340565b610af29060208101906140f1565b6001600160a01b03161480610b4357505f858583818110610b1557610b1561432c565b9050602002810190610b279190614340565b610b389060408101906020016140f1565b6001600160a01b0316145b80610b8b575060c8858583818110610b5d57610b5d61432c565b9050602002810190610b6f9190614340565b610b80906060810190604001614372565b6001600160601b0316115b15610ba9576040516306b7c75960e31b815260040160405180910390fd5b848482818110610bbb57610bbb61432c565b9050602002810190610bcd9190614340565b836003015f8b8b85818110610be457610be461432c565b9050602002016020810190610bf991906140f1565b6001600160a01b03166001600160a01b031681526020019081526020015f205f898985818110610c2b57610c2b61432c565b9050602002013581526020019081526020015f208181610c4b91906144e2565b905050610c82898983818110610c6357610c6361432c565b9050602002016020810190610c7891906140f1565b6004850190612fa9565b50600101610a30565b507f38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622888888888888604051610cc596959493929190614631565b60405180910390a15050505050505050565b5f5f610ce1613101565b546001600160a01b031692915050565b610cf9612bdc565b5f5160206152c65f395f51905f52610d0f610cd7565b6001600160a01b03166391d1485482336040518363ffffffff1660e01b8152600401610d3c9291906142db565b602060405180830381865afa158015610d57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7b91906142f2565b610d97576040516282b42960e81b815260040160405180910390fd5b5f610da0612c02565b90506001600160a01b038516610dc957604051635f5d339960e01b815260040160405180910390fd5b825f03610de95760405163080fa92760e31b815260040160405180910390fd5b835f03610e095760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038086165f908152600383016020908152604080832087845290915290208054909116610e50576040516317b428a360e01b815260040160405180910390fd5b5f6001600160a01b03871673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610ee5576040516370a0823160e01b81526001600160a01b038816906370a0823190610ea1903090600401613f08565b602060405180830381865afa158015610ebc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ee0919061476c565b610ee7565b475b905085811015610f0a57604051631e9acf1760e31b815260040160405180910390fd5b5f610f16888888611da9565b91505034811115610f3a57604051636a639da560e01b815260040160405180910390fd5b82546001840154604051610fbf926001600160a01b039081169263b14d361d60e01b92610f88928e928e9291811691600160a01b9091046001600160601b03169060028c0190602401614801565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613125565b5085886001600160a01b03167fdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa89604051610ffc91815260200190565b60405180910390a35050505050505050565b611016612b95565b61101e612bdc565b611026610cd7565b6001600160a01b03166391d148545f5160206152e65f395f51905f52336040518363ffffffff1660e01b81526004016110609291906142db565b602060405180830381865afa15801561107b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109f91906142f2565b6110bc57604051631695365560e21b815260040160405180910390fd5b8483811415806110cc5750808214155b156110ea5760405163512509d360e11b815260040160405180910390fd5b5f6110f3612c02565b60058101549091506001600160a01b03168061112257604051630d35236760e21b815260040160405180910390fd5b5f5b838110156114625761115d8a8a838181106111415761114161432c565b905060200201602081019061115691906140f1565b8490612c26565b61117a57604051631359be9560e11b815260040160405180910390fd5b6111ae88888381811061118f5761118f61432c565b90506020020160208101906111a491906140f1565b6004850190612c26565b156111cc5760405163c6486ddf60e01b815260040160405180910390fd5b5f836006015f8a8a858181106111e4576111e461432c565b90506020020160208101906111f991906140f1565b6001600160a01b03908116825260208201929092526040015f205481169150831663240028e8821561122b5782611252565b8a8a8581811061123d5761123d61432c565b905060200201602081019061125291906140f1565b6040518263ffffffff1660e01b815260040161126e9190613f08565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad91906142f2565b6112ca57604051632e0fe39f60e21b815260040160405180910390fd5b5f836001600160a01b03166396d2ae2e8d8d868181106112ec576112ec61432c565b905060200201602081019061130191906140f1565b6040518263ffffffff1660e01b815260040161131d9190613f08565b602060405180830381865afa158015611338573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061135c9190614311565b60405163b7ca418b60e01b81529091506001600160a01b0385169063b7ca418b9061138b908490600401613f08565b602060405180830381865afa1580156113a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ca91906142f2565b6113e757604051635c5a136560e11b815260040160405180910390fd5b6114588c8c858181106113fc576113fc61432c565b905060200201602081019061141191906140f1565b828c8c878181106114245761142461432c565b905060200201602081019061143991906140f1565b858c8c8981811061144c5761144c61432c565b90506020020135612ccb565b5050600101611124565b5050505061146e612f92565b505050505050565b5f5f611480612c02565b600201546001600160a01b031692915050565b61149b610cd7565b6001600160a01b0316635efcc07c336040518263ffffffff1660e01b81526004016114c69190613f08565b5f6040518083038186803b1580156114dc575f5ffd5b505afa1580156114ee573d5f5f3e3d5ffd5b505050506114fa6131ae565b565b5f611505613204565b805490915060ff600160401b82041615906001600160401b03165f8115801561152b5750825b90505f826001600160401b031660011480156115465750303b155b905081158015611554575080155b156115725760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561159b57845460ff60401b1916600160401b1785555b6115a58787613228565b83156115eb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6115fc61329e565b61160582613342565b61160f82826133a3565b5050565b5f61161c613456565b505f5160206153065f395f51905f5290565b611636612b95565b61163e610cd7565b6001600160a01b031663a47fbb2a336040518263ffffffff1660e01b81526004016116699190613f08565b5f6040518083038186803b15801561167f575f5ffd5b505afa158015611691573d5f5f3e3d5ffd5b505050505f61169e612c02565b90506001600160a01b0383166116c757604051635f5d339960e01b815260040160405180910390fd5b6116d46004820184612c26565b156116f25760405163c6486ddf60e01b815260040160405180910390fd5b60028101546001600160a01b031661171d576040516315bc61ef60e31b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038416016117bb5760028101546040515f916001600160a01b03169084908381818185875af1925050503d805f811461178e576040519150601f19603f3d011682016040523d82523d5f602084013e611793565b606091505b50509050806117b557604051633d2cec6f60e21b815260040160405180910390fd5b506117d7565b60028101546117d7906001600160a01b0385811691168461349f565b60028101546040516001600160a01b03858116927fb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a773981729899239261181c9290911690869061418d565b60405180910390a25061160f612f92565b5f5f610ce16134f7565b5f5f61184161351b565b5460ff1692915050565b60605f611856612c02565b90505f6118628261353f565b9050808510611884576040516392c4425960e01b815260040160405180910390fd5b8061188f8587614861565b11156118a25761189f8582614874565b93505b5f846001600160401b038111156118bb576118bb613f85565b6040519080825280602002602001820160405280156118e4578160200160208202803683370190505b5090505f5b85811015611937576119056118fe8289614861565b859061358d565b8282815181106119175761191761432c565b6001600160a01b03909216602092830291909101909101526001016118e9565b50925050505b92915050565b5f5f61194d612c02565b600501546001600160a01b031690508061197a57604051630d35236760e21b815260040160405180910390fd5b604051634b69571760e11b81526001600160a01b038216906396d2ae2e906119a6908690600401613f08565b602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190614311565b9392505050565b5f5f6119f6612c02565b90506119e56004820184612c26565b611a0d612bdc565b5f63c4d66de860e01b30604051602401611a279190613f08565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505f611a6683836135dc565b90505f611a71612c02565b9050611a7d8183612fa9565b5050505050565b611a8c610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b8152600401611ab79190613f08565b5f6040518083038186803b158015611acd575f5ffd5b505afa158015611adf573d5f5f3e3d5ffd5b508592505050818114611b055760405163512509d360e11b815260040160405180910390fd5b5f611b0e612c02565b90505f5b828110156115eb575f878783818110611b2d57611b2d61432c565b9050602002016020810190611b4291906140f1565b90505f868684818110611b5757611b5761432c565b9050602002016020810190611b6c91906140f1565b90506001600160a01b038216611b9557604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03811615801590611c1e5750816001600160a01b0316816001600160a01b03166338d52e0f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c129190614311565b6001600160a01b031614155b15611c3c57604051633cf654ef60e01b815260040160405180910390fd5b6001600160a01b038083165f8181526006870160205260409081902054905191927f8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb620192611c8e92909116908590614887565b60405180910390a26001600160a01b039182165f908152600685016020526040902080546001600160a01b03191691909216179055600101611b12565b611cd5848461376e565b5f611cde612c02565b9050815f5b818110156115eb57611d008585838181106111415761114161432c565b611d1d57604051631359be9560e11b815260040160405180910390fd5b848482818110611d2f57611d2f61432c565b9050602002016020810190611d4491906140f1565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b8152600401611d719291906148a1565b5f604051808303815f87803b158015611d88575f5ffd5b505af1158015611d9a573d5f5f3e3d5ffd5b50505050806001019050611ce3565b5f5f5f611db4612c02565b90506001600160a01b038616611ddd57604051635f5d339960e01b815260040160405180910390fd5b835f03611dfd5760405163080fa92760e31b815260040160405180910390fd5b845f03611e1d5760405163d11b25af60e01b815260040160405180910390fd5b6001600160a01b038087165f908152600383016020908152604080832088845290915290208054909116611e64576040516317b428a360e01b815260040160405180910390fd5b80546001820154604051630bbfe4bf60e41b81526001600160a01b039283169263bbfe4bf092611eb5928c928c9290811691600160a01b9091046001600160601b0316906002890190600401614801565b6040805180830381865afa158015611ecf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ef391906148b4565b935093505050935093915050565b611f09610cd7565b6001600160a01b031663bf4019ec336040518263ffffffff1660e01b8152600401611f349190613f08565b5f6040518083038186803b158015611f4a575f5ffd5b505afa158015611f5c573d5f5f3e3d5ffd5b505050506114fa61380f565b5f611f79611f74612c02565b61353f565b905090565b5f611f87612c02565b6001600160a01b039283165f9081526006919091016020526040902054909116919050565b611fb4612b95565b611fbc612bdc565b5f611fc5612c02565b9050611fd18185612c26565b611fee57604051631359be9560e11b815260040160405180910390fd5b815f5b818110156122d2575f85858381811061200c5761200c61432c565b905060200201602081019061202191906140f1565b90506120306004850182612c26565b1561204e5760405163c6486ddf60e01b815260040160405180910390fd5b6001600160a01b038082165f908152600686016020526040902054168061208857604051633bc9491b60e11b815260040160405180910390fd5b6040516370a0823160e01b81525f906001600160a01b038416906370a08231906120b6908c90600401613f08565b602060405180830381865afa1580156120d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f5919061476c565b905080156122c4576040516370a0823160e01b81525f906001600160a01b038416906370a082319061212b908d90600401613f08565b602060405180830381865afa158015612146573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216a919061476c565b604051635f9bb63d60e11b81529091506001600160a01b038b169063bf376c7a9061219b908790869060040161418d565b5f604051808303815f87803b1580156121b2575f5ffd5b505af11580156121c4573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a082318d6040518263ffffffff1660e01b81526004016121f69190613f08565b602060405180830381865afa158015612211573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612235919061476c565b61223f9190614874565b9050805f03612261576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b03168c6001600160a01b03167ffc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc69051486856040516122b9929190918252602082015260400190565b60405180910390a450505b836001019350505050611ff1565b505050610991612f92565b604080516080810182525f8082526020820181905291810182905260608082015290612307612c02565b6001600160a01b038581165f90815260038301602090815260408083208884528252918290208251608081018452815485168152600182015494851692810192909252600160a01b9093046001600160601b031691810191909152600282018054939450909260608401919061237c906143ad565b80601f01602080910402602001604051908101604052809291908181526020018280546123a8906143ad565b80156123f35780601f106123ca576101008083540402835291602001916123f3565b820191905f5260205f20905b8154815290600101906020018083116123d657829003601f168201915b50505050508152505091505092915050565b5f61193d82613855565b5f612418612c02565b600501546001600160a01b0316919050565b612432610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b815260040161245d9190613f08565b5f6040518083038186803b158015612473575f5ffd5b505afa158015612485573d5f5f3e3d5ffd5b505050505f612492612c02565b9050838281146124b55760405163512509d360e11b815260040160405180910390fd5b5f5b81811015612637575f8787838181106124d2576124d261432c565b90506020020160208101906124e791906140f1565b90506001600160a01b03811661251057604051635f5d339960e01b815260040160405180910390fd5b8585838181106125225761252261432c565b905060200201355f036125485760405163080fa92760e31b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120818888868181106125745761257461432c565b602090810292909201358352508101919091526040015f20546001600160a01b0316036125b4576040516317b428a360e01b815260040160405180910390fd5b6001600160a01b0381165f9081526003850160205260408120908787858181106125e0576125e061432c565b602090810292909201358352508101919091526040015f90812080546001600160a01b0319168155600181018290559061261d6002830182613d6a565b5061262d90506004850182613860565b50506001016124b7565b507f1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b8686868660405161266d94939291906148e0565b60405180910390a1505050505050565b5f5f612687612c02565b90506119e58184612c26565b3361269c610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126d7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126fb9190614311565b6001600160a01b0316146127225760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612749576040516371b06ceb60e11b815260040160405180910390fd5b5f612752612c02565b60058101546040519192507fd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e9914313339051919191612794916001600160a01b0316908590614887565b60405180910390a160050180546001600160a01b0319166001600160a01b0392909216919091179055565b6127c9848461376e565b5f6127d2612c02565b90505f6127de8261353f565b9050808410612800576040516392c4425960e01b815260040160405180910390fd5b8061280b8486614861565b111561281e5761281b8482614874565b92505b5f5b838110156115eb5761283c6128358287614861565b849061358d565b6001600160a01b031663aaa238be88886040518363ffffffff1660e01b81526004016128699291906148a1565b5f604051808303815f87803b158015612880575f5ffd5b505af1158015612892573d5f5f3e3d5ffd5b50505050806001019050612820565b6128a9610cd7565b6001600160a01b03166333369d9c336040518263ffffffff1660e01b81526004016128d49190613f08565b5f6040518083038186803b1580156128ea575f5ffd5b505afa1580156128fc573d5f5f3e3d5ffd5b505050505f612909612c02565b90506001600160a01b038216612932576040516332ff4e5f60e11b815260040160405180910390fd5b60028101546040517fadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc623891612973916001600160a01b03909116908590614887565b60405180910390a160020180546001600160a01b0319166001600160a01b0392909216919091179055565b336129a7610cd7565b6001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a069190614311565b6001600160a01b031614612a2d5760405163ab1899a760e01b815260040160405180910390fd5b6001600160a01b038116612a545760405163b4fa3fb360e01b815260040160405180910390fd5b5f612a5d6134f7565b5460408051635c60da1b60e01b815290516001600160a01b0390921692507fd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a918391635c60da1b9160048083019260209291908290030181865afa158015612ac7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aeb9190614311565b83604051612afa929190614887565b60405180910390a1604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690612b2e908590600401613f08565b5f604051808303815f87803b158015612b45575f5ffd5b505af115801561146e573d5f5f3e3d5ffd5b5f5f612b61612c02565b6001600160a01b038581165f9081526003909201602090815260408084208785529091529091205416151591505092915050565b5f5160206153265f395f51905f525c15612bc257604051633ee5aeb560e01b815260040160405180910390fd5b6114fa60015f5160206153265f395f51905f525b90613990565b612be4611837565b156114fa5760405163d93c066560e01b815260040160405180910390fd5b7fe4e747da44afe6bc45062fa78d7d038abc167c5a78dee3046108b9cc47b1b10090565b5f5f612c3184613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612c5d5763f5a267f15f526004601cfd5b82612c6f5768fbb67fda52d4bfb8bf92505b80546001600160601b038116612cb25760019250838160601c0315612cc357600182015460601c8414612cc357600282015460601c8414612cc3575f9250612cc3565b81602052835f5260405f2054151592505b505092915050565b6001600160a01b038216612d7f576040516301a2dedf60e11b81526001600160a01b03861690630345bdbe90612d0990869088908690600401614906565b5f604051808303815f87803b158015612d20575f5ffd5b505af1158015612d32573d5f5f3e3d5ffd5b50505050826001600160a01b0316846001600160a01b0316866001600160a01b03165f5160206153465f395f51905f5284604051612d7291815260200190565b60405180910390a4611a7d565b6040516370a0823160e01b81525f906001600160a01b038416906370a0823190612dad908890600401613f08565b602060405180830381865afa158015612dc8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dec919061476c565b6040516301a2dedf60e11b81529091506001600160a01b03871690630345bdbe90612e1f90879089908790600401614906565b5f604051808303815f87803b158015612e36575f5ffd5b505af1158015612e48573d5f5f3e3d5ffd5b505050505f81846001600160a01b03166370a08231886040518263ffffffff1660e01b8152600401612e7a9190613f08565b602060405180830381865afa158015612e95573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eb9919061476c565b612ec39190614874565b9050805f03612ee5576040516319425d1160e31b815260040160405180910390fd5b846001600160a01b0316846001600160a01b0316886001600160a01b03167ff731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f8158685604051612f3d929190918252602082015260400190565b60405180910390a4836001600160a01b0316866001600160a01b0316886001600160a01b03165f5160206153465f395f51905f5284604051612f8191815260200190565b60405180910390a450505050505050565b6114fa5f5f5160206153265f395f51905f52612bd6565b5f5f612fb484613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be198301612fe05763f5a267f15f526004601cfd5b82612ff25768fbb67fda52d4bfb8bf92505b80546001600160601b03811682602052806130b4578160601c80613020578560601b845560019450506130f8565b85810361302d57506130f8565b600184015460601c8061304e578660601b60018601556001955050506130f8565b86810361305c5750506130f8565b600285015460601c8061307e578760601b6002870155600196505050506130f8565b87810361308d575050506130f8565b5f928352604080842060019055918352818320600290558252902060039055506007908117905b845f5260405f2080546130f657600191821c8083018255919450816130e2578560601b6003178455506130f8565b8560601b82850155826002018455506130f8565b505b50505092915050565b7fa5586bb7fe6c4d1a576fc53fefe6d5915940638d338769f6905020734977f50090565b6060306001600160a01b0384160361317b5760405162461bcd60e51b81526020600482015260146024820152733232b632b3b0ba32b1b0b636103a379039b2b63360611b60448201526064015b60405180910390fd5b5f5f835160208501865af43d6040519250808352805f602085013e8201602001604052806131a7573d82fd5b5092915050565b6131b66139aa565b5f6131bf61351b565b805460ff1916815590507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516131f99190613f08565b60405180910390a150565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b6132306139cf565b613239826139f4565b613241613a30565b5f61324a6134f7565b9050813060405161325a90613da1565b613265929190614887565b604051809103905ff08015801561327e573d5f5f3e3d5ffd5b5081546001600160a01b0319166001600160a01b03919091161790555050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061332457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166133185f5160206153065f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156114fa5760405163703e46dd60e11b815260040160405180910390fd5b5f61334b613101565b8054604051634766d28760e01b81529192506001600160a01b031690634766d2879061337b903390600401613f08565b5f6040518083038186803b158015613391575f5ffd5b505afa15801561146e573d5f5f3e3d5ffd5b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156133fd575060408051601f3d908101601f191682019092526133fa9181019061476c565b60015b61341c5781604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f52811461344c57604051632a87526960e21b815260048101829052602401613172565b6109918383613a40565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114fa5760405163703e46dd60e11b815260040160405180910390fd5b61099183846001600160a01b031663a9059cbb85856040516024016134c592919061418d565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613a95565b7f644210a929ca6ee03d33c1a1fe361b36b5a9728941782cd06b1139e4cae5820090565b7fcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f0330090565b5f5f61354a83613997565b905080548060a01b60a01c8060011c9350808260601c1517613585576001935083830154156135855760029350838301541561358557600393505b505050919050565b5f5f61359884613997565b90508281015460601c915068fbb67fda52d4bfb8bf821415820291506135bd8461353f565b83106131a757604051634e23d03560e01b815260040160405180910390fd5b5f5f6135e784612405565b90505f61366c604051806020016135fd90613dae565b601f1982820381018352601f9091011660405261361861182d565b604080516001600160a01b039092166020830152818101525f606082015260800160408051601f19818403018152908290526136579291602001614941565b60405160208183030381529060405286613afe565b8451909150156136f1575f816001600160a01b03168560405161368f9190614955565b5f604051808303815f865af19150503d805f81146136c8576040519150601f19603f3d011682016040523d82523d5f602084013e6136cd565b606091505b50509050806136ef57604051630337323560e31b815260040160405180910390fd5b505b806001600160a01b0316826001600160a01b0316146137235760405163169c822160e01b815260040160405180910390fd5b806001600160a01b03167f5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e8660405161375e91815260200190565b60405180910390a2949350505050565b5f613777612c02565b9050815f5b81811015611a7d5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8585838181106137ab576137ab61432c565b90506020020160208101906137c091906140f1565b6001600160a01b0316141580156137e957506137e785858381811061118f5761118f61432c565b155b15613807576040516318e9b75d60e01b815260040160405180910390fd5b60010161377c565b613817612bdc565b5f61382061351b565b805460ff1916600117815590507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131ec3390565b5f61193d8230613b0a565b5f5f61386b84613997565b6001600160a01b0390931692905068fbb67fda52d4bfb8be1983016138975763f5a267f15f526004601cfd5b826138a95768fbb67fda52d4bfb8bf92505b80546001600160601b038116806139235760019350848260601c036138e15760018301805484556002840180549091555f90556130f8565b84600184015460601c036139025760028301805460018501555f90556130f8565b84600284015460601c0361391b575f60028401556130f8565b5f93506130f8565b82602052845f5260405f2080548061393c5750506130f8565b60018360011c03925082600182031461396c578285015460601c8060601b60018303870155805f52508060405f20555b5083546001600160601b031916600192831b1782179093555f909255509392505050565b80825d5050565b63978aab926004525f9081526024902090565b6139b2611837565b6114fa57604051638dfc202b60e01b815260040160405180910390fd5b6139d7613b61565b6114fa57604051631afcd79f60e31b815260040160405180910390fd5b6139fc6139cf565b5f613a05613101565b80546001600160a01b0319166001600160a01b0384161781559050613a28613b7a565b61160f613b82565b613a386139cf565b6114fa613b82565b613a4982613b9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115613a8d576109918282613bf8565b61160f613c6a565b5f5f60205f8451602086015f885af180613ab4576040513d5f823e3d81fd5b50505f513d91508115613acb578060011415613ad8565b6001600160a01b0384163b155b15613af85783604051635274afe760e01b81526004016131729190613f08565b50505050565b5f6119e55f8484613c89565b5f604051825f5260ff600b53836020527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6040526055600b20601452806040525061d6945f52600160345350506017601e20919050565b5f613b6a613204565b54600160401b900460ff16919050565b6114fa6139cf565b613b8a6139cf565b5f613b9361351b565b805460ff1916905550565b806001600160a01b03163b5f03613bca5780604051634c9c8ce360e01b81526004016131729190613f08565b5f5160206153065f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051613c149190614955565b5f60405180830381855af49150503d805f8114613c4c576040519150601f19603f3d011682016040523d82523d5f602084013e613c51565b606091505b5091509150613c61858383613cf2565b95945050505050565b34156114fa5760405163b398979f60e01b815260040160405180910390fd5b5f6f67363d3d37363d34f03d5260086018f35f52816010805ff580613cb55763301164255f526004601cfd5b8060145261d6945f5260016034536017601e2091505f5f85516020870188855af1823b02613cea5763301164255f526004601cfd5b509392505050565b606082613d0757613d0282613d3e565b6119e5565b8151158015613d1e57506001600160a01b0384163b155b156131a75783604051639996b31560e01b81526004016131729190613f08565b805115613d4e5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b508054613d76906143ad565b5f825580601f10613d85575050565b601f0160209004905f5260205f2090810190613d679190613dbb565b61041c8061496183390190565b61054980614d7d83390190565b5b80821115613dcf575f8155600101613dbc565b5090565b6001600160a01b0381168114613d67575f5ffd5b5f5f5f60608486031215613df9575f5ffd5b8335613e0481613dd3565b92506020840135613e1481613dd3565b929592945050506040919091013590565b5f5f83601f840112613e35575f5ffd5b5081356001600160401b03811115613e4b575f5ffd5b6020830191508360208260051b8501011115613e65575f5ffd5b9250929050565b5f5f5f5f5f5f60608789031215613e81575f5ffd5b86356001600160401b03811115613e96575f5ffd5b613ea289828a01613e25565b90975095505060208701356001600160401b03811115613ec0575f5ffd5b613ecc89828a01613e25565b90955093505060408701356001600160401b03811115613eea575f5ffd5b613ef689828a01613e25565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b5f5f5f60608486031215613f2e575f5ffd5b8335613f3981613dd3565b95602085013595506040909401359392505050565b5f5f60408385031215613f5f575f5ffd5b8235613f6a81613dd3565b91506020830135613f7a81613dd3565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215613faa575f5ffd5b8235613fb581613dd3565b915060208301356001600160401b03811115613fcf575f5ffd5b8301601f81018513613fdf575f5ffd5b80356001600160401b03811115613ff857613ff8613f85565b604051601f8201601f19908116603f011681016001600160401b038111828210171561402657614026613f85565b60405281815282820160200187101561403d575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f6040838503121561406d575f5ffd5b823561407881613dd3565b946020939093013593505050565b5f5f60408385031215614097575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156140e65783516001600160a01b03168352602093840193909201916001016140bf565b509095945050505050565b5f60208284031215614101575f5ffd5b81356119e581613dd3565b5f6020828403121561411c575f5ffd5b5035919050565b5f5f5f5f60408587031215614136575f5ffd5b84356001600160401b0381111561414b575f5ffd5b61415787828801613e25565b90955093505060208501356001600160401b03811115614175575f5ffd5b61418187828801613e25565b95989497509550505050565b6001600160a01b03929092168252602082015260400190565b5f5f5f604084860312156141b8575f5ffd5b83356141c381613dd3565b925060208401356001600160401b038111156141dd575f5ffd5b6141e986828701613e25565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602080825282516001600160a01b039081168383015290830151166040808301919091528201516001600160601b03166060808301919091528201516080808301525f9061427560a08401826141f6565b949350505050565b602081525f6119e560208301846141f6565b5f5f5f5f606085870312156142a2575f5ffd5b84356001600160401b038111156142b7575f5ffd5b6142c387828801613e25565b90989097506020870135966040013595509350505050565b9182526001600160a01b0316602082015260400190565b5f60208284031215614302575f5ffd5b815180151581146119e5575f5ffd5b5f60208284031215614321575f5ffd5b81516119e581613dd3565b634e487b7160e01b5f52603260045260245ffd5b5f8235607e19833603018112614354575f5ffd5b9190910192915050565b6001600160601b0381168114613d67575f5ffd5b5f60208284031215614382575f5ffd5b81356119e58161435e565b80546001600160a01b0319166001600160a01b0392909216919091179055565b600181811c908216806143c157607f821691505b6020821081036143df57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561099157805f5260205f20601f840160051c8101602085101561440a5750805b601f840160051c820191505b81811015611a7d575f8155600101614416565b6001600160401b0383111561444057614440613f85565b6144548361444e83546143ad565b836143e5565b5f601f841160018114614485575f851561446e5750838201355b5f19600387901b1c1916600186901b178355611a7d565b5f83815260208120601f198716915b828110156144b45786850135825560209485019460019092019101614494565b50868210156144d0575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81356144ed81613dd3565b6144f7818361438d565b5060018101602083013561450a81613dd3565b614514818361438d565b5060408301356145238161435e565b81546001600160a01b031660a09190911b6001600160a01b031916179055606082013536839003601e19018112614558575f5ffd5b820180356001600160401b0381111561456f575f5ffd5b602082019150803603821315614583575f5ffd5b613af8818360028601614429565b8183526020830192505f815f5b848110156145cf5781356145b181613dd3565b6001600160a01b03168652602095860195919091019060010161459e565b5093949350505050565b8183525f6001600160fb1b038311156145f0575f5ffd5b8260051b80836020870137939093016020019392505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b606081525f61464460608301888a614591565b82810360208401526146578187896145d9565b83810360408501528481529050602080820190600586901b830101865f36829003607e19015b8882101561475a57858403601f19018552823581811261469b575f5ffd5b8a0180356146a881613dd3565b6001600160a01b0316855260208101356146c181613dd3565b6001600160a01b0316602086015260408101356146dd8161435e565b6001600160601b03166040860152606081013536829003601e19018112614702575f5ffd5b016020810190356001600160401b0381111561471c575f5ffd5b80360382131561472a575f5ffd5b6080606087015261473f608087018284614609565b9550505060208301925060208501945060018201915061467d565b50919c9b505050505050505050505050565b5f6020828403121561477c575f5ffd5b5051919050565b5f815461478f816143ad565b8085526001821680156147a957600181146147c5576130f8565b60ff1983166020870152602082151560051b87010193506130f8565b845f5260205f205f5b838110156147f05781546020828a0101526001820191506020810190506147ce565b870160200194505050505092915050565b6001600160a01b03868116825260208201869052841660408201526001600160601b038316606082015260a0608082018190525f9061484290830184614783565b979650505050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561193d5761193d61484d565b8181038181111561193d5761193d61484d565b6001600160a01b0392831681529116602082015260400190565b602081525f614275602083018486614591565b5f5f604083850312156148c5575f5ffd5b82516148d081613dd3565b6020939093015192949293505050565b604081525f6148f3604083018688614591565b82810360208401526148428185876145d9565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f81518060208401855e5f93019283525090919050565b5f61427561494f838661492a565b8461492a565b5f6119e5828461492a56fe608060405234801561000f575f5ffd5b5060405161041c38038061041c83398101604081905261002e9161015a565b806001600160a01b038116610061575f604051631e4fbdf760e01b8152600401610058919061018b565b60405180910390fd5b61006a8161007b565b50610074826100ca565b505061019f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b5f036100f6578060405163211eb15960e21b8152600401610058919061018b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b80516001600160a01b0381168114610155575f5ffd5b919050565b5f5f6040838503121561016b575f5ffd5b6101748361013f565b91506101826020840161013f565b90509250929050565b6001600160a01b0391909116815260200190565b610270806101ac5f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c80633659cfe6146100595780635c60da1b1461006e578063715018a6146100915780638da5cb5b14610099578063f2fde38b146100a1575b5f5ffd5b61006c610067366004610222565b6100b4565b005b6001546001600160a01b03165b604051610088919061024f565b60405180910390f35b61006c6100c8565b61007b6100db565b61006c6100af366004610222565b6100e9565b6100bc61012c565b6100c58161015e565b50565b6100d061012c565b6100d95f6101d3565b565b5f546001600160a01b031690565b6100f161012c565b6001600160a01b038116610123575f604051631e4fbdf760e01b815260040161011a919061024f565b60405180910390fd5b6100c5816101d3565b336101356100db565b6001600160a01b0316146100d9573360405163118cdaa760e01b815260040161011a919061024f565b806001600160a01b03163b5f0361018a578060405163211eb15960e21b815260040161011a919061024f565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610232575f5ffd5b81356001600160a01b0381168114610248575f5ffd5b9392505050565b6001600160a01b039190911681526020019056fea164736f6c634300081c000a60a06040526040516105493803806105498339810160408190526100229161033d565b61002c828261003e565b506001600160a01b0316608052610442565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e491906103ff565b826101fb565b505050565b6100f761026e565b5050565b806001600160a01b03163b5f036101305780604051631933b43b60e21b81526004016101279190610418565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101cd91906103ff565b9050806001600160a01b03163b5f036100f75780604051634c9c8ce360e01b81526004016101279190610418565b60605f5f846001600160a01b031684604051610217919061042c565b5f60405180830381855af49150503d805f811461024f576040519150601f19603f3d011682016040523d82523d5f602084013e610254565b606091505b50909250905061026585838361028f565b95945050505050565b341561028d5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102a45761029f826102e5565b6102de565b81511580156102bb57506001600160a01b0384163b155b156102db5783604051639996b31560e01b81526004016101279190610418565b50805b9392505050565b8051156102f55780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b0381168114610324575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561034e575f5ffd5b6103578361030e565b60208401519092506001600160401b03811115610372575f5ffd5b8301601f81018513610382575f5ffd5b80516001600160401b0381111561039b5761039b610329565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103c9576103c9610329565b6040528181528282016020018710156103e0575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f6020828403121561040f575f5ffd5b6102de8261030e565b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160f26104575f395f601d015260f25ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f5f375f5f365f845af43d5f5f3e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f5ffd5b81516001600160a01b038116811460de575f5ffd5b939250505056fea164736f6c634300081c000a832251a720f920327ebb0030fe996a27a683ebfc8003fe770d2131d205e231828b9348858251a55a2d12c35d356747690c724366409d6da2251f3fe26718d41d360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0093ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cba164736f6c634300081c000a","sourceMap":"932:46727:39:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32676:1036;;;;;;;;;;-1:-1:-1;32676:1036:39;;;;;:::i;:::-;;:::i;:::-;;17702:947;;;;;;;;;;-1:-1:-1;17702:947:39;;;;;:::i;:::-;;:::i;1567:173:42:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;22092:1117:39;;;;;;:::i;:::-;;:::i;35337:1375::-;;;;;;;;;;-1:-1:-1;35337:1375:39;;;;;:::i;:::-;;:::i;45946:168::-;;;;;;;;;;;;;:::i;3691:94::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3691:94:39;;;;;4350:25:43;;;4338:2;4323:18;3691:94:39;4204:177:43;3770:104:42;;;;;;;;;;;;;:::i;11457:154:39:-;;;;;;;;;;-1:-1:-1;11457:154:39;;;;;:::i;:::-;;:::i;4161:214:1:-;;;;;;:::i;:::-;;:::i;3708:134::-;;;;;;;;;;;;;:::i;23750:676:39:-;;;;;;;;;;-1:-1:-1;23750:676:39;;;;;:::i;:::-;;:::i;4017:149:32:-;;;;;;;;;;;;;:::i;2692:145:3:-;;;;;;;;;;;;;:::i;:::-;;;6532:14:43;;6525:22;6507:41;;6495:2;6480:18;2692:145:3;6367:187:43;44397:586:39;;;;;;;;;;-1:-1:-1;44397:586:39;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;29890:531::-;;;;;;;;;;-1:-1:-1;29890:531:39;;;;;:::i;:::-;;:::i;46387:194::-;;;;;;;;;;-1:-1:-1;46387:194:39;;;;;:::i;:::-;;:::i;11754:340::-;;;;;;;;;;-1:-1:-1;11754:340:39;;;;;:::i;:::-;;:::i;28163:764::-;;;;;;;;;;-1:-1:-1;28163:764:39;;;;;:::i;:::-;;:::i;14090:552::-;;;;;;;;;;-1:-1:-1;14090:552:39;;;;;:::i;:::-;;:::i;43305:701::-;;;;;;;;;;-1:-1:-1;43305:701:39;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;475:72:41:-;;;;;;;;;;;;505:42;475:72;;3552:98:42;;;;;;;;;;;;;:::i;45102:140:39:-;;;;;;;;;;;;;:::i;29169:139::-;;;;;;;;;;-1:-1:-1;29169:139:39;;;;;:::i;:::-;;:::i;41581:1079::-;;;;;;;;;;-1:-1:-1;41581:1079:39;;;;;:::i;:::-;;:::i;45518:232::-;;;;;;;;;;-1:-1:-1;45518:232:39;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3530:92::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3530:92:39;;5140:142:32;;;;;;;;;;-1:-1:-1;5140:142:32;;;;;:::i;:::-;;:::i;26244:130:39:-;;;;;;;;;;;;;:::i;1819:58:1:-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1819:58:1;;;;;;;;;;;;:::i;20659:841:39:-;;;;;;;;;;-1:-1:-1;20659:841:39;;;;;:::i;:::-;;:::i;47132:211::-;;;;;;;;;;-1:-1:-1;47132:211:39;;;;;:::i;:::-;;:::i;3395:49::-;;;;;;;;;;;;3441:3;3395:49;;;;;-1:-1:-1;;;;;11893:31:43;;;11875:50;;11863:2;11848:18;3395:49:39;11731:200:43;25756:391:39;;;;;;;;;;-1:-1:-1;25756:391:39;;;;;:::i;:::-;;:::i;12843:554::-;;;;;;;;;;-1:-1:-1;12843:554:39;;;;;:::i;:::-;;:::i;24798:352::-;;;;;;;;;;-1:-1:-1;24798:352:39;;;;;:::i;:::-;;:::i;4550:390:32:-;;;;;;;;;;-1:-1:-1;4550:390:32;;;;;:::i;:::-;;:::i;46587:255:39:-;;;;;;;;;;-1:-1:-1;46587:255:39;;;;;:::i;:::-;;:::i;32676:1036::-;1335:21:4;:19;:21::i;:::-;2316:19:3::1;:17;:19::i;:::-;32804:14:39::2;:12;:14::i;:::-;-1:-1:-1::0;;;;;32804:22:39::2;;-1:-1:-1::0;;;;;;;;;;;32856:10:39::2;32804:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32799:95;;32876:18;;-1:-1:-1::0;;;32876:18:39::2;;;;;;;;;;;32799:95;32905:29;32937:25;:23;:25::i;:::-;32905:57:::0;-1:-1:-1;32977:35:39::2;32905:57:::0;33006:5;32977:28:::2;:35::i;:::-;32972:70;;33021:21;;-1:-1:-1::0;;;33021:21:39::2;;;;;;;;;;;32972:70;33056:33;:17;::::0;::::2;33083:5:::0;33056:26:::2;:33::i;:::-;33052:69;;;33098:23;;-1:-1:-1::0;;;33098:23:39::2;;;;;;;;;;;33052:69;33152:20;::::0;::::2;::::0;-1:-1:-1;;;;;33152:20:39::2;::::0;33182:62:::2;;33218:26;;-1:-1:-1::0;;;33218:26:39::2;;;;;;;;;;;33182:62;-1:-1:-1::0;;;;;33273:24:39;;::::2;33255:15;33273:24:::0;;;:17:::2;::::0;::::2;:24;::::0;;;;;;::::2;::::0;33312:47;::::2;;33360:21:::0;;:39:::2;;33392:7;33360:39;;;33384:5;33360:39;33312:88;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33307:128;;33409:26;;-1:-1:-1::0;;;33409:26:39::2;;;;;;;;;;;33307:128;33468:61;::::0;-1:-1:-1;;;33468:61:39;;33446:19:::2;::::0;-1:-1:-1;;;;;33468:54:39;::::2;::::0;::::2;::::0;:61:::2;::::0;33523:5;;33468:61:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33544:57;::::0;-1:-1:-1;;;33544:57:39;;33446:83;;-1:-1:-1;;;;;;33544:44:39;::::2;::::0;::::2;::::0;:57:::2;::::0;33446:83;;33544:57:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33539:95;;33610:24;;-1:-1:-1::0;;;33610:24:39::2;;;;;;;;;;;33539:95;33645:60;33662:5;33669:11;33682:5;33689:7;33698:6;33645:16;:60::i;:::-;32789:923;;;;1377:20:4::0;:18;:20::i;:::-;32676:1036:39;;;:::o;17702:947::-;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17851:29:39::1;17883:25;:23;:25::i;:::-;17851:57:::0;-1:-1:-1;17932:6:39;17959:21;;::::1;;::::0;:47:::1;;-1:-1:-1::0;17984:22:39;;::::1;;17959:47;17955:81;;;18015:21;;-1:-1:-1::0;;;18015:21:39::1;;;;;;;;;;;17955:81;18052:9;18047:539;18071:3;18067:1;:7;18047:539;;;18116:1;18095:6:::0;;18102:1;18095:9;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;18095:23:39::1;::::0;18091:62:::1;;18127:26;;-1:-1:-1::0;;;18127:26:39::1;;;;;;;;;;;18091:62;18171:8;;18180:1;18171:11;;;;;;;:::i;:::-;;;;;;;18186:1;18171:16:::0;18167:50:::1;;18196:21;;-1:-1:-1::0;;;18196:21:39::1;;;;;;;;;;;18167:50;18271:1;18235:7:::0;;18243:1;18235:10;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:24;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;;;;;18235:38:39::1;;:87;;;-1:-1:-1::0;18320:1:39::1;18277:7:::0;;18285:1;18277:10;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:31;::::0;;;;;::::1;;;:::i;:::-;-1:-1:-1::0;;;;;18277:45:39::1;;18235:87;:141;;;-1:-1:-1::0;3441:3:39::1;18326:7:::0;;18334:1;18326:10;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:27;::::0;;;;;::::1;;;:::i;:::-;-1:-1:-1::0;;;;;18326:50:39::1;;18235:141;18231:169;;;18385:15;;-1:-1:-1::0;;;18385:15:39::1;;;;;;;;;;;18231:169;18460:7;;18468:1;18460:10;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;18415:1;:18;;:29;18434:6;;18441:1;18434:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;18415:29:39::1;-1:-1:-1::0;;;;;18415:29:39::1;;;;;;;;;;;;:42;18445:8;;18454:1;18445:11;;;;;;;:::i;:::-;;;;;;;18415:42;;;;;;;;;;;:55;;;;;;:::i;:::-;;;;18484:32;18506:6;;18513:1;18506:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;18484:17;::::0;::::1;::::0;:21:::1;:32::i;:::-;-1:-1:-1::0;18558:3:39::1;;18047:539;;;;18601:41;18616:6;;18624:8;;18634:7;;18601:41;;;;;;;;;;;:::i;:::-;;;;;;;;17841:808;;17702:947:::0;;;;;;:::o;1567:173:42:-;1612:13;1637:33;1673:29;:27;:29::i;:::-;1719:14;-1:-1:-1;;;;;1719:14:42;;1567:173;-1:-1:-1;;1567:173:42:o;22092:1117:39:-;2316:19:3;:17;:19::i;:::-;-1:-1:-1;;;;;;;;;;;4036:14:42::1;:12;:14::i;:::-;-1:-1:-1::0;;;;;4036:22:42::1;;4059:4;4065:10;4036:40;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4031:68;;4085:14;;-1:-1:-1::0;;;4085:14:42::1;;;;;;;;;;;4031:68;22238:29:39::2;22270:25;:23;:25::i;:::-;22238:57:::0;-1:-1:-1;;;;;;22310:19:39;::::2;22306:58;;22338:26;;-1:-1:-1::0;;;22338:26:39::2;;;;;;;;;;;22306:58;22378:11;22393:1;22378:16:::0;22374:50:::2;;22403:21;;-1:-1:-1::0;;;22403:21:39::2;;;;;;;;;;;22374:50;22438:6;22448:1;22438:11:::0;22434:44:::2;;22458:20;;-1:-1:-1::0;;;22458:20:39::2;;;;;;;;;;;22434:44;-1:-1:-1::0;;;;;22518:25:39;;::::2;22489:26;22518:25:::0;;;:18:::2;::::0;::::2;:25;::::0;;;;;;;:38;;;;;;;;22570:20;;22518:38;;22570:20:::2;22566:66;;22613:19;;-1:-1:-1::0;;;22613:19:39::2;;;;;;;;;;;22566:66;22643:15;-1:-1:-1::0;;;;;22661:12:39;::::2;505:42:41;22661:12:39;:77;;22700:38;::::0;-1:-1:-1;;;22700:38:39;;-1:-1:-1;;;;;22700:23:39;::::2;::::0;::::2;::::0;:38:::2;::::0;22732:4:::2;::::0;22700:38:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22661:77;;;22676:21;22661:77;22643:95;;22762:6;22752:7;:16;22748:50;;;22777:21;;-1:-1:-1::0;;;22777:21:39::2;;;;;;;;;;;22748:50;22812:17;22833:40;22846:5;22853:6;22861:11;22833:12;:40::i;:::-;22809:64;;;22899:9;22887;:21;22883:57;;;22917:23;;-1:-1:-1::0;;;22917:23:39::2;;;;;;;;;;;22883:57;22980:20:::0;;;23075:27;::::2;::::0;23002:149:::2;::::0;22951:201:::2;::::0;-1:-1:-1;;;;;22980:20:39;;::::2;::::0;-1:-1:-1;;;23025:33:39;23002:149:::2;::::0;23060:5;;23067:6;;23075:27;;::::2;::::0;-1:-1:-1;;;23104:23:39;;::::2;-1:-1:-1::0;;;;;23104:23:39::2;::::0;23129:21:::2;::::0;::::2;::::0;23002:149:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;23002:149:39;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;23002:149:39::2;-1:-1:-1::0;;;;;;23002:149:39;;::::2;::::0;;;::::2;::::0;;;22951:28:::2;:201::i;:::-;;23190:11;23175:5;-1:-1:-1::0;;;;;23168:34:39::2;;23182:6;23168:34;;;;4350:25:43::0;;4338:2;4323:18;;4204:177;23168:34:39::2;;;;;;;;22228:981;;;;2345:1:3::1;22092:1117:39::0;;;:::o;35337:1375::-;1335:21:4;:19;:21::i;:::-;2316:19:3::1;:17;:19::i;:::-;35536:14:39::2;:12;:14::i;:::-;-1:-1:-1::0;;;;;35536:22:39::2;;-1:-1:-1::0;;;;;;;;;;;35588:10:39::2;35536:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;35531:95;;35608:18;;-1:-1:-1::0;;;35608:18:39::2;;;;;;;;;;;35531:95;35651:6:::0;35678:20;;::::2;;::::0;:45:::2;;-1:-1:-1::0;35702:21:39;;::::2;;35678:45;35674:79;;;35732:21;;-1:-1:-1::0;;;35732:21:39::2;;;;;;;;;;;35674:79;35764:29;35796:25;:23;:25::i;:::-;35851:20;::::0;::::2;::::0;35764:57;;-1:-1:-1;;;;;;35851:20:39::2;::::0;35881:62:::2;;35917:26;;-1:-1:-1::0;;;35917:26:39::2;;;;;;;;;;;35881:62;35959:9;35954:752;35978:3;35974:1;:7;35954:752;;;36003:39;36032:6;;36039:1;36032:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36003:1:::0;;:28:::2;:39::i;:::-;35998:74;;36051:21;;-1:-1:-1::0;;;36051:21:39::2;;;;;;;;;;;35998:74;36090:37;36117:6;;36124:1;36117:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36090:17;::::0;::::2;::::0;:26:::2;:37::i;:::-;36086:73;;;36136:23;;-1:-1:-1::0;;;36136:23:39::2;;;;;;;;;;;36086:73;36174:15;36192:1;:17;;:28;36210:6;;36217:1;36210:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;36192:28:39;;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;36192:28:39;;;::::2;::::0;-1:-1:-1;36239:47:39;::::2;;36287:21:::0;;:43:::2;;36323:7;36287:43;;;36311:6;;36318:1;36311:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36239:92;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36234:132;;36340:26;;-1:-1:-1::0;;;36340:26:39::2;;;;;;;;;;;36234:132;36381:19;36423:9;-1:-1:-1::0;;;;;36403:54:39::2;;36458:6;;36465:1;36458:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36403:65;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36487:57;::::0;-1:-1:-1;;;36487:57:39;;36381:87;;-1:-1:-1;;;;;;36487:44:39;::::2;::::0;::::2;::::0;:57:::2;::::0;36381:87;;36487:57:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36482:95;;36553:24;;-1:-1:-1::0;;;36553:24:39::2;;;;;;;;;;;36482:95;36592:72;36609:6;;36616:1;36609:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36620:11;36633:6;;36640:1;36633:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36644:7;36653;;36661:1;36653:10;;;;;;;:::i;:::-;;;;;;;36592:16;:72::i;:::-;-1:-1:-1::0;;36690:3:39::2;;35954:752;;;;35521:1191;;;1377:20:4::0;:18;:20::i;:::-;35337:1375:39;;;;;;:::o;45946:168::-;45998:7;46017:29;46049:25;:23;:25::i;:::-;46091:16;;;-1:-1:-1;;;;;46091:16:39;;45946:168;-1:-1:-1;;45946:168:39:o;3770:104:42:-;3808:14;:12;:14::i;:::-;-1:-1:-1;;;;;3808:27:42;;3836:10;3808:39;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3857:10;:8;:10::i;:::-;3770:104::o;11457:154:39:-;4158:30:0;4191:26;:24;:26::i;:::-;4302:15;;4158:59;;-1:-1:-1;4302:15:0;-1:-1:-1;;;4302:15:0;;;4301:16;;-1:-1:-1;;;;;4348:14:0;4279:19;4726:16;;:34;;;;;4746:14;4726:34;4706:54;;4770:17;4790:11;-1:-1:-1;;;;;4790:16:0;4805:1;4790:16;:50;;;;-1:-1:-1;4818:4:0;4810:25;:30;4790:50;4770:70;;4856:12;4855:13;:30;;;;;4873:12;4872:13;4855:30;4851:91;;;4908:23;;-1:-1:-1;;;4908:23:0;;;;;;;;;;;4851:91;4951:18;;-1:-1:-1;;;;;;4951:18:0;4968:1;4951:18;;;4979:67;;;;5013:22;;-1:-1:-1;;;;5013:22:0;-1:-1:-1;;;5013:22:0;;;4979:67;11551:53:39::1;11578:13;11593:10;11551:26;:53::i;:::-;5070:14:0::0;5066:101;;;5100:23;;-1:-1:-1;;;;5100:23:0;;;5142:14;;-1:-1:-1;23425:50:43;;5142:14:0;;23413:2:43;23398:18;5142:14:0;;;;;;;5066:101;4092:1081;;;;;11457:154:39;;:::o;4161:214:1:-;2655:13;:11;:13::i;:::-;4276:36:::1;4294:17;4276;:36::i;:::-;4322:46;4344:17;4363:4;4322:21;:46::i;:::-;4161:214:::0;;:::o;3708:134::-;3777:7;2926:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;;3708:134:1;:::o;23750:676:39:-;1335:21:4;:19;:21::i;:::-;4475:14:42::1;:12;:14::i;:::-;-1:-1:-1::0;;;;;4475:24:42::1;;4500:10;4475:36;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23845:29:39::2;23877:25;:23;:25::i;:::-;23845:57:::0;-1:-1:-1;;;;;;23917:19:39;::::2;23913:58;;23945:26;;-1:-1:-1::0;;;23945:26:39::2;;;;;;;;;;;23913:58;23985:33;:17;::::0;::::2;24012:5:::0;23985:26:::2;:33::i;:::-;23981:69;;;24027:23;;-1:-1:-1::0;;;24027:23:39::2;;;;;;;;;;;23981:69;24064:16;::::0;::::2;::::0;-1:-1:-1;;;;;24064:16:39::2;24060:65;;24103:22;;-1:-1:-1::0;;;24103:22:39::2;;;;;;;;;;;24060:65;-1:-1:-1::0;;;;;;;24140:12:39;::::2;::::0;24136:226:::2;;24195:16;::::0;::::2;::::0;24187:49:::2;::::0;24169:12:::2;::::0;-1:-1:-1;;;;;24195:16:39::2;::::0;24225:6;;24169:12;24187:49;24169:12;24187:49;24225:6;24195:16;24187:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24168:68;;;24255:7;24250:43;;24271:22;;-1:-1:-1::0;;;24271:22:39::2;;;;;;;;;;;24250:43;24154:150;24136:226;;;24337:16;::::0;::::2;::::0;24310:52:::2;::::0;-1:-1:-1;;;;;24310:26:39;;::::2;::::0;24337:16:::2;24355:6:::0;24310:26:::2;:52::i;:::-;24387:16;::::0;::::2;::::0;24378:41:::2;::::0;-1:-1:-1;;;;;24378:41:39;;::::2;::::0;::::2;::::0;::::2;::::0;24387:16;;::::2;::::0;24412:6;;24378:41:::2;:::i;:::-;;;;;;;;23835:591;1377:20:4::0;:18;:20::i;4017:149:32:-;4056:7;4075:30;4108:26;:24;:26::i;2692:145:3:-;2739:4;2755:25;2783:21;:19;:21::i;:::-;2821:9;;;;2692:145;-1:-1:-1;;2692:145:3:o;44397:586:39:-;44476:16;44504:29;44536:25;:23;:25::i;:::-;44504:57;-1:-1:-1;44571:14:39;44588:28;44504:57;44588:26;:28::i;:::-;44571:45;;44639:6;44630:5;:15;44626:47;;44654:19;;-1:-1:-1;;;44654:19:39;;;;;;;;;;;44626:47;44699:6;44687:9;44695:1;44687:5;:9;:::i;:::-;:18;44683:42;;;44711:14;44720:5;44711:6;:14;:::i;:::-;44707:18;;44683:42;44735:26;44778:1;-1:-1:-1;;;;;44764:16:39;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44764:16:39;-1:-1:-1;44735:45:39;-1:-1:-1;44796:9:39;44791:160;44815:1;44811;:5;44791:160;;;44848:33;44871:9;44879:1;44871:5;:9;:::i;:::-;44848:1;;:22;:33::i;:::-;44833:9;44843:1;44833:12;;;;;;;;:::i;:::-;-1:-1:-1;;;;;44833:48:39;;;:12;;;;;;;;;;;:48;44923:3;;44791:160;;;-1:-1:-1;44967:9:39;-1:-1:-1;;;44397:586:39;;;;;:::o;29890:531::-;29960:7;29979:17;29999:25;:23;:25::i;:::-;:44;;;-1:-1:-1;;;;;29999:44:39;;-1:-1:-1;29999:44:39;30053:62;;30089:26;;-1:-1:-1;;;30089:26:39;;;;;;;;;;;30053:62;30353:61;;-1:-1:-1;;;30353:61:39;;-1:-1:-1;;;;;30353:54:39;;;;;:61;;30408:5;;30353:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;30346:68;29890:531;-1:-1:-1;;;29890:531:39:o;46387:194::-;46451:4;46467:29;46499:25;:23;:25::i;:::-;46467:57;-1:-1:-1;46541:33:39;:17;;;46568:5;46541:26;:33::i;11754:340::-;2316:19:3;:17;:19::i;:::-;11830:21:39::1;11877:25;;;11912:4;11854:64;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;11854:64:39;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;11854:64:39::1;-1:-1:-1::0;;;;;;11854:64:39;;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;;11947:29:39::1;11961:4:::0;11854:64;11947:13:::1;:29::i;:::-;11928:48;;11987:29;12019:25;:23;:25::i;:::-;11987:57:::0;-1:-1:-1;12054:33:39::1;11987:57:::0;12078:8;12054:23:::1;:33::i;:::-;;11820:274;;;11754:340:::0;:::o;28163:764::-;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28299:6:39;;-1:-1:-1;;;28326:22:39;;::::1;28322:56;;28357:21;;-1:-1:-1::0;;;28357:21:39::1;;;;;;;;;;;28322:56;28389:29;28421:25;:23;:25::i;:::-;28389:57:::0;-1:-1:-1;28462:9:39::1;28457:464;28481:3;28477:1;:7;28457:464;;;28501:13;28517:6;;28524:1;28517:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;28501:25;;28540:15;28558:8;;28567:1;28558:11;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;28540:29:::0;-1:-1:-1;;;;;;28587:19:39;::::1;28583:58;;28615:26;;-1:-1:-1::0;;;28615:26:39::1;;;;;;;;;;;28583:58;-1:-1:-1::0;;;;;28659:21:39;::::1;::::0;;::::1;::::0;:59:::1;;;28713:5;-1:-1:-1::0;;;;;28684:34:39::1;28693:7;-1:-1:-1::0;;;;;28684:23:39::1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;28684:34:39::1;;;28659:59;28655:96;;;28727:24;;-1:-1:-1::0;;;28727:24:39::1;;;;;;;;;;;28655:96;-1:-1:-1::0;;;;;28771:60:39;;::::1;28797:24;::::0;;;:17:::1;::::0;::::1;:24;::::0;;;;;;;28771:60;;;;::::1;::::0;::::1;::::0;28797:24;;::::1;::::0;28823:7;;28771:60:::1;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;28845:24:39;;::::1;;::::0;;;:17:::1;::::0;::::1;:24;::::0;;;;:34;;-1:-1:-1;;;;;;28845:34:39::1;::::0;;;::::1;;::::0;;-1:-1:-1;28905:3:39::1;28457:464;;14090:552:::0;14206:28;14227:6;;14206:20;:28::i;:::-;14245:29;14277:25;:23;:25::i;:::-;14245:57;-1:-1:-1;14333:14:39;14312:18;14365:271;14389:10;14385:1;:14;14365:271;;;14421:47;14450:14;;14465:1;14450:17;;;;;;;:::i;14421:47::-;14416:82;;14477:21;;-1:-1:-1;;;14477:21:39;;;;;;;;;;;14416:82;14526:14;;14541:1;14526:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;14512:46:39;;14559:6;;14512:54;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14608:3;;;;;14365:271;;43305:701;43400:14;43416:15;43443:29;43475:25;:23;:25::i;:::-;43443:57;-1:-1:-1;;;;;;43515:19:39;;43511:58;;43543:26;;-1:-1:-1;;;43543:26:39;;;;;;;;;;;43511:58;43583:11;43598:1;43583:16;43579:50;;43608:21;;-1:-1:-1;;;43608:21:39;;;;;;;;;;;43579:50;43643:6;43653:1;43643:11;43639:44;;43663:20;;-1:-1:-1;;;43663:20:39;;;;;;;;;;;43639:44;-1:-1:-1;;;;;43723:25:39;;;43694:26;43723:25;;;:18;;;:25;;;;;;;;:38;;;;;;;;43775:20;;43723:38;;43775:20;43771:66;;43818:19;;-1:-1:-1;;;43818:19:39;;;;;;;;;;;43771:66;43873:20;;;43923:27;;;43855:144;;-1:-1:-1;;;43855:144:39;;-1:-1:-1;;;;;43873:20:39;;;;43855:52;;:144;;43908:5;;43915:6;;43923:27;;;;-1:-1:-1;;;43952:23:39;;;-1:-1:-1;;;;;43952:23:39;;43977:21;;;;43855:144;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43848:151;;;;;;43305:701;;;;;;:::o;3552:98:42:-;3588:14;:12;:14::i;:::-;-1:-1:-1;;;;;3588:25:42;;3614:10;3588:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3635:8;:6;:8::i;45102:140:39:-;45157:7;45183:52;:25;:23;:25::i;:::-;:50;:52::i;:::-;45176:59;;45102:140;:::o;29169:139::-;29227:7;29253:25;:23;:25::i;:::-;-1:-1:-1;;;;;29253:48:39;;;;;;;:41;;;;;:48;;;;;;;;;;29169:139;-1:-1:-1;29169:139:39:o;41581:1079::-;1335:21:4;:19;:21::i;:::-;2316:19:3::1;:17;:19::i;:::-;41689:29:39::2;41721:25;:23;:25::i;:::-;41689:57:::0;-1:-1:-1;41761:35:39::2;41689:57:::0;41790:5;41761:28:::2;:35::i;:::-;41756:70;;41805:21;;-1:-1:-1::0;;;41805:21:39::2;;;;;;;;;;;41756:70;41851:6:::0;41837:11:::2;41875:779;41899:3;41895:1;:7;41875:779;;;41919:13;41935:6;;41942:1;41935:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;41919:25:::0;-1:-1:-1;41962:33:39::2;:17;::::0;::::2;41919:25:::0;41962:26:::2;:33::i;:::-;41958:69;;;42004:23;;-1:-1:-1::0;;;42004:23:39::2;;;;;;;;;;;41958:69;-1:-1:-1::0;;;;;42060:24:39;;::::2;42042:15;42060:24:::0;;;:17:::2;::::0;::::2;:24;::::0;;;;;::::2;::::0;42098:57:::2;;42132:23;;-1:-1:-1::0;;;42132:23:39::2;;;;;;;;;;;42098:57;42187:30;::::0;-1:-1:-1;;;42187:30:39;;42170:14:::2;::::0;-1:-1:-1;;;;;42187:23:39;::::2;::::0;::::2;::::0;:30:::2;::::0;42211:5;;42187:30:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42170:47:::0;-1:-1:-1;42235:11:39;;42231:381:::2;;42290:32;::::0;-1:-1:-1;;;42290:32:39;;42266:21:::2;::::0;-1:-1:-1;;;;;42290:25:39;::::2;::::0;::::2;::::0;:32:::2;::::0;42316:5;;42290:32:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42340:41;::::0;-1:-1:-1;;;42340:41:39;;42266:56;;-1:-1:-1;;;;;;42340:26:39;::::2;::::0;::::2;::::0;:41:::2;::::0;42367:5;;42374:6;;42340:41:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42399:14;42451:13;42423:7;-1:-1:-1::0;;;;;42416:25:39::2;;42442:5;42416:32;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;;;:::i;:::-;42399:65;;42486:6;42496:1;42486:11:::0;42482:43:::2;;42506:19;;-1:-1:-1::0;;;42506:19:39::2;;;;;;;;;;;42482:43;42575:5;-1:-1:-1::0;;;;;42549:48:39::2;42566:7;-1:-1:-1::0;;;;;42549:48:39::2;42559:5;-1:-1:-1::0;;;;;42549:48:39::2;;42582:6;42590;42549:48;;;;;;25822:25:43::0;;;25878:2;25863:18;;25856:34;25810:2;25795:18;;25648:248;42549:48:39::2;;;;;;;;42248:364;;42231:381;42638:3;;;;;41905:749;;;41875:779;;;;41679:981;;1377:20:4::0;:18;:20::i;45518:232:39:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45663:25:39;:23;:25::i;:::-;-1:-1:-1;;;;;45705:25:39;;;;;;;:18;;;:25;;;;;;;;:38;;;;;;;;;45698:45;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45698:45:39;;;-1:-1:-1;;;;;45698:45:39;;;;;;;;;;;;;45705:18;;-1:-1:-1;45698:45:39;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45518:232;;;;:::o;5140:142:32:-;5208:7;5234:41;5270:4;5234:35;:41::i;26244:130:39:-;26297:7;26323:25;:23;:25::i;:::-;:44;;;-1:-1:-1;;;;;26323:44:39;;26244:130;-1:-1:-1;26244:130:39:o;20659:841::-;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20779:29:39::1;20811:25;:23;:25::i;:::-;20779:57:::0;-1:-1:-1;20860:6:39;20887:22;;::::1;20883:56;;20918:21;;-1:-1:-1::0;;;20918:21:39::1;;;;;;;;;;;20883:56;20955:9;20950:492;20974:3;20970:1;:7;20950:492;;;20994:13;21010:6;;21017:1;21010:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;20994:25:::0;-1:-1:-1;;;;;;21037:19:39;::::1;21033:58;;21065:26;;-1:-1:-1::0;;;21065:26:39::1;;;;;;;;;;;21033:58;21109:8;;21118:1;21109:11;;;;;;;:::i;:::-;;;;;;;21124:1;21109:16:::0;21105:50:::1;;21134:21;;-1:-1:-1::0;;;21134:21:39::1;;;;;;;;;;;21105:50;-1:-1:-1::0;;;;;21173:25:39;::::1;21237:1;21173:25:::0;;;:18:::1;::::0;::::1;:25;::::0;;;;21237:1;21199:8;;21208:1;21199:11;;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;::::1;;21173:38:::0;;-1:-1:-1;21173:38:39;::::1;::::0;;;;;;-1:-1:-1;21173:38:39;:52;-1:-1:-1;;;;;21173:52:39::1;:66:::0;21169:98:::1;;21248:19;;-1:-1:-1::0;;;21248:19:39::1;;;;;;;;;;;21169:98;-1:-1:-1::0;;;;;21289:25:39;::::1;;::::0;;;:18:::1;::::0;::::1;:25;::::0;;;;;21315:8;;21324:1;21315:11;;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;::::1;;21289:38:::0;;-1:-1:-1;21289:38:39;::::1;::::0;;;;;;-1:-1:-1;21289:38:39;;;21282:45;;-1:-1:-1;;;;;;21282:45:39::1;::::0;;;;::::1;::::0;;;21289:38;21282:45:::1;;::::0;::::1;-1:-1:-1::0;21282:45:39::1;:::i;:::-;-1:-1:-1::0;21341:31:39::1;::::0;-1:-1:-1;21341:17:39::1;::::0;::::1;21366:5:::0;21341:24:::1;:31::i;:::-;-1:-1:-1::0;;21414:3:39::1;;20950:492;;;;21457:36;21476:6;;21484:8;;21457:36;;;;;;;;;:::i;:::-;;;;;;;;20769:731;;20659:841:::0;;;;:::o;47132:211::-;47203:4;47219:29;47251:25;:23;:25::i;:::-;47219:57;-1:-1:-1;47293:43:39;47219:57;47322:13;47293:28;:43::i;25756:391::-;4282:10:42;4256:14;:12;:14::i;:::-;-1:-1:-1;;;;;4256:20:42;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4256:36:42;;4252:72;;4301:23;;-1:-1:-1;;;4301:23:42;;;;;;;;;;;4252:72;-1:-1:-1;;;;;25861:33:39;::::1;25857:85;;25903:39;;-1:-1:-1::0;;;25903:39:39::1;;;;;;;;;;;25857:85;25952:29;25984:25;:23;:25::i;:::-;26046:20;::::0;::::1;::::0;26024:64:::1;::::0;25952:57;;-1:-1:-1;26024:64:39::1;::::0;::::1;::::0;-1:-1:-1;;;;;26046:20:39::1;::::0;26068:19;;26024:64:::1;:::i;:::-;;;;;;;;26098:20;;:42:::0;;-1:-1:-1;;;;;;26098:42:39::1;-1:-1:-1::0;;;;;26098:42:39;;;::::1;::::0;;;::::1;::::0;;25756:391::o;12843:554::-;12937:28;12958:6;;12937:20;:28::i;:::-;12976:29;13008:25;:23;:25::i;:::-;12976:57;-1:-1:-1;13044:14:39;13061:28;12976:57;13061:26;:28::i;:::-;13044:45;;13112:6;13103:5;:15;13099:47;;13127:19;;-1:-1:-1;;;13127:19:39;;;;;;;;;;;13099:47;13172:6;13160:9;13168:1;13160:5;:9;:::i;:::-;:18;13156:42;;;13184:14;13193:5;13184:6;:14;:::i;:::-;13180:18;;13156:42;13214:9;13209:182;13233:1;13229;:5;13209:182;;;13265:33;13288:9;13296:1;13288:5;:9;:::i;:::-;13265:1;;:22;:33::i;:::-;-1:-1:-1;;;;;13251:62:39;;13314:6;;13251:70;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13363:3;;;;;13209:182;;24798:352;4679:14:42;:12;:14::i;:::-;-1:-1:-1;;;;;4679:32:42;;4712:10;4679:44;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24887:29:39::1;24919:25;:23;:25::i;:::-;24887:57:::0;-1:-1:-1;;;;;;24959:29:39;::::1;24955:77;;24997:35;;-1:-1:-1::0;;;24997:35:39::1;;;;;;;;;;;24955:77;25065:16;::::0;::::1;::::0;25047:52:::1;::::0;::::1;::::0;::::1;::::0;-1:-1:-1;;;;;25065:16:39;;::::1;::::0;25083:15;;25047:52:::1;:::i;:::-;;;;;;;;25109:16;;:34:::0;;-1:-1:-1;;;;;;25109:34:39::1;-1:-1:-1::0;;;;;25109:34:39;;;::::1;::::0;;;::::1;::::0;;24798:352::o;4550:390:32:-;4282:10:42;4256:14;:12;:14::i;:::-;-1:-1:-1;;;;;4256:20:42;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4256:36:42;;4252:72;;4301:23;;-1:-1:-1;;;4301:23:42;;;;;;;;;;;4252:72;-1:-1:-1;;;;;4652:22:32;::::1;4648:49;;4683:14;;-1:-1:-1::0;;;4683:14:32::1;;;;;;;;;;;4648:49;4708:35;4764:26;:24;:26::i;:::-;:33:::0;4841:34:::1;::::0;;-1:-1:-1;;;4841:34:32;;;;-1:-1:-1;;;;;4764:33:32;;::::1;::::0;-1:-1:-1;4813:73:32::1;::::0;4764:33;;4841:32:::1;::::0;:34:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;4764:33;4841:34:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4877:8;4813:73;;;;;;;:::i;:::-;;;;;;;;4896:37;::::0;-1:-1:-1;;;4896:37:32;;-1:-1:-1;;;;;4896:27:32;::::1;::::0;::::1;::::0;:37:::1;::::0;4924:8;;4896:37:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46587:255:39::0;46679:4;46695:29;46727:25;:23;:25::i;:::-;-1:-1:-1;;;;;46769:25:39;;;46833:1;46769:25;;;:18;;;;:25;;;;;;;;:38;;;;;;;;;:52;;:66;;;-1:-1:-1;;46587:255:39;;;;:::o;1583:346:4:-;-1:-1:-1;;;;;;;;;;;3369:11:25;1706:93:4;;;1758:30;;-1:-1:-1;;;1758:30:4;;;;;;;;;;;1706:93;1873:49;1917:4;-1:-1:-1;;;;;;;;;;;1873:36:4;:43;;:49::i;2905:128:3:-;2970:8;:6;:8::i;:::-;2966:61;;;3001:15;;-1:-1:-1;;;3001:15:3;;;;;;;;;;;47482:175:39;47614:27;;47482:175::o;6492:1118:31:-;6572:11;6595:16;6614:14;6624:3;6614:9;:14::i;:::-;-1:-1:-1;;;;;6713:23:31;;;;6595:33;-1:-1:-1;;;6752:25:31;;6749:148;;6809:10;6803:4;6796:24;6878:4;6872;6865:18;6749:148;6920:5;6910:44;;6938:14;6929:23;;6910:44;6991:8;6985:15;-1:-1:-1;;;;;7053:30:31;;7043:369;;7117:1;7107:11;;7166:5;7153:10;7149:2;7145:19;7142:30;7139:43;7175:5;7139:43;7237:1;7223:16;;7217:23;7213:2;7209:32;7203:56;;7252:5;7203:56;7314:1;7300:16;;7294:23;7290:2;7286:32;7280:56;;7329:5;7280:56;7367:1;7357:11;;7389:5;;7043:369;7442:8;7436:4;7429:22;7481:5;7475:4;7468:19;7550:4;7544;7534:21;7528:28;7521:36;7514:44;7504:54;;7013:581;7017:2;6690:914;6492:1118;;;;:::o;38140:767:39:-;-1:-1:-1;;;;;38273:21:39;;38269:210;;38310:71;;-1:-1:-1;;;38310:71:39;;-1:-1:-1;;;;;38310:43:39;;;;;:71;;38354:5;;38361:11;;38374:6;;38310:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38434:5;-1:-1:-1;;;;;38400:48:39;38421:11;-1:-1:-1;;;;;38400:48:39;38414:5;-1:-1:-1;;;;;38400:48:39;-1:-1:-1;;;;;;;;;;;38441:6:39;38400:48;;;;4350:25:43;;4338:2;4323:18;;4204:177;38400:48:39;;;;;;;;38462:7;;38269:210;38513:38;;-1:-1:-1;;;38513:38:39;;38489:21;;-1:-1:-1;;;;;38513:25:39;;;;;:38;;38539:11;;38513:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38561:71;;-1:-1:-1;;;38561:71:39;;38489:62;;-1:-1:-1;;;;;;38561:43:39;;;;;:71;;38605:5;;38612:11;;38625:6;;38561:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38642:14;38700:13;38666:7;-1:-1:-1;;;;;38659:25:39;;38685:11;38659:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:54;;;;:::i;:::-;38642:71;;38727:6;38737:1;38727:11;38723:43;;38747:19;;-1:-1:-1;;;38747:19:39;;;;;;;;;;;38723:43;38813:5;-1:-1:-1;;;;;38782:53:39;38804:7;-1:-1:-1;;;;;38782:53:39;38797:5;-1:-1:-1;;;;;38782:53:39;;38820:6;38828;38782:53;;;;;;25822:25:43;;;25878:2;25863:18;;25856:34;25810:2;25795:18;;25648:248;38782:53:39;;;;;;;;38884:7;-1:-1:-1;;;;;38850:50:39;38871:11;-1:-1:-1;;;;;38850:50:39;38864:5;-1:-1:-1;;;;;38850:50:39;-1:-1:-1;;;;;;;;;;;38893:6:39;38850:50;;;;4350:25:43;;4338:2;4323:18;;4204:177;38850:50:39;;;;;;;;38259:648;;38140:767;;;;;:::o;1935:105:4:-;1983:50;2027:5;-1:-1:-1;;;;;;;;;;;1983:36:4;1663:115:25;9495:2472:31;9565:11;9588:16;9607:14;9617:3;9607:9;:14::i;:::-;-1:-1:-1;;;;;9706:23:31;;;;9588:33;-1:-1:-1;;;9745:25:31;;9742:148;;9802:10;9796:4;9789:24;9871:4;9865;9858:18;9742:148;9913:5;9903:44;;9931:14;9922:23;;9903:44;9978:15;;-1:-1:-1;;;;;10021:30:31;;10090:8;10084:4;10077:22;10126:1;10116:1257;;10169:10;10165:2;10161:19;10211:2;10201:160;;10266:5;10262:2;10258:14;10248:8;10241:32;10308:1;10298:11;;10334:5;;;10201:160;10392:5;10388:2;10385:13;10382:26;;10401:5;;;10382:26;10467:1;10457:8;10453:16;10447:23;10443:2;10439:32;10502:2;10492:168;;10565:5;10561:2;10557:14;10553:1;10543:8;10539:16;10532:40;10607:1;10597:11;;10633:5;;;;10492:168;10691:5;10687:2;10684:13;10681:26;;10700:5;;;;10681:26;10766:1;10756:8;10752:16;10746:23;10742:2;10738:32;10801:2;10791:168;;10864:5;10860:2;10856:14;10852:1;10842:8;10838:16;10831:40;10906:1;10896:11;;10932:5;;;;;10791:168;10990:5;10986:2;10983:13;10980:26;;10999:5;;;;;10980:26;11034:4;11027:16;;;11087:4;11071:21;;;11094:1;11064:32;;11117:16;;;11161:21;;;11184:1;11154:32;;11207:16;;11251:21;;11274:1;11244:32;;-1:-1:-1;11326:1:31;11311:17;;;;10116:1257;11403:5;11397:4;11390:19;11451:4;11445;11435:21;11489:1;11483:8;11473:442;;11524:1;11520:9;;;11592;;;11582:20;;11524:1;;-1:-1:-1;11520:9:31;11623:130;;11693:5;11689:2;11685:14;11682:1;11679:21;11669:8;11662:39;11726:5;;;11623:130;11807:5;11803:2;11799:14;11795:1;11785:8;11781:16;11774:40;11859:10;11856:1;11852:18;11842:8;11835:36;11892:5;;;11473:442;;10006:1945;10010:43;;9683:2278;9495:2472;;;;:::o;2342:187:42:-;2482:31;;2342:187::o;503:968:37:-;578:19;635:4;-1:-1:-1;;;;;617:23:37;;;609:56;;;;-1:-1:-1;;;609:56:37;;27003:2:43;609:56:37;;;26985:21:43;27042:2;27022:18;;;27015:30;-1:-1:-1;;;27061:18:43;;;27054:50;27121:18;;609:56:37;;;;;;;;;906:1;903;896:4;890:11;883:4;877;873:15;865:6;858:5;845:63;983:16;1080:4;1074:11;1064:21;;1163:4;1155:6;1148:20;1279:4;1276:1;1269:4;1261:6;1257:17;1242:42;1357:28;;1373:4;1357:28;1351:4;1344:42;1410:7;1400:55;;1436:16;1428:6;1421:32;1400:55;;503:968;;;;:::o;3674:178:3:-;2563:16;:14;:16::i;:::-;3732:25:::1;3760:21;:19;:21::i;:::-;3791:17:::0;;-1:-1:-1;;3791:17:3::1;::::0;;;-1:-1:-1;3823:22:3::1;966:10:2::0;3832:12:3::1;3823:22;;;;;;:::i;:::-;;;;;;;;3722:130;3674:178::o:0;8737:170:0:-;8870:21;;8737:170::o;2213:336:32:-;6931:20:0;:18;:20::i;:::-;2329:38:32::1;2353:13;2329:23;:38::i;:::-;2377:17;:15;:17::i;:::-;2404:30;2437:26;:24;:26::i;:::-;2404:59;;2514:11;2535:4;2492:49;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;2473:69:32;;-1:-1:-1;;;;;;2473:69:32::1;-1:-1:-1::0;;;;;2473:69:32;;;::::1;;::::0;;-1:-1:-1;;2213:336:32:o;4603:312:1:-;4683:4;-1:-1:-1;;;;;4692:6:1;4675:23;;;:120;;;4789:6;-1:-1:-1;;;;;4753:42:1;:32;-1:-1:-1;;;;;;;;;;;1519:53:12;-1:-1:-1;;;;;1519:53:12;;1441:138;4753:32:1;-1:-1:-1;;;;;4753:42:1;;;4675:120;4658:251;;;4869:29;;-1:-1:-1;;;4869:29:1;;;;;;;;;;;3123:313:42;3210:33;3246:29;:27;:29::i;:::-;3285:14;;:39;;-1:-1:-1;;;3285:39:42;;3210:65;;-1:-1:-1;;;;;;3285:14:42;;:27;;:39;;3313:10;;3285:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6057:538:1;6174:17;-1:-1:-1;;;;;6156:50:1;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6156:52:1;;;;;;;;-1:-1:-1;;6156:52:1;;;;;;;;;;;;:::i;:::-;;;6152:437;;6560:17;6518:60;;-1:-1:-1;;;6518:60:1;;;;;;;;:::i;6152:437::-;-1:-1:-1;;;;;;;;;;;6250:40:1;;6246:120;;6317:34;;-1:-1:-1;;;6317:34:1;;;;;4350:25:43;;;4323:18;;6317:34:1;4204:177:43;6246:120:1;6379:54;6409:17;6428:4;6379:29;:54::i;5032:213::-;5106:4;-1:-1:-1;;;;;5115:6:1;5098:23;;5094:145;;5199:29;;-1:-1:-1;;;5199:29:1;;;;;;;;;;;1219:160:19;1301:71;1321:5;1343;-1:-1:-1;;;;;1343:14:19;;1360:2;1364:5;1328:43;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1328:43:19;;;;;;;;;;;1301:19;:71::i;2704:177:32:-;2837:28;;2704:177::o;1147:162:3:-;1270:23;;1147:162::o;4290:650:31:-;4353:14;4379:16;4398:14;4408:3;4398:9;:14::i;:::-;4379:33;;4512:8;4506:15;4561:10;4556:3;4552:20;4547:3;4543:30;4603:1;4600;4596:9;4586:19;;4664:1;4650:10;4646:2;4642:19;4635:27;4632:34;4618:306;;4699:1;4689:11;;4747:6;4737:8;4733:21;4727:28;4717:49;4759:5;4717:49;4793:1;4783:11;;4841:6;4831:8;4827:21;4821:28;4811:49;4853:5;4811:49;4887:1;4877:11;;4618:306;4622:2;;4474:460;4290:650;;;:::o;28437:390::-;28507:14;28533:16;28552:14;28562:3;28552:9;:14::i;:::-;28533:33;;28680:1;28670:8;28666:16;28660:23;28656:2;28652:32;28642:42;;28737:14;28729:6;28726:26;28719:34;28711:6;28707:47;28697:57;;28782:11;28789:3;28782:6;:11::i;:::-;28777:1;:16;28773:47;;28802:18;;-1:-1:-1;;;28802:18:31;;;;;;;;;;;3219:642:32;3297:7;3316:20;3339:29;3363:4;3339:23;:29::i;:::-;3316:52;;3378:20;3409:109;3454:30;;;;;;;;:::i;:::-;-1:-1:-1;;3454:30:32;;;;;;;;;;;;;;3497:8;:6;:8::i;:::-;3486:24;;;-1:-1:-1;;;;;27569:32:43;;;3486:24:32;;;27551:51:43;27618:18;;;27611:30;-1:-1:-1;27657:18:43;;;27650:29;27696:18;;3486:24:32;;;-1:-1:-1;;3486:24:32;;;;;;;;;;3437:74;;;3486:24;3437:74;;:::i;:::-;;;;;;;;;;;;;3513:4;3409:27;:109::i;:::-;3533:15;;3378:141;;-1:-1:-1;3533:19:32;3529:153;;3569:12;3587;-1:-1:-1;;;;;3587:17:32;3605:8;3587:27;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3568:46;;;3633:7;3628:43;;3649:22;;-1:-1:-1;;;3649:22:32;;;;;;;;;;;3628:43;3554:128;3529:153;3711:12;-1:-1:-1;;;;;3695:28:32;:12;-1:-1:-1;;;;;3695:28:32;;3691:79;;3732:38;;-1:-1:-1;;;3732:38:32;;;;;;;;;;;3691:79;3812:12;-1:-1:-1;;;;;3786:39:32;;3806:4;3786:39;;;;4350:25:43;;4338:2;4323:18;;4204:177;3786:39:32;;;;;;;;3842:12;3219:642;-1:-1:-1;;;;3219:642:32:o;16516:398:39:-;16597:29;16629:25;:23;:25::i;:::-;16597:57;-1:-1:-1;16678:6:39;16664:11;16702:206;16726:3;16722:1;:7;16702:206;;;505:42:41;16750:6:39;;16757:1;16750:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;16750:16:39;;;:58;;;;;16771:37;16798:6;;16805:1;16798:9;;;;;;;:::i;16771:37::-;16770:38;16750:58;16746:92;;;16817:21;;-1:-1:-1;;;16817:21:39;;;;;;;;;;;16746:92;16880:3;;16702:206;;3366:176:3;2316:19;:17;:19::i;:::-;3425:25:::1;3453:21;:19;:21::i;:::-;3484:16:::0;;-1:-1:-1;;3484:16:3::1;3496:4;3484:16;::::0;;3425:49;-1:-1:-1;3515:20:3::1;3522:12;966:10:2::0;;887:96;5330:168:30;5404:16;5443:48;5471:4;5485;5443:27;:48::i;17031:2199:31:-;17104:11;17127:16;17146:14;17156:3;17146:9;:14::i;:::-;-1:-1:-1;;;;;17245:23:31;;;;17127:33;-1:-1:-1;;;17284:25:31;;17281:148;;17341:10;17335:4;17328:24;17410:4;17404;17397:18;17281:148;17452:5;17442:44;;17470:14;17461:23;;17442:44;17517:15;;-1:-1:-1;;;;;17560:30:31;;17626:1;17616:842;;17661:1;17651:11;;17710:5;17697:10;17693:2;17689:19;17686:30;17683:279;;17780:1;17766:16;;17760:23;;17743:41;;17854:1;17840:16;;17834:23;;17809:49;;;-1:-1:-1;17883:27:31;;17935:5;;17683:279;18023:5;18017:1;18007:8;18003:16;17997:23;17993:2;17989:32;17986:43;17983:226;;18101:1;18087:16;;18081:23;;18077:1;18063:16;;18056:49;-1:-1:-1;18130:27:31;;18182:5;;17983:226;18270:5;18264:1;18254:8;18250:16;18244:23;18240:2;18236:32;18233:43;18230:152;;18328:1;18324;18314:8;18310:16;18303:27;18355:5;;18230:152;18413:1;18403:11;;18435:5;;17616:842;18488:8;18482:4;18475:22;18527:5;18521:4;18514:19;18575:4;18569;18559:21;18619:1;18613:8;18648;18638:29;;18660:5;;;;18638:29;18704:1;18700;18697;18693:9;18689:17;18684:22;;18754:1;18750;18740:8;18736:16;18733:23;18723:308;;18825:1;18815:8;18811:16;18805:23;18801:2;18797:32;18898:9;18894:2;18890:18;18885:1;18875:8;18871:16;18861:8;18857:31;18850:59;18943:9;18937:4;18930:23;;19004:8;18997:4;18991;18981:21;18974:39;18723:308;-1:-1:-1;19084:15:31;;-1:-1:-1;;;;;;19068:33:31;19117:1;19106:9;;;19065:55;;;19048:73;;;-1:-1:-1;19138:12:31;;;-1:-1:-1;19117:1:31;17031:2199;-1:-1:-1;;;17031:2199:31:o;3485:139:25:-;3602:5;3596:4;3589:19;3485:139;;:::o;31460:285:31:-;31623:33;31617:4;31610:47;31523:9;31670:20;;;31724:4;31708:21;;;31460:285::o;3105:126:3:-;3168:8;:6;:8::i;:::-;3163:62;;3199:15;;-1:-1:-1;;;3199:15:3;;;;;;;;;;;7084:141:0;7151:17;:15;:17::i;:::-;7146:73;;7191:17;;-1:-1:-1;;;7191:17:0;;;;;;;;;;;1884:300:42;6931:20:0;:18;:20::i;:::-;1976:33:42::1;2012:29;:27;:29::i;:::-;2051:45:::0;;-1:-1:-1;;;;;;2051:45:42::1;-1:-1:-1::0;;;;;2051:45:42;::::1;;::::0;;;-1:-1:-1;2107:33:42::1;:31;:33::i;:::-;2150:27;:25;:27::i;1836:97:3:-:0;6931:20:0;:18;:20::i;:::-;1899:27:3::1;:25;:27::i;2264:344:12:-:0;2355:37;2374:17;2355:18;:37::i;:::-;2407:36;;-1:-1:-1;;;;;2407:36:12;;;;;;;;2458:11;;:15;2454:148;;2489:53;2518:17;2537:4;2489:28;:53::i;2454:148::-;2573:18;:16;:18::i;7686:720:19:-;7766:18;7794:19;7932:4;7929:1;7922:4;7916:11;7909:4;7903;7899:15;7896:1;7889:5;7882;7877:60;7989:7;7979:176;;8033:4;8027:11;8078:16;8075:1;8070:3;8055:40;8124:16;8119:3;8112:29;7979:176;-1:-1:-1;;8232:1:19;8226:8;8182:16;;-1:-1:-1;8258:15:19;;:68;;8310:11;8325:1;8310:16;;8258:68;;;-1:-1:-1;;;;;8276:26:19;;;:31;8258:68;8254:146;;;8382:5;8349:40;;-1:-1:-1;;;8349:40:19;;;;;;;;:::i;8254:146::-;7756:650;;7686:720;;:::o;3569:188:30:-;3669:16;3712:38;3732:1;3735:8;3745:4;3712:19;:38::i;5579:983::-;5695:16;5808:4;5802:11;5873:8;5867:4;5860:22;5930:4;5924;5916:19;5982:4;5976;5969:18;6032:19;6026:4;6019:33;6123:4;6117;6107:21;6101:4;6094:35;6185:1;6179:4;6172:15;;6425:6;6419:4;6412:20;6459:4;6453;6445:19;-1:-1:-1;;6541:4:30;6535;6525:21;;5579:983;-1:-1:-1;5579:983:30:o;8487:120:0:-;8537:4;8560:26;:24;:26::i;:::-;:40;-1:-1:-1;;;8560:40:0;;;;;;-1:-1:-1;8487:120:0:o;1410:76:4:-;6931:20:0;:18;:20::i;1939:156:3:-;6931:20:0;:18;:20::i;:::-;2012:25:3::1;2040:21;:19;:21::i;:::-;2071:17:::0;;-1:-1:-1;;2071:17:3::1;::::0;;-1:-1:-1;1939:156:3:o;1671:281:12:-;1748:17;-1:-1:-1;;;;;1748:29:12;;1781:1;1748:34;1744:119;;1834:17;1805:47;;-1:-1:-1;;;1805:47:12;;;;;;;;:::i;1744:119::-;-1:-1:-1;;;;;;;;;;;1872:73:12;;-1:-1:-1;;;;;;1872:73:12;-1:-1:-1;;;;;1872:73:12;;;;;;;;;;1671:281::o;3916:253:20:-;3999:12;4024;4038:23;4065:6;-1:-1:-1;;;;;4065:19:20;4085:4;4065:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4023:67;;;;4107:55;4134:6;4142:7;4151:10;4107:26;:55::i;:::-;4100:62;3916:253;-1:-1:-1;;;;;3916:253:20:o;6113:122:12:-;6163:9;:13;6159:70;;6199:19;;-1:-1:-1;;;6199:19:12;;;;;;;;;;;4003:1262:30;4118:16;4229:15;4223:4;4216:29;4326:4;4320;4314;4311:1;4303:28;4354:5;4344:133;;4392:10;4386:4;4379:24;4458:4;4452;4445:18;4344:133;4503:5;4497:4;4490:19;4741:6;4735:4;4728:20;4775:4;4769;4761:19;4857:4;4851;4841:21;4829:33;;5095:4;5089;5078:8;5072:15;5065:4;5055:8;5051:19;5044:5;5037;5030;5025:75;4994:8;4982:21;4902:216;4875:374;;5164:10;5158:4;5151:24;5230:4;5224;5217:18;4875:374;;4003:1262;;;;;:::o;4437:582:20:-;4581:12;4610:7;4605:408;;4633:19;4641:10;4633:7;:19::i;:::-;4605:408;;;4857:17;;:22;:49;;;;-1:-1:-1;;;;;;4883:18:20;;;:23;4857:49;4853:119;;;4950:6;4933:24;;-1:-1:-1;;;4933:24:20;;;;;;;;:::i;5559:487::-;5690:17;;:21;5686:354;;5887:10;5881:17;5943:15;5930:10;5926:2;5922:19;5915:44;5686:354;6010:19;;-1:-1:-1;;;6010:19:20;;;;;;;;;;;5686:354;5559:487;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::o;:::-;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;14:131:43:-;-1:-1:-1;;;;;89:31:43;;79:42;;69:70;;135:1;132;125:12;150:508;227:6;235;243;296:2;284:9;275:7;271:23;267:32;264:52;;;312:1;309;302:12;264:52;351:9;338:23;370:31;395:5;370:31;:::i;:::-;420:5;-1:-1:-1;477:2:43;462:18;;449:32;490:33;449:32;490:33;:::i;:::-;150:508;;542:7;;-1:-1:-1;;;622:2:43;607:18;;;;594:32;;150:508::o;663:367::-;726:8;736:6;790:3;783:4;775:6;771:17;767:27;757:55;;808:1;805;798:12;757:55;-1:-1:-1;831:20:43;;-1:-1:-1;;;;;863:30:43;;860:50;;;906:1;903;896:12;860:50;943:4;935:6;931:17;919:29;;1003:3;996:4;986:6;983:1;979:14;971:6;967:27;963:38;960:47;957:67;;;1020:1;1017;1010:12;957:67;663:367;;;;;:::o;1035:1130::-;1224:6;1232;1240;1248;1256;1264;1317:2;1305:9;1296:7;1292:23;1288:32;1285:52;;;1333:1;1330;1323:12;1285:52;1360:23;;-1:-1:-1;;;;;1395:30:43;;1392:50;;;1438:1;1435;1428:12;1392:50;1477:70;1539:7;1530:6;1519:9;1515:22;1477:70;:::i;:::-;1566:8;;-1:-1:-1;1451:96:43;-1:-1:-1;;1654:2:43;1639:18;;1626:32;-1:-1:-1;;;;;1670:32:43;;1667:52;;;1715:1;1712;1705:12;1667:52;1754:72;1818:7;1807:8;1796:9;1792:24;1754:72;:::i;:::-;1845:8;;-1:-1:-1;1728:98:43;-1:-1:-1;;1933:2:43;1918:18;;1905:32;-1:-1:-1;;;;;1949:32:43;;1946:52;;;1994:1;1991;1984:12;1946:52;2033:72;2097:7;2086:8;2075:9;2071:24;2033:72;:::i;:::-;1035:1130;;;;-1:-1:-1;1035:1130:43;;-1:-1:-1;1035:1130:43;;2124:8;;1035:1130;-1:-1:-1;;;1035:1130:43:o;2170:225::-;-1:-1:-1;;;;;2356:32:43;;;;2338:51;;2326:2;2311:18;;2170:225::o;2400:487::-;2477:6;2485;2493;2546:2;2534:9;2525:7;2521:23;2517:32;2514:52;;;2562:1;2559;2552:12;2514:52;2601:9;2588:23;2620:31;2645:5;2620:31;:::i;:::-;2670:5;2748:2;2733:18;;2720:32;;-1:-1:-1;2851:2:43;2836:18;;;2823:32;;2400:487;-1:-1:-1;;;2400:487:43:o;4386:388::-;4454:6;4462;4515:2;4503:9;4494:7;4490:23;4486:32;4483:52;;;4531:1;4528;4521:12;4483:52;4570:9;4557:23;4589:31;4614:5;4589:31;:::i;:::-;4639:5;-1:-1:-1;4696:2:43;4681:18;;4668:32;4709:33;4668:32;4709:33;:::i;:::-;4761:7;4751:17;;;4386:388;;;;;:::o;4779:127::-;4840:10;4835:3;4831:20;4828:1;4821:31;4871:4;4868:1;4861:15;4895:4;4892:1;4885:15;4911:1079;4988:6;4996;5049:2;5037:9;5028:7;5024:23;5020:32;5017:52;;;5065:1;5062;5055:12;5017:52;5104:9;5091:23;5123:31;5148:5;5123:31;:::i;:::-;5173:5;-1:-1:-1;5229:2:43;5214:18;;5201:32;-1:-1:-1;;;;;5245:30:43;;5242:50;;;5288:1;5285;5278:12;5242:50;5311:22;;5364:4;5356:13;;5352:27;-1:-1:-1;5342:55:43;;5393:1;5390;5383:12;5342:55;5420:16;;-1:-1:-1;;;;;5448:30:43;;5445:56;;;5481:18;;:::i;:::-;5530:2;5524:9;5622:2;5584:17;;-1:-1:-1;;5580:31:43;;;5613:2;5576:40;5572:54;5560:67;;-1:-1:-1;;;;;5642:34:43;;5678:22;;;5639:62;5636:88;;;5704:18;;:::i;:::-;5740:2;5733:22;5764;;;5805:15;;;5822:2;5801:24;5798:37;-1:-1:-1;5795:57:43;;;5848:1;5845;5838:12;5795:57;5904:6;5899:2;5895;5891:11;5886:2;5878:6;5874:15;5861:50;5957:1;5952:2;5943:6;5935;5931:19;5927:28;5920:39;5978:6;5968:16;;;;;4911:1079;;;;;:::o;5995:367::-;6063:6;6071;6124:2;6112:9;6103:7;6099:23;6095:32;6092:52;;;6140:1;6137;6130:12;6092:52;6179:9;6166:23;6198:31;6223:5;6198:31;:::i;:::-;6248:5;6326:2;6311:18;;;;6298:32;;-1:-1:-1;;;5995:367:43:o;6559:346::-;6627:6;6635;6688:2;6676:9;6667:7;6663:23;6659:32;6656:52;;;6704:1;6701;6694:12;6656:52;-1:-1:-1;;6749:23:43;;;6869:2;6854:18;;;6841:32;;-1:-1:-1;6559:346:43:o;6910:637::-;7100:2;7112:21;;;7182:13;;7085:18;;;7204:22;;;7052:4;;7283:15;;;7257:2;7242:18;;;7052:4;7326:195;7340:6;7337:1;7334:13;7326:195;;;7405:13;;-1:-1:-1;;;;;7401:39:43;7389:52;;7470:2;7496:15;;;;7461:12;;;;7437:1;7355:9;7326:195;;;-1:-1:-1;7538:3:43;;6910:637;-1:-1:-1;;;;;6910:637:43:o;7552:247::-;7611:6;7664:2;7652:9;7643:7;7639:23;7635:32;7632:52;;;7680:1;7677;7670:12;7632:52;7719:9;7706:23;7738:31;7763:5;7738:31;:::i;7804:180::-;7863:6;7916:2;7904:9;7895:7;7891:23;7887:32;7884:52;;;7932:1;7929;7922:12;7884:52;-1:-1:-1;7955:23:43;;7804:180;-1:-1:-1;7804:180:43:o;7989:768::-;8111:6;8119;8127;8135;8188:2;8176:9;8167:7;8163:23;8159:32;8156:52;;;8204:1;8201;8194:12;8156:52;8231:23;;-1:-1:-1;;;;;8266:30:43;;8263:50;;;8309:1;8306;8299:12;8263:50;8348:70;8410:7;8401:6;8390:9;8386:22;8348:70;:::i;:::-;8437:8;;-1:-1:-1;8322:96:43;-1:-1:-1;;8525:2:43;8510:18;;8497:32;-1:-1:-1;;;;;8541:32:43;;8538:52;;;8586:1;8583;8576:12;8538:52;8625:72;8689:7;8678:8;8667:9;8663:24;8625:72;:::i;:::-;7989:768;;;;-1:-1:-1;8716:8:43;-1:-1:-1;;;;7989:768:43:o;8762:274::-;-1:-1:-1;;;;;8954:32:43;;;;8936:51;;9018:2;9003:18;;8996:34;8924:2;8909:18;;8762:274::o;9223:572::-;9318:6;9326;9334;9387:2;9375:9;9366:7;9362:23;9358:32;9355:52;;;9403:1;9400;9393:12;9355:52;9442:9;9429:23;9461:31;9486:5;9461:31;:::i;:::-;9511:5;-1:-1:-1;9567:2:43;9552:18;;9539:32;-1:-1:-1;;;;;9583:30:43;;9580:50;;;9626:1;9623;9616:12;9580:50;9665:70;9727:7;9718:6;9707:9;9703:22;9665:70;:::i;:::-;9223:572;;9754:8;;-1:-1:-1;9639:96:43;;-1:-1:-1;;;;9223:572:43:o;9800:299::-;9852:3;9890:5;9884:12;9917:6;9912:3;9905:19;9973:6;9966:4;9959:5;9955:16;9948:4;9943:3;9939:14;9933:47;10025:1;10018:4;10009:6;10004:3;10000:16;9996:27;9989:38;10088:4;10081:2;10077:7;10072:2;10064:6;10060:15;10056:29;10051:3;10047:39;10043:50;10036:57;;;9800:299;;;;:::o;10104:614::-;10291:2;10273:21;;;10334:13;;-1:-1:-1;;;;;10330:39:43;;;10310:18;;;10303:67;10416:15;;;10410:22;10406:48;10401:2;10386:18;;;10379:76;;;;10501:15;;10495:22;-1:-1:-1;;;;;10491:47:43;10527:2;10471:18;;;10464:75;;;;10574:15;;10568:22;10628:4;10606:20;;;10599:34;-1:-1:-1;;10650:62:43;10357:3;10692:19;;10568:22;10650:62;:::i;:::-;10642:70;10104:614;-1:-1:-1;;;;10104:614:43:o;10723:230::-;10872:2;10861:9;10854:21;10835:4;10892:55;10943:2;10932:9;10928:18;10920:6;10892:55;:::i;11936:671::-;12040:6;12048;12056;12064;12117:2;12105:9;12096:7;12092:23;12088:32;12085:52;;;12133:1;12130;12123:12;12085:52;12160:23;;-1:-1:-1;;;;;12195:30:43;;12192:50;;;12238:1;12235;12228:12;12192:50;12277:70;12339:7;12330:6;12319:9;12315:22;12277:70;:::i;:::-;12366:8;;12251:96;;-1:-1:-1;12470:2:43;12455:18;;12442:32;;12571:2;12556:18;12543:32;;-1:-1:-1;11936:671:43;-1:-1:-1;;;;11936:671:43:o;12612:274::-;12786:25;;;-1:-1:-1;;;;;12847:32:43;12842:2;12827:18;;12820:60;12774:2;12759:18;;12612:274::o;12891:277::-;12958:6;13011:2;12999:9;12990:7;12986:23;12982:32;12979:52;;;13027:1;13024;13017:12;12979:52;13059:9;13053:16;13112:5;13105:13;13098:21;13091:5;13088:32;13078:60;;13134:1;13131;13124:12;13173:251;13243:6;13296:2;13284:9;13275:7;13271:23;13267:32;13264:52;;;13312:1;13309;13302:12;13264:52;13344:9;13338:16;13363:31;13388:5;13363:31;:::i;13429:127::-;13490:10;13485:3;13481:20;13478:1;13471:31;13521:4;13518:1;13511:15;13545:4;13542:1;13535:15;13561:329;13658:4;13716:11;13703:25;13810:3;13806:8;13795;13779:14;13775:29;13771:44;13751:18;13747:69;13737:97;;13830:1;13827;13820:12;13737:97;13851:33;;;;;13561:329;-1:-1:-1;;13561:329:43:o;13895:129::-;-1:-1:-1;;;;;13969:30:43;;13959:41;;13949:69;;14014:1;14011;14004:12;14029:245;14087:6;14140:2;14128:9;14119:7;14115:23;14111:32;14108:52;;;14156:1;14153;14146:12;14108:52;14195:9;14182:23;14214:30;14238:5;14214:30;:::i;14279:182::-;14382:11;;-1:-1:-1;;;;;;14378:42:43;-1:-1:-1;;;;;14422:31:43;;;;14375:79;;;;14362:93;;14279:182::o;14466:380::-;14545:1;14541:12;;;;14588;;;14609:61;;14663:4;14655:6;14651:17;14641:27;;14609:61;14716:2;14708:6;14705:14;14685:18;14682:38;14679:161;;14762:10;14757:3;14753:20;14750:1;14743:31;14797:4;14794:1;14787:15;14825:4;14822:1;14815:15;14679:161;;14466:380;;;:::o;14976:517::-;15077:2;15072:3;15069:11;15066:421;;;15113:5;15110:1;15103:16;15157:4;15154:1;15144:18;15227:2;15215:10;15211:19;15208:1;15204:27;15198:4;15194:38;15263:4;15251:10;15248:20;15245:47;;;-1:-1:-1;15286:4:43;15245:47;15341:2;15336:3;15332:12;15329:1;15325:20;15319:4;15315:31;15305:41;;15396:81;15414:2;15407:5;15404:13;15396:81;;;15473:1;15459:16;;15440:1;15429:13;15396:81;;15669:1178;-1:-1:-1;;;;;15767:27:43;;15764:53;;;15797:18;;:::i;:::-;15826:93;15915:3;15875:38;15907:4;15901:11;15875:38;:::i;:::-;15869:4;15826:93;:::i;:::-;15945:1;15970:2;15965:3;15962:11;15987:1;15982:607;;;;16633:1;16650:3;16647:93;;;-1:-1:-1;16706:19:43;;;16693:33;16647:93;-1:-1:-1;;15626:1:43;15622:11;;;15618:24;15614:29;15604:40;15650:1;15646:11;;;15601:57;16753:78;;15955:886;;15982:607;14923:1;14916:14;;;14960:4;14947:18;;-1:-1:-1;;16018:17:43;;;16132:229;16146:7;16143:1;16140:14;16132:229;;;16235:19;;;16222:33;16207:49;;16342:4;16327:20;;;;16295:1;16283:14;;;;16162:12;16132:229;;;16136:3;16389;16380:7;16377:16;16374:159;;;16513:1;16509:6;16503:3;16497;16494:1;16490:11;16486:21;16482:34;16478:39;16465:9;16460:3;16456:19;16443:33;16439:79;16431:6;16424:95;16374:159;;;16576:1;16570:3;16567:1;16563:11;16559:19;16553:4;16546:33;15955:886;;15669:1178;;;:::o;16852:1262::-;17026:5;17013:19;17041:33;17066:7;17041:33;:::i;:::-;17083:61;17136:7;17130:4;17083:61;:::i;:::-;;17181:1;17175:4;17171:12;17231:2;17224:5;17220:14;17207:28;17244:33;17269:7;17244:33;:::i;:::-;17286:67;17345:7;17333:10;17286:67;:::i;:::-;;17401:2;17394:5;17390:14;17377:28;17414:32;17438:7;17414:32;:::i;:::-;17465:17;;-1:-1:-1;;;;;17513:28:43;17578:3;17547:17;;;;-1:-1:-1;;;;;;17543:48:43;17510:82;17491:102;;17652:2;17641:14;;17628:28;17707:14;17703:26;;;-1:-1:-1;;17699:40:43;17675:65;;17665:93;;17754:1;17751;17744:12;17665:93;17779:30;;17832:18;;-1:-1:-1;;;;;17862:30:43;;17859:50;;;17905:1;17902;17895:12;17859:50;17942:2;17936:4;17932:13;17918:27;;17989:6;17973:14;17969:27;17961:6;17957:40;17954:60;;;18010:1;18007;18000:12;17954:60;18023:85;18101:6;18093;18089:1;18083:4;18079:12;18023:85;:::i;18119:505::-;18219:6;18214:3;18207:19;18251:4;18246:3;18242:14;18235:21;;18189:3;18279:5;18302:1;18312:287;18326:6;18323:1;18320:13;18312:287;;;18403:6;18390:20;18423:33;18448:7;18423:33;:::i;:::-;-1:-1:-1;;;;;18481:33:43;18469:46;;18544:4;18535:14;;;;18572:17;;;;;18511:1;18341:9;18312:287;;;-1:-1:-1;18615:3:43;;18119:505;-1:-1:-1;;;;18119:505:43:o;18629:311::-;18717:19;;;18699:3;-1:-1:-1;;;;;18748:31:43;;18745:51;;;18792:1;18789;18782:12;18745:51;18828:6;18825:1;18821:14;18880:8;18873:5;18866:4;18861:3;18857:14;18844:45;18909:18;;;;18929:4;18905:29;;18629:311;-1:-1:-1;;;18629:311:43:o;18945:266::-;19033:6;19028:3;19021:19;19085:6;19078:5;19071:4;19066:3;19062:14;19049:43;-1:-1:-1;19137:1:43;19112:16;;;19130:4;19108:27;;;19101:38;;;;19193:2;19172:15;;;-1:-1:-1;;19168:29:43;19159:39;;;19155:50;;18945:266::o;19216:2484::-;19641:2;19630:9;19623:21;19604:4;19667:73;19736:2;19725:9;19721:18;19713:6;19705;19667:73;:::i;:::-;19788:9;19780:6;19776:22;19771:2;19760:9;19756:18;19749:50;19822:61;19876:6;19868;19860;19822:61;:::i;:::-;19919:22;;;19914:2;19899:18;;19892:50;19977:22;;;19808:75;-1:-1:-1;20027:2:43;20015:15;;;;20073:1;20069:14;;;20057:27;;20053:36;20112:6;20136:1;20164:14;20160:27;;;-1:-1:-1;;20156:42:43;20207:1464;20221:6;20218:1;20215:13;20207:1464;;;20286:19;;;-1:-1:-1;;20282:33:43;20270:46;;20355:20;;20398:27;;;20388:55;;20439:1;20436;20429:12;20388:55;20469:31;;20528:19;;20560:33;20528:19;20560:33;:::i;:::-;-1:-1:-1;;;;;20621:33:43;20606:49;;20707:2;20696:14;;20683:28;20724:33;20683:28;20724:33;:::i;:::-;-1:-1:-1;;;;;20794:33:43;20789:2;20777:15;;20770:58;20880:2;20869:14;;20856:28;20897:32;20856:28;20897:32;:::i;:::-;-1:-1:-1;;;;;20966:32:43;20961:2;20949:15;;20942:57;20987:2;21053:14;;21040:28;21125:14;21121:26;;;-1:-1:-1;;21117:40:43;21091:67;;21081:95;;21172:1;21169;21162:12;21081:95;21204:32;21325:2;21312:16;;;21263:21;-1:-1:-1;;;;;21344:30:43;;21341:50;;;21387:1;21384;21377:12;21341:50;21440:6;21424:14;21420:27;21411:7;21407:41;21404:61;;;21461:1;21458;21451:12;21404:61;21502:4;21497:2;21489:6;21485:15;21478:29;21530:61;21585:4;21577:6;21573:17;21565:6;21556:7;21530:61;:::i;:::-;21520:71;;;;21626:2;21618:6;21614:15;21604:25;;21658:2;21653:3;21649:12;21642:19;;20243:1;20240;20236:9;20231:14;;20207:1464;;;-1:-1:-1;21688:6:43;;19216:2484;-1:-1:-1;;;;;;;;;;;;19216:2484:43:o;21705:230::-;21775:6;21828:2;21816:9;21807:7;21803:23;21799:32;21796:52;;;21844:1;21841;21834:12;21796:52;-1:-1:-1;21889:16:43;;21705:230;-1:-1:-1;21705:230:43:o;21940:738::-;21989:3;22030:5;22024:12;22059:36;22085:9;22059:36;:::i;:::-;22104:19;;;22154:1;22139:17;;22165:150;;;;22329:1;22324:348;;;;22132:540;;22165:150;22228:3;22224:8;22213:9;22209:24;22202:4;22197:3;22193:14;22186:48;22300:4;22288:6;22281:14;22274:22;22271:1;22267:30;22262:3;22258:40;22254:51;22247:58;;22165:150;;22324:348;22355:5;22352:1;22345:16;22402:4;22399:1;22389:18;22429:1;22443:177;22457:6;22454:1;22451:13;22443:177;;;22554:7;22548:14;22541:4;22537:1;22532:3;22528:11;22524:22;22517:46;22604:1;22595:7;22591:15;22580:26;;22479:4;22476:1;22472:12;22467:17;;22443:177;;;22644:11;;22657:4;22640:22;;-1:-1:-1;;22132:540:43;;;21940:738;;;;:::o;22683:584::-;-1:-1:-1;;;;;22937:32:43;;;22919:51;;23001:2;22986:18;;22979:34;;;23049:32;;23044:2;23029:18;;23022:60;-1:-1:-1;;;;;23118:31:43;;23138:2;23098:18;;23091:59;22957:3;23181;23166:19;;23159:32;;;-1:-1:-1;;23208:53:43;;23241:19;;23233:6;23208:53;:::i;:::-;23200:61;22683:584;-1:-1:-1;;;;;;;22683:584:43:o;23696:127::-;23757:10;23752:3;23748:20;23745:1;23738:31;23788:4;23785:1;23778:15;23812:4;23809:1;23802:15;23828:125;23893:9;;;23914:10;;;23911:36;;;23927:18;;:::i;23958:128::-;24025:9;;;24046:11;;;24043:37;;;24060:18;;:::i;24091:300::-;-1:-1:-1;;;;;24283:32:43;;;24265:51;;24352:32;;24347:2;24332:18;;24325:60;24253:2;24238:18;;24091:300::o;24396:288::-;24585:2;24574:9;24567:21;24548:4;24605:73;24674:2;24663:9;24659:18;24651:6;24643;24605:73;:::i;25279:364::-;25358:6;25366;25419:2;25407:9;25398:7;25394:23;25390:32;25387:52;;;25435:1;25432;25425:12;25387:52;25467:9;25461:16;25486:31;25511:5;25486:31;:::i;:::-;25607:2;25592:18;;;;25586:25;25536:5;;25586:25;;-1:-1:-1;;;25279:364:43:o;25901:519::-;26178:2;26167:9;26160:21;26141:4;26204:73;26273:2;26262:9;26258:18;26250:6;26242;26204:73;:::i;:::-;26325:9;26317:6;26313:22;26308:2;26297:9;26293:18;26286:50;26353:61;26407:6;26399;26391;26353:61;:::i;26425:371::-;-1:-1:-1;;;;;26645:32:43;;;26627:51;;26714:32;;;;26709:2;26694:18;;26687:60;26778:2;26763:18;;26756:34;;;;26615:2;26600:18;;26425:371::o;27725:211::-;27766:3;27804:5;27798:12;27848:6;27841:4;27834:5;27830:16;27825:3;27819:36;27910:1;27874:16;;27899:13;;;-1:-1:-1;27874:16:43;;27725:211;-1:-1:-1;27725:211:43:o;27941:261::-;28116:3;28141:55;28166:29;28191:3;28183:6;28166:29;:::i;:::-;28158:6;28141:55;:::i;28207:189::-;28336:3;28361:29;28386:3;28378:6;28361:29;:::i","linkReferences":{},"immutableReferences":{"273":[{"start":12969,"length":32},{"start":13010,"length":32},{"start":13409,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"batchRedirectToTradingSafe(address[],address[],uint256[])","signatureHash4":"0x197f84f8","signatureHash32":"0x197f84f8f221f151fa7a35970051d9f7a5183396bf8cdba2a28d031a56ec3025"},{"signature":"beacon()","signatureHash4":"0x59659e90","signatureHash32":"0x59659e90b7d72df48778ef4ce96dbf37e43be5cfd59567e6502e3f9c1e4f8ec8"},{"signature":"bridge(address,uint256,uint256)","signatureHash4":"0x0bf5d35e","signatureHash32":"0x0bf5d35e48c720ce2ea9122a0ee07f5e123a0a97f5b0f5a9cc0cec9f8e10ccef"},{"signature":"deployTopUpContract(bytes32)","signatureHash4":"0x760d0f9d","signatureHash32":"0x760d0f9de3c1f34c5faf4440a10b740f1057ebb188a61ed40b549b468c5a3d39"},{"signature":"ETH()","signatureHash4":"0x8322fff2","signatureHash32":"0x8322fff276cdf3f5716784c2e78b276d0d5cf1781fe7a7984e8bff96f75632c6"},{"signature":"getBridgeFee(address,uint256,uint256)","signatureHash4":"0x7f1a9904","signatureHash32":"0x7f1a9904537e89404ddbaa740ae6d6896e65760d143dccc1c0d7a23d3cbc889d"},{"signature":"getDeployedAddresses(uint256,uint256)","signatureHash4":"0x60db2873","signatureHash32":"0x60db2873a4b02fb66916729d1d2d18f4ba0308c9427969a3e5086b66b2145d92"},{"signature":"getDeterministicAddress(bytes32)","signatureHash4":"0xa58dcc95","signatureHash32":"0xa58dcc9511a961c58377dc1a1b55e50faf003adfac0cfa6d6795ba667283f419"},{"signature":"getRecoveryWallet()","signatureHash4":"0x1becc420","signatureHash32":"0x1becc4200c2c6bb477885e98050eba7b630021d87f8111b6bd71cd60b0085e46"},{"signature":"getTokenConfig(address,uint256)","signatureHash4":"0xa222dbbd","signatureHash32":"0xa222dbbdefdefd05d4e3733f4f2f296c7781861ab4d12f8a4e9cb5e2468270d9"},{"signature":"initialize(address,address)","signatureHash4":"0x485cc955","signatureHash32":"0x485cc955cd05f29985ce37d87ac35dcf2fdbc60b9106f66a532e31a2f1d5743b"},{"signature":"isTokenSupported(address)","signatureHash4":"0x75151b63","signatureHash32":"0x75151b637ccccb94db67ae177f374b59bb2a98f44c1e715a24ea211cbd5394f0"},{"signature":"isTokenSupportedOnChain(address,uint256)","signatureHash4":"0xe8d1f00f","signatureHash32":"0xe8d1f00f79dc7582e1849b2df7780276dbd42a0e9dd23a11dd88234cbd420cb1"},{"signature":"isTopUpContract(address)","signatureHash4":"0xb0b15c11","signatureHash32":"0xb0b15c110b4249739aaeca605ec0a2055ed5bd36b05fc92afb11319b6f542a0a"},{"signature":"MAX_ALLOWED_SLIPPAGE()","signatureHash4":"0xb69fd599","signatureHash32":"0xb69fd599cc7bde37818c6e6c4ace7e016e404b33d9c7e112dcdb7f9f03f4a5a8"},{"signature":"numContractsDeployed()","signatureHash4":"0x886e89a5","signatureHash32":"0x886e89a538f8035947e73b0f3eae3f29b1e87e511528bda76e1b340668a6e58e"},{"signature":"pause()","signatureHash4":"0x8456cb59","signatureHash32":"0x8456cb591a934d53f6ccc6332123a165a1f3562907bf11330d847a29ca49eb89"},{"signature":"paused()","signatureHash4":"0x5c975abb","signatureHash32":"0x5c975abbf8c4d6efa68fc896e233763eb503f2318260b7bf59b19412913788b2"},{"signature":"processTopUp(address[],uint256,uint256)","signatureHash4":"0xc93d2b1d","signatureHash32":"0xc93d2b1dcf4c1a233e5239b2a214f54d076e1b45eef8d7b48937fac7d0d08499"},{"signature":"processTopUpFromContracts(address[],address[])","signatureHash4":"0x7b0eb57d","signatureHash32":"0x7b0eb57d5b8ad7015cb3d42c82554f78b7753226f01b164cd4fa29a3d2a6f8c5"},{"signature":"proxiableUUID()","signatureHash4":"0x52d1902d","signatureHash32":"0x52d1902ddf94a87b87c42e6ab3aff7da3c30beb57dc65dd86cb2543522a55a4c"},{"signature":"recoverFunds(address,uint256)","signatureHash4":"0x58609754","signatureHash32":"0x586097549ec679d36db69f5fcdd1df730556f77fd21dc3a6260eaa1a16ac367c"},{"signature":"redirectDestinationFor(address)","signatureHash4":"0x6c8bcb6a","signatureHash32":"0x6c8bcb6a759701de6328802ee12ec3288e5da519455fc6319626a2b4b6466452"},{"signature":"redirectToTradingSafe(address,address,uint256)","signatureHash4":"0x0345bdbe","signatureHash32":"0x0345bdbe150c1123107a77c1b6f3728f92ea7902b624b88c378a0c8307309e7a"},{"signature":"removeTokenConfig(address[],uint256[])","signatureHash4":"0xade78a12","signatureHash32":"0xade78a12347f6af16b4fdd664ba71def7250b9b12fc3517e650b1e69008a65a7"},{"signature":"roleRegistry()","signatureHash4":"0x08c73259","signatureHash32":"0x08c73259cc7dbd3804ceb73d2cb02c5e59ecada3d083facb36b80ad6410a7cc6"},{"signature":"setRecoveryWallet(address)","signatureHash4":"0xcd00c538","signatureHash32":"0xcd00c5384e1d20f6bae6a9b9237e2ad34b0d9c5749227c5747c75d603a3795fc"},{"signature":"setRedirectWrappers(address[],address[])","signatureHash4":"0x770b69f6","signatureHash32":"0x770b69f6155c7d2efb17ab15d36712209d0a7d0646d45ad56c33edbef57c0846"},{"signature":"setTokenConfig(address[],uint256[],(address,address,uint96,bytes)[])","signatureHash4":"0x03c1288e","signatureHash32":"0x03c1288e554c7fd6e0152c85a08b53d29551e790e45ece3ccda325be94d5dc6a"},{"signature":"setTradingSafeFactory(address)","signatureHash4":"0xc8d9b286","signatureHash32":"0xc8d9b286b837eb264a49d7e6a11cf7ad41175219df1a130283c9a9041882e303"},{"signature":"TOPUP_FACTORY_BRIDGER_ROLE()","signatureHash4":"0xa5116d93","signatureHash32":"0xa5116d93977a0006f645d50ef8684f817a899b2ab37d049a1fe0070488a77042"},{"signature":"TOPUP_FACTORY_REDIRECT_ROLE()","signatureHash4":"0x3d9d3867","signatureHash32":"0x3d9d38673f7cdbaaf0232544acd35e2b34f43ab772edfdbd9c3692607a2a0cfd"},{"signature":"tradingSafeFactory()","signatureHash4":"0xa783b508","signatureHash32":"0xa783b508fc019833a0ca7b870a2e2bd2a093597ef3c0ae1daa45040fe8182ee8"},{"signature":"unpause()","signatureHash4":"0x3f4ba83a","signatureHash32":"0x3f4ba83af89dc9793996d9e56b8abe6dc88cd97c9c2bb23027806e9c1ffd54dc"},{"signature":"upgradeBeaconImplementation(address)","signatureHash4":"0xde9d008d","signatureHash32":"0xde9d008da1c6fb07781910297fcd99049c3fff89177eab17bd449d1ead84504a"},{"signature":"UPGRADE_INTERFACE_VERSION()","signatureHash4":"0xad3cb1cc","signatureHash32":"0xad3cb1cc5c2df3b903ea43f30f77a80ecfeefbed7932a4a8e68c92af99e41dfd"},{"signature":"upgradeToAndCall(address,bytes)","signatureHash4":"0x4f1ef286","signatureHash32":"0x4f1ef2866b98625bdfefae89411f7a82754ac4089eff8e78c8832329a538337f"},{"signature":"wrapperFor(address)","signatureHash4":"0x922b8e22","signatureHash32":"0x922b8e22e5ce385c201f8b569b929042e2d2f5054c7b3280fa722c69f688efd0"},{"signature":"wrapStocks(address,address[])","signatureHash4":"0x95e12d61","signatureHash32":"0x95e12d6166999c04f6fce172e8601a89574b5c7f290d63482eecef27eadc2992"}],"event":[{"signature":"BeaconImplemenationUpgraded(address,address)","signatureHash4":"0xd8518b5f","signatureHash32":"0xd8518b5f9760cf035849134f93f54b517edb9f10ce176b56bf030f3f9440389a"},{"signature":"BeaconProxyDeployed(bytes32,address)","signatureHash4":"0x5889f635","signatureHash32":"0x5889f63567a2730b47d0d74082206509fb86668d46a900bd695e655d099d586e"},{"signature":"Bridge(address,uint256,uint256)","signatureHash4":"0xdeb96a3e","signatureHash32":"0xdeb96a3e5294fabe38d8824397be657fbe695d61f3457274027345cca6f26aaa"},{"signature":"Initialized(uint64)","signatureHash4":"0xc7f505b2","signatureHash32":"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"},{"signature":"Paused(address)","signatureHash4":"0x62e78cea","signatureHash32":"0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258"},{"signature":"Recovery(address,address,uint256)","signatureHash4":"0xb66c2595","signatureHash32":"0xb66c2595c5f377625ce78f02a4e5a1e17bd8e65fb805e6262a77398172989923"},{"signature":"RecoveryWalletSet(address,address)","signatureHash4":"0xadb84db6","signatureHash32":"0xadb84db668ad3a3e3aa18a04bfddc5be02e91df5a50b6f582d333ff4aadc6238"},{"signature":"RedirectFunds(address,address,address,uint256)","signatureHash4":"0x93ec1b6d","signatureHash32":"0x93ec1b6d292b7baab10097610d02fd4e579dce988855ff8617c7a2411e94d2cb"},{"signature":"RedirectWrapperSet(address,address,address)","signatureHash4":"0x8b863b97","signatureHash32":"0x8b863b97da7a049ed5c0d1ddbc641791502d6838e76e6a88ade8d482e3fb6201"},{"signature":"TokenConfigRemoved(address[],uint256[])","signatureHash4":"0x1cca7286","signatureHash32":"0x1cca7286aff149fdea06341568f4ba0cf89cd2cda75d59ebc1bbe76e41dbec0b"},{"signature":"TokenConfigSet(address[],uint256[],(address,address,uint96,bytes)[])","signatureHash4":"0x38b4ba5b","signatureHash32":"0x38b4ba5b5b718d46113d57ec0ea9e7e617b824c53b05851ba43b3c0725a93622"},{"signature":"TradingSafeFactorySet(address,address)","signatureHash4":"0xd8fa7fa7","signatureHash32":"0xd8fa7fa75f9c76e3ad6668d336b7bb2abe2599c7f77603e99143133390519191"},{"signature":"Unpaused(address)","signatureHash4":"0x5db9ee0a","signatureHash32":"0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa"},{"signature":"Upgraded(address)","signatureHash4":"0xbc7cd75a","signatureHash32":"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b"},{"signature":"WrapOnRedirect(address,address,address,uint256,uint256)","signatureHash4":"0xf731d501","signatureHash32":"0xf731d5013020dffa63f52339f4b47a4fb9a2b8bc6b88f1e0d4da0d105d11f815"},{"signature":"WrapStock(address,address,address,uint256,uint256)","signatureHash4":"0xfc300d77","signatureHash32":"0xfc300d77be3e07df57a475f2614150263fc5af44ad77e8e2da207aa9bc690514"}],"error":[{"signature":"AddressEmptyCode(address)","signatureHash4":"0x9996b315","signatureHash32":"0x9996b315c842ff135b8fc4a08ad5df1c344efbc03d2687aecc0678050d2aac89"},{"signature":"AmountCannotBeZero()","signatureHash4":"0xd11b25af","signatureHash32":"0xd11b25af60971fcbba468e46807d6c941434c91c27d231273f2587b0e636a674"},{"signature":"ArrayLengthMismatch()","signatureHash4":"0xa24a13a6","signatureHash32":"0xa24a13a6c9c749fdebc1ced0c54b040f90ec2bad4921a2449a09961f99596abe"},{"signature":"ChainIdCannotBeZero()","signatureHash4":"0x407d4938","signatureHash32":"0x407d49386f77e12a2ed30c294eee11e4e1e837175d17d8e21a783458b4a8592c"},{"signature":"DeployedAddressDifferentFromExpected()","signatureHash4":"0x169c8221","signatureHash32":"0x169c8221b6d6ab0c95981fb26b2ad51863ca02d902546ee32246c95bc183bb7a"},{"signature":"EnforcedPause()","signatureHash4":"0xd93c0665","signatureHash32":"0xd93c0665d6c96d04a8f174024fc4ddd66c250604aff22bbec808de86dd3637e3"},{"signature":"ERC1967InvalidImplementation(address)","signatureHash4":"0x4c9c8ce3","signatureHash32":"0x4c9c8ce3ceb3130f17f7cdba48d89b5b0129f266a8bac114e6e315a41879b617"},{"signature":"ERC1967NonPayable()","signatureHash4":"0xb398979f","signatureHash32":"0xb398979fa84f543c8e222f17890372c487baf85e062276c127fef521eea7224b"},{"signature":"ExpectedPause()","signatureHash4":"0x8dfc202b","signatureHash32":"0x8dfc202bcfe9a735b559bee70674422512bc5c30f687046ae8778315fb81da44"},{"signature":"FailedCall()","signatureHash4":"0xd6bda275","signatureHash32":"0xd6bda27508c0fb6d8a39b4b122878dab26f731a7d4e4abe711dd3731899052a4"},{"signature":"IndexOutOfBounds()","signatureHash4":"0x4e23d035","signatureHash32":"0x4e23d035f7b33ce60795ca9f0e8e6031d7a267562e8e7756f8c197bb3b4ef58b"},{"signature":"InitializationFailed()","signatureHash4":"0x19b991a8","signatureHash32":"0x19b991a8b4e4b118c8786f45ab5aad90f4356f0da0984fa0cc1cd5c381581784"},{"signature":"InsufficientBalance()","signatureHash4":"0xf4d678b8","signatureHash32":"0xf4d678b8ce6b5157126b1484a53523762a93571537a7d5ae97d8014a44715c94"},{"signature":"InsufficientFeePassed()","signatureHash4":"0x6a639da5","signatureHash32":"0x6a639da52963468a14cba17e359973e524b1fc438359b293a714a04bf241781d"},{"signature":"InvalidConfig()","signatureHash4":"0x35be3ac8","signatureHash32":"0x35be3ac88eaaf385e6b33d44d849a44bdc3ae215676d5d7e0194dfe20d80c66e"},{"signature":"InvalidInitialization()","signatureHash4":"0xf92ee8a9","signatureHash32":"0xf92ee8a957075833165f68c320933b1a1294aafc84ee6e0dd3fb178008f9aaf5"},{"signature":"InvalidInput()","signatureHash4":"0xb4fa3fb3","signatureHash32":"0xb4fa3fb378e34a63a7e6eab158ffc3d14c2207866b49e0062a0069ef6a6b426b"},{"signature":"InvalidRedirectWrapper()","signatureHash4":"0x3cf654ef","signatureHash32":"0x3cf654ef7ee41181c95a1f68bb7d4975ef8071dd8d54e0f816dc2c6900c136c9"},{"signature":"InvalidStartIndex()","signatureHash4":"0x92c44259","signatureHash32":"0x92c4425991b20e9eb00089561d6b7b8670d625700d9559987c5b365a0054d575"},{"signature":"InvalidTopUpAddress()","signatureHash4":"0x26b37d2a","signatureHash32":"0x26b37d2aa0f6058282a9c7771fc3115521e585237d0d740ce5abfe0ac61b8c72"},{"signature":"NativeTransferFailed()","signatureHash4":"0xf4b3b1bc","signatureHash32":"0xf4b3b1bcbe5924688bdd352ae99c1966d3ce0a2ba09d3a1d796de982d1ee8c84"},{"signature":"NotInitializing()","signatureHash4":"0xd7e6bcf8","signatureHash32":"0xd7e6bcf8597daa127dc9f0048d2f08d5ef140a2cb659feabd700beff1f7a8302"},{"signature":"OnlyRedirectRole()","signatureHash4":"0x5a54d954","signatureHash32":"0x5a54d9548ff924e9e00b5d2de3c9fc1e2ee24c38d68ab6451409dd858d6c7f0c"},{"signature":"OnlyRoleRegistryOwner()","signatureHash4":"0xab1899a7","signatureHash32":"0xab1899a7942fb48361887f0b9a3c8e1cc4a2cecd2d7535c47e42f639387ea030"},{"signature":"OnlySupportedTokens()","signatureHash4":"0x18e9b75d","signatureHash32":"0x18e9b75d12f35e4abc5c9a7f5d3dd3b70025e3121b3459ee95370f82f332be7a"},{"signature":"OnlyUnsupportedTokens()","signatureHash4":"0xc6486ddf","signatureHash32":"0xc6486ddf881ff57dc6c6508e286a1feec6f0a48da25fc9d1628dff247e8d868f"},{"signature":"RecoveryWalletCannotBeZeroAddress()","signatureHash4":"0x65fe9cbe","signatureHash32":"0x65fe9cbed98e800c8bfe83cc9609bdeab5f2b96dc0237360b1c17ecc0fd2580a"},{"signature":"RecoveryWalletNotSet()","signatureHash4":"0xade30f78","signatureHash32":"0xade30f789c5f8adb3e154c8330472dff76acab111e9295c4535c03e0a0e6ac97"},{"signature":"RedirectWrapperNotSet()","signatureHash4":"0x77929236","signatureHash32":"0x77929236b6199e66bfcb1ca7043e237762b97366a38b70ef71a9a3edf52965be"},{"signature":"ReentrancyGuardReentrantCall()","signatureHash4":"0x3ee5aeb5","signatureHash32":"0x3ee5aeb571de7fc460830b4d0017439a1ca56fb0bc39062227ade4fe4a24c1ca"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"},{"signature":"TokenCannotBeZeroAddress()","signatureHash4":"0x5f5d3399","signatureHash32":"0x5f5d3399db8792d592cd604ca4aae96521090d7543cf9900511d23f400f81872"},{"signature":"TokenConfigNotSet()","signatureHash4":"0x17b428a3","signatureHash32":"0x17b428a3c43e70530e0be234b9c81d2fd955ed86361c36c1009b898044344a55"},{"signature":"TokenNotTradingSupported()","signatureHash4":"0xb83f8e7c","signatureHash32":"0xb83f8e7c41f97422d04e2f6083f718c5b826e3f00564a4d3bc63d175649e4b9c"},{"signature":"TradingSafeFactoryCannotBeZeroAddress()","signatureHash4":"0xe360d9d6","signatureHash32":"0xe360d9d699120cea7ae0ce3055597c47a5f0dec8fd4d8057354134a04d38e777"},{"signature":"TradingSafeFactoryNotSet()","signatureHash4":"0x34d48d9c","signatureHash32":"0x34d48d9cd6459857cbaa99a7c3724a8e17bde678e9aabea7f5473ba83b112abb"},{"signature":"TradingSafeNotDeployed()","signatureHash4":"0xb8b426ca","signatureHash32":"0xb8b426caf477dd9664f146ac2848707bb09898d8415f1d8842342f316f2d8e32"},{"signature":"Unauthorized()","signatureHash4":"0x82b42900","signatureHash32":"0x82b4290015f7ec7256ca2a6247d3c2a89c4865c0e791456df195f40ad0a81367"},{"signature":"UUPSUnauthorizedCallContext()","signatureHash4":"0xe07c8dba","signatureHash32":"0xe07c8dba242a06571ac65fe4bbe20522c9fb111cb33599b799ff8039c1ed18f4"},{"signature":"UUPSUnsupportedProxiableUUID(bytes32)","signatureHash4":"0xaa1d49a4","signatureHash32":"0xaa1d49a4c084bfa9aeeee2a0be65267a7f19ba7e1476b114dac513d2c14cb563"},{"signature":"WrapMintedNothing()","signatureHash4":"0xca12e888","signatureHash32":"0xca12e8882b13f626753c9175aea36cacc1f8c6e7b48e31ac6ab896fb28542647"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"1","address":"0x0681a8bB55f509c5952063163a1Dda710084B80C"}